2386 Commits

Author SHA1 Message Date
Lance
93aac53572 - Fix for #102547
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7235 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-18 09:11:43 +00:00
Lance
a800be65ec git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7234 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-06-18 02:54:17 +00:00
Lance
61cf41923c * [Removed]:
- Large part of scripted mob control commands are removed.
- Large part of scripted player control commands are removed.
- Scripted mob slaves changing master ID.

[Added]: 
- Unit control commands.
- CALLBACK_NPCCLICK for scripted mobs, added this to db/const.txt too.
- Macro RECURSIVE_MASTER_CHECK in battle.c

[Modified]: 
- buildin_skilluseid and buildin_skillusepos -> buildin_unitskilluseid and buildin_unitskillusepos.
- md->callback_flag to short (double word).	[Lance]

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7233 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-18 02:42:41 +00:00
skotlex
7e10a0586c - Added IG_LottoBox for that tricky Lotto Box item.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7227 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-17 17:13:57 +00:00
skotlex
370e1df5bd - Devotion absorbed damage will now appear to come from oneself (instead of the original attacker changing directions towards the Crusader)
- Updated clif_refres to send inventory, cart, and weight info.
- Fixed intif_guild_memberinfoshort to not leave a dangling pointer when someone logs out <.<
- Cleaned up a bit guild_check_member


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7226 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-17 16:23:57 +00:00
Lance
58b728cc4a * [Added]:
- buildin_checkcell, buildin_mobwarp, buildin_pcattack.
* [Improved]:  
- buildin_skilluseid and buildin_skillusepos to accept a few more arguments.
- mob_script_callback to return sucess value.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7219 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-17 07:48:10 +00:00
skotlex
bf907b14ae - Fixed the party HP packets to send max HP 10000 and scale HP accordingly when the player's HP doesn't fits in the packet's field. Fixes HP bars not correctly displaying the % of life when max HP is above 32k.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7218 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-17 06:52:06 +00:00
skotlex
3f63aa775e - Fixed option value being reset'ed on login (fixes cart/peco/falcon being lost)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7217 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 22:31:16 +00:00
skotlex
24159ab464 - Corrected @speed to alter your base speed instead of battle one. Means the change remains for much longer (until status_calc_pc is invoked, which could be due to equipping/unequipping stuff)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7214 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 19:59:22 +00:00
skotlex
ece6f8f781 - Removed unused variable aspd_rate in map_session_data.
- Modified aspd_rate in status_data to hold aspd change on a base of 1000 = 100% rather than 100 = 100%. All status changes that affect aspd have been updated. Study and Single Action should now correctly give +0.5% aspd per level.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7213 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 19:49:28 +00:00
skotlex
974277a787 - Modified the bNoMagicDamage/bNoWeaponDamage bonuses to be a 0-100 setting. Meaning you can do bonus bNoMagicDamage,50; To make all magic damage be reduced by half. This bonus stack, so two cards with bNoMagicDamage,50 will give magic immunity.
- Removed setting gtb_pvp_only and replaced it with gtb_sc_immunity which specifies the threshold before the bNoMagicDamage starts blocking support statuses as well. ie: gtb_sc_imunity: 75 will mean that "bonus bNoMagicDamage,70;" reduces magic damage by 70%, but does not blocks heal or support status, while "bonus bNoMagicDamage,80;" does.
- Updated GTB's card script to be "bonus bNoMagicDamage,100;"


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7212 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 19:35:27 +00:00
skotlex
b45cf7f99c - Whoops, fixed compilation issue on mob_dead.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7210 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 16:44:27 +00:00
skotlex
5ebc258ce8 - Removed db_tables.sql as it's no longer used.
- the mvp_sd is removed when the mob is the emperium and there's no killer/exp-awarded (assumed killed by script), this prevents the on-kill event from triggering and giving the castle to whoever damaged the most the emperium without destroying it.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7208 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 15:39:16 +00:00
Lance
d79df825cd - Removed return from CALLBACK_ASSIST
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7205 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 15:11:39 +00:00
Lance
68a5b7bea5 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7204 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-06-16 14:52:44 +00:00
Lance
971900f126 * [Added]:
- Added option #25 to buildin_setmobdata to set the callback_flag.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7203 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 14:46:15 +00:00
Lance
397f255a23 * [Improved]:
- Cleaned up Custom Mob Script Callback codes. Looks much better now :B.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7202 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 14:42:16 +00:00
Lance
cb523907f0 * [Fixed]:
- intif_parse_RenamePetOk for not compatible with ANSI-C initialzation specification.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7199 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 07:07:02 +00:00
skotlex
c185d6ae82 - Merged Adam's patch to let the char-server handle validation of pet-name-change requests through the allowed char letters config.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7192 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 03:05:29 +00:00
skotlex
196a7240bb - Fixed "wedding_ignore_palette: yes" not working when relogging with the gear already equipped.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7189 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-15 22:23:47 +00:00
skotlex
981af2f058 - Added blocking of the Kick skills when you are a Soul Linker.
- Added enabling to turn off a kick-stance regardless of class.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7187 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-15 21:24:57 +00:00
skotlex
a14314da55 - Altered a bit how status_set_viewdata behaves in regards to Wedding/Xmas options.
- Added back OPTION_XMAS, but the actual value is missing!
- Corrected chrif_save so that the player is not set offline on map-change.
- Added change-look support in pc_setoption when specifying OPTION_XMAS
- Fixed clif_parse_RemoveOption removing all options instead of just Falcon/Cart/Peco


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7183 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-15 18:56:54 +00:00
skotlex
553c87f39e - Fixed clif_send not sending packets to SELF when specifying AREA if the source is not on the map yet.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7180 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-15 14:48:35 +00:00
skotlex
63c259b4c8 - Fixed and cleaned up script command 'equip'
- Fixed 'autoequip' items.
- Fixed Aspd not being updated in your status window after Agi/Dex increasing statuses take effect.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7179 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-15 14:15:16 +00:00
skotlex
38f30d053d - Fixed map_nick2sd so that searching for "Adam" will not match a char named "Adam Smith". Thanks to Adam for reporting it out.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7172 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-15 01:40:59 +00:00
skotlex
f9c36c217e - Modified how luk reduces status changes by reducing the gap. Eg: resist = vit; resist += (max - resist)*luk/300;
- Added battle settings pc_max_sc_luk/mob_max_sc_luk to handle which is the luk threshold at which you gain inmunity (defaults to 300).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7168 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-14 20:10:36 +00:00
blackhole89
f7fa729e23 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7164 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-06-14 17:13:56 +00:00
skotlex
c811ab0d88 - blocked again skill usage during marionette.
- Some minor code cleanups.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7162 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-14 15:35:25 +00:00
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
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