791 Commits

Author SHA1 Message Date
skotlex
604f5b40fe - Updated mob_npc_warp to a three-state config switch. 0 disables. 1 enable only on warps that don't lead to nobranch maps. 2 - enable on all warps.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7048 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-08 15:44:04 +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
skotlex
f69a49a292 - Fixed Sense using mdef instead of mdef2
- Fixed item-skills not showing up on login.
- Cleaned up clif_parseLoadEndAck, by testing which packets are required only on first-login and which ones are required on all map-changes. Skill-tree, Exp, Skill Points and most of the basic status are no longer sent on map-change (items, carts, zeny still need to be sent one very map-change).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7042 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-08 00:21:13 +00:00
skotlex
a5ae39dd6c - Fixed the mob state not being set to Berserk/Angry correctly after the mob reaches the target's location.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7040 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-07 22:53:06 +00:00
skotlex
b6a5dc4547 - Added config setting mob_npc_warp, when set to yes, enables mobs to be warped between maps when stepping on a npc-warp.
- Added monster_ai setting &64, when enabled makes a mob run to any nearby npc-warp when their current target has switched maps.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7039 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-07 20:15:23 +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
0ce7ab026f - Fixed item info not displaying the found item id... ~.~
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7036 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-07 15:41:40 +00:00
skotlex
f3b27cf90d - Fixed item info not displaying the weight value properly.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7035 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-07 15:37:35 +00:00
skotlex
17d6fd86cc - Adjusted status resistances and durations taking as base Viccious's info from the kro guidebook.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7034 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-07 15:27:31 +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
d9e0f46dc7 - Adjusted several sc rate/time reductions as pointed out by Playtester.
- Luk now plays a luk/10 reduction role rather than a luk/3 one.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7032 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-07 14:35:24 +00:00
skotlex
d3ffb31cc4 - Removed char_nick2id from char-sql server as it's no longer needed.
- Fixed quitting the map server not properly saving the storage before deleting it.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7030 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-07 13:19:12 +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
Lance
dc71d18c29 * [Improved]:
- mob_dead not to remove script controlled monsters with player sprites. (can be removed later using removemob command, it can be resurrected too :D)
* [Added]:
- buildin_mobdeadsit :D 

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7024 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-07 02:51:50 +00:00
Lance
f5b5288a32 * [Fixed]:
- temp++ gets issued before if(mvp_damage<(unsigned int)md->dmglog[i].dmg) in mob_damage. Thanks to seahorsix.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7023 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-07 02:03:22 +00:00
Lance
b24a75bdba * [Fixed]:
- Corrected login-server SQL to use *((ulong *)p) instead of (ulong)p 

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7022 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-07 01:51:04 +00:00
Lance
a6f2c2e5ed * [Optimized]:
- list and size not being initialized (size get intialized in default: switch case) Eliminated default case and initialized list and size at the beginning. 

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7021 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-07 01:26:17 +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
skotlex
16a63fb07d - Fixed firewall counter going down by 2 each hit rather than 1.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7015 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-06 19:54:28 +00:00
skotlex
9960e99f06 - Fixed Soul Burn not zapping away all SP.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7012 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-06 19:31:16 +00:00
skotlex
38aacdd553 - The monsters can level up setting will not take effect when the mob's level is LESS than their db counter-part (should prevent under-leveling causing underflows and semi-immortal mobs)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7005 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-06 16:12:44 +00:00
skotlex
4f89660d1a - cleaned up status_check_skilluse some to use status_data variables.
- Fixed mvp-exp calculations being messed up with more than one attacker.
- Changed the mob exp race bonus so that each player gets their own bonus, rather than the killer's bonus applying to everyone.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7003 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-06 14:16:22 +00:00
Lance
1a63e4205f * [Fixed]:
- Allocation of event_list in guild_npc_request_info to aCalloc so memcpy(ev->name,event,strlen(event)) will have a null terminator.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7001 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-06 03:21:32 +00:00
skotlex
7847189eae - Fixed a crash when using SL_SMA and the "combo" ain't ready.
- Hopefully fixed changing a mob's class causing them to get all sort of stat bonuses due to the mobs-level-up setting.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6994 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-05 23:01:06 +00:00
skotlex
5ec0f300c2 - Cleaned up code for SC_MINDBREAKER.
- Changed hit, flee, cri, flee2, def2 and mdef2 to signed short, def, mdef to signed char to correctly account for cards with penalties in said stats.
- Added cap_value checks in all of the status_calc_* return paths to make sure no stat is invalid.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6986 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-05 19:17:44 +00:00
skotlex
90764dcab4 - Fog of Wall won't affect the caster now in any way.
- Added a missing status_calc_mob on mob_spawn_guardian_sub
- Added clif_fixpos packets before attacking for the first time to clear any position sync issues with the client.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6985 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-05 18:35:41 +00:00
skotlex
166265be07 - Fixed skill_unitsetting using layout->count for the for instead of group->count
- Added SC_INCDEXRATE/SC_INCAGIRATE. NPC_POWERUP/NPC_AGIUP now correctly increase dex/agi by 40% per level.
- Fixed char-sql server not deleting character variables


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6984 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-05 17:59:28 +00:00
skotlex
87f9a3668b - Corrected cloaking not ending on attack if you are near a wall.
- Moved define cap_value to map.h as it's quite handy.
- Updated pc_bonus to use cap_value on all status_data modifiers to prevent overflows/underflows.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6979 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-05 15:05:49 +00:00
shadow
966c0e57c0 Fixed @mi/@mobinfo not showing the name collumns correcly
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6974 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-05 08:56:26 +00:00
MasterOfMuppets
300dfd7070 Solved the bug that made firewalls only castable a few times until you relogged. Thanks to Euph for the fix.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6959 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-03 18:25:10 +00:00
skotlex
e62f6cc8f9 - Added variable other_mapserver_count to chrif.c which holds total count of connected map-servers. By using this we prevent sending unnecessary packets to the char-server when there's no more map-servers connected.
- Affected packets are whispers, announces, party messages, guild messages.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6955 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-03 15:48:46 +00:00
codemaster
47d62dd031 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6954 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-06-03 01:56:56 +00:00
skotlex
d75974f962 - Fixed a bug in unit_can_reach_bl which breaks path seeking when the target is near obstacles.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6950 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-02 23:36:13 +00:00
MasterOfMuppets
f4348ee1f4 Updated offensive use of Sanctuary to function like on the official servers.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6946 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-02 19:46:54 +00:00
MasterOfMuppets
902848d1b5 Changed the interval between waterballs from 150 to 250 milliseconds.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6944 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-02 18:51:08 +00:00
skotlex
dc6dd9b533 - Corrected clif_parse_takeitem to ALWAYS return a NAK packet when it fails
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6943 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-02 18:24:29 +00:00
MasterOfMuppets
9acadb7b13 Removed the walk delay from firewall and changed its knockback to 1 tile to make it act more like in the official servers.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6941 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-02 18:14:28 +00:00
skotlex
00082797ae - Some cleaning of the mob slave ai.
- Moved MOB_SLAVEDISTANCE to mob.h
- NPC_CALLSLAVES now uses the slave-distance previously mentioned.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6940 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-02 17:01:44 +00:00
skotlex
683b150179 - Corrected Brandish Spear to work on levels above 10.
- Updated Two-HandQuicken, One-HandQuicken to give 30 +2*lv% aspd-rate for skill levels above 10 (meant for boss casted skills)
- Fixed Spear-Quicken messing with the calc_flag


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6936 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-02 16:06:37 +00:00
skotlex
67e11cd25c - Fixed Freeze/Stone/Benedictio not changing your elemental LEVEL to 1.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6931 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-02 13:42:47 +00:00
skotlex
86514f550b - Altered status_calc_pc so that equipment scripts are ran before card-scripts.
- Fixed pc_bonus to not underflow/overflow when adjusting def/mdef.
- These two together, should fix Tao Gunka Card.
- npc_debug_warps() will now be invoked if warp_point_debug is set.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6925 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-02 02:51:34 +00:00
Lance
2e4166cbfc [Fixed]
- Yet another compilation warning. 

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6924 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-02 02:23:56 +00:00
skotlex
a06f5ed145 - Updated item_db.sql/mob_db.sql to current.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6922 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-02 00:54:21 +00:00
skotlex
1018c2c159 - Fixed NPC_SELFDESTRUCTION not showing nor dealing damage.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6919 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-01 23:12:43 +00:00
skotlex
da2ca423f9 - NPC_TRANSFORMATION/NPC_METAMORPHOSIS will now preserve the original mob without removing it when the skill level is greater than one.
- Added SC_DANCING declaration in the Status Change tables to signal it modifies Walk speed.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6918 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-01 21:35:44 +00:00
skotlex
03f8683f8c - Fixed pc_damage setting your canlog_tick even if the damage has no source (eg: poison, berserk)
- Berserk's aspd bonus now stacks with other aspd bonuses, and is unaffected by Quagmire/Forget-me-not.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6916 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-01 21:10:58 +00:00
skotlex
bbe820d3e3 - Corrected setting slaves_inherit_mode to not apply to morphosis skills.
- Added define OPTION_CART which holds the 5 cart option values.
- Corrected pc_setoption to invoke status_calc_pc when getting/removing the cart.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6914 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-01 19:21:04 +00:00
skotlex
0d344b6bb1 - Fixed @mobinfo displaying the wrong element.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6913 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-01 18:52:31 +00:00
skotlex
ceb02645f9 - Fixed Autoblitz taking into account target's luck rather than attacker's
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6910 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-01 17:44:41 +00:00
skotlex
ff4b163da3 - Fixed slaves warping endlessly to their master when the master-slave distance exceeds 30.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6909 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-01 15:03:48 +00:00