summaryrefslogtreecommitdiff
path: root/src/map/skill.c
AgeCommit message (Collapse)AuthorFilesLines
2006-05-05- Being in Enjoyable Rest state will now also trigger the HP/SP Time skills ↵skotlex1-1/+1
(even if there's no other TK around). - Renamed SC_TKDORI to SC_TKREST (makes more sense if you ask me) - Added battle config settings view_range_rate and chase_range_rate to adjust the view-range and chase-range (range2/range3) of the mob_db without having to manually change them. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6490 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-05- Kaupe now will only block all skills of players, for non-players, only ↵skotlex1-43/+39
normal attacks can be missed. - Moved the Kaite spell-reflect code after the damage calculation function, so the reflected damage is exactly the damage the original target would have received. Will only trigger if the damage to be reflected is above 0. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6489 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-05- Fixed a possible infinite loop in skill_clear_unit_groupskotlex1-2/+0
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6483 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-04- Some clean-ups in the mob_aiskotlex1-6/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6478 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-04- Cleaned up and used mob_skill_event function when hit by a ground-skill.skotlex1-12/+2
- Added one grace range in the mob_loot search function which should fix mob_can_reach failing when invoked with the same distance that distance_bl returned. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6475 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-04- Stun time for using ES magic on non-mobs reduced to 0.5 secs.skotlex1-12/+10
- Eska is now usable on bosses. - Swoo will stun you if attempted on an already 'swooned' enemy. - clif_skill_failed will print out a debug line with the skill_id (since the current null_po does not helps at all to fix it) - Applied TheUltraMage's suggested fixes to the grfio module. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6467 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-04- Rewrote Kaahi to behave as it should. It will hear whatever amount of ↵skotlex1-8/+6
damage accumulates in the time2 interval (500ms by default) after being hit. - Changed skill_unit_move_unit_group to enable moving of all types of ground-skills except ensembles. - Modified NPC_STUNATTACK: Max level is 5, stun duration is 1+lv seconds. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6466 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-03- Kaahi now triggers every 500ms rather than on every hit (but it only heals ↵skotlex1-13/+2
if in those 500ms an attack that would previously trigger Kaahi has taken effect). In other words, it works just like before, except damage gets "buffered" into 500ms slots. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6463 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-03- Kaite, Kaute will now show a skill effect when they trigger.skotlex1-0/+1
- Fusion's cast time reduced to 0. - Knowledge will now only trigger if you logon to the memorized map, not walk into it. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6462 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-03- Fixed standing up not really standing you up.skotlex1-23/+32
- Moved battle_consume_ammo to the end of skill_castend_damage_id, skill_castend_nodamage_id and skill_castend_pos2 rather than battle_calc_weapon_attack. They will trigger when the player's arrow_atk state is active and a ground skill was not invoked. It should fix all issues with splash/ground skills consuming ammo per target rather than once per skill use. - Added structure state to the ground skills, their fields are magic_power, into_abyss and ammo_consume to indicate the states that were previously stored in val3. - Corrected Desperado ammo consumption (should be 10) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6455 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-03- Implemented desperado as explained by Rockman-EXE.skotlex1-4/+7
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6454 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-02- Removed the unit_can_move checks in skill cast-end, they should be ↵skotlex1-12/+4
performed in skill_check_require when the skill's state is move_enabled. - Changed extremity fist's state to move_enabled, the explosion spirits check is now hardcoded. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6452 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-02- Absorb Spirit Sphere now gives +10SP per sphere as per discussions with Haplo.skotlex1-1/+1
- Changed a <= into a < in pc_steal_item. This means drops with 0.01% are impossible to steal unless you have at least 100% steal-rate (where steal rate is dex - opponent dex + skill_lv*3% + 10%) - Cleaned up clif_parse_action_request to enable sitting/standing while in shops, interacting with npcs, etc. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6451 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-02- Kaite now works against all types of spells.skotlex1-4/+5
- Kaupe now works against all skills. - Sanctuary now won't damage non-enemies. - Blessing now will always give you bonus stats even if you are wearing undead armor. - Linking skills now have their cast-time reduced by dex. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6447 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-02- Modified how Rogue's treasure works so that you get +1% to your steal rate ↵skotlex1-14/+39
rather than +0.01% to the final rate. - Rewrote Warmth to use ground-skill-units, it should behave now like in officials (implementation is not quite the same, but it should yield the same effects while consuming less bandwidth). "Stacking", as it's called, is possible now, but limited to eA's minimum timer skill interval (100ms). - Modified NPC_POWERUP so that it gives +10 dex * skill level rather than +5+lv to all stats (as explained by Playtester and Tharis on how the skill behaves). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6446 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-02- Fixed Jump Kick's range to 9.skotlex1-5/+1
- Allowed SG_FEEL memorizing the same map for all three. - SC_FUSION won't end when you die now. - Added knockback when you run into a wall during running. However position is not being refreshed on the client yet... git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6443 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-02- Removed OPTION_XMAS, it seems to not exist....skotlex1-5/+5
- Added SC_SMA to handle "ready to use SMA" status (rather than SC_COMBO) since it has a visual effect to use. - Corrected the value of OPTION_FLYING - Using SG_FUSION ends Soul Linked effect. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6438 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-01- Added function map_foreachinshootrange, behaves the same way as ↵skotlex1-2/+6
map_foreachinrange, but it also performs a "shoot-path" check before invoking the function. Used in the skill subtimer function if skill_wall_check is defined. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6436 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-01- Added -DMAPREGSQL to Makefile, commented out by default for now.skotlex1-13/+23
- Fixed AL_WARP displaying "Unknown Area" selections when you don't have all memo points used up. - Fixed alive_count not being reset on skill unitsetting, which leads to some groups not being cleared once all their units expire. - Optimized Kahii, will now only show the amount of HP healed. Moved to skill_counter additional effect so it may trigger even on miss. - SKA no longer blocks skills. - Modified the AM_TWILIGHT* skills to require 200 medicine bowls. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6435 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-01- Skills with the move_enable state won't get the walkdelay increased on a ↵skotlex1-1/+3
skill-cast. - Changed TK_RUN's state from none to move_enable. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6425 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-01- Fixed a small typo/logic-error in pet_ai_sub_hardskotlex1-1/+0
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6424 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-30- If someone is expulsed from a guild while the guild storage is open, it ↵skotlex1-0/+6
will be auto-closed now. - Modified battle_consume_ammo to prevent consuming multiple arrows on AC_SHOWER. - Readded script command skillpointcount. (who removed it? <.<) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6406 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-30- Merged the code of NJ_SHADOWJUMP with TK_JUMPKICK.skotlex1-17/+5
- Moved the hiding requirement to the skill_require_db.txt as it should be. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6403 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-30Implemented NJ_SHADOWJUMP. Tell me if I forgot anything (especially DB entries).blackhole891-2/+15
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6397 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-30- Removed attack_type from sd->state structure (it's only use was for ↵skotlex1-0/+15
soul-drain!) - Moved the soul-drain code to skill_counter_additionaleffect git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6392 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29- Changed the HT_DETECTING method from invoking clif_changetraplook to ↵skotlex1-1/+3
clif_skill_setunit since in the first the client ignores the fact that it is now a trap (rendering skills like Remove Trap useless). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6386 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29- pc_resetskill flag can now be &2, it only returns the total amount of ↵skotlex1-1/+2
skill points spent, it doesn't does a reset. - added script command skillpointcount. Returns total amount of skill points a char has (the value returned is the same that SkillPoint would have after invoking a skill reset) - Modified Defender. Speed reduction is 35-5*lv%, damage reduction on devoted chars is 5+5*lv%. These values are custom, but should be closer to "reality" than what we have. - When you have the wrong ammo type equipped, the equip arrows first message will be sent, as suggested by Haplo git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6384 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29- Changed checks of item's identify field from 0/1 to 0/non-zeroskotlex1-2/+13
- Corrected TK_JUMPKICK to place the caster on the tile next to the target rather than on top of it. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6382 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29Updated STEAL skill (WIP), added a battle config option: ↵Lupus1-1/+1
'skill_steal_max_tries' to set max number of stealing tries. It could help to fix stealing exploit on mobs with few drops git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6367 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6357 ↵Lance1-1/+1
54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29* Using malloc for memory allocations that doesn't need to be pre-initialized.Lance1-3/+4
* Eliminated initializations for pointers returned by calloc. * Moved grfio_final to do_init since it's not used after server boot. * Optimized scripts to return CONSTSTR instead of allocating memory just to return a constant string. Some buildin functions still need work. * Disabled graph since it doesn't work yet. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6355 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28- Modified HP conversion so that it fails when you don't have enough Hp. ↵skotlex1-29/+68
Also updated it to enable casting on "someone else" (effect: target loses Hp and gains Sp based on the max HP of the caster, will someone ever use this? who knows, but it's nice to have :P) - Cleaned up Strip skills so that the skill animation will only show when something was stripped. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6349 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28- Storm Kick's range increased to 2.skotlex1-11/+10
- Mobinfo's drop list will use jName rather than Name for drop names. - Some cleaning of the ASC_BREAKER code in skill_attack - Modified skill_attack so that all skills with amotion get their damage delayed (should fix mob walk-teleport issues) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6346 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28- Removed the sending of the online guild list when you log-on, may fix the ↵skotlex1-5/+6
"getting stuck" problem. - Added battle config default_skill_delay. Specifies the default skill delay for most skills, it is also applied as a walkdelay (total skill walkdelay is default_skill_delay + that skill's can't walk delay) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6344 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28- skill_castend_id and skill_castend_pos will trigger unit_stop_walking with ↵skotlex1-2/+2
flag 1 (fix pos) rather than none. Should fix some skills making you appear moving while doing them. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6336 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28- Modified clif_skill_nodamage to allow for a NULL source. This is to ↵skotlex1-34/+10
simplify code related to AL_HEAL/MG_RECOVERY effects where someone shows a healing value, but there's no "caster" in sight (Pitcher skills, Blood Drain, Kaahi) - Updated Kaahi to use clif_skill_nodamage to display amount healed. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6335 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27- Changed in the behaviour of wedding skills, should invoke ↵skotlex1-15/+15
skill_castend_pos when skill_castend_id triggers, should enable all the config settings for land skills to apply to the wedding skills. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6321 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-26- Updated item_db.sql to current.skotlex1-16/+3
- Some small code-cleanups. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6298 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-26- Modified mob_drop_adjust function to receive unsigned int as initial ↵skotlex1-1/+1
parameter, should give a bit more room before data overflows. - Increased range check for Extremity to 2. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6297 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-26- Item use interval is set to a default of 100ms now.skotlex1-28/+6
- Updated Full Buster so that the can't act delay carries on to the weapon attack delay and can't use item intervals. - Added script command getbattleflag to retrieve the current value of a battle_config switch. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6296 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-26- Changed the skill_wall_check to use shoot-path seeking. May fix ↵skotlex1-2/+1
skill_wall_check setting. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6291 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-26* Fixed typo in skill.c: skill_clear_groupLance1-1/+1
* Fixed command descriptions in script_commands.txt * Cosmetic changes to script.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6289 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-25- Renamed skill_clear_element_field to skill_clear_group, it accepts a flag ↵skotlex1-8/+20
to determine what to erase. &1 for elemental fields, &2 for traps. Also rewrote how it works to prevent missing elements (since each time an element is erased, the array contents shift) - Added battle config traps_setting to determine how traps should behave. With &1 traps are invisible if you didn't see them get set up. With &2 traps will be removed after changing maps. The default is 2. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6285 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-25- When battle_damage's flag is &2, the flag 3 is passed to mob_damage so ↵skotlex1-1/+1
that it won't give exp nor items. NPC_SUICIDE was updated to reflect this. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6282 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-25- Moved the mapflag skill restrictions from skill_checkcondition to ↵skotlex1-33/+32
skillnotok, this makes auto-spells not work in maps where they aren't allowed. - Added TK_HIGHJUMP to skillnotok, the skill is blocked in noteleport maps (with the exception of gvg ones) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6281 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-25- Modified and simplified the random item group format. It now is ↵skotlex1-3/+11
<GroupID>,<ItemID>,<Rate>, where Rate normally is 1, greater numbers is the equivalent of adding the line multiple times. - Added constants to identify all groups to db/const.txt - Cleaned up and updated item_db to use these new constants (warning: item_db.sql needs to be updated!) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6275 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-24- Added script command escape_sql. It will return an escaped string for use ↵skotlex1-1/+3
in the sql_query script command (in case you want to use input of players in your queries). - Removed the skill packet from TK_RUN as the client ignores the walkok packet sent right after it. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6262 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-24- Fixed skill_delayfix not altering delay at all after you reached 150.skotlex1-0/+2
- Applied ers to pet loot drops. - Cleaned up the pet loot drop function. - Mob skill state MSS_ANY won't include MSS_DEAD now. - Added mob skill state MSS_ANYTARGET ("anytarget") which means any state (except dead) on which the mob has a target set. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6250 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-21- SC_CLOAKING's val4 now holds whether cloaking ends or not on attack.skotlex1-1/+6
- Implemented NPC_INVISIBLE, it starts SC_CLOAKING with val4 set to 1, skill duration is 30 secs. - Moved uncloaking on attack from attack_timer_sub to battle_calc_weapon_attack. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6223 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-21- Updated the HP/SP leech structures to have race-data attached to them.skotlex1-33/+12
- Merged all leeching code to battle_drain function. - Added an enum for races (they match the RC entries in const.txt, except they are in all caps) - Cleaned up atk_mods and aspd_base to be MAX_WEAPON_TYPE sized rather than MAX_WEAPON_TYPE+1 - Simplified a bit the code for Signum Crucis - Added script bonuses: bonus3 bHPDrainRateRace,<Race>,<Activation Rate>,<Drain %> bonus3 bSPDrainRateRace,<Race>,<Activation Rate>,<Drain %> bonus2 bHPDrainValueRace,<Race>,<Value> bonus2 bSPDrainValueRace,<Race>,<Value> git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6221 54d463be-8e91-2dee-dedb-b68131a5f0ec