getiteminfo.txt 830 B

1234567891011121314151617181920212223
  1. //===== rAthena Script =======================================
  2. //= Sample: Getiteminfo
  3. //===== By: ==================================================
  4. //= Lupus
  5. //===== Last Updated: ========================================
  6. //= 20140208
  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(.@id = 0; .@id <= 16; .@id++)
  18. mes " getiteminfo(" + .@value + "," + .@id + ") = " + getiteminfo(.@value,.@id);
  19. close;
  20. }