1657 Commits

Author SHA1 Message Date
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
227f21ee71 - Fixed a packet_ver error with the #defines in clif_spawn.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7145 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 21:29:04 +00:00
skotlex
324bf6e522 - Fixed compilation error on clif.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7135 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 17:41:04 +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
d9b25389a7 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7130 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-06-13 15:32:46 +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
a51eda844c Another mistake.. shit
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7126 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 10:45:43 +00:00
Lance
4a226bec3a Fix again >_<
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7125 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 10:40:56 +00:00
Lance
a9d6cac947 Fix
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7124 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 10:40:14 +00:00
Lance
161ef37fc6 Fix
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7122 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 10:34:21 +00:00
Lance
63edd59586 Fix
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7121 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 10:21:32 +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
c9702bfa25 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7076 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-06-09 18:09:17 +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
Lance
3992ed56a8 * restored all damaged japanese comments in skill.c and converted it to utf8 [theultramage]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7062 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-09 07:09:41 +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
Lance
118672f2f4 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7047 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-06-08 15:15:48 +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
Lance
530767d5e1 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7045 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-06-08 13:49:31 +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