538 Commits

Author SHA1 Message Date
skotlex
9976069fdc - Added a missing break in battle_check_target
- Added config setting "partial_name_scan", which specifies whether @ given names should use a partial string lookup or absolute name lookup. Defaults to no (gm.conf)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8578 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-01 15:56:34 +00:00
skotlex
063270b3cb - Soul Breaker will now be affected by Lex Aeterna on both parts of the attack.
- Some minor code cleanups
- Cleaned Adaptation's code to not require to check the Skill Unit group structure to extract the skill lv info.
- Status changes with no skill and no SCB* data will now go through if they have an SI* icon. This should fix SC_MIRACLE
- Reverted switching a mob's adelay/amotion when the later is longer than the former, now both get updated to amotion.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8574 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-01 14:12:51 +00:00
skotlex
a19cafda61 - Moved the intimacy penalty of HFLI_SBR44 and HVAN_EXPLOSION to skill_counter_additional_effect
- Simplified skillnotok_hom by using an invocation to skillnotok
- Hopefully fixed BD_ADAPTATION
- Homun won't lose any intimacy on death now.
- Homun will be saved together with the master now (as long as the homun is active)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8564 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-31 16:40:37 +00:00
skotlex
da0c3867d8 - Added setting attack_walk_delay which specifies whether a character should (or not) be able to move inmediately after starting a normal attack (battle.conf). Defaults to 0 since that's what Aegis uses.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8561 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-31 14:46:56 +00:00
toms
66158f3bb6 - Applied Mpeg's work on GS
( http://gpegon.free.fr/ea/gunslinger_08-29-06_mpeg.txt )
- Fixed a syntax error in @showmobs


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8528 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-29 10:23:11 +00:00
DracoRPG
0f0747d4c7 Added TK level-up buffs to SG too, and extended them to 10 min
Added "Barefeet Mastery" effect to TK_RUN
-> As always, big thanks to Tharis ;)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8524 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28 19:09:46 +00:00
Vicious
5cfee7525e reverted mpeg's work
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8522 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28 16:15:16 +00:00
skotlex
8de2aba3b4 - Reverted the "fix" to mdef reduction code being applied before the number of hits adjustment @.@
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8521 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28 16:13:28 +00:00
skotlex
33cb9f7449 - Fixed exp bonuses applying twice for the job-exp
- Magic damage adjustment per number of hits is now performed before mdef reductions.
- @reloadbattleconf  will now also update the ragsrvinfo table on the char-server.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8518 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28 16:03:23 +00:00
toms
b891e7752c Applied Mpeg's work on GS ( http://gpegon.free.fr/ea/gunslinger_08-28-06_mpeg.txt )
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8513 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28 13:40:55 +00:00
Lance
26500644dd * Optional macro MEMSET_TURBO for faster low-level memory initializations.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8499 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-27 06:38:17 +00:00
toms
44880dc493 Added a flag to skill_delunitgroup, skill_delunit & skill_unit_onlimit.
If 1 is passed, it will avoid UNT_WARP_ACTIVE to be transformed in UNT_WARP_WAITING and will destroy it. [Toms]
( To avoid such crash : http://www.eathena.ws/board/index.php?showtopic=114102 when the code need an empty slot and the oldest one is UNT_WARP_ACTIVE )

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8478 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-25 11:07:30 +00:00
skotlex
dbedc092e8 - Added setting clear_skills_on_warp to specify when a character's land-based skills are deleted when the caster changes maps. Defaults to all types.
- Should have fixed Brandish Spear not passing the flag to skill_attack, causing it to do miserable damage.
- Warp Portal will no longer be removed when caster steps through it (this is left to the new clear_skills_on_warp setting)
- Cleaned up status_percent_change to switch equations when the target has high hp to prevent overflows, also it will directly take hp/maxhp when a rate of 100 or higher is passed to prevent calculations.
- Traps and Land Elemental fields are no longer automatically removed on map change (handled now by clear_skills_on_warp)
- traps_setting &2 no longer does anything (handled now by blah blah)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8469 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-24 14:49:16 +00:00
toms
10d8fa1083 - Applied some change from mpeg on Ninja Skills
- Put HVAN_Explosion based on max_hp instead of current hp

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8468 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-24 14:43:20 +00:00
skotlex
44a5b037a3 - Fixed Energy Coat reducing and consuming more than it should when you have 100% SP
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8460 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-23 21:27:51 +00:00
skotlex
c026d4bcac - Some corrections to make Tatami Gaeshi work correctly.
- Fixed SBR44 doing 100% more damage than it should.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8437 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22 18:39:52 +00:00
skotlex
8a8ed83b63 - Some more work on the splash skill code. Now splash-damaged enemies should show no animation at all, just the damage-number, while only the targetted character should still display the full skill animation.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8436 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22 17:21:42 +00:00
skotlex
d359756066 - getnameditem will now also work on stackable items
- Corrected battle_calc_weapon_attack so that all skills ignore your left-hand weapon, and that the Katar's double-attack damage bonus for the offhand damage applies ONLY on normal attacks.
- Fixed Resurrect Homunculus's % to 20*lv%


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8426 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22 14:09:01 +00:00
skotlex
200813da7e - Adjusted Glittering's success rate to 20+10*lv%
- Corrected isequipped() so that cards will not be tagged as "used up" unless all the specified items were found.
- Fixed a confusion in skill_attack using the src instead of dsrc for some calls, which was causing some problems with the KAITE check from AoE spells.
- Fixed ASC_BREAKER's misc damage part not having the ignore-element flag set.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8406 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-21 17:55:19 +00:00
skotlex
03601f28fc - Added BL_HOM handling to battle_gettarget.
- Some cleaning in skill.c in regard to homun skills.
- Madness Canceller now stacks with other aspd bonuses, just like Berserk does.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8403 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-21 16:39:14 +00:00
skotlex
fd6e193e90 - Removed config setting "muting_players", and expanded the manner_system config to specify how having negative manner (mute) affects a player (see battle/misc.conf).
- Expanded the pk_mode setting from no/yes to 0/1/2. 1 is normal pk_mode, if 2 is used, it makes killing players give you a loss of 5 manner points.
- Fixed WS_WEAPONREFINE always failing when at less than job 50.
- Fixed a compilation warning in char-txt/int_homun.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8402 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-21 16:07:50 +00:00
skotlex
68df921a84 - Gravitation now only blocks the caster from using potions.
- Corrected Madness Canceller not letting you walk while the effect lasts.
- Splitted yet again ASC_BREAKER into a two-part attack. This time the int-based damage is a MISC type attack, and gets reduced by skills as such.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8392 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-20 21:38:02 +00:00
skotlex
78296c878c - Fixed battle_calc_base_damage being called for the left hand even for non-dual-wielding attacks. left-hand damage was being set to 0 later anyway, so no exploit existed.
- Moved the weapon_atk_rate bonus to battle_calc_base_damage so that it'll apply correctly when dual-wielding different types of weapons.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8370 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-19 19:25:41 +00:00
toms
066765b702 Added homunculus_friendly_rate battle config
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8361 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-19 11:32:41 +00:00
skotlex
56cb3651d6 - Fixed the atk_rate (Turtle General Card) bonus not working on dual-wielders.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8354 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-18 21:15:06 +00:00
skotlex
91b9fed6e3 - Made HLIF_HEAL a self skill that auto-selects target to caster's master.
- Implemented SC_BLOODLUST and SC_CHANGE, cleaned up HLIF_CHANGE
- Applied a correction to HVAN_EXPLOSION
- Fixed Homun ASPD calculation being able to underflow and give you min speed.
- Added monster_ai&128 to make aggressive mobs ignore that behaviour of always picking Homun targets above player targets regardless of who is closer.
- Fixed homun info packet being unable to display HP/SP correctly once the values are above 32k.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8349 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-18 16:43:20 +00:00
toms
2b1435f36e Applied Mpeg's work on ninja (http://gpegon.free.fr/ea/ninja_08-18-06_mpeg.txt)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8347 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-18 15:22:24 +00:00
skotlex
64b38ba4b7 - Added guild_aura (skill.conf) setting so you can specify when it works and if it works on the guild-master itself. Defaults to working all the time on everyone except GM.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8342 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-18 14:26:26 +00:00
skotlex
b5508efe38 - Changed unit_free so that it receives which cleartype should be used when the character is still on a map. Used this on status_damage so that mobs that do not respawn when killed will properly display the death animation.
- Should have fixed the signed/unsigned comparison warnings in the main regen function. 
- Fixed Energy Coat consuming 10x less SP per hit than it should.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8339 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-18 13:49:24 +00:00
skotlex
6babc24b69 - Vaporize will no fail when the homun is dead.
- Corrected thhe double free issue that occurs when a homun dies and has no intimacy left.
- Fixed the charsave_method:1 saving/loading exp as signed ints rather than unsigned.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8335 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-18 02:04:25 +00:00
skotlex
4e32d21c17 - Now arrow-consuming skills where your main weapon is a whip or musical instrument WILL count as arrow-type attacks, using the atk of the arrow and all related bonuses.
- Fixed some homun timer initialization code.
- Some cleanups on the pet.c code, but no idea if pet view will work correctly now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8315 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-16 14:12:01 +00:00
skotlex
6e5a887656 - Sacrifice no longer shows damage to self.
- When Asura fails, the skill display will still come off.
- Cleaned up AM_CALLHOMUN so that the required item is specified on skill_require_db
- Cleaned up function merc_call_homun and added function merc_hom_vaporize to handle the respective cases.
- Cleaned up a bit unit_remove_map/unit_free on regards to homun. it will display the /sob emotion when the homun dies due to low intimacy. Moved removal of timers and all that to unit_free
- Cleaned up function merc_hom_dead
- Simplified lots of code around by using the new merc functions.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8279 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-14 19:48:16 +00:00
skotlex
1d2c4f8950 - Removed @itemcheck as it was totally pointless.
- Corrected states killer/killable being easily dispellable.
- Fixed the totally wrong text messages being used for @killer/@killable related atcommands, added appropiate entries to msg_athena
- Magic and Misc attacks will now get type "flee" when they do less than 1 damage, this blocks them from causing additional status effects when they are blocked.
- Cleaned up a bit the Basilica code, it should now properly end when you walk.
- Added an unnecessary qty check when inserting cards :P
- Fixed some logs not working when you enabled all logs.
- Corrected unmute being a level 60 command by default (should be 80)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8256 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-13 06:14:27 +00:00
skotlex
2c74fc0254 - Should have fixed the login-sql crash when passed user-name's length is beyond the limit.
- Removed setting mob_ghostring_fix
- Changed setting attack_attr_none to affect all neutral-element attacks. Basicly, this setting is now used to determine who can hit for full damage always when using neutral-attacks (defaults to non-players)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8237 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-10 19:06:13 +00:00
skotlex
07e449bc5c - Should have fixed a signed/unsigned warning in login-txt
- Moved the class-change code from battle_calc_weapon_attack to skill_additional_effect.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8211 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-09 17:58:00 +00:00
skotlex
4c3eae0bbe - Cleaned up some the code of TF_DOUBLE and GS_CHAINACTION.
- Removed the code which was auto-setting attacks that do no damage to type FLEE, since that was disabling status-effects which should incur even when the damage was blocked.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8208 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-09 16:29:25 +00:00
skotlex
3fc01d5169 - Trade requests will now fail when either character is unable to act (character in storage, vending, interacting with an npc, petrified, etc)
- Change the default of attack_attr_none to all classes except players. This means that pet/mobs/homun will always do normal attacks with no-element modifiers (but elemental reduction cards still apply)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8207 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-09 14:42:08 +00:00
skotlex
b62481ed5b - Removed config settings display_delay_skill_fail and display_snatcher_skill_fail, replaced them with display_skill_fail, which can be used to determine whether you hide ALL skill-failed messages, those from delay, those from Snatcher or those from Envenom (battle/skill.conf)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8186 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-08 15:33:18 +00:00
skotlex
ee59874725 - Fixed yet again AS_SPLASHER doing full damage on all characters. Now you can use the NK split damage value in the skill_db if you want damage divided by the amount of targets rather than by 2.
- Fixed crash on the battle_drain functions.
- Cleaned up HAMI_CASTLE, HLIF_AVOID, HAMI_DEFENCE so that it's usable by other types of objects other than Homunculus. 
- Cleaned up the Asura Strike code so that the SP/Spheres/States is not consumed when the skill fails due to Fog of Wall.
- When a negative delay for a skill is specified, this delay is now added on top of the character's amotion rather than adelay
- Modified main.sql to make the guild table allow NULL on the emblem data.
- Added file conf-tmpl/Changelog.txt


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8185 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-08 15:07:29 +00:00
skotlex
71b9605a0c - Removed the setting of blow-count to 0 when the target is a boss on the battle_calc_* functions, now skill_blown will fail when the source is different from the target and the target is a boss.
- Some parenthesis cleanup before invoking battle_calc_base_damage, could be fixing the current issue with arrow attacks not adding the arrow damage.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8170 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-07 19:07:37 +00:00
skotlex
6daec0f2c0 - Cleaned some of mpeg's updated work.
- Fixed HT_BLITZBEAT hitting neutral characters when it auto-triggers.
- Simplified the Tatami Gaeshi code.
- Fixed AS_SPLASHER doing full damage on everyone except targetted char instead of the other way around.
- Fixed KAENSIN clearing out SUITON cells and viceversa.
- The spawn area is now seen as range rather than absolute for mob spawn lines. This means that x,y,10,10 will spawn the mob on a 21x21 grid around the given x,y point.
- Some clean up of the mob-spawn code. Now you can specify negative areas, so that a spawn location such as 100,150,0,-1 will spawn a mob always on x=100, but any Y value of the current map.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8165 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-07 17:43:53 +00:00
skotlex
26a6620863 - Some code cleaning in status.c
- Reflected damage will now also have a chance of draining hp/sp.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8164 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-07 16:53:10 +00:00
Vicious
6cb68e6f4a mpeg's ninja work
http://gpegon.free.fr/ea/ninja_08-07-06_mpeg.txt

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8160 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-07 15:12:05 +00:00
skotlex
8fa60b9249 - Adjusted Battle_check_target so that alchemist summoned mobs are targetted by everyone as long as 1. The top-level master is a player and 2. the actual attacker is not a mob-type.
- Added config force_random_spawn which overrides the spawn-files defined coordinates to make all mobs always spawn randomly on the map.
- SC_SPEEDUP0 is no longer dispellable by SA_DISPEL


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8159 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-07 14:38:23 +00:00
skotlex
5752836839 - Fixed a compile warning.
- Added a commented piece of code in clif_parse_LoadEndAck which will update your direction to wherever you were facing before warping. Should this be the default? Nearby people DO see you facing on the same direction before warping, it's only yourself that will always see you facing north on spawn.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8143 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-05 02:40:40 +00:00
skotlex
f2acf50b24 - Fixed flag.elefix not being respected in battle_calc_misc_damage.
- Some code cleanups in battle_calc_damage.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8139 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-04 21:29:09 +00:00
skotlex
5ef4f71588 - Removed settings enemy_critical_rate, homun_critical_rate. Added settings enable_critical (defaults to specify only players), mob_critical_rate and critical_rate. The last applies to all non-mobs and non-players (battle/battle.conf)
- Removed settings mob_npc_warp, mob_warpportal. Replaced with setting mob_warp which specifies which types of warp can a mob step into (battle/monster.conf)
- Updated status_calc_misc so that it also handles the BL_PC case, removed redundant info from status_calc_pc, and moving the SNovice Max Hp bonus to status_base_pc_maxhp


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8135 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-04 19:30:15 +00:00
skotlex
c79270a22f - Some minor code cleanups.
- Cleaned up skill code for NJ_BAKUENRYU
- Unified splash-damage packet display for NJ_HUUMA and other splash skills (like Brandish spear)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8134 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-04 18:20:02 +00:00
skotlex
8c98388bc5 - Enabled Mastery damage on Soul Breaker again, moved adv katar mastery out of the mastery function so that it may apply to all skills except Soul Breaker.
- Changed name of the setting log_pick to log_filter since that's what it does now.
- Modified enable_logs so that instead of a 0/1 setting, you can specify which kind of events to log (so you can use a combination), see log_athena for the bitmask configuration.
- Cleaned a bit the contents of log_athena.conf


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8129 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-04 16:38:54 +00:00
skotlex
f029f7bc6e - Hide/Chasewalk will again stop screaming skill name (I guess displaying the skill animation wasn't such a good idea afterall)
- Soul Breaker will no longer receive Mastery damage.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8126 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-04 13:43:44 +00:00