summaryrefslogtreecommitdiff
path: root/doc/sample/getiteminfo.txt
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-12-26 01:34:12 +0100
committerHaru <haru@dotalux.com>2013-12-30 16:08:20 +0100
commit21fa0901dc8723627c6970aa6eff97bc27e36533 (patch)
tree8890d4191c1ea44af96b6e51d8e149b1e885f043 /doc/sample/getiteminfo.txt
parenta9156de759bc444a5f7256b86f6c4bac6a1ab47d (diff)
downloadhercules-21fa0901dc8723627c6970aa6eff97bc27e36533.tar.gz
hercules-21fa0901dc8723627c6970aa6eff97bc27e36533.tar.bz2
hercules-21fa0901dc8723627c6970aa6eff97bc27e36533.tar.xz
hercules-21fa0901dc8723627c6970aa6eff97bc27e36533.zip
Modernized syntax and fixed errors in the sample scripts
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'doc/sample/getiteminfo.txt')
-rw-r--r--doc/sample/getiteminfo.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/sample/getiteminfo.txt b/doc/sample/getiteminfo.txt
index 632999f3b..89f9a66b5 100644
--- a/doc/sample/getiteminfo.txt
+++ b/doc/sample/getiteminfo.txt
@@ -3,12 +3,12 @@
//===== By: ==================================================
//= Lupus
//===== Current Version: =====================================
-//= 20121003
-//===== Description: =========================================
+//= 20131225
+//===== Description: =========================================
//= Demonstrates the 'getiteminfo' command.
//============================================================
-prontera,156,179,6 script test_getiteminfo 117,{
+prontera,156,179,6 script test_getiteminfo 4_F_KAFRA1,{
mes "Please enter an item ID.";
input .@value;
@@ -17,7 +17,7 @@ prontera,156,179,6 script test_getiteminfo 117,{
mes "Item ID: "+.@value+" ^nItemID^"+.@value;
mes "Current item info:";
- for(set .@id,0; .@id<14; set .@id,.@id+1)
+ for (.@id = 0; .@id < 14; ++.@id)
mes " getiteminfo("+.@value+","+.@id+") = "+getiteminfo(.@value,.@id);
close;
}