getequipcardid.txt 870 B

12345678910111213141516171819202122232425
  1. //===== rAthena Script =======================================
  2. //= Sample: Getequipcardid
  3. //===== By: ==================================================
  4. //= Lupus
  5. //===== Last Updated: ========================================
  6. //= 20121003
  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. set @id,getequipid(1);
  14. set @ref,getequiprefinerycnt(1);
  15. mes "Your hat is... "+getitemname(@id)+"...";
  16. if(@ref) mes "It has been refined "+@ref+" times.";
  17. mes "Card Slot 0:"+getequipcardid(1,0)+" 1:"+getequipcardid(1,1);
  18. mes "Card Slot 2:"+getequipcardid(1,2)+" 3:"+getequipcardid(1,3);
  19. close;
  20. }
  21. mes "Nothing?";
  22. emotion e_hmm;
  23. close;
  24. }