1657 Commits

Author SHA1 Message Date
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
b8ebd2882b - Solved an ambiguous if in mob_dead.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7026 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-07 03:36:01 +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
5e249646fc - Some cleaning of mob_damage, added a default case when attacked to retaliate to whatever attacked the mob.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7017 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-06 21:05:10 +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
a8c05f7b22 Forgot something
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7002 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-06 03:24:40 +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
0c12ec4df6 - Removed a few useless lines.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6991 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-05 21:33:35 +00:00
skotlex
29e811b743 - Fixed a pair of signed/unsigned mismatch comparison warnings in pc_bonus. Thanks to Nuisance for complaining.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6987 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-05 19:48:02 +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
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
cb8cc2d8a7 - Moved setting a mob's level from mob_spawn to status_calc_mob, resetting their level on death has also been removed (as it is handled now on spawn)
- Fixed a bug in status_revive
- Updated Holy Cross, Investigate and Finger Offensive to be usable by all weapons.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6938 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-02 16:27:21 +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
a13c1e1179 - Uncommented the npc_debug_warps code.. oops.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6930 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-02 13:22:58 +00:00
LuzZza
e0ed8401c4 Typo fix.
Added VC6 project files.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6929 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-02 08:32:19 +00:00
Lance
f86847888e git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6927 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-06-02 03:38:56 +00:00
skotlex
e06f6f83cd - Corrected some signed/unsigned comparisons corrections which were incorrect.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6926 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-02 03:04:42 +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
26d39da060 - Fixed being unable to unequip stuff while the storage is open.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6920 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-01 23:19:18 +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