Revision 1, 463 bytes
(checked in by jinshiro, 17 years ago)
|
|
Rev | Line | |
---|
[1] | 1 | //by Lupus |
---|
| 2 | |
---|
| 3 | prontera,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; |
---|
| 11 | L_LOOP: |
---|
| 12 | mes " getiteminfo("+@value+","+@id+") = "+getiteminfo(@value,@id); |
---|
| 13 | set @id,@id+1; |
---|
| 14 | if(@id<14) goto L_LOOP; |
---|
| 15 | close; |
---|
| 16 | } |
---|