summaryrefslogtreecommitdiff
path: root/src/map/skill.c
AgeCommit message (Collapse)AuthorFilesLines
2006-03-12nj/gs work by RockmanEXE and red_sunVicious1-10/+18
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5573 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-11more ninja/gs workVicious1-3/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5572 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-10- Fixed mob-casted demonstration/quagmire being affected by the ↵skotlex1-1/+2
gvg_traps_all config setting. - Moved the gvg_traps_target_all config from guild.conf to skill.conf git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5568 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-10- Cleaned up the Skillbreaker implementation, HP gaining happens at level 5 now.skotlex1-64/+38
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5567 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-10- Added a few dummy times in skill_cast_db for some GS skills.skotlex1-6/+7
- Autoskills now won't trigger on maps where said skill are not allowed. - Some compilation warning fixes git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5565 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-10some ninja/gs workVicious1-1/+9
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5561 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-10- Fixed a memory overwrite crash on pc_readdb, thanks to foobar.skotlex1-9/+12
- Fixed only the first TK stance triggering when you have multiple of them active. - Default of skill_attack_enable changed to yes. - Fixed a compiler error in some ninja skill that only triggers on windows or c++ compilers. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5557 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-09only the first 22 CSVs were read in, but MAX_WEAPON_TYPE+5 was 27 -> ↵blackhole891-1/+5
uninitialized array indices got atoi'd git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5539 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-09- Made Magic Crasher a BF_WEAPON attack.skotlex1-25/+17
- Made skill_unit_range a per-level setting. meteor and Lov now have their unit range adjusted in the skill_unit_db rather than hardcoded. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5536 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-09more ninja/gs updateVicious1-10/+32
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5535 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-09partial SC work. it doesn't break, but it doesn't work either.Vicious1-15/+11
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5529 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-09more skill fix.Vicious1-16/+56
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5524 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-08nj/gs skill updateVicious1-60/+50
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5516 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-08some skill check conditionVicious1-3/+79
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5514 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-08fixed compile issue. fixed ninja issues.Vicious1-4/+0
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5510 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-08some NJ/GS fix.Vicious1-1/+106
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5509 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-07- Added a check that forces self skills to cast on yourself in skill_use_idskotlex1-46/+16
- Skills with INF_SELF_SKILL + INF2_NO_TARGET_SELF are now "combo" skills in the sense they auto-select your attack target, and do not stop your attacking animation. Attackable time by default is adjusted by amotion. - Gospel won't start taking effect until after 10 secs have passed. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5501 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-07more ground work for ninja/GSVicious1-8/+53
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5500 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-07- skill_blown flag&0x40000 now knocks back in a random direction.skotlex1-1/+9
- Some small cleanups to prevent skill_blown execution when the distance is 0 or the target couldn't be knocked back. - WZ_STORMGUST now knocks back on a random direction. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5484 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-07- Some code-speedups on reading the skill-requirements in skill_check_condition.skotlex1-11/+20
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5482 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-07- Some corrections due to the guild skill position change.skotlex1-26/+31
- Removed file todo-for-stable as it's impossible to keep it updated :X git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5479 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-06- Fixed a debug message showing up on skill castend nodamage id when using a ↵skotlex1-2/+2
guild skill - Fixed #save not working on maps not in the current map server. - Added battle config clear_skills_on_death to decide whether all ground-based skills should be removed when you die. Defaults to yes. - Changed Magic Crasher's element to -1 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5472 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-05- Fixed remove trap by updating the definition of INF_GROUND_SKILL (it ↵skotlex1-2/+2
shouldn't include target-targetting skills!) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5468 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-05- Fixed animation of Redemptioskotlex1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5466 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-05- Fixed a pair of missing map_freeblock_unlockskotlex1-20/+35
- Changed around a bit the code of the skill_get defines to return 0 if you ask for an id of the place where the guild skills are placed. Also moved the guild skills block to ID 900~915. Also stuff like skill_get_inf will return the relevant guild data as defined on skill_db.txt git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5465 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-04- Fixed missing baby-dancer job in exp2.txtskotlex1-27/+25
- Added function battle_set_walkdelay in charge of updating walkdelays of characters based on two criterias: when the delay is induced by damage, if the current walk delay isn't over yet, do not update it. If the delay is instead caused by a skill, then the current walk delay cannot be decreased, only increased. - Removed the canmove tick reset on skill cast cancel; likewise it isn't updated on begin casting. pc_can_move uses a skilltimer check to know whether you can move or not. - Added GrandCross's can't move delay of 900ms to skill_cast_db - Added Finger Offensive's can't move delay of 200ms/lv to skill_cast_db git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5457 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-04- The rate passed to status_change_start must now be in 0->10000 range.skotlex1-385/+278
- Added macros sc_start and sc_start4 to simplify invocation of status_change_start. - Cleaned the active guild skills, requirements moved to skill_check_require, should now be usable by non-players as well (pets/mobs). - Updated skill_cast_db time info. Magnum's time2 is skill-block time, St. Recovery/ Cure's time2 is the confuse/blind duration, added NPC_POWERUP/NPC_AGIUP durations, Napalm Vulcan's time2 is curse length, and most of Tarot Card's effects last time2 as well. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5454 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-03- Fixed compilation error on windowsskotlex1-1/+1
- Strip sc's are now removed on logout. - Some cleanups git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5451 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-03- Added a column in skill_cast_db for specifying can't walk delays.skotlex1-26/+25
- Removed the apply walk-delay entry from skill_cast_nodex - Fixed autoloot dropping the item to the ground even when it was autolooted. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5450 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-03- Added event 8 for mobspawns that should spawn with special ai set.skotlex1-1/+1
- Modified battle_check_target so that mobs with special ai's default enemy are mobs with no special ai. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5448 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-03- Trick dead now ends on logoutskotlex1-2/+2
- Added mapflag nocommand which blocks @/# commands unless your gm level is above gm_skill_unconditional's level. - Fixed weapon scripts not being executed unless the weapon was forged. - gm_skill_unconditional is now a no/gm-level setting instead of yes/no git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5446 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-03- Added the skill-related variables to pet_data, removed the pet skill delay ↵skotlex1-11/+1
structure. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5440 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-02- status_check_skilluse cleanup. Some status will only block skills when ↵skotlex1-10/+9
they are first used, not on cast-end (which includes auto-spells and ground-skill checks). Added flag 2 to signal splash/aoe effects (skill already casted, but target just affected) - Gravitation now only affects the caster, should have also fixed the skill not doing damage when skill_caster_check is set. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5437 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-02- Some cleanup on mob_can_reach code to prevent unnecessary path-searchingskotlex1-1/+0
- Optimized the path-searching ai for mobs to try target cells around the target in order rather than randomly picked cells. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5434 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-02- Gospel no longer blocks item usage of whoever is in the area of effect.skotlex1-20/+29
- Added the long/near attack_def_rate card effects to battle_calc_magic - Cleaned up a bit the slim pitcher code. - Elemental fields should vanish on map-change now. - Land Protector only blocks magical skills. - Adjusted the duration of blind/bleeding of Meteor Assault git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5426 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-01- Silence will only block skills when they have begun casting, not when the ↵skotlex1-5/+12
cast bar is done. - opt1 status will block skills when they are done casting only if the sc_castcancel option is set. - strcharinfo now returns blank instead of crashing the map server when there's no player attached. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5417 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-01- Turn Undead and Offensive Resurrection should now work on undead players.skotlex1-34/+25
- Fixed the range checking of Repair weapon - Rude attacked is now also triggered when you hit a target that can't move out of their melee attack range. - Mob ai will attempt to do a long-range attacked condition skill before unlocking a target when it is attacked and said target is out of melee range of a non-walking mob. - Corrected mobskill event to set the target_id before triggering. - Moved MSC_SKILLUSED trigger to mobskill_event which is triggered in battle_calc_damage. It is also triggered on skill_castend_nodamage_id - Added party_share_loot for handling party-share loot. it should now work with autoloot as well. - Fixed skill_break_rate breaking stuff even if the rate is 0. - pc_stopwalking will not send a fixpos packet if you are sitting. - mob_can_reach rude-attacked condition now uses the mob's field of view. - SC_NOCHAT is automatically started on pc_authok if manner is negative. - Map server now refuses to start if you try to define a label with the same name as some const.txt defined character parameter. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5414 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-24- Fixed the CL_WHITE define, thanks to FlavioJSskotlex1-4/+4
- NPC break equipment stuff now has a 1.5% per skilllv success rate. - pc_setpos won't random warp players if placed on top of Moonlight Petals - Removed the check in clif.c for npc_shopid as the client never sends a packet when the trade is cancelled... git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5384 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-24- Player-summoned mobs won't level up now.skotlex1-30/+11
- Fixed Super Novice explosion spirits triggering no matter what you said on the third line. It now triggers on the fourth line.... - Fixed GTB blocking targetted spells when gtb_pvp_only was set. - Merged the code of Ankle snare and Spider web. It no longer moves target if sc failed. - Players should stop walking as soon as they start vending or get into a chat. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5382 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-23- Modified the way autospells stack to mimic official servers. Cards of the ↵skotlex1-0/+3
same ID cannot stack, but different cards with the same skill can each trigger indepedently of each other. - Added battle_config autospell_stacking to enable stacking of cards of same ID. - Moved card-specific battle options to items.conf - Autospells triggered when hit will check the range to the target. - Some cleaning up of status_calc_pc - In status_change_start capped the passed success chance to 100% git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5377 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-22- Removed pc_break_equip, added function skill_break_equip which handles ↵skotlex1-30/+98
rates, defenses and all that. On non-players it causes the strip effect for the corresponding skill lv1. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5374 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-22- Added map chk cells types CELL_CHKREACH and CELL_CHKNOREACH, they are the ↵skotlex1-1/+1
same as their PASS/NOPASS equivalents, but will ignore the cell-stacking mod when enabled. - Updated path.c with jA's implementation, which should make long path searching more efficient. - Also added some typedefs from jA for the common structure types (PC/MOB/NPC, etc) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5366 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-21- Fixed all skills getting range 0.... (except close confine which got range ↵skotlex1-1/+1
1 :X) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5362 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-21- Some cleanup in skill.c, moved the icewall flag check to skill_notok.skotlex1-24/+9
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5360 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-21- Some fine-tuning of the warp portal code which prevents it from messing up ↵skotlex1-11/+20
other skills if you "precast" it. - Fixed the weapon refine code using sd->skillid instead of sd->menuskill_id - Fixed some npc_event error reports (three error where displaying at the exact same msg, making it impossible to tell which one of the three actually happened) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5356 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-21- Oh yeah, made Super Novice explosion spirits trigger when the last phrase ↵skotlex1-1/+1
is said, no need for extra junk. - Now the default delay of amotion is applied only for BF_WEAPON, non NK_NO_DAMAGE skills. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5352 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-20- Added back the char-sql server sending the GM list when the map server ↵skotlex1-0/+2
connects. - Fixed a bug in the add_timer_interval error reporting. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5351 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-20- Close confine won't get the bonus range on cast as other skills do due to ↵skotlex1-1/+2
exploits. - Fixed a bug in setnpctimer checking out the wrong variable. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5347 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-20- Added sd variables menuskill_id/menuskill_lv to store menu-based ↵skotlex1-26/+28
selections. These are used now to check the validity of skill use instead of sd->skillid/sd->skilllv - Affected skills/packets: AC_MAKINGARROW/ AL_WARP/ AL_TELEPORT/ AM_PHARMACY (all refine functions)/ MC_IDENTIFY/ BS_REPAIRWEAPON/ SA_TAMINGMONSTER/ SA_AUTOSPELL/ WS_WEAPONREFINE/ SG_FEEL - Removed feel_lv and repair_target variables as now they are handled by the previous two new variables. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5345 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-20- Fixed Taekwon stances not triggering.skotlex1-11/+14
- Added atcommand @exp - Added error reporting when add_timer_interval receives a negative/0 interval value. - Fixed a possible infinite recursion bug with splash self skills. - Modified the way firewall_hits_on_undead works, to loop and invoke multiple skill_attacks based on the value. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5338 54d463be-8e91-2dee-dedb-b68131a5f0ec