692 Commits

Author SHA1 Message Date
skotlex
df06ad84f3 - Fixed Landmine's level 1 duration.
- Cleaned up implementation of BlastMine and Claymore Trap.
- Added Freezing trap information to battle_calc_weapon attack.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5998 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-12 02:03:31 +00:00
skotlex
a489ed4364 - Changed clif_damage/clif_skill_damage to return the walk-delay based on the passed on damage-delay.
- Changed battle_damage to accept the walk-delay as well.
- Removed the walk-delay timers from unit.c, merged them to battle_delay_damage.
- Traps will not be displayed when you walk within their range.
- Added HT_DETECTING revealing traps.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5997 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-11 23:58:55 +00:00
skotlex
58be7c433b - You don't get critical'ed when in counter-attack stance anymore.
- Changed the default counter-type to "always critical".


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5992 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-11 19:55:48 +00:00
skotlex
0ef81c9d08 - Implemented use of ers for skill_unit_groups to reduce memory usage. NEEDS TESTING
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5991 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-11 18:45:43 +00:00
skotlex
5e1c234759 - Modified battle_check_range to do a path-check on distances less than 2 (rather than 3) to avoid being able to hit through walls.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5988 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-11 16:57:37 +00:00
skotlex
42c6f89d86 - Multiple optimizations to the unit_data auto-chase upgrade, also simplified the mob and pet ai routines.
- Simplified the walk routines to half the number of timers required for walking.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5982 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-11 04:10:41 +00:00
skotlex
3faa5d199f - Changed the default of multi_hit_delay from 230 to 80 which seems more official.
- Wedding recall skills are now blocked by the nomemo mapflag.
- Skill delay for weapon types is now based on adelay (ASPD) rather than amotion (ASPD/2)
- Removed ending Endure when casting Berserk, may fix the timer mismatch issues.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5963 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-09 05:50:43 +00:00
skotlex
3b5c9e1f78 - Moved the devotion damage reduction to the block that only executes if flag is zero in battle_damage.
- skill_castcancel won't trigger on battle_damage when the passed flag is 1
- The flag in battle_heal is now used to determine whether Berserk blocks the healing or not.
- Moved the Fusion HP penalty to battle_calc_weapon_attack
- Some cleaning to use battle_heal/damage rather than pc_heal/damage where appropiate.
- cleaned up the deadly-poison hp reduction code.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5949 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-07 20:23:52 +00:00
skotlex
bb95eb8e36 - Modified the ammo checks so that ammo is consumed at the end of battle_calc_weapon_attack (should fix element being lost on final arrow).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5914 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-05 21:07:42 +00:00
skotlex
f3d9444348 - Added a define list for weapon types in pc.h
- Cleaned up pc_checkallowskill and moved the Gatling fever check to it.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5912 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-05 19:27:00 +00:00
skotlex
cbb91afccf - SC_AUTOCOUNTER now only blocks all attacks/skills when the flag is 0 (attempt to use skill)
- Autocounter triggers are now checked against flag 1 (cast-end) rather than 0.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5893 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-03 20:52:31 +00:00
skotlex
a007ab9457 - Fixed a typo in battle.c (status_get_atk invoked instead of status_get_atk_) for dual wielders.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5891 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-03 19:20:03 +00:00
skotlex
8980b04387 - Modified Rude-Attacked behaviour so that such skills only triggers when the rude-attacked count is greater than 3.
- Added config setting slaves_inherit_mode to determine whether slaves take on their master's aggressive/passive status (defaults to yes)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5890 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-03 18:43:19 +00:00
skotlex
ac3277f2b2 - Moved skill_counter_additional_effect calls to trigger right after skill_additional_effect (which means they trigger at the end of the attack motion for physical attacks)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5888 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-03 16:26:38 +00:00
skotlex
ab0693cbcf - Changed the terminology from arrow to ammo for the last update.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5830 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-31 17:43:24 +00:00
skotlex
b1a0b58110 - Changed the look field of all arrows to 1.
- Added column "RequiredArrowType" to skill_require_db, set to 1 all arrow-based skills.
- Added support for ArrowType requirement on skills. It checks for having an item equipped on the arrow-slot who's view has to match with the required arrow-type (works the same way it does for weapons).
- Skills will automatically be ranged and arrow-types when they have a arrow-requirement.
- Skills will automatically consume arrows if used with a bow and the skill is an attack weapon-based skill even if the skill_require_db doesn't specifies arrow requirements (this is for stuff like backstab used with bows)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5829 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-31 17:22:06 +00:00
skotlex
248e4968c7 - Cleaned up battle_check_target to use the jA structure defines and get rid of the is_duel variable.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5826 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-31 14:44:51 +00:00
skotlex
a36dcfd0ac - Added a missing "return 0" that fixes a crash on failed lookups on status_change_timer
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5818 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-30 21:04:17 +00:00
skotlex
39d33a2f80 - the auth function in login.c won't jstrescapecpy passwords that were 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://svn.code.sf.net/p/rathena/svn/trunk@5813 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-30 15:50:54 +00:00
skotlex
edc99399f6 - Fixed Potion Pitcher sometimes crashing the server.
- Fixed a compile warning by adjusting the acid demonstration formula.
- Added flag 2 to the skill_castnodex_db file for skills that shouldn't be affected by delay/cast reducing skills/effects.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5714 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-23 13:56:45 +00:00
skotlex
7a8371273a - Merged the unit_data structure from jA for handling unit-related data (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://svn.code.sf.net/p/rathena/svn/trunk@5707 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-22 23:58:16 +00:00
Vicious
9bd5db1642 fixed Piercing shot, desperado, fullbuster damage
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5705 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-22 17:39:11 +00:00
skotlex
f5c4a9bbfc - Some cleanups in irc.c
- Changed ASC_BREAKER's cast to 700ms
- Magic skills that ignore element now also don't take into account elemental cards.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5702 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-22 14:08:03 +00:00
Lance
9e048bbd7f * Fixed compiler warnings in battle.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5700 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-22 07:26:34 +00:00
Lance
a4bf5eb3d0 [reddozen's fix]
- Updated Full Buster's damage, status effects, and skill levels
- Bullseye now only uses 1 coin
- changed Adjustment's required SP
- changed Incerase Accuracy's effect bonuses
- changed Magical Bullet's SP cost
- changed Piercing Shot's damage and SP
- changed Desperado's range, hit count, aftercast delay, and SP
- fixed Absorb Spirit Sphere being able to remove coins
- changed Acid Demonstration's damage to the new Japanese formula

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5699 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-22 07:24:47 +00:00
LuzZza
aac4ec9ab4 Fixed duel in pk-mode (same party/same guild/alliance non-targeting issue).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5696 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-21 22:18:03 +00:00
skotlex
5cc553de0f - Small fix to prevent killer/killable states from allowing you to target 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://svn.code.sf.net/p/rathena/svn/trunk@5681 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-20 14:45:17 +00:00
skotlex
cee086fece - Fixed handling of the char_gm_read config for packet 0x2af7 (reloadgmdb)
- Added battle_config debuff_on_logout which removes Asura's SP regen delay and Strip-Equip effects on logout when set to yes (default).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5644 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-17 14:09:54 +00:00
MasterOfMuppets
49ac4b2386 Update NJ_ZENYNAGE to deal a random ammount of damage depending on its skill lvl.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5632 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-16 23:01:54 +00:00
skotlex
b9b10700aa - Added battle config options item_rate_adddrop, item_drop_add_min and item_drop_add_max to control drop rate of card-acquired loot bonuses.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5610 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-15 14:58:04 +00:00
skotlex
2f09d39c17 - Fixed incorrect range check in autospell2 triggers.
- 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://svn.code.sf.net/p/rathena/svn/trunk@5598 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-14 17:51:42 +00:00
skotlex
26841613d9 - Status_check_skilluse again does the status_isdead check, but only on non-skills checks.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5597 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-14 14:23:59 +00:00
skotlex
8cba6f1973 - HW_GRAVITATION now ignores elemental modifiers.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5591 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-13 19:34:15 +00:00
skotlex
2f1e8fcdaa - Added function battle_calc_gvg_damage for gvg related damage reductions. Fixes Gravitation being reduced as well as Pressure overriding max-castles restriction.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5588 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-13 17:26:45 +00:00
skotlex
f5359b3bbc - Corrected char-server parameters so that the subnet config file is the third parameter, not the second (which was conflicting with inter_athena.conf's argument), thanks to foobar.
- Fixed TK and Soul Linker's position of their job entry in exp2.txt, thanks to Coltaro.
- Fixed NPC_GRANDDARKNESS targetting the enemy instead of yourself in mob_skill_db.
- Fixed Grandcross's hit and range entries in the skill_db (it had hit 5? that wasn't even a valid value from the description)
- PR_BENEDICTIO now ignores mdef
- Removed the status_isdead checks from status_check_skilluse, they are now done only on the skill_castend_* functions.
- Fixed NPC_SELFDESTRUCTION not doing the correct damage to oneself.
- Fixed chatlog's x/y column capacity.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5584 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-13 14:49:16 +00:00
Vicious
173221b52e more ninja/gs work
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5572 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-11 16:12:04 +00:00
skotlex
dd2012602d - Cleaned up the Skillbreaker implementation, HP gaining happens at level 5 now.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5567 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-10 21:11:45 +00:00
skotlex
8fe81d12a3 - Changed div behaviour. Skills with div above zero will get their total damage increased by the number of hits, div less than zero is just for "show", total number of hits displayed is abs(div), but damage isn't increased by number of hits.
- Adjusted several skill damage equations to make up for this.
- Moved the Shield Chain soul-linked bonus to the second layer.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5564 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-10 18:16:47 +00:00
blackhole89
f92652ee92 GS_MAGICALBULLET implementation: declaring variables after case: without defining a block of {}, using something weird called atn_rand(something) instead of just rand. Fixed.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5563 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-10 16:54:18 +00:00
Vicious
6a9cccbf46 some ninja/gs work
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5561 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-10 15:58:22 +00:00
Vicious
458a75780e fixing max_weapon_size
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5541 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-09 21:02:48 +00:00
skotlex
8309da5f58 - Made Magic Crasher a BF_WEAPON attack.
- 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://svn.code.sf.net/p/rathena/svn/trunk@5536 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-09 19:14:21 +00:00
Vicious
c4d6af569a more ninja/gs update
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5535 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-09 18:39:57 +00:00
skotlex
26374a61c1 - Moved a bunch of sc_effects that should be cancelled on hit from mob_damage/pc_damage to battle_damage.
- Changed ITEM_NAME_LENGTH to 50.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5533 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-09 16:54:36 +00:00
Vicious
ae8573f399 * included MAX_WEAPON_SIZE for flexible weapon types
* more ninja/GS work

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5527 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-09 05:43:51 +00:00
Vicious
a3d320f902 more skill fix.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5524 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-09 00:56:11 +00:00
Vicious
ab4248e6b8 Some more skill fix.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5522 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-08 19:43:20 +00:00
Vicious
934151fee6 some random battle.c edit. /ho
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5504 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-07 23:16:05 +00:00
skotlex
39b2650cf0 - skill_blown flag&0x40000 now knocks back in a random direction.
- Some small cleanups to prevent skill_blown execution when the distance is 0 or the target couldn't be knocked back.
- WZ_STORMGUST now knocks back on a random direction.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5484 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-07 17:06:15 +00:00
skotlex
445fa07fa2 - Some corrections due to the guild skill position change.
- Removed file todo-for-stable as it's impossible to keep it updated :X


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5479 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-07 04:15:39 +00:00