diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-05 11:34:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-07-26 21:03:05 +0300 |
commit | a564a6dd14b5ed10020e6b9fb39fe71c749b3e05 (patch) | |
tree | eb86d91c4de42c32ec634a32aeb14b14cbc956ee /doc/sample/getiteminfo.txt | |
parent | 556af4de983b8442548c7e0da01a7cf0dfc1aa42 (diff) | |
download | hercules-a564a6dd14b5ed10020e6b9fb39fe71c749b3e05.tar.gz hercules-a564a6dd14b5ed10020e6b9fb39fe71c749b3e05.tar.bz2 hercules-a564a6dd14b5ed10020e6b9fb39fe71c749b3e05.tar.xz hercules-a564a6dd14b5ed10020e6b9fb39fe71c749b3e05.zip |
Remove conf dir.
Diffstat (limited to 'doc/sample/getiteminfo.txt')
-rw-r--r-- | doc/sample/getiteminfo.txt | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/doc/sample/getiteminfo.txt b/doc/sample/getiteminfo.txt deleted file mode 100644 index 57407c072..000000000 --- a/doc/sample/getiteminfo.txt +++ /dev/null @@ -1,38 +0,0 @@ -//===== Hercules Script ======================================= -//= Sample: Getiteminfo -//===== By: ================================================== -//= Lupus -//===== Current Version: ===================================== -//= 20131225 -//===== Description: ========================================= -//= Demonstrates the 'getiteminfo' command. -//============================================================ - -prontera,156,179,6 script test_getiteminfo 4_F_KAFRA1,{ - mes "Please enter an item ID."; - input .@value; - - // This line uses an INTERNAL function of your client to show item name by its ID! - // ^nItemID^XXXX -> Item Name - mes "Item ID: "+.@value+" ^nItemID^"+.@value; - - mes("Current item info:"); - mesf("Buy Price: %d", getiteminfo(.@value, ITEMINFO_BUYPRICE)); - mesf("Sell Price: %d", getiteminfo(.@value, ITEMINFO_SELLPRICE)); - mesf("Type: %d", getiteminfo(.@value, ITEMINFO_TYPE)); - mesf("Max drop chance: %d.%02d", getiteminfo(.@value, ITEMINFO_MAXCHANCE) / 100, getiteminfo(.@value, ITEMINFO_MAXCHANCE) % 100); - mesf("Sex: %d", getiteminfo(.@value, ITEMINFO_SEX)); - mesf("Equip location: %d", getiteminfo(.@value, ITEMINFO_LOC)); - mesf("Weight: %d.%d", getiteminfo(.@value, ITEMINFO_WEIGHT) / 10, getiteminfo(.@value, ITEMINFO_WEIGHT) % 10); - mesf("Attack: %d", getiteminfo(.@value, ITEMINFO_ATK)); - mesf("Defense: %d", getiteminfo(.@value, ITEMINFO_DEF)); - mesf("Range: %d", getiteminfo(.@value, ITEMINFO_RANGE)); - mesf("Slots: %d", getiteminfo(.@value, ITEMINFO_SLOTS)); - mesf("Subtype: %d", getiteminfo(.@value, ITEMINFO_SUBTYPE)); - mesf("Equip Level: %d", getiteminfo(.@value, ITEMINFO_ELV)); - mesf("Weapon Level: %d", getiteminfo(.@value, ITEMINFO_WLV)); - mesf("View ID: %d", getiteminfo(.@value, ITEMINFO_VIEWID)); - mesf("MATK: %d", getiteminfo(.@value, ITEMINFO_MATK)); - mesf("View Sprite: %d", getiteminfo(.@value, ITEMINFO_VIEWSPRITE)); - close; -} |