204 Commits

Author SHA1 Message Date
ultramage
9609149c15 * Corrected some invalid syntax in skill_db.txt (wrong usage of commas)
* Renamed BA_FROSTJOKE to BA_FROSTJOKER (aegis server-side name)
 * Implemented a generic framework for parsing delimited db files (allows specifying min/max column ranges and max number of rows to read)
 * Corrected a typo in quest_update_objective()
 * Cleaned up pc.c a bit

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12599 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-15 13:49:40 +00:00
L0ne_W0lf
83f22f6584 * Updated NPC skill "Evil Land". More gravity wtfage.
- Based on visual observation, and experience with it on iRO Sakray.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12548 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-10 15:16:27 +00:00
L0ne_W0lf
feb95aeeb1 * Reverted the Ice Wall change (r12526.)
- Increased the range of Ganbantein to 16, as tested on iRO.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12528 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-07 23:05:47 +00:00
Kevin
75ca539ea1 Limited number of wizard icewalls to 5 (iRO).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12526 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-07 21:46:10 +00:00
L0ne_W0lf
a816ffdb81 * Dur, I'm bored. Added place-holders for Mercenary skills.
- These skills are NOT usable. They're semi-filled in. Don't even try.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12515 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-07 02:22:08 +00:00
skotlex
96684da892 - Fixed Freezing Trap doing no damage (changed type from misc to weapon)
- Changed suiton's element to water (apparently fixes not being able to use water-based skills on it)
- Fixed Landmine doing no damage (decreased trigger range to 0 to match its splash range)
- Fixed the disguise commands using the wrong variable when attempting to disguise as an npc.
- Fixed a compilation warning on CELL_CHKNODAMAGE (which is a totally bad-ripoff of basilica cells anyway)
- Corrected and optimized npc_remove_map's npc array cleanup (@reloadscripts no longer report 'too many npcs per map and related dangling pointer crashes are fixed)
- Removed suspicious, yet totally unused npc_data variable 'n'
- HP loss item scripts can no longer kill you.
- Corrected the item-drop-rate check to avoid duplicate entries in @whodrops after a @reloadmobdb
- Cleaned up and optimized map_addnpc (there are never any gaps in the npc array so npc_num always points to the last valid entry)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12180 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-07 00:07:47 +00:00
ultramage
66e434316b Fixed some typos in skill_db.txt, caused by r11949 (bugreport:657)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11960 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-22 14:35:37 +00:00
skotlex
a6875211ef - Fixed skill name for skill 39 (MC_PUSHCART)
- Corrected some formatting in a few entries in skill_db (TODO: if you really want to format the file to have file names aligned, spaces should be used instead of tabs, like it was done for GD/HLIF skills!)
- Corrected placement of leveled up mobs bonus exp
- Fixed a possible crash when parsing MSC_MASTERATTACKED mob skills.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11949 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-19 13:10:48 +00:00
skotlex
ece12b6e42 - Cleaned up a bit the format of skill_db.txt (that comma next to the skill name looks ugly if you ask me)
- Corrected skill_db reading to properly trim the skill name/descs.
- Added a mobid_db in map.c to handle mob lookups faster.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11943 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-18 15:45:48 +00:00
skotlex
d19659bbdd - reverted R11820, Cart Termination was already a 0x8 nk skill, I accidentally set inf2 to that, which meant 'spirit skill'!
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11827 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-27 20:35:23 +00:00
skotlex
ff43b0d74a - Cart Termination now ignores the attacker's cards, as a side effect makes it bypass AutoGuard & Cicada Skin Shedding
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11820 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-27 09:46:30 +00:00
ultramage
7ba256db84 Reverted skill db edit from r11772. Yes, Guardian Research's AegisName is GD_GUARDRESEARCH (see strings in client exe).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11781 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-22 16:25:50 +00:00
skotlex
6840bb28ab - Moved subtype from struct block_list to struct npc_data.
- Fixed some compilation warnings.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11772 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-21 13:29:45 +00:00
ultramage
e12b04e850 Added error reporting for invalid rows in skill db files.
Fixed skill_castnodex_db.txt not being parsed correctly.
Fixed a search&replace typo in skill_db.txt.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11728 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-13 07:48:44 +00:00
ultramage
f7d4427c1a Changed the skill_db.txt skill names in comments into actual columns, now the server reads these instead of a hardcoded array (see topic:170438).
Corrected skill db loading code which was using a totally wrong column count in sevreal cases (or didn't do any checks at all).
Cleaned up skill db lookup code
 * added some well-behaved functions to replace macros (skill_get_index)
 * used skill_get_index() to replace often occuring blocks of code that did the skill_id -> skilldb_index calculation in-line

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11657 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-05 08:59:19 +00:00
ultramage
989a557598 Removed some long-unneccessary debug messages (from r1105).
Removed function skill_count_target() because it's a duplicate (see topic:169337).
Renamed skill_get_pl to skill_get_ele (because it retrieves element ids).
The block_list structure now uses the BL_ enums instead of 'unsigned char'.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11640 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-02 15:54:27 +00:00
Playtester
b2aeae0dcc * Added trap mode to Firepillar
- tell me if it breaks something

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11639 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-02 12:30:19 +00:00
Playtester
9ec6519201 * Some small db updates
- fixed Bongun Card thanks to Gepard
- updated Ifrit Card to official
- Fire Wall now has 2 cells knockback
- set interval values of Fire Wall and Fire Formation to 20ms

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11581 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-10-26 10:17:06 +00:00
Playtester
0e39094a11 Fixed Bowling Bash doing more than 1 tile knockback
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11547 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-10-22 19:34:06 +00:00
Playtester
6bcbcb11bb * Further optimization of the skill unit code
- removed code for Crimson Fire Formation it now uses the same code as Fire Wall
- added same knockback behavior as Fire Wall for Fire Formation
- Heat now does 50 hits a second in pvp too
- please let me know of any bugs that might appear

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11510 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-10-18 18:07:09 +00:00
ultramage
425112aef3 * Fixed a copy-paste mistake in disguise code (from r5833)
* Commented out clif_skill_damage2() as it is not used anymore
* Made Venom Splasher a splash attack that distributes damage
* Fixed displaying of several splash skills (see bugreport:238)
- added flag SD_PREAMBLE for skills that need the 'magic' packet (fixes Grimtooth / Cart Revolution displaying out of sync)
- hacked together Venom Splasher's "no animation for central mob"
- hacked in a custom packet to make Dragonfear display semi-correctly

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11491 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-10-16 19:00:03 +00:00
Playtester
7d23a41f0b Cosmetical changes
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11484 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-10-16 00:20:42 +00:00
L0ne_W0lf
34a1e73c9f Readded Sonic Acceleration to the skill DB. -_-
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11481 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-10-15 18:14:25 +00:00
L0ne_W0lf
d43329708f Implemented new skill "Enlarge Weight Limit R", and increased MAX_SKILL_TREE by 1.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11476 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-10-15 05:55:55 +00:00
skotlex
c6d05bc0f3 - Gravitional Field is now a MISC type of attack.
- battle_calc_return_damage now is only for BF_WEAPON attacks, added skill_magic_reflect to check whether a spell is bounced back or not.
- Magic reflection now effectively switches the caster/target (after damage has been calculated)
- Now when GTB completely blocks a spell, the spell animation will still come off, but with a single bolt and MISS damage.
- Removed hom_setting&0x2 since Homunculus can be hit by land spells.
- Monster Property now gives a Skill Failed message when attempted on players.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11203 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-09-14 18:46:41 +00:00
skotlex
7233562a1a - Removed bonus bAddEffWhenHitShort as it is unneeded and unused.
- Corrected getpetinfo so it actually returns "null" when there's no pet and you request the name (the docs state it so).
- Also cleaned up a bit getpetinfo
- Added gethominfo (which behaves in the same way as getpetinfo).
- The 'maxcount' skill_db field now can store independant values per skill-level, required for Kamaitachi since it uses different range values per level.
- Corrected bonus3 bAutoSpell(WhenHit) to select target enemy (rather than self) for skills with inf self and inf2 'don't target self' (aka: auto-select target skills).
- Corrected map_foreachinpath to do a wall check for targets beyond the initially selected tile.
- Corrected Kamaitachi's range to be 9, and the path range to be 4+SkillLv


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11169 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-09-10 17:07:35 +00:00
skotlex
81faa4770b - Oops, forgot to add the Pulse Strike damage modifier.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11055 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-20 19:02:01 +00:00
Playtester
3f5d2a35b0 Fixed the damage area of the "path damage" skills
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11004 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-14 15:59:02 +00:00
skotlex
2d6cef47d6 - Modified map_foreachinrange so that you can also specify the max length of the path to use. The max_count field in the skill_db is used to specify this range for path-type skills (Sharpshooting, Kamaitachi and the NPC Breath skills.
- Implemented the 'new' NPC skills described here: http://ro.doddlercon.com/wiki/index.php?title=Monster_Skills . It is mostly complete, but the new status changes (slow cast, critical wounds, etc) don't have any visual effects yet (icon or opt changes? I don't know if they should have). Also I could not find the unit_id for Evil Land, so it looks just like Sanctuary for now. Apart from those, the only skills which I couldn't get to display properly are the Breath skills (with the exception of Fire Breath).
- skill_calc_heal now takes the target as argument to properly support Critical Wounds
- battle_calc_return_damage now takes a flag to know if the attack was direct or not, needed since Magic Mirror also reflects indirect attacks.
- cleaned up the 'description' field in skill.c, added skill_get_desc to it
- Removed 'splash' support from Lex Divina as it is no longer needed.
- Modified the way Sight/Sightblaster work so that the skill id is no longer guessed (needed to properly acquire the splash range for Wide Sight)
- Corrected gtb_sc_immunity setting not taking effect if your block value was the same (that is, if the config said 30%, then you would only get status change immunity at 31%, nor 30%)
- Uncommented the 'new' npc skills from mob_skill_db as they are implemented now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11000 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-14 00:05:13 +00:00
Playtester
9b5a8b8ede Added remaining 11.2 skill db entries
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10983 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-11 11:58:10 +00:00
Playtester
caffb97cde * Implemented 11.2 skills in the skill_db
- note that the code for them is still missing

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10982 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-11 11:17:16 +00:00
Playtester
babd639fca * Raised splash range of Focused Arrow Strike and First Wind
- temporary fix until the real area calculation is added
- also started adding some of the 11.2 skills

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10978 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-10 17:09:34 +00:00
Playtester
a1205df084 * Fixed damage of NPC_COMBOATTACK
- also reverted some custom skill changes

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10972 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-09 19:41:52 +00:00
skotlex
9e9847a83e - Fixed some missing max levels for npc skills
- Expanded isloggedin script command to support an optional argument (char id)
- Expanded warpparty command to accept target "Leader", this will warp the party to the leader.
- Added a summon structure to handle non-dead-branch mob-groups since the current implementation totally fails for mob groups that don't have MANY integrants
- Fixed mobs not attempting an IDLE skill right before unlocking a target.
- Removed a useless variable in the pet_data structure


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10961 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-08 01:55:58 +00:00
DracoRPG
b2950fb9d8 Added Job_Alchemist constant, Job_Alchem should now be considered deprecated
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10904 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-07-23 22:54:37 +00:00
ultramage
3f722ba896 - added temp skill db entries and corrected some existing ones (see topic:157041)
- removed txt converters from txt build (they need mysql files so they don't belong there)
- eol-style for newly added file

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10867 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-07-08 15:47:26 +00:00
Playtester
ea4b252218 * Attempt to fix Kyrie Eleison not castable on enemy players
- please test, I can't double client to test it in pvp
- don't forget to recompile before testing

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10459 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-05 09:11:52 +00:00
skotlex
b6e3783be6 - Updated the skill_db, some mob skills seem to be better to a range of -9 than 9.
- Corrected the pet_db information for Xmas Goblin and Rice Cake.
- Replaced all struct map_session_data to TBL_PC in script.c
- Pressure no longer vaporizes plants.
- Corrected pc_setregstr to handle a null str argument.
- Corrected @reloadbattleconf causing a add_timer_func "already existing function" error.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10326 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-23 19:08:34 +00:00
Playtester
593c3952b2 Fixed various mob skills not being ranged
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10269 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-16 18:54:37 +00:00
Playtester
4ce5ddc065 Added some splash ranges for MVP level skills
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10265 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-15 20:23:36 +00:00
Playtester
ef10fe3a04 * Kyrie Eleison cannot be cast on mobs anymore
- also some small mob skill changes to work with the new code

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10239 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-12 18:32:12 +00:00
skotlex
f1bf0b8e80 - Changed the meaning of inf2=0x1000. Now it is used to "disable usage on enemies", which only works for non-aggressive (inf!=1) skills.
- If a skill is party/guild only (inf2 0x400/0x800) it will also be castable on enemies if the skill's inf is 1 (offensive target)
- Corrected the mob behaviour when it locks into an enemy it can't chase. Previously it would get stuck on a lock->unlock->lock loop, with each unlock resetting the "random walk" timer, causing the mob to just idle in place. Now they will attempt idle skills and no longer reset the "random walk" timer, so they behave as if they were in Idle state properly.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10234 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-12 15:19:49 +00:00
Playtester
5d0f037f75 * Ganbantein now has a range equal to the level used
- only mobs use levels higher than 1

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10218 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-11 18:25:37 +00:00
ultramage
478b4b58e8 Fixed typos from previous revisions :)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10098 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-30 17:01:53 +00:00
skotlex
47ab9dbbf8 - Added "do_abort" function to the core. It is invoked when the server has received a Segmentation Fault or Floating Point Exception signal. Currently the only one that uses it is the map-server, which then attempts to save all online characters before aborting.
- Note that due to the current coding of the sig plugin, do_abort will not be invoked if you use it! This plugin needs to be updated...
- Cleaned up a bit the change element code. val1 is the elemental level, val2 is the element now.
- Hardcoded the element and elemental level of SC_CHANGEUNDEAD.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10089 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-29 20:34:17 +00:00
skotlex
e377e96bc9 - Increased Improve Concentration's hide-revealing range to 3 (7x7)
- Cleaned up a bit the Ankle Snare status code.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10042 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-20 21:14:55 +00:00
skotlex
2907fa6467 - Removed the last argument from skillitem, the skill name passed to the client should always be of the type "AL_HEAL" anyway.
- Added skill ITEM_ENCHANTARMS, this is what weapon enchanting items should use.
- Corrected itemskill calls in the item_db, also made the weapon enchanting items invoke the ITEM_ENCHANTARMS skill. Corrected Holy Egg not being type 11 (delay consume)
- Updated item_db.sql with item_db information.
- Added support for specifying different elements per skill level in the skill_db
- Added bonus bNoKnockback
- Corrected typo in bonus bSubRace2 (it was called bSPSubRace2 for some reason)
- Corrected login sql server not resetting your account state to 0 when the banuntil duration expires.
- Corrected use of UINT_MAX instead of INT_MAX in some jailing check.
- Made the skillatk bonus it's own function, it can now be used to boost Heal/Sanctuary/Potion Pitcher and Slim Pitcher as well.
- Cleaned up TK_WARMWIND to use the element acquired from the skill_db rather than hardcoded values.
- Corrected Teleport's save map entry being sent without the .gat extension.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10031 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-19 19:44:21 +00:00
skotlex
a132a2c72c - Increased Shield Chain's range by one. It is now a ranged skill.
- Added SC_CHANGEUNDEAD to differentiate it from the other elemental change skills. It now fails on Undead/Dark elemental targets.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10008 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-14 19:33:58 +00:00
skotlex
07e53259a5 - Corrected the define for NK no cardfix (def).
- Updated skills that shouldn't ignore the target's cards: Smoking, Fling, Zenynage
- Fixed the char sql server not escaping the server name before inserting it on the ragsrvinfo table.
- Corrected @lvup not doing the party even share check.
- Corrected breaker's misc part not ignoring element.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9969 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-06 16:16:25 +00:00
skotlex
0c7ca5de82 - Added NK value 0x80: ignore target's cards (0x8 will now only ignore attacker's cards).
- Corrected the NK values of skills (0x08 -> 0x80): Self Destruction, Smoking, Pressure, Fling, Zeny Nage, BioExplosion
- Soul Burn & Gravitation got NK 0x80 (previously hardcoded)
- Corrected Soul Breaker ignoring target's cards instead of the caster's.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9967 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-05 22:00:01 +00:00