summaryrefslogtreecommitdiff
path: root/server/sample/getiteminfo.txt
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-29 22:09:19 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-29 22:09:19 +0300
commit39fa4991f1ce803da04fae342d5ab64111a3df5e (patch)
tree585dbfb0d6800a8a3bc4d3bec3eb8d41e23894e1 /server/sample/getiteminfo.txt
parent61d35617036a2170160e91fdc8f93410ae7d0e3e (diff)
downloaddocs-39fa4991f1ce803da04fae342d5ab64111a3df5e.tar.gz
docs-39fa4991f1ce803da04fae342d5ab64111a3df5e.tar.bz2
docs-39fa4991f1ce803da04fae342d5ab64111a3df5e.tar.xz
docs-39fa4991f1ce803da04fae342d5ab64111a3df5e.zip
Add all existing server docs.
Diffstat (limited to 'server/sample/getiteminfo.txt')
-rw-r--r--server/sample/getiteminfo.txt23
1 files changed, 23 insertions, 0 deletions
diff --git a/server/sample/getiteminfo.txt b/server/sample/getiteminfo.txt
new file mode 100644
index 0000000..89f9a66
--- /dev/null
+++ b/server/sample/getiteminfo.txt
@@ -0,0 +1,23 @@
+//===== 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:";
+ for (.@id = 0; .@id < 14; ++.@id)
+ mes " getiteminfo("+.@value+","+.@id+") = "+getiteminfo(.@value,.@id);
+ close;
+}