From 21fa0901dc8723627c6970aa6eff97bc27e36533 Mon Sep 17 00:00:00 2001 From: Haru Date: Thu, 26 Dec 2013 01:34:12 +0100 Subject: Modernized syntax and fixed errors in the sample scripts Signed-off-by: Haru --- doc/sample/getiteminfo.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/sample/getiteminfo.txt') 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; } -- cgit v1.2.3-70-g09d2