getequipcardid.txt 895 B

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