root/npc/sample/getiteminfo.txt @ 6

Revision 1, 463 bytes (checked in by jinshiro, 17 years ago)
Line 
1//by Lupus
2
3prontera,156,179,6      script  test_getiteminfo        117,{
4        mes "Please enter an item ID (501 ... 14000)";
5        input @value;
6//WOW! this line uses INTERNAL function of your client to show item name by its ID!
7// ^nItemID^XXXX -> Item Name
8        mes "Item ID: "+@value+" ^nItemID^"+@value;
9        mes "Current Item info:";
10        set @id,0;
11L_LOOP:
12        mes " getiteminfo("+@value+","+@id+") = "+getiteminfo(@value,@id);
13        set @id,@id+1;
14        if(@id<14) goto L_LOOP;
15        close;
16}
Note: See TracBrowser for help on using the browser.