summaryrefslogtreecommitdiff
path: root/src/map/skill.c
AgeCommit message (Collapse)AuthorFilesLines
2008-08-02Added itemid defines for Stone and Skull_ (used by Pick Stone skill and pvp ↵ultramage1-1/+1
skull drop, respectively). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13035 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-01Removed unused guardian hp columns from the guild castles table in main.sql ↵ultramage1-1/+1
(should have been done in r11915). Corrected incorrect use of the datetime column in the `login` table (bugreport:1962). Refreshed txt account savefile. Cleaned up some random minor source code glitches. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13030 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-29Renamed struct 'skill' to 's_skill' to remove naming collisions.ultramage1-12/+21
Added defines for mercenary skill ranges. Added a mapping of mercenary skills to the skill db (700-799 atm). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13012 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-26Replaced occurences of '-1' with the more appropriate 'INVALID_TIMER' value ↵ultramage1-14/+15
where appropriate. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12998 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-26- Implemented official Convex Mirror (With help of Yomanda and Sirius White)zephyrus1-2/+2
- Fixed SC_WARN don't receiving reflecting damage (Bug Report 1854). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12997 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-20* Simplified the search in pop_timer_heap and added more debug info to help ↵FlavioJS1-4/+17
determine the source condition of timer errors. (bugreport:1860) * Fixed crash in skill_castend_id. (bugreport:1860) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12968 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-16Fixed TK_JUMPKICK, should not jump over objects and cliffs.shadow1-1/+1
- This also might fix them being able to jump barricades on WoESE. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12962 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-12Fixed a bad check on NPC_EVILLAND, actually healing players instead of doing ↵shadow1-1/+1
damage. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12938 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-09* Added const to the return value of get_timer.FlavioJS1-1/+1
* Added a maximum timer interval. Avoids server shutdowns being delayed for ~10 seconds under some circumstances on windows. * Replaced the fake timer heap (ordered array) with a binary min heap. (actually, this is just a merge and has been in use for months) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12926 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-07First attempt at implementing the official walk speed systemultramage1-5/+4
* separated speed modifiers into bonuses, penalties and other statuses * no bonuses stack, instead the maximum is taken * no penalties stack, instead the maximum is taken * Union, Riding and Pushcart are the only other statuses that stack * both bonuses and penalties are linear modifiers of the base walk speed * 'other' statuses are applied after bonuses and penalties Changed many equations to match official walk speed system * Steel Body now sets a fixed walk speed of 200 (bypassing everything else) * Defender now caps the walk speed to a minimum of 200 * Slow Grace now uses official equation for aspd/walk speed decrease * Pushcart's speed penalty is now halved * Free Cast now changes walk speed to a fixed value, bypassing bonuses and penalties * Wedding clothes now have a penalty of +100%, not +200% * rogue's Tunnel Drive and stalker's Chasewalk ignore all penalties * taekwon's Running is now 5% faster * Frenzy is now 5% faster * Gospel's offensive slowdown is now +75% instead of +33% * Quagmire now slows down by +50% instead of +100% * Gatling Fever now slows down by +100% instead of +33% * Cloaking modifier is now a bonus/penalty, depending on presence of wall * Longing for Freedom overrides the song/dance penalty (bugreport:416) * Bard/Dancer Spriit now properly affects song/dance penalty (bugreport:1019) * item-granted speedup no longer stacks with speed bonuses (topic:145019) * removed some status code that pre-calculated speed bonuses/penalties, to make calculations more localized and less messy (see song/dance code) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12923 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-07Removed stop/slowdown effect from Grimtooth (bugreport:1806)ultramage1-6/+0
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12917 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-05Fixed AM_PHARMACY produce chances based on info gathered by flaviojs, aegis ↵shadow1-19/+25
zone ep 11.2, of 20070629 Added missing version on my last commit on dancer.txt script (added by akrus on stable branch already) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12913 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-03Adjusted Free Cast code so that its walk penalty gets calculated in ↵ultramage1-7/+16
status_calc_speed and nowhere else. Removed aspd penalty from Free Cast since tests show it's not there, even though RO sites claim it is. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12904 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-03Fixes regarding bugreport:1727 (undead element/race skill behaviors) follow ↵shadow1-2/+4
up on revisions r12820 r12821 and r12822 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12903 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-29Random assortment of various small corrections and tweaks.ultramage1-7/+8
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12894 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-24Cleaned up unconditional calls to status_change_end().ultramage1-11/+6
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12890 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-22Changed a if statement around because gcc emocries over it.sketchyphoenix1-2/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12878 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-21* Fixed a bug where the "OnMyMobDead" event wouldn't trigger if the mob was ↵sketchyphoenix1-2/+2
killed and never attacked. (bugreport: 1725) * Reworded a comment in can_copy to make more sense. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12870 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-19* Fixed SC_CHANGEUNDEAD behavior: Blessing and Increase AGI deals 1 damage ↵sketchyphoenix1-2/+16
and does not apply buffs to those inflicted by it. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12862 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-19Added Sirius_White's fix for sense working on emperium. (bugreport: 1679)sketchyphoenix1-0/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12860 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-15Fixed Icewall not restoring the original cell type (mistake in r11175).ultramage1-0/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12836 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-13Fixed Evil Land working versus undead element instead of undead race.shadow1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12822 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-13Fixed Grandcross and darkgrandcross, should only cause blind against undead ↵shadow1-6/+3
race. Also confirmed that ME, evil land, sanctuary, grandcross/DGC and status recovery are versus element, not race. Removed confusion effect part from AL_CURE, it doesnt work on official anymore. Partial revert of signum crucis modification, it doesnt work against players, but work on ELEMENT undead monsters. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12821 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-13Fixed some skills working on undead element when they were supposed to work ↵shadow1-9/+9
on undead race. Skills Fixed: GrandCross, Dark GrandCross, Cure, Head Crush, Signum Crusis, Blessing, Demons Bane, Divine Protection. Skills needing confirmation: Magnus Exorcismus, Evil Land, Sanctuary, Status Recovery. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12820 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-12* Added support for skill names to script commands:FlavioJS1-4/+19
- skill, addtoskill, guildskill, getskilllv, getgdskilllv, itemskill, petskillattack, petskillattack2, petskillsupport, skilleffect, npcskilleffect, unitskilluseid, unitskillusepos - bonus/bonus2/bonus3/bonus4/bonus5 for bonuses bAutoSpell, bSkillAtk, bSkillHeal, bAutoSpellWhenHit, bAddSkillBlow, bCastrate git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12814 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-09Fixed 1734,Orc_Archer_Bow working with Iron Arrow instead of Steel Arrow. ↵shadow1-1/+1
Thanks Muad Dib for reporting. Fixed Active Guild skills not working when WoE is OFF, follow up on r12770, bugreport:1653 and bugreport:1637 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12800 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-09Fixed Fire Pillar (and any future splash damage magical trap) not working on ↵shadow1-1/+2
Land Protector. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12798 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-09Fixed reject sword having a infinite duration, bugreport:695 (both stable ↵shadow1-1/+1
and trunk) Fixed 13007,Jitte and 13008,Jitte_ break chances (5->2%). Fixed 1535,Hollgrehenn_Hammer break chances without combo (2->1%) and with combo (12->10%), also has no chance of breaking user equip. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12797 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-08Implemented the two-handed staff/rod type (thanks to Muad_Dib).ultramage1-0/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12793 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-08Fixed SA_DISPELL removing SC_CRITICALWOUND.shadow1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12781 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-07Swapped the weapon type IDs of Shotgun and Gatling Gun weapons to match aegis.ultramage1-0/+1
Added Mace Mastery bonus to 2handed maces, and made them unbreakable. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12779 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-07Usage of map_flag_gvg2() in Emergency Recall code (minor followup to r12770).ultramage1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12774 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-07Fixed GD_EMERGENCYCALL not working inside gvg castles when WoE is off, ↵shadow1-1/+1
bugreport:1637 fix by Meyraw git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12770 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-07Kaite should not work against high-level mobs - bug introduced in r11230 ↵ultramage1-18/+18
(bugreport:1623). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12767 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-07Fixed a few properties of NPC_CHANGEUNDEAD bugreport:79shadow1-0/+7
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12763 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-08- Added some new items and headgears.zephyrus1-1/+1
- Changed the way DEF Potion and MDEF potion works to official. - Cleanups to Barricade Engine. It now can be used in WoE 2.0, i will release optional scripts soon. - Fixes to @noks. Now if the mob is targeting someone else the protection get lost. - Added new status effects icons to cash items. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12693 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-07- Moved the SD_PREAMBLE code to skill_area_subskotlex1-21/+14
- Added SD_SPLASH to let skill_area_sub do the target counter. - Updated splash skills to use these defines. - The NPC_WIDE* skills now use SD_PREAMBLE to correctly display their animation. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12689 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-07- Added function battle_attr_ratio to handle just getting the attribute ↵skotlex1-12/+13
table data. Fixes Sense messing up with elemental based statuses. - Added Throw tomahawk to the list of items that do not trigger the equipment breaking code. - Moved a bit around the SC_ start of dancing skills to fix Moonlight petals pushing back the casters. - Modified status_damage to handle SC_KAZIEL. The return value of *_dead functions can pass 8 to specify that kaziel should not be triggered (ie: pvp/gvg) - Infinite Endure won't be passed on to devoted characters. - Infinite Endure is no longer saved on logout. - Added check to avoid gms opening vending shops if they don't have the required level. - Moved around the Steel Body S. Novice code, simplified it so it triggers before most of the penalties (death is cancelled). - Fixed the flee penalty not applying when you walk into a gvg map. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12688 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-01Replaced the integers+checking approach in r12679 with usage of floating ↵ultramage1-1/+1
point arithmetic. Applied search&replace to use the new name of the function. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12680 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-01Implemented get_percentage() for compact and safe calculation of percentual ↵ultramage1-1/+1
values. Fixed integer arithmetic overflows that were occuring in several supernovice checks (bugreport:1135). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12679 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-21* Changed the data field of timers from int to intptr.FlavioJS1-6/+6
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12633 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-15 * Corrected some invalid syntax in skill_db.txt (wrong usage of commas)ultramage1-126/+49
* Renamed BA_FROSTJOKE to BA_FROSTJOKER (aegis server-side name) * Implemented a generic framework for parsing delimited db files (allows specifying min/max column ranges and max number of rows to read) * Corrected a typo in quest_update_objective() * Cleaned up pc.c a bit git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12599 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-11- Added code to remove a trap when it dies.zephyrus1-10/+24
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12566 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-10- Fixed Max Guardians max = 8 (no need to increase this value for woe 2.0 as ↵zephyrus1-8/+28
non indexed guardians are set outside of the array). - Hunter traps have 3500 HP, they are not removed by just one hit. (This also fix the bug you can't move traps with arrow shower). - Some cleanups. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12549 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-10* Updated NPC skill "Evil Land". More gravity wtfage.L0ne_W0lf1-1/+1
- Based on visual observation, and experience with it on iRO Sakray. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12548 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-07Immunity to magic now makes you immune to the SC effect as well. ↵Kevin1-0/+3
(bugreport:1277) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12527 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-07Magnum Break will now affect traps. See (r12516).Kevin1-1/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12517 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-07-Sight rasher now affects the wizard's own and other's icewalls.Kevin1-3/+6
-Sight rasher, sight blaster, and arrow shower are now the only three skills that will affect traps. (bugreport:59) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12516 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-07Changed guild skills restore, regen, and battle order to only affect BL_PC. ↵Kevin1-3/+3
(bugreport:1313) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12513 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-06Unequip should no longer remove any buff from seven wind. (bugreport:1155)Kevin1-0/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12503 54d463be-8e91-2dee-dedb-b68131a5f0ec