diff options
author | brianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-03-16 21:14:33 +0000 |
---|---|---|
committer | brianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-03-16 21:14:33 +0000 |
commit | 33c698258a8a54483348ae8acc47d596603920ca (patch) | |
tree | 1c32c7a31da59b8f1ccdd0ce04cadd27f0936954 /doc | |
parent | 645551a6f26352a446787c4c1794cbecb84a7fde (diff) | |
download | hercules-33c698258a8a54483348ae8acc47d596603920ca.tar.gz hercules-33c698258a8a54483348ae8acc47d596603920ca.tar.bz2 hercules-33c698258a8a54483348ae8acc47d596603920ca.tar.xz hercules-33c698258a8a54483348ae8acc47d596603920ca.zip |
- 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
Diffstat (limited to 'doc')
-rw-r--r-- | doc/script_commands.txt | 24 |
1 files changed, 23 insertions, 1 deletions
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(<type>) @@ -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(<item id>,<type>,<value>) + +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(<item id>,<"{ new item script }">{,<type>}); 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 |