getiteminfo.txt 448 B

12345678910111213141516
  1. //by Lupus
  2. prontera,156,179,6 script test_getiteminfo 117,{
  3. mes "Please enter an item ID (501 ... 14000)";
  4. input @value;
  5. //WOW! this line uses INTERNAL function of your client to show item name by its ID!
  6. // ^nItemID^XXXX -> Item Name
  7. mes "Item ID: "+@value+" ^nItemID^"+@value;
  8. mes "Current Item info:";
  9. set @id,0;
  10. L_LOOP:
  11. mes " getiteminfo("+@value+","+@id+") = "+getiteminfo(@value,@id);
  12. set @id,@id+1;
  13. if(@id<14) goto L_LOOP;
  14. close;
  15. }