summaryrefslogtreecommitdiff
path: root/src/map/skill.h
AgeCommit message (Collapse)AuthorFilesLines
2006-03-30- the auth function in login.c won't jstrescapecpy passwords that were ↵skotlex1-2/+3
encrypted. - Moved the Endure and Gravitation sc ends to battle_damage from pc_damage. - Endure level 11 and above are now considered infinite-endure. - Set the minimum pet hungry delay to 10 - modified function skill_delayfix to only receive skill/lv, actual time is now always acquired from skill_get_delay. It also now will never return a value below min_skill_delay_limit. - Modified brandish spear so you won't see the skill-animation for every targetted mob. Also cleaned it up to use map_foreachincell calls. - splitted skill_cast_fix into skill_cast_fix and skill_cast_fix_sc, the first does cast adjustments based on dex and server settings, the later only based on sc changes. Mobs use the later while everyone else use the former (which invokes the later when appropiate) - Added the Steel Body icon to auto-berserk. - Now you can't cast auto-counter while the previous one is active. - For the duration of Berserk, infinite-endure is activated. - Added Veider's suggestion to do a hack-report when players request the name of an invisible/cloaked character. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5813 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-23- Changed Preserve's cost to 30spskotlex1-2/+1
- Fixed Arrow Shower, UNT_MAGIC_SKILLS was renamed to UNT_ATTACK_SKILLS - Fixed skill_use_pos checking target tile CELL_CHKNOPASS as invalid instead of CELL_CHKNOREACH git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5708 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-22- Merged the unit_data structure from jA for handling unit-related data ↵skotlex1-6/+5
(attack times, walking, auto-attack timers, skill related data) - Modified unit_skillcastcancel to receive flag&2, which stands for "cancel casting only if current skill is cancellable" - Battle config options changed from yes/no to BL_TYPE settings: skillrange_by_distance, skill_noreiteration, skill_nofootset, gvg_traps_target_all, skill_log, attack_direction_change, auto_counter_type - Clif.c will disconnect sessions that send an unknown command packet above 0x30000 instead of just ignoring it. - Cleaned up/rewrite of the pet ai, same for pet_calc_pos - Implemented use of mob variable attacked_players as it is used on jA - Cleaned up error reporting during mob-skill loading to be less spamy with non-loaded mobs. - Corrected water_height reading. I forgot to give credits to LittleWolf for providing the water-reading function :X git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5707 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-20- Small fix to prevent killer/killable states from allowing you to target ↵skotlex1-0/+2
yourself. - Added Explosion Spirits to list of effects that dispel on logout. - Fixed handling of guild skills by pc_blockskill_start, renamed it to skill_blockpc_start as it needs some constants available only in skill.c - Fixed autoguard icon showing with stun. - Fixed splash area of Ganbantein - Fixed acid demonstration breaking shield instead of armor. - Fixed Slim Pitcher crashing server ocassionally. - Hopefully fixed Ankle Snare lasting the whole trap's duration - Added sc_start(SC_ENDURE) on infinite endure bonus. - Fixed Berserk Pitcher consuming required items twice. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5681 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-14- Fixed incorrect range check in autospell2 triggers.skotlex1-2/+2
- Modified Wedding recall skills to behave as in officials. - Modified Arrow Shower to be a ground-based skill and work as it should on officials. - Fixed skill_additional_effect triggering every time you were being hit even if no damage was returned. - Fixed battle_calc_damage_return to make magic damage be returned by 100%, and received damage nullified git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5598 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-09- Made Magic Crasher a BF_WEAPON attack.skotlex1-1/+1
- 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-0/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5535 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-09more skill fix.Vicious1-0/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5524 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-07- Added a check that forces self skills to cast on yourself in skill_use_idskotlex1-1/+1
- 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-0/+46
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5500 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-05- Fixed remove trap by updating the definition of INF_GROUND_SKILL (it ↵skotlex1-2/+1
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-03- Added a column in skill_cast_db for specifying can't walk delays.skotlex1-2/+2
- 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-02- Some cleanup on mob_can_reach code to prevent unnecessary path-searchingskotlex1-0/+1
- 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-02-22- Removed pc_break_equip, added function skill_break_equip which handles ↵skotlex1-0/+1
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-17- Added NK value 3: No damage + area of effect skill (NK_SPLASH_NO_DAMAGE)skotlex1-5/+10
- Removed the double-cast specific code and made it use skill_addtimerskill instead. - Modified party_foreachsamemap so that it returns to addition of the return value of the functions invoked. Type has been changed for "range", when 0, it scans all party members in the map. - Updated most skill/battle code to use map_foreachinrange rather than map_foreachinarea. - map_foreachinrange does not performs an exact range check anymore. However the relevant code is commented and anyone can enable it. - Updated most skills to use skill_get_splash instead of hardcoded ranges. - Added function skill_get_casttype which returns the type of function that should be invoked for that skill: skill_castend_pos, skill_castend_nodamage_id or skill_castend_damage_id. - self skills are sent to skill_castend_nodamage_id regardless of nk (nk should signal if the skill causes damage above everything, it is used on autospell/effects). - Due to the previous change, self skills where the target and src are different, and don't have an nk of no damage, they are sent to castend_damage_id (assumed target auto-selected skills) - Applied the relevant updates to db/skill_db.txt, db/skill_unit_db also got updated, as trap ranges should all be 1, the splash damage range is defined now in skill_db - Cleaned up the implementation of the code related to Gangster's paradise and TK_HP/SPtime git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5313 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-16- Added a new column in the skill_db to specify the ↵skotlex1-1/+1
splash-range/area-of-effect of skills. (Work in progress) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5302 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-29AS OF SVN REV. 5901, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES ↵Valaris1-0/+879
GO INTO TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. EVERYTHING ELSE GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALARIS git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5094 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-29Clearing trunk.Valaris1-731/+0
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5091 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-04-06* Fixed a crash in clif_send when checking packet versioncelest1-0/+3
* Fixed a crash in Deluge, Volcano and Violent Gale * Allow super novices to rent carts from the Kafra git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1420 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-04-02* Added the 3 baby skills WE_BABY, CALLBABY and CALLPARENTcelest1-1/+1
* Some tidying up in skill.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1379 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-30* updated map server to jA1137~1159celest1-1/+5
* Some tidying up in mob.c and skill.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1342 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-24* Added 'map_charid2id'celest1-1/+1
* Changed monster damage logging to save char ID's * Implemented 'event_script_type' * Set Emsolute Develop as a learnable skill * Updated 'require_glory_guild' * Allow monsters to cast skills near themselves even when monster_nofootset is set to 'yes' * Print number of online users in online.txt/.html even if there's only 1 user git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1282 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-28* Updated Endure, Tiger Fist, Chain Crush, and Palm Push Strikecelest1-0/+3
* Some rewrites on the passive guild skills effects git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1192 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-24added cart dupe-proof for named / cards itemsLupus1-1/+0
removed unusef check_cloak_type func git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1173 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-24* Some rewrites on Basilicacelest1-1/+0
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1172 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-22* Corrected Spiral Pierce's hits in the skill_dbcelest1-8/+28
* Moved /common/*.o into a obj folder when compiling * Updated core and map server to jA 1094~1115 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1162 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-19* Added bSubSize, bHPGainValue, and bDamageWhenUnequip celest1-1/+2
* Updated bSPDrainValue/Rate * Set baby class players' size to 0(small) * Fixed item_db2.txt reading printing wrong number of entries read * Fixed @allskill not giving the newer stalker, whitesmith and creator skills git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1139 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-17* Readded Chemical Protectioncelest1-201/+0
* Removed some old eA code that was causing Frost Nova to do an extra hit * Corrected Vulcan Arrow's hits in skill_db * Readded zlib and zconf .h files to under /lib * Fixed some compile errors in Windows * Changed remove_control_characters back to supporting korean chars * Moved some other code around git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1125 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-15* Added experimental code to generate a stack dump when it segfaultscelest1-4/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1108 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-01-26* Fixed a bug in gettick cache when compiling in Windows(no author)1-3/+4
- Changed "read_map_from_bitmap" to "read_map_from_cache" in map_athena, "map_bitmap_path" to "map_cache_file" - Fixed item effects not showing when only one was used - Fixed a bug in Safety Wall - Allow only either Storm Gust or Lord of Vermillion to cause damage if stacked together - Added path_search_long, map_find_skill_unit_oncell git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@998 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-01-26* Added status.c and status.h of jA 1091 update and moved some functions ↵(no author)1-5/+1
into the new source files * Updated auto_counter_type's description in battle_athena * Removed some unnecessary skill level checks in battle.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@996 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-01-23update(no author)1-7/+8
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@968 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-01-02* Reduced MAX_SKILL_LEVEL to 10celest1-0/+1
* Tidied up parts in skill_castfix a bit * Fixed map-server crashing if an empty line was added in any of the skill-xx db files * Updated skill_castnodex reading git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@895 54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-12-26* Added some code for Moonlit Petals and Basilicacelest1-9/+5
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@788 54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-12-23* Updated Sacrificecelest1-3/+12
* Fixed compile errors in party.c * Moved SC_EDP back to 114 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@750 54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-12-21* Updated most of map-server to 1082celest1-9/+10
* Removed my own additions for skill delays using aspd * Adapted skill_range_leniency to jA's code * Fixed drop rates only limited to multiples of 100's * Added missing code for castle_defense_rate * Removed pc_undead_nofreeze * Updated unrefineable items table * Added 3 new script commands * Added SC_SpeedUp0 * Merged itemdb_read for SQL and TXT * Removed itemdb_read_cardillustnametable limited to TXT only * Added reading itemslotcounttable.txt from the GRF to auto set number of slots per item * Added a display message when reading itemslottable from the GRF * Added options in battle_athena.conf to enable/disable reading the GRF git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@699 54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-12-17* Updated Sphere Minecelest1-109/+110
* Updated Wind Walk * Added effect for Deadly poison bottle and Ice cream git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@594 54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-12-15* Updated Forging and Potion making formulascelest1-2/+2
* Modified guild skills * Initialise 'canregen' when logging into map - Updated Steel Body, Thunderstorm, Investigate and Magic Crasher - Removed elunium and oridecon from produce_db git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@575 54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-12-13updateamber1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@556 54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-12-13* Added 'Throw Tomahawk'celest1-0/+9
* Added some new monster skills - still not complete. * Adjusted Palm Strike, Tiger Fist and Chain Crush * Removed redundant 'sg_count' * Save both persons' data after trading * Removed 'type' paramater from pc_unequipitem * Moved unequip checking code from clif.c to pc.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@554 54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-12-10- Fixed Auto Spell not workingcelest1-0/+3
- Fixed problems with skill level check - Added text job names support for @job - Added some new monster skills git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@527 54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-12-03* Updated Stone Curse, Soul Drain, Auto Berserkcelest1-11/+12
* Fixed MVP exp being multiplied twice git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@442 54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-11-26Added skill_nocast_dbcelest1-0/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@370 54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-11-26Finished Full Strip, Weapon Refine, Slim Pitcher and Full Protectioncelest1-4/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@369 54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-11-26Added @skilltreeamber1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@365 54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-11-25Added Ore Discovery, and base code for Slim Pitcher and Preservationcelest1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@361 54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-11-24git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@354 ↵codemaster1-2/+6
54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-11-24Updated new guild skills (50%)(no author)1-1/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@338 54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-11-23- Added some code for the new guild skills (10%) and Moonlitcelest1-13/+21
- Corrected Hilt Binding and Assassin Cross' dual wield git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@333 54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-11-22Added skill names for kRO 11/23's new skillscelest1-0/+8
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@319 54d463be-8e91-2dee-dedb-b68131a5f0ec