getequipcardid.txt 960 B

123456789101112131415161718192021222324252627
  1. //===== rAthena Script =======================================
  2. //= Sample: Getequipcardid
  3. //===== By: ==================================================
  4. //= Lupus
  5. //===== Last Updated: ========================================
  6. //= 20170702
  7. //===== Description: =========================================
  8. //= Demonstrates the 'getequipcardid' command.
  9. //============================================================
  10. prontera,155,177,4 script Check My Hat 810,{
  11. .@slot = EQI_HEAD_TOP;
  12. mes "Checking your head...";
  13. if (getequipisequiped(.@slot)) {
  14. .@id = getequipid(.@slot);
  15. .@ref = getequiprefinerycnt(.@slot);
  16. mes "Your hat is... " + getitemname(.@id) + "...";
  17. if (.@ref)
  18. mes "It has been refined " + .@ref + " times.";
  19. mes "Card Slot 0:" + getequipcardid(.@slot,0) + " 1:" + getequipcardid(.@slot,1);
  20. mes "Card Slot 2:" + getequipcardid(.@slot,2) + " 3:" + getequipcardid(.@slot,3);
  21. close;
  22. }
  23. mes "Nothing?";
  24. emotion ET_SCRATCH;
  25. close;
  26. }