summaryrefslogtreecommitdiff
path: root/src/map/skill.c
AgeCommit message (Collapse)AuthorFilesLines
2006-07-17Orn's and Albator's Homunculus system, finally, YAY!!DracoRPG1-3/+379
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7706 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-14- Tuned up some more NJ_KAENSIN based on Tharis's information.skotlex1-3/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7665 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-13- Corrected NJ_KAENSIN as per description.skotlex1-7/+5
- Fixed a leaking map_freeblocklock on skill_del_unitgroup. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7659 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-12- Recoded NJ_BAKUENRYU to behave as I understand it best from the ↵skotlex1-15/+10
skill-description (since Haplo told me this skill doesn't really has video information or anything...) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7644 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-12- Fixed NJ_TATAMIGAESHI to use ground-tiles rather than "for each in path" ↵skotlex1-27/+42
calls. The skill should be working correctly now, except for the fact that the correct "unit id" is missing (this is what would give the ground tile it's correct display). Temporarily it is using 0xba until the correct value is found. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7641 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-12- Added back the undead check to turn undead/resurrection to prevent ↵skotlex1-3/+4
damaging non-undead targets, removed it from the battle damage section. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7639 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-12- Poem of bragi/magic String's base delay reduction at level 10 (or above) ↵skotlex1-1/+2
is now 50% instead of 3*lv%. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7636 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-11- Made @monsterignore be an universal ignore. Means you cannot be targetted ↵skotlex1-1/+1
as an enemy by anything. Also added alias "@battleignore" which does the same as monsterignore. - Fixed magic power setting your min matk as max-matk. - Modified the packets involved in @fakename in hopes it'll refresh correctly on nearby clients now. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7620 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-11- Coded @reset.skotlex1-4/+5
- Reenabled @changesex - Added function pet_create_egg which handles creating pet eggs correctly (when passed item id is indeed a valid petegg). Applied this on @createitem and getitem. - Cleaned up code of @item - Added define UNKNOWN_ITEM_ID (512 = apple) - Added IT_* enumation item_Types to identify said data from items. - Cleaned up the itemdb_isequip functions. itemdb_isequip will now return if the item is equipable by players, itemdb_isstackable returns if the item can be stacked, and itemdb_isidentified returns if the item should drop identified. - Added defines CARD0_PET/CARD0_FORGE/CARD0_CREATED to identify if a given item has "invalid" cards, added define function itemdb_isspecial to simplify this check. - Removed itemdb.c considering item ids above 20000 as invalid. - Cleaned up script commands getitem and card-counting related ones. - Cleaned up a bit more pc_isequip git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7613 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-11- Corrected Frost Nova's splash range and Land Protector's cast range. ↵skotlex1-11/+11
Thanks to Haplo. - Fixed Beast Strafing not having inf2 = 512 (to make it a target-auto-select skill) - Fixed the duration of Land Protector, removed unusued time2 value from their entries in skill_cast_db. Thanks to Haplo. - Corrected Warp Portal being unable to warp people who are standing on it on the moment it triggers. - Fixed @follow stopping the moment you are warped. - Fixed pc_additem messing with the equip field of the passed item data. Fixes the famous "equip stuff on your arrow slot" bug. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7607 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-10- Fixed a crash when using Gospel... gomen.skotlex1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7603 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-10- The on-place function won't be invoked on setting ground skills if the ↵skotlex1-1/+5
group's tick is greater than the current tick. As Buuyo pointed out, this should fix Sanctuary and Gospel taking effect inmediately instead of after "x" amount of ms as they should. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7601 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-10- Corrected skill require entry from the Twilight Pharmacy skills.skotlex1-29/+23
- Removed the Frost Nova entry from skill_unit_db - Moved Gospel's code to skill_castend_pos2 - Some cleaning of skill_castend_pos2 - Fixed a unnecessary map_freeblock_unlock call in the default case of skill_castend_pos2 - Sense/Estimation will now display the mob info window to all party members in the same map. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7595 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-09- Fixed cooking chance of sets being 1.2% per set instead of 12%skotlex1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7593 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-08- Fixed the new addeff structure not working well with SC_STONE (because ↵skotlex1-2/+2
SC_STONE is 0, which was by default not handled as a valid value). - Added back the TF_MISS walking speed bonus to assassin type classes (how did that got lost?) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7583 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-08- Fixed the char table having party/guild_id as smallint when they need int ↵skotlex1-3/+3
there. Thanks to hermematon for pointing it out (use svn_ugprade7580.sql) - Applied k3dt fixes to pet-hatching, ice-wall check, and wedding skills. - Fixed endow skills calling the skill no damage packet twice. - Fixed a crash on warpwaitingpc when the chat-room is empty. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7580 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-07- Fixed the Warm Skillsskotlex1-27/+28
- Removed the debug message when a player logs out and is removed from memory, it is working fine. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7578 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-07- Some cleaning of the Sage endow skills.skotlex1-3/+4
- Added a check to free a character from memory when changing map servers. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7571 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-07- Fixed signed/unsigned comparison issues in the char txt/sql server.skotlex1-2/+2
- Fixed the cooking success chances. Thanks to Ishizu Chan. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7560 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-06- Modified the party_data structure on the map server to remove some ↵skotlex1-1/+1
redundant data. Added a party_data structure on the char-server to hold a more complete set of information about parties. Added to the party_member structure the class of each member so that the map server can do the appropiate checks even if the character is on another mapserver/offline. Due to the format changes in the party structure, txt servers will have to wipe their party file... (sql save format has not been changed) - Added function char_family to check if there's a family state given the three character ids, instead of doing individual checks all the time. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7553 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-06- Added no_skill_delay setting, when set, affected object types will have ↵skotlex1-2/+2
the minimum skill delay for all skills. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7551 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-06- Added EQP_/EQI_ constants in pc.h to identify equip position and equip ↵skotlex1-5/+5
indexes, makes equipping related code much easier to read. - Also cleaned up pc_equipitem. When dual wielding or equipping accessories, if the client actually specifies one of the two positions, it will be taken into account. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7550 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-06- Fixed the auto-direction code which makes self-skills with ground units ↵skotlex1-3/+1
become a ground spell using the wrong function for said check. In short: fixed GrandCross and similar skills. - FogWall will now also affect the caster. - Some cleanup of map.h. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7548 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-05Updated NJ_KAENJIN by Saycyber21Vicious1-264/+278
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7539 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-05- Merged some skill db data of NJ skills, thanks to RockmanEXEskotlex1-96/+73
- Cleaned up some of the skill logic, so that skills that are casted on self, but have a unit id (an entry in skill_unit_db) will automatically re-route themself from a targetted-no-damage-skill to a ground-skill. When this happens, the effect packet is clif_skill_nodamage rather than clif_skill_poseffect (this is because that's how the dance/songs/encores behave). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7538 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-05Fixed compile issue for NJ_BAKUENRYU, by Saycyber21.Vicious1-1/+6
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7531 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-05Saycyber21's NJ workVicious1-0/+17
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7529 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-04- Implemented cooking chances. Chance of success is 70% - 7*(dish-lv)% + ↵skotlex1-4/+16
12*(cooking set-lv)%. Exception: When using the legendary cooking set, success chance is 100% regardless of dish. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7518 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-04- Added battle config setting emergency_recall, specifies behaviour of that ↵skotlex1-0/+8
skill (skill.conf): 0 - Disabled. 1 - can't be used in nowarpto maps. 2 - Can be used everywhere. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7516 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-04- Removed the NPC/Dance/Song inf2 check of AbraCadabra. whether a skill can ↵skotlex1-1/+2
come out or not is entirely decided by the abra db file now. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7515 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-04- Added structure s_addeffect to handle status change additions. Cleaned up ↵skotlex1-20/+51
relevant code. It is now possible to specify ANY status change, not just the basic ones. - Added support for bonus3 bAddEff/bAddEffWhenHit as follows: bonus3 bAddEff/bAddEffWhenHit, <SC value>, <rate>, <target flag>. Target flag is 0: Self. 1: Enemy. 2: Both. - Added these descriptions to doc/item_bonus.txt git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7514 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-04- Cleared up the bAutoSpellWhenHit description in doc/item_bonus.txtskotlex1-1/+1
- Fixed Phantasmic Arrow and Magical Bullet not being correctly tagged as a ranged arrow-type attack. - Updated help.txt and help2.txt, thanks to Inuyasha for providing the updated files. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7490 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-03- Char-server SQL won't perform the reconnect cleanup routines when ↵skotlex1-5/+6
kick_on_disconnect is disabled. - Renamed summons_inherit_effects to summons_trigger_autospells as the setting now only makes the attacks of the slaves trigger the autospells of the master (as it should be). - Corrected code capping no_spawn_on_player to 50 when the max should be 100. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7459 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-03- Warmth will dispel when warping now (or else the effect is left on the ground)skotlex1-4/+5
- Fixed reading of the refine_db not working right when MAX_REFINE is increased from 10. - Some more cleaning to the implementation of Abracadabra git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7456 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-03- Fixed a compile warning in login sql/txtskotlex1-7/+16
- Fixed pc_makesavestatus not setting your logout position. - Fixed the UF * flags of Songs/Dances in skill_unit_db. - Fixed two dances becoming BA_DISSONANCE instead of DC_UGLYDANCE. - Added the missing +100% damage modifier of Enchant Deadly Poison. - Fixed SkillStatusChangeTable not working correctly for Homun/Guild skills. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7454 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-30- Small cleanup on Abracadabra.skotlex1-18/+86
- Added UF_SONG (0x400) to differentiate songs from dances. - Updated the skill_unit_db accordingly, ensembles should only have that flag, likewise for songs and dances. - Added preliminar support for making a Song+Dance turn into BA_DISSONANCE cells. Beware of potential bugs as it's untested. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7428 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-28- Added inf2 4096 (INF2_ALLOW_ENEMY) which is to be used in conjunction with ↵skotlex1-11/+6
INF2_PARTY_ONLY/INF2_GUILD_ONLY when said skill should ALSO be allowed to be used on enemies. - Updated Soul Change to use inf2 4096 (INF2_ALLOW_ENEMY). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7376 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-28- Corrected Musical Strike having a different damage equation from Throw Arrow.skotlex1-4/+3
- Some minor cleanup of Soul Change - Added state rewarp to players. It gets set when a pc_setpos call is triggered while the player is changing maps so that when the player finish loading the map, it is inmediately rewarped to where it has been rewarped/recalled to. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7370 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-27- Fixed indentation on int_pet.c (how did it got messed up?)skotlex1-2/+2
- Added mapflag "loadevent", now load-map script events will ONLY trigger on maps with this mapflag on, rather than every map. - High Jump can now be used in all versus maps. - Added Kaite's opt3 value, taken from jA - Added state dirty == 2 to storages. Signals when a storage was sent for final saving. Said storage is removed from memory after the ack from the char-server, and they are sent to save if the map/char servers reconnect before the act arrives. In short: they are guaranteed to be saved after a char logs out. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7358 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-27- Corrected the element of hunter traps.skotlex1-7/+5
- Deadly Poison now also reduces def2 by 25% - Changed skill_setmapcell to use skill splash rather than range. - Cleaned up a bit skill_moonlit, now it knocks back the correct amount of cells. - Fixed @mi displaying always 0 instead of the mob's class. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7351 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-26- Corrected unit id of desperado and Ground Drift using jA's info.skotlex1-9/+34
- Rough implementation of Ground Drift according to description and jA info. - Implemented Tatami Gaeshi using skill description and jA implementation for reference. - map_foreachinpath calls will no longer go beyond the target point, as this function is required for skills other than SharpShooting now. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7344 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-26- Merged Mitternacht's max_heal/max_heal_lv config settings.skotlex1-2/+5
- Removed support of packet 0xc3 on the new packet versions. Thanks to Meruru for pointing out they aren't being used anymore. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7343 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-26- Autospells will now again check for the skill's nk value, so that skills ↵skotlex1-4/+2
tagged "nodamage" skills will not trigger autospells. - A bit of cleaning in pc_equippoint - Corrected clif_item_sub so that pet eggs will correctly be sent as equipment (fixes them showing up "broken" and with random refine levels) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7341 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-23- Corrected ASC_BREAKER. Int-based damage is applied after attribute fixes ↵skotlex1-4/+2
and before card reductions. The skill now completely disregards left weapon. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7319 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-23- Standarized PF_MEMORIZE to be 50% cast time on all skills (instead of -50% ↵skotlex1-0/+5
for targetted skills and -66% for ground skills >.>) - Cleared up the comment on what item_check does and how it works. - Changed the pointer dummy_item to a normal struct variable. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7316 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-23- Updated BD_INTOABYSS's unit flag to not affect mobs.skotlex1-6/+2
- Changed setting for skill_nocast flag 16. It is no longer a "pk-mode map" setting, it's now a clone-forbidden skill. That is, skills with the flag 16 will never be copied by clones. If you use a PK-mode server, use flag 2 now to forbid skills from common maps. - Default skills from not being cloned are Magnus Exorcism and Turn Undead. - The map search free cell will now use the size of the map # of tries before giving up when the spawn area is the whole map. Added a check to inmediately give up when the number of spawn retries has reached the max specified (no_spawn_onplayer = 100). - Cleaned up a bit the clone code to account for the unit flags UF_NOPC/UF_NOMOB when the skill is not ground-based (accounts for self skill that causes a ground-tile to be placed, like Dances). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7315 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-22- Restored the "Secret" behaviour of Blast Mine and Claymore Trap where each ↵skotlex1-15/+13
target is hit N times (where N is the number of mobs in the splash area at the moment of triggering). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7302 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-20- Updated skill_require_db to place the Zeny requirements of ZenyNage and Fling.skotlex1-9/+10
- Fixed crash when non-players use ZenyNage. Added the correct Zeny check in skill_check_condition, fixed the skill so that it's damage is based on whatever zeny is specified in skill_require_db. - Can-act delay will not be reset when warping now. - Fixed Quagmire not altering walking-speed. - Silence now blocks skills both on begin/end casting. - Updated status_calc_bl so that when walking speed changes, the character is made to rewalk so that the new speed takes effect inmediately. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7264 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-19- Combo-used Skills with State "move_enable" will now override the "can't ↵skotlex1-2/+7
move delay". Fixes Break-Fall -> Jump-Kick. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7260 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-19- Moved back Soul Drain code from mob_dead to ↵skotlex1-0/+9
skill_counter_additional_effect. Now we are back to where the skill animation does not shows, but you DO get SP T.T' (fixing this is turning out so difficult...) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7253 54d463be-8e91-2dee-dedb-b68131a5f0ec