1197 Commits

Author SHA1 Message Date
skotlex
598e005ed4 - Fixed the new addeff structure not working well with SC_STONE (because 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://svn.code.sf.net/p/rathena/svn/trunk@7583 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-08 18:24:39 +00:00
skotlex
5251ce7944 - Fixed the char table having party/guild_id as smallint when they need int 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://svn.code.sf.net/p/rathena/svn/trunk@7580 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-08 17:13:39 +00:00
skotlex
e6915d4f6d - Fixed the Warm Skills
- Removed the debug message when a player logs out and is removed from memory, it is working fine.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7578 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-07 23:57:07 +00:00
skotlex
46fc93df01 - Some cleaning of the Sage endow skills.
- Added a check to free a character from memory when changing map servers.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7571 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-07 18:21:49 +00:00
skotlex
deba53730f - Fixed signed/unsigned comparison issues in the char txt/sql server.
- Fixed the cooking success chances. Thanks to Ishizu Chan.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7560 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-07 13:48:54 +00:00
skotlex
b7fa70b741 - Modified the party_data structure on the map server to remove some 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://svn.code.sf.net/p/rathena/svn/trunk@7553 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-06 23:39:24 +00:00
skotlex
873481b78f - Added no_skill_delay setting, when set, affected object types will have the minimum skill delay for all skills.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7551 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-06 19:11:33 +00:00
skotlex
31832cfdc7 - Added EQP_/EQI_ constants in pc.h to identify equip position and equip 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://svn.code.sf.net/p/rathena/svn/trunk@7550 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-06 18:47:11 +00:00
skotlex
db1cf2de9a - Fixed the auto-direction code which makes self-skills with ground units 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://svn.code.sf.net/p/rathena/svn/trunk@7548 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-06 14:07:21 +00:00
Vicious
394f618a20 Updated NJ_KAENJIN by Saycyber21
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7539 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-05 16:10:05 +00:00
skotlex
1c16abb254 - Merged some skill db data of NJ skills, thanks to RockmanEXE
- 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://svn.code.sf.net/p/rathena/svn/trunk@7538 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-05 16:05:59 +00:00
Vicious
822e9b9e24 Fixed compile issue for NJ_BAKUENRYU, by Saycyber21.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7531 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-05 05:14:53 +00:00
Vicious
3bbd24f7fc Saycyber21's NJ work
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7529 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-05 02:11:07 +00:00
skotlex
e8e61d25cd - Implemented cooking chances. Chance of success is 70% - 7*(dish-lv)% + 12*(cooking set-lv)%. Exception: When using the legendary cooking set, success chance is 100% regardless of dish.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7518 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-04 19:00:02 +00:00
skotlex
6ca52ab9dc - Added battle config setting emergency_recall, specifies behaviour of that skill (skill.conf): 0 - Disabled. 1 - can't be used in nowarpto maps. 2 - Can be used everywhere.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7516 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-04 17:58:10 +00:00
skotlex
9b6412ad1b - Removed the NPC/Dance/Song inf2 check of AbraCadabra. whether a skill can come out or not is entirely decided by the abra db file now.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7515 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-04 16:44:19 +00:00
skotlex
4c36924fce - Added structure s_addeffect to handle status change additions. Cleaned up 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://svn.code.sf.net/p/rathena/svn/trunk@7514 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-04 16:38:36 +00:00
skotlex
fa457b3872 - Cleared up the bAutoSpellWhenHit description in doc/item_bonus.txt
- 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://svn.code.sf.net/p/rathena/svn/trunk@7490 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-04 01:17:11 +00:00
skotlex
1d6dbc95dc - Char-server SQL won't perform the reconnect cleanup routines when 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://svn.code.sf.net/p/rathena/svn/trunk@7459 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-03 19:59:48 +00:00
skotlex
5144a0c3b9 - Warmth will dispel when warping now (or else the effect is left on the ground)
- 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://svn.code.sf.net/p/rathena/svn/trunk@7456 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-03 16:29:17 +00:00
skotlex
f89a7d2069 - Fixed a compile warning in login sql/txt
- 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://svn.code.sf.net/p/rathena/svn/trunk@7454 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-03 14:39:15 +00:00
skotlex
00cbe67c6f - Small cleanup on Abracadabra.
- 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://svn.code.sf.net/p/rathena/svn/trunk@7428 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-30 19:05:02 +00:00
skotlex
ad25bf8e24 - Added inf2 4096 (INF2_ALLOW_ENEMY) which is to be used in conjunction with 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://svn.code.sf.net/p/rathena/svn/trunk@7376 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-28 16:42:32 +00:00
skotlex
6775ca1476 - Corrected Musical Strike having a different damage equation from Throw Arrow.
- 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://svn.code.sf.net/p/rathena/svn/trunk@7370 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-28 14:30:47 +00:00
skotlex
4f1911ae63 - Fixed indentation on int_pet.c (how did it got messed up?)
- 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://svn.code.sf.net/p/rathena/svn/trunk@7358 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-27 14:54:01 +00:00
skotlex
5407f6eed1 - Corrected the element of hunter traps.
- 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://svn.code.sf.net/p/rathena/svn/trunk@7351 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-27 03:49:08 +00:00
skotlex
c71d38b672 - Corrected unit id of desperado and Ground Drift using jA's info.
- 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://svn.code.sf.net/p/rathena/svn/trunk@7344 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-26 18:26:51 +00:00
skotlex
abd2bba4de - Merged Mitternacht's max_heal/max_heal_lv config settings.
- 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://svn.code.sf.net/p/rathena/svn/trunk@7343 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-26 14:44:38 +00:00
skotlex
7f92735874 - Autospells will now again check for the skill's nk value, so that skills 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://svn.code.sf.net/p/rathena/svn/trunk@7341 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-26 13:47:01 +00:00
skotlex
4855ad8d5e - Corrected ASC_BREAKER. Int-based damage is applied after attribute fixes and before card reductions. The skill now completely disregards left weapon.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7319 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-23 21:33:24 +00:00
skotlex
ee1f6f4283 - Standarized PF_MEMORIZE to be 50% cast time on all skills (instead of -50% 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://svn.code.sf.net/p/rathena/svn/trunk@7316 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-23 16:11:51 +00:00
skotlex
eea63beee9 - Updated BD_INTOABYSS's unit flag to not affect mobs.
- 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://svn.code.sf.net/p/rathena/svn/trunk@7315 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-23 15:41:17 +00:00
skotlex
8033eb7d18 - Restored the "Secret" behaviour of Blast Mine and Claymore Trap where each 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://svn.code.sf.net/p/rathena/svn/trunk@7302 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-22 23:56:57 +00:00
skotlex
0263fcc40c - Updated skill_require_db to place the Zeny requirements of ZenyNage and Fling.
- 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://svn.code.sf.net/p/rathena/svn/trunk@7264 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-20 14:33:54 +00:00
skotlex
fb0d6c2d3d - Combo-used Skills with State "move_enable" will now override the "can't move delay". Fixes Break-Fall -> Jump-Kick.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7260 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-19 23:57:09 +00:00
skotlex
04d6132e76 - Moved back Soul Drain code from mob_dead to 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://svn.code.sf.net/p/rathena/svn/trunk@7253 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-19 16:10:19 +00:00
skotlex
ece6f8f781 - Removed unused variable aspd_rate in map_session_data.
- Modified aspd_rate in status_data to hold aspd change on a base of 1000 = 100% rather than 100 = 100%. All status changes that affect aspd have been updated. Study and Single Action should now correctly give +0.5% aspd per level.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7213 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 19:49:28 +00:00
skotlex
974277a787 - Modified the bNoMagicDamage/bNoWeaponDamage bonuses to be a 0-100 setting. Meaning you can do bonus bNoMagicDamage,50; To make all magic damage be reduced by half. This bonus stack, so two cards with bNoMagicDamage,50 will give magic immunity.
- Removed setting gtb_pvp_only and replaced it with gtb_sc_immunity which specifies the threshold before the bNoMagicDamage starts blocking support statuses as well. ie: gtb_sc_imunity: 75 will mean that "bonus bNoMagicDamage,70;" reduces magic damage by 70%, but does not blocks heal or support status, while "bonus bNoMagicDamage,80;" does.
- Updated GTB's card script to be "bonus bNoMagicDamage,100;"


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7212 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 19:35:27 +00:00
skotlex
981af2f058 - Added blocking of the Kick skills when you are a Soul Linker.
- Added enabling to turn off a kick-stance regardless of class.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7187 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-15 21:24:57 +00:00
skotlex
89a6b23a92 - Added HM_SKILLBASE, MAX_HOMUNSKILL to specify the skill level range of Homunculus.
- Added support for reading correctly status change data from Guild and Homun skills.
- Added support for reading Homun skill data (which means the HM skills are now safe to add to skill_db, skill_require_db, etc)
- Moved StatusSkillChangeTable to StatusSkillChangeTableArray and made a function called StatusSkillChangeTable to do the conversions taking into account HM/GD skills.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7128 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 15:06:16 +00:00
skotlex
9c860c13a4 - Oppositions can't be made during WoE now.
- Fixed a few compiler warnings from VC
- Commented out the Homunculus Skills<->Status Change link which was causing some memory corruptions.
- 


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7127 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 14:06:05 +00:00
MasterOfMuppets
975c39b6c7 Changed the interval between waterballs back to 125,
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7071 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-09 13:53:28 +00:00
Lance
3992ed56a8 * restored all damaged japanese comments in skill.c and converted it to utf8 [theultramage]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7062 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-09 07:09:41 +00:00
Lance
118672f2f4 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7047 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-06-08 15:15:48 +00:00
skotlex
397c8f5c0e - Adjusted Don't Forget Me, Defender, Longing to use all val entries, and to hold the speed adjustment value rather than speed penalty (eg: 125 instead of 25).
- Cleaned up status_calc_speed so that speed penalties are correctly handled (eg: 25% penalty is speed*100/125, not +speed*25/100). Thanks to Euph for pointing it out and Belle for the speed mechanics.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7046 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-08 14:21:50 +00:00
Lance
530767d5e1 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7045 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-06-08 13:49:31 +00:00
skotlex
d7a3b4d7e4 - Added pc_calcexp to calculate individual exp bonuses acquired from exp's source (race bonus cards, SG Exp skills, pk-mode higher level exp)
- pc_gain_exp now also receives the source of the exp, when said source exists, bonuses are applicated as needed.
- Added status_kill when capturing a mob, should take care of the mob not respawning after caputed.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7037 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-07 18:57:21 +00:00
skotlex
200032c28b - Moved souldrain code from skill_counter_additional_effect to mob_dead. It should display the skill animation correctly now.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7033 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-07 14:52:59 +00:00
skotlex
11ecdf7283 - Cleaned status_get_sc_tick/status_get_sc_def to use the status_data function.
- SC_STOP's chance and duration can't be reduced anymore.
- Storm Gust no longer has a 100% chance to freeze by passing mdef, now it has a 300% base chance reduced by mdef and the like as explained out by Tharis.
- Frost Diver/Frost Nova's base freezing chance is no longer affected by target's int.
- Lots of indentation fixes in login_sql/login.c to make it match with stable's layout.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7025 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-07 03:18:22 +00:00
skotlex
8cd413cc34 - Hopefully fixed for sure mobs getting extra stats when changing-class due to the mobs level up setting.
- Removed a piece of code that should no longer be needed due to the combo-skill setting
- Added a status_check_skilluse call in Sightblaster to prevent it from hitting hidden/cloaked/act-dead/etc players.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7018 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-06 22:21:15 +00:00