822 Commits

Author SHA1 Message Date
skotlex
e74e095778 - Fixed main.sql adding a key on char_id rather than account_id for the char table.
- Cleaned up character saving in char-sql, it no longer needs to query the database to see if the player exists on each char-save, instead it checks the received data against the online-players db. 
- Added an error message on the char-server when the received player data size does not matches with the expected size (should avoid the crash that happens on such a memcpy).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7160 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-14 14:18:30 +00:00
Lance
4ef75d85f3 - A quick fix for lazy scripters -_- sheesh
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7154 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-14 08:57:38 +00:00
Lance
0ec9bef7cb * [Improved]:
- script_save_mapreg for MapregSQL Saving to display perfomance only in slow queries. 

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7150 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-14 08:00:48 +00:00
Lance
54b592fe29 * [Improved]:
- npc_parse_script to show information and remove duplicated NPCs.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7148 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-14 06:55:27 +00:00
skotlex
e4fb5dbbf7 - Updated mob_db.sql and item_db.sql to latest.
- Added account_id index to char table. Thanks to Buuyo for reporting it.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7146 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 23:49:53 +00:00
skotlex
c5909b0e34 - Marionette and Devotion will now check raw distance and ignore obstacles and the like.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7134 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 17:37:08 +00:00
skotlex
785e089deb - Added irc_channel_pass setting and prevent crashing when irc server lookup by host fails. Thanks to Trancid for the details.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7133 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 17:02:03 +00:00
Lance
6dd1c22d41 * [Fixed]:
- clif_parse_GetCharNameRequest displaying false alarm for legitimate GM snooping.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7129 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 15:32:25 +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
Lance
7a27be9727 * [Fixed]:
- buildin_npcshopitem not allocating extra 1 block of terminator.
[Added]: 
- Modified versions of Dj-Yhn's buildin_npcshopdelitem and buildin_npcshopadditem 

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7120 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 10:12:59 +00:00
skotlex
fcbec4d4e6 - Updated clif_disp_onlyself to not use dynamic memory and write directly to the player's buffer.
- Updated @noask to also tell the rejected what he has just rejected (added msg_athena entries for each of the different requests)
- Since noask already does a player lookup, updated the corresponding parsing functions to take the player rather than the player id (prevents double lookups)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7117 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 03:54:35 +00:00
skotlex
02a4f5d5ae - Fixed a pair of missing initializers in the clif storage functions.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7113 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-12 23:58:25 +00:00
skotlex
4597fbab18 - @heal no longer displays a healing animation. Fixes the client believing you couldn't be healed more than 32K.
- Now you can use any skills (except encore/dancing ones) while under Longing for Freeding.
- Now you can use any skills while under Marionette Control.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7111 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-12 21:34:38 +00:00
skotlex
0158ab793e - Fixed npc_checknear's distance check returning the opposite of what it should (false when the range is correct and viceversa)
- SL_STIN/SL_STUN have dex-reducable casting times now.
- Added a warning on item loading when an item is of equippable type but has no equippable position.
- Turning an alliance to an opposition won't work now during WoE
- Slaves can summon other mobs now. The only ones who can't do this are player summoned mobs.
- Merged the following functions for faster processing of items:
  clif_storageitemlist + clif_storageequiplist = clif_storagelist
  clif_guildstorageitemlist + clif_guildstorageequiplist = clif_guildstoragelist
  clif_itemlist + clif_equiplist = clif_inventorylist
- Increased max knockback value support to 25.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7109 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-12 21:14:28 +00:00
Lance
c165ff1eb6 * [Optimized]:
- buildin_npcshopitem memory allocation to calculate before reallocating.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7105 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-12 16:18:08 +00:00
skotlex
3b13b070e1 - Made guild member exp an unsigned int.
- Modified npc_click to receive the bl that was clicked directly. Also cleaned it up so it isn't as easy to crash the server with invalid ids <.<
- Moved npc_checknear to npc_checknear2 and added npc_checknear. The near version receives a bl, checks it's validity, and returns a TBL_NPC object, near2 does the same but doesn't checks for type NPC. The first returns a pointer, the second returns 1 on fail, 0 success.
- Also uncommented various npc_checknear calls in the code, who's idea was to comment them out so you could exploit npcs from afar with custom packets?
- Added overflow checks for bonus settings mdef_rate/def_rate.
- Added missing update of INT after a buf. 
- Small cleanup of how SC_BLEEDING works.
- Fixed party_foreach_samemap invoking the function on the CASTER instead of on the party members.
- Added clif_parse_ActionRequest_sub to handle player commands, is used from npc_click or any other function that needs to "re-route" a player's request.
- Modified clif_parse_NpcClicked to handle the different situations with different bl-objects (attack on players/mobs, click on npcs or mobs with npc attached)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7103 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-12 14:55:35 +00:00
Lance
3b9eeb4451 * [Fixed]
- Compilation warnings on guild.c and int_guild.c

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7088 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-11 05:30:23 +00:00
skotlex
55df062534 - Added structure party_data and party_member_data to the map server to hold party-specific required information about parties including Monk/TK/SG/SN states and party member count.
- party Hp updates are no longer done each time the Hp is modified, but together with the party xy timer.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7083 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-10 03:58:15 +00:00
Vicious
8e3fb1da90 fixed MoM's typo
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7081 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-10 03:13:28 +00:00
Lance
099d8d2605 * Fixed map_readafm missing strcpy(afm_name, m->name).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7080 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-10 03:02:31 +00:00
Lance
b324c2e683 * [Improved]:
- npc_click interception on BL_MOB and BL_PC to let sd act accordingly.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7079 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-10 02:19:19 +00:00
Lance
73afac7540 * [Fixed]:
- Execution of sleep/sleep2 more than once will hang the script_state.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7075 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-09 16:10:44 +00:00
skotlex
2e5660ec68 - Fixed @mapinfo displaying incorrectly maps with nosave which send you back to your last savepoint.
- Moved guild_exp_rate from a mapserver battle config setting to a char server config. It no longer modifies the total taxed exp as seen on the guild information window, but directly modifies the exp that the guild earns.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7074 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-09 15:12:53 +00:00
skotlex
2096550252 - Added an error report and correction when the map server receives a guild from the char-server with more guild members than MAX_GUILD.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7072 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-09 13:54:37 +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
MasterOfMuppets
3e901e2ef5 Fixed a typo in char_sql/char.c, thanks to Euph.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7070 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-09 13:37:53 +00:00
skotlex
51db3a7cdc - Modified guild exp to be an unsigned int rather than a signed one.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7059 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-09 03:51:18 +00:00
skotlex
668bd449ac - Fixed @skilltree printing out Unknown job for most targets used.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7056 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-08 21:00:05 +00:00
skotlex
9ce708d5fc - Cleaned clif_pvpset to not send the packet to nearby characters when the source is GM-hidden. May help fix the crash on PvP with gm-hidden characters.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7053 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-08 18:56:27 +00:00
skotlex
0fac6d3cb1 - Modified map_freeblock_unlock so that aFree errors will report the file/line that INVOKED the function rather than the function itself. NOTE: Do NOT disable the memory manager as that will break this change. This change is to be temporarily set until it can be resolved.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7049 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-08 16:02:27 +00:00
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