summaryrefslogtreecommitdiff
path: root/src/map/skill.c
AgeCommit message (Collapse)AuthorFilesLines
2009-02-23* Made mob_timer_delete check the deletetimer in the mob.FlavioJS1-0/+6
* Added missing delete_timer's every time deletetimer is being set. (except when allocating) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13544 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-02Fixing r13503...ultramage1-1/+3
- Added missing id_db removal calls for all flooritem objects (bugreport:2729) - Added missing destruction of skillunit_db on mapserver exit git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13505 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-31Added skillunit_db for efficient execution of skill_unit_timer() (followup ↵ultramage1-11/+11
to r13503). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13504 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-31objects[] array removal (bugreport:2559)ultramage1-5/+12
- Removed the 2 MB wide static array in favor of a general-purpose DBMap (id_db for now). - Inlined functions map_addobject, map_delobject and map_delobjectnofree into their callers' code. - Replaced the free id lookup algorithm from ancient jathena with something more efficient. - Moved the algorithm to map_get_new_object_id() (similar idea as r13481). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13503 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-25- Implemented monster skill "Full Heal" NPC_ALLHEAL.zephyrus1-0/+14
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13493 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-25- Implemented new item bonus scripts required for battlegrounds.zephyrus1-46/+77
- Battlegrounds items rewards for Tierra Valley and Flavius done (but autoscript rate is suggested - 5%). - Restricted trade/storage/drop for those items. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13490 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-24* Changed all uses of struct skill_unit_group* to group_id in ↵FlavioJS1-10/+41
status_change_entry's. (last known 64bit portability issue) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13482 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-20- Added support for item effect Ignore Def Rate by Race. bonus2 ↵zephyrus1-10/+13
bIgnoreDefRate,<race>,<%>; - Added support for item status effects on skills. bonus3 bAddEff,<sc_effect>,<rate>,ATF_SKILL; - Update to battleground equipment. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13457 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-12-20some minor generic cleanupsultramage1-16/+11
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13406 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-12-01* Fixed rare crash when using Flying Kick on clones (bugreport:2506)ultramage1-26/+9
* Corrected Flying Kick's debuff rules to match official servers - only works on players - soul linkers and stalkers with Preserve active are immune - only removes Berserk Potion, Kaahi, Kaite, 1HQ, AAR and Soul Links git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13392 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-22* Hunted down improper uses of va_list variables.FlavioJS1-4/+0
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13383 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-18Autotrade characters will no longer get caught by Urgent Recall. ↵L0ne_W0lf1-1/+1
(bugreport:2447) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13375 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-10-12Fixed multiple casts of NPC_REBIRTH interfering with activation of mob death ↵ultramage1-0/+2
events. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13287 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-10-11Added safeguards to Redemptio's exp penalty code to prevent arithmetic ↵ultramage1-4/+4
overflow in case its requirement checks are somehow bypassed (see topic:152196). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13277 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-10-10Slightly corrected the NPC_REBIRTH code from r13272.ultramage1-2/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13274 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-10-09Updated NPC_REBIRTH. Has it's own values, and no longer leeches off SL_KAIZEL.L0ne_W0lf1-2/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13272 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-27Fixed a ShowWarning call in skill_db.txt reading code using random data from ↵ultramage1-1/+1
the stack (bugreport:2282). Blame goes to r5465 and all of the followups that moved, copypasted and even rewrote the message without noticing this mistake. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13239 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-21Corrected Lex Divina not showing animation on fail. (bugreport:1740)L0ne_W0lf1-5/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13226 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-18- Some corrections to Basilica.zephyrus1-8/+11
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13217 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-10- Full implementation of mercenary skills.zephyrus1-102/+250
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13203 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-09Enabled WoE SE to be run independently of WoE. Let's see how long it is ↵L0ne_W0lf1-2/+2
before something blows up, or Ultramage pulls out his hair while cursing my existence. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13202 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-07- Fixing some linux warnings (uninitialized variable).zephyrus1-23/+30
- Other cleanups. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13196 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-03- Starting Mercenary Skill implementation.zephyrus1-90/+104
- MS_BASH Completed. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13189 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-02- Implementing a correct update of mercenary status window on status change ↵zephyrus1-2/+2
updates. - Fixed Mercenary Heal is reduced 50%. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13185 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-01- More code for mercenaries and starting work on restrictions.zephyrus1-12/+18
* Heal and Sanctuary skills have their effectiveness on mercenaries reduced by 50%. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13183 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-25* Fixed: several compiler warnings [akrus]akrus1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13129 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-24- Fixed skill problems (who did this? Mercenary skills values are big than ↵zephyrus1-6/+6
homunculus). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13124 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-24- Moving all content of Homunculus code to a proper file Homunculus.c/hzephyrus1-1/+1
- Update of all project files. NOTE: All functions on homunculus.c should be renamed i think, to remove all the merc_*. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13122 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-21- Big update to Basilica, implementing official behavior.zephyrus1-17/+43
* Basilica caster cannot walk. * On Basilica area, only caster can use Basilica again to stop it. * On Basilica no one can use skills. (Previous bug on eA because you can use support skills on it, also caster). * Only Pressure can bypass Basilica protection. * Any enemy of the caster bounce 2 cells back from basilica, except Boss type. (Bugreport 2099). * Any monster can target you on basilica and try to attack you, also with skills, but damage is reduced to 0, except Boss. Notes: - Basilica Cell stuff is not used anymore... is it required? - Still need to add a check previous to cast basilica because if there are mobs, items, npcs, walls, skills around the caster (7x7 i think) the skill should fail. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13106 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-21- Fixed a bug. Warp portal cannot be casted on dead players.zephyrus1-4/+5
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13104 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-20- More cleanup of Barricades (final i think)zephyrus1-1/+1
- Fixed a bug, missing sizeof(add_steal_rate). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13100 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-20* Implemented Brainstorm's and SketchyPhoenix's fixes for Flying side kick.L0ne_W0lf1-1/+11
- Skill will now remove KA-type statuses and not remove stalker's link while preserved. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13098 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-20- Fixes on schg_cas02 and arug_cas01.txtzephyrus1-17/+26
- Official Meteor Storm. Meteors can fail and just not fall, and only fall where you can get a shootable path. * Tested on Aegis with help of ultramage. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13096 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-17** Please update your server ASAP. **zephyrus1-8/+10
- Fixed a wrong auth process, setting account offline in Login server when accessing Char server. (OMG!) - Fixed a bug on TK_JUMPKICK. It should only do damage if can reach target. - Fixed bug on Arug_cas01 script. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13087 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-10Some skill corrections based on bugreport:1945ultramage1-2/+1
- enabled WZ_FIREWALL and NJ_KAENSIN effect stacking (for more damage) - blocked stacking of Warp Portal and Flip Tatami land skills - reverted r12798's land-protector code change (incorrect and also doesn't have any effect) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13064 54d463be-8e91-2dee-dedb-b68131a5f0ec
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