getequipcardid.txt 991 B

12345678910111213141516171819202122232425262728293031323334
  1. //===== eAthena Script =======================================
  2. //===== By: ==================================================
  3. //= Lupus
  4. //= Shows your HAT's slots IDs
  5. //= Use it for some checks... e.g.
  6. //= is your EQUPPED weapon has FIRE property?
  7. //= is your EQUPPED item produced?
  8. //============================================================
  9. prontera,155,177,4 script Check My Hat 810,{
  10. mes "Checking your head...";
  11. set @ref,0;
  12. if (getequipisequiped(1)) goto L_CHECK1;
  13. mes "Nothing?";
  14. emotion e_hmm;
  15. close;
  16. L_CHECK1:
  17. set @id,getequipid(1);
  18. if(getequipisidentify(1)) goto L_CHECK2;
  19. mes "How can you wear not identified hats?";
  20. npctalk "You're a cheater!";
  21. emotion e_wah;
  22. close;
  23. L_CHECK2:
  24. set @ref,getequiprefinerycnt(1);
  25. mes "Your hat is... "+getitemname(@id)+"...";
  26. if(@ref)mes "It has been refined "+@ref+" times.";
  27. mes "Card Slot 0:"+getequipcardid(1,0)+" 1:"+getequipcardid(1,1);
  28. mes "Card Slot 2:"+getequipcardid(1,2)+" 3:"+getequipcardid(1,3);
  29. close;
  30. }