From 33c698258a8a54483348ae8acc47d596603920ca Mon Sep 17 00:00:00 2001 From: brianluau Date: Tue, 16 Mar 2010 21:14:33 +0000 Subject: - Added documentation for 'setiteminfo', follow up to r9938. (bugreport:3360) - Added @reloadmobdb to the custom Floating Rates script. - Added a missing check in THQS. (bugreport:4107) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14264 54d463be-8e91-2dee-dedb-b68131a5f0ec --- doc/script_commands.txt | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index bbeb8b9ef..e4160fc54 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -2593,7 +2593,7 @@ Valid types are: if = 0, then monsters don't drop it at all (rare or a quest item) if = 10000, then this item is sold in NPC shops only 4 - sex; 5 - equip; 6 - weight; 7 - atk; 8 - def; 9 - range; - 10 - slot; 11 - look; 12 - elv; 13 - wlv; + 10 - slot; 11 - look; 12 - elv; 13 - wlv; 14 - view id Check sample in nps\sample\getiteminfo.txt @@ -2993,6 +2993,7 @@ currently has active. Valid types are: 3 - Pet friendly level (intimacy score). 1000 is full loyalty. 4 - Pet hungry level. 100 is completely full. 5 - Pet rename flag. 0 means this pet has not been named yet. + --------------------------------------- *gethominfo() @@ -3005,6 +3006,7 @@ This function works as a direct counterpart of 'getpetinfo': 4 - Hungry level. 100 is completely full. 5 - Rename flag. 0 means this homunculus has not been named yet. 6 - Homunculus level + --------------------------------------- @@ -6239,10 +6241,30 @@ Example 1: --------------------------------------- +*setiteminfo(,,) + +This function will set some value of an item. +Returns the new value on success, or -1 on fail (item_id not found or invalid type). + +Valid types are: + 0 - Buy Price; 1 - Sell Price; 2 - Item Type; + 3 - maxchance (Max drop chance of this item e.g. 1 = 0.01% , etc.. + if = 0, then monsters don't drop it at all (rare or a quest item) + if = 10000, then this item is sold in NPC shops only + 4 - sex; 5 - equip; 6 - weight; 7 - atk; 8 - def; 9 - range; + 10 - slot; 11 - look; 12 - elv; 13 - wlv; 14 - view id + +Example: + +setiteminfo 7049,6,999; // Stone now weighs 999 + +--------------------------------------- + *setitemscript(,<"{ new item script }">{,}); Set a new script bonus to the Item. Very useful for game events. You can remove an item's itemscript by leaving the itemscript argument empty. +Returns 1 on success, or 0 on fail (item_id not found or new item script is invalid). Type can optionally be used indicates which script to set (default is 0): 0 - Script 1 - OnEquip_Script -- cgit v1.2.3-60-g2f50