Advertisement
plugandplaydev

Card Remover

May 21st, 2015
429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. prontera,164,175,4 script Card Remover NPC 103,{
  2. disable_items;
  3. mes "["+strnpcinfo(1)+"]";
  4. mes "Do u want to remove some cards?";
  5. if(select("Remove Card","Close") == 2 ) close;
  6. mes " ","Choose an item.";
  7. setarray .@position$[1], "Head","Body","Left hand","Right hand","Robe","Shoes","Accessory 1","Accessory 2","Head 2","Head 3";
  8. set .@menu$,"";
  9. for( set .@i,1; .@i <= 10; set .@i,.@i+1 ) {
  10. if( getequipisequiped(.@i) )
  11. set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]";
  12. set .@menu$, .@menu$ + ":";
  13. }
  14. set .@part, select(.@menu$);
  15. if( !getequipisequiped(.@part) ) {
  16. mes " ","Check Equip.";
  17. close;
  18. }
  19. if(getequipcardcnt(.@part) == 0) {
  20. mes " ","No cards compounded.";
  21. close;
  22. }
  23. successremovecards .@part;
  24. close;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement