1197 Commits

Author SHA1 Message Date
skotlex
0bae404bb9 - Bowling bash now always hits twice regardless of situation.
- Added an underflow check to prevent sending to the client negative mdef2 value (for Frenzy'ed characters)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8934 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-04 21:05:44 +00:00
skotlex
746aae171c - Renamed setting delay_dependon_dex to delay_dependon_agi, the delay of skills is reduced now (when enabled) by AGI instead of DEX, which makes a lot more sense than DEX.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8923 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-03 13:54:51 +00:00
skotlex
94f10d7d39 - Fixed the txt->sql converter only saving the very first character permanent variable.
- Fixed the txt->sql converter saving account-wide variables as character-wide ones.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8917 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-02 15:04:14 +00:00
skotlex
55cf6d9d0f - Renamed nopenalty mapflag to noexppenalty. Using nopenalty will turn on/off both noexppenalty and nozenypenalty now.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8915 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-02 14:19:56 +00:00
Lupus
ba7f482666 homun skill exploit
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8911 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-01 16:54:57 +00:00
skotlex
42375e1896 - Rewrote the txt->sql converter. It now links directly to the char server files so that it should get auto-updated with any code changes in the later.
- The converter will now also convert: account-wide variables, parties, guilds, guild storage and guild castles. At this point the only two things not converted are login-server-wide account variables (##, they belong to the login converter) and homunculus (the SQL save function is messy and doesn't lends itself to be integrated with the converter the way all the other functions are).
- Modified the char servers so they are compatible with the converter, the define TXT_SQL_CONVERT identifies sections unique to each char-server mode (this would had been a hella lot easier if both char servers where the same code-base instead of duplicated code <.<)
- Updated the Makefiles as per the new compiling requirements for the converter.
- misceffect2 will no longer cause the effect on top of the source object when it is the fake npc.
- Added check so that Frost Nova doesn't hides hitting animation on targets.
- Added the missing brackets around the trade logs condition check, thanks to Coltaro.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8908 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-30 21:54:01 +00:00
skotlex
f7a1d44c3e - Merged the necessary changes to make the script engine support negative constants (db/const.txt). Thanks to Rayce (from jA) for the code.
- Cleaned up the skill.c code to take into account when skill_unitsetting returns null (skill failed), fixes a possible crash with Wand of Hermode


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8891 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-28 13:26:40 +00:00
skotlex
9eeaa9cb7e - Merged some splash changes from stable. Sharp-Shooting will now display a skill animation.
- The no_spawn_on_player setting will now also work for static mobs, but only if the setting is set to 100 or higher.
- Some small cleanups.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8887 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-27 15:07:55 +00:00
skotlex
962762114b - Yet again messed with the packet sent during a splash attack, but this time taking into account the packets that eA was using some many revisions ago. Tests are needed to see if Magnum Break/Grimtooth don't spam the skill animation anymore, and to see if GrandCross didn't break it's animation as well.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8877 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-26 19:35:29 +00:00
skotlex
faa1896447 - Added function skill_dance_switch which handles converting overlapping song/dances to dissonance/ugly dance. It should make the overlapping area now behave completely like the mentioned song/dances (taking into account interval and target type changes).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8876 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-26 18:53:55 +00:00
skotlex
25e8e6c1ce - Added an ugly check so that Heal will display 0 when healing a berserked character (and it will again display full heal amount when healing a player who's at full life)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8869 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-25 21:40:02 +00:00
skotlex
c9f213bc82 - Changed the order of packets in TK_HIGHJUMP, may fix the reports of getting stuck when jumping into a warp.
- Changed a bit the code of marionette control, where a redefined local variable may be the cause of mob-targetted Marionette Control stacking stats up.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8857 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-25 13:49:29 +00:00
skotlex
2c685ecbf4 - When the code auto-guesses that a skill should require ammo, it will accept any type of ammo for using it instead of only arrows. Fixes Magnum Break usage on Gunslingers.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8852 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-24 19:28:58 +00:00
skotlex
0cedd1e5f4 - High-Jump is usable everywhere now, except that on maps where it previously failed, now will just make you jump in place.
- Fixed TK_RUN as per packets provided by AuronX.
- Corrected Ki Explosion to have range 1 and to take your weapon's element.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8797 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-18 18:36:36 +00:00
skotlex
aa84d16456 - Modified the Asura code (again), hopefully movement sprite issues are fixed now
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8793 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-18 15:09:30 +00:00
skotlex
401920c1d8 - Fixed NPC_INVISIBLE's cloak ending after attacking once.
- Fixed SG_FUSION being castable without Soul Link state.
- Moved the item-use restriction SC checks from clif.c to pc_use_item, fixed Gravitation blocking potion usage on it's area of effect.
- Sphere Marines and Summoned Flora are now inmune to class-changing.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8782 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-17 07:38:10 +00:00
skotlex
7ad8d4effa - Reverted the Summon Flora change where all plants were being summoned in one go.
- Removed some redundant code.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8772 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-15 19:48:00 +00:00
skotlex
6b77c081e9 - Moved the weapon repair effect to where it belongs (after successfully repairing an item)
- Added atcommand.conf entries for @adjgmlvl and @adjcmdlvl


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8770 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-15 17:28:17 +00:00
skotlex
b3d74eb0ad - Changed Extremity Fist's code to make you actually walk past your target, which displays a much more correct "animation" for the skill. Thanks to HiddenDragon for the information and code.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8765 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-15 01:57:23 +00:00
skotlex
25b73f7772 - Added a clif_skill_nodamage packet when using Repair Weapon, just to see what happens.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8762 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-14 21:10:54 +00:00
skotlex
4eabecd228 - Fixed warmth skills draining SP of the target, not the caster.
- If val3 for a combo is set, then the combo will no longer delay attack/movement.
- When TK_DODGE triggers, it will no longer delay your attack or movement.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8757 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-14 16:50:12 +00:00
skotlex
1b4521aff2 - Estimation /Sense/ whatever will no longer hide the vit bonus to mdef2, as reported by Playtester.
- Updated Summon Flora to summon the max number of possible plants on one cast. It will consume as many bottles as monsters summoned. Also cleaned up the function to be usable by non players.
- Added function status_get_name


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8756 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-14 16:34:06 +00:00
skotlex
c9f9218a2b - Shadow Jump no longer goes over walls.
- Insignificant cleanups.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8751 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-14 15:39:24 +00:00
skotlex
d16c9da400 - Corrected Smokie's pet script to use petskillbonus instead of "bonus"
- Added constant map_flag_gvg2 which tags gvg maps independently of whether woe is on or off.
- battle_calc_gvg_damage will be invoked in gvg maps regardless of woe time.
- NPC_MENTALBREAKER now zaps matk*lv SP based on observations by Tharis.
- md->class_ will be changed on mob-class-change to fix all class-change related bugs. On respawn, the spawn data will be used to revert to the original class. 
- Improved the pet skillbonus timer for "eternal bonuses" cases where the bonus delay is 0.
- Adjusted gvg long damage rate to 80%, magic damage rate to 60%


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8748 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-14 13:46:14 +00:00
skotlex
6f501a8bb2 - Moved the morph restrictions from skill_additional_effect to mob_class_change, so that SA_MONOCELL will not convert clones, emperium, or treasure boxes.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8724 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-12 18:44:07 +00:00
toms
7b6be24f47 Fixed 'range' might be used uninitialized warning
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8723 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-12 18:39:57 +00:00
skotlex
59fae741c3 - Baphomet splash damage will now hit nearby enemies regardless of flee (but the initial attack still has to connect for the splash to trigger)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8716 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-12 13:42:54 +00:00
skotlex
4cd82897d0 - Added a comment explaining what a comment is to login/char/map config files, as well as the main script config file.
- Modified SG_FEEL so that it works the same way that in Aegis (packet-wise)
- Added a comment to explain how to "remove" a string variable from the msg_athena entries.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8707 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-11 16:20:40 +00:00
skotlex
4bec54f154 - Summoned and slave mobs won't show up on @showmobs anymore.
- Moved Spider Web damage bonus from battle_calc_damage to battle_attr_fix, so that damage will be doubled based on the actual attack element.
- Adjusted autospell cards to trigger only on physical weapon attacks.
- Adjusted a bit the heal code, it should now show either the full heal amount, or 0, depending on whether the target was healed at all or not (this also means it shows 0 if you try to heal a full-life character.. but it's the closest I've gotten to make it display 0 on Berserked chars)
- Memorize will be consumed even on instant cast spells now.
- Berserk will end now if hit and remaining hp is less or equal to 100.
- Guild Aura will be removed on sc-load to prevent Guild Masters from getting that bonus from the old implementation.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8705 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-11 14:27:49 +00:00
skotlex
2487548c72 - Moved perfect_hiding from state to special_state, so that it clears out when you remove your pet.
- Probably fixed the Taekwon Rest skills.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8687 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-09 16:52:24 +00:00
skotlex
99aca1182b - Unified the rest and ganstar paradise code into a single function.
- Moved the Happy State trigger to the regen function, it now triggers at the same time the SPTIME does.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8681 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-08 19:37:56 +00:00
skotlex
0d30562da5 - Cleaned up SG_HATE to use a new function, pc_set_hate_mob to handle setting.
- Updated pc_authok to initialize all mob_hate vars to -1
- Updated clif_hate_mob to receive the hate-type instead of skill-lv.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8680 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-08 18:45:51 +00:00
skotlex
845659a32d - Changed the default of sg_angel_skill_ratio to 10 based on recent information from Tharis.
- Cleaned up the doridori parse clif function.
- Moved doridori_counter to state.doridori
- Merged some of mpeg's work on NJ skills


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8665 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-07 20:24:41 +00:00
skotlex
a64e58d5eb - Removed the Warmth "stacking" code.
- Added back the effect of /doridori to skill-SP regen
- Implemented a rough version of Angel of the Sun/Moon/Stars, it has a low chance of triggering on doridori-boosted SP-regen events.
- Added sg_angel_skill_ratio to specify rate at which the Angel skill triggers.
- Added unit_cancel_combo which takes care of ending a combo time and resuming normal attack 'inmediately'
- Cleaned up some the SG_HATE code, you can't change hate targets anymore.
- Increased duration of Miracle of the Sun/Moon/Stars to one hour.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8664 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-07 17:40:46 +00:00
skotlex
d0563b1951 - Fixed dispell removing SC_NOCHAT
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8635 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-05 17:55:56 +00:00
skotlex
352944cf6e - Small fix which should correct skill_attack damaging hidden characters when it shouldn't.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8633 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-05 16:32:59 +00:00
skotlex
072b488c01 - Fixed crash when using Adaptation during an Encore.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8627 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-05 02:51:57 +00:00
skotlex
063270b3cb - Soul Breaker will now be affected by Lex Aeterna on both parts of the attack.
- Some minor code cleanups
- Cleaned Adaptation's code to not require to check the Skill Unit group structure to extract the skill lv info.
- Status changes with no skill and no SCB* data will now go through if they have an SI* icon. This should fix SC_MIRACLE
- Reverted switching a mob's adelay/amotion when the later is longer than the former, now both get updated to amotion.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8574 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-01 14:12:51 +00:00
skotlex
a19cafda61 - Moved the intimacy penalty of HFLI_SBR44 and HVAN_EXPLOSION to skill_counter_additional_effect
- Simplified skillnotok_hom by using an invocation to skillnotok
- Hopefully fixed BD_ADAPTATION
- Homun won't lose any intimacy on death now.
- Homun will be saved together with the master now (as long as the homun is active)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8564 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-31 16:40:37 +00:00
skotlex
b0428a5285 - Skill required-state will now only be checked on cast-begin, not cast-end.
- Added a check in status_calc_pc to prevent player rate adjustments from from going below 0.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8553 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-31 01:10:36 +00:00
skotlex
83c639d54a - Removed sending normal-damage packets instead of skill packets for splash-damaged skills, since... well, that's how Aegis does it.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8548 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-30 14:22:20 +00:00
skotlex
87d78eb976 - Updated HLIF_CHANGE to work as explained by Tharis -> It now adds 30*lv vit and 20*lv int, is dispelled on warp, and can-act delay is 5+5*lv minutes. Hp/Sp is no longer set to 10 after a forced expiration.
- Added instant skill unblock in skill_[merc/pc]block_start when the duration passed is less than 1.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8547 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-30 14:11:23 +00:00
toms
66158f3bb6 - Applied Mpeg's work on GS
( http://gpegon.free.fr/ea/gunslinger_08-29-06_mpeg.txt )
- Fixed a syntax error in @showmobs


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8528 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-29 10:23:11 +00:00
skotlex
7107181297 - Restructured CG_MOONLIT so that it is a ground effect like the other Encores.
- Modified SC_DANCING so that val1 can contain both skill id and skill lv, removed SC_MOONLIT


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8526 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28 20:44:44 +00:00
skotlex
af5ad1cfda - Changed the produce_db format, now there's a skill-lv column right after the skill-id column to specify required skill-level to craft this item.
- Modified the skill produce_db code to take into account the new skill-lv requirement.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8523 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28 16:47:19 +00:00
Vicious
5cfee7525e reverted mpeg's work
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8522 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28 16:15:16 +00:00
skotlex
33cb9f7449 - Fixed exp bonuses applying twice for the job-exp
- Magic damage adjustment per number of hits is now performed before mdef reductions.
- @reloadbattleconf  will now also update the ragsrvinfo table on the char-server.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8518 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28 16:03:23 +00:00
toms
b891e7752c Applied Mpeg's work on GS ( http://gpegon.free.fr/ea/gunslinger_08-28-06_mpeg.txt )
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8513 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28 13:40:55 +00:00
Lance
26500644dd * Optional macro MEMSET_TURBO for faster low-level memory initializations.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8499 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-27 06:38:17 +00:00
skotlex
c8bdf075de - Cleaned some the skill unit removal added flag so that it signals whether the skill is being force-removed, or it has "naturally expired".
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8484 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-25 19:40:21 +00:00