getiteminfo.txt 822 B

1234567891011121314151617181920212223
  1. //===== rAthena Script =======================================
  2. //= Sample: Getiteminfo
  3. //===== By: ==================================================
  4. //= Lupus
  5. //===== Current Version: =====================================
  6. //= 20121003
  7. //===== Description: =========================================
  8. //= Demonstrates the 'getiteminfo' command.
  9. //============================================================
  10. prontera,156,179,6 script test_getiteminfo 117,{
  11. mes "Please enter an item ID.";
  12. input .@value;
  13. // This line uses an INTERNAL function of your client to show item name by its ID!
  14. // ^nItemID^XXXX -> Item Name
  15. mes "Item ID: "+.@value+" ^nItemID^"+.@value;
  16. mes "Current item info:";
  17. for(set .@id,0; .@id<14; set .@id,.@id+1)
  18. mes " getiteminfo("+.@value+","+.@id+") = "+getiteminfo(.@value,.@id);
  19. close;
  20. }