yuhsing

Untitled

Sep 10th, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1.  
  2.  
  3. - shop card_convert -1,909:-1
  4.  
  5. prontera,150,181,5 script Card Converter 757,{
  6. callshop "card_convert",2;
  7. npcshopattach "card_convert";
  8. message strcharinfo(0),"Only Insert Cards.";
  9. end;
  10.  
  11. OnSellItem:
  12. set .@size,getarraysize( @sold_nameid );
  13. for( set .@i,0; .@i < .@size; set .@i,.@i + 1 )
  14. if( getiteminfo( @sold_nameid[.@i],2 ) == 6 && @sold_nameid[.@i] != 4013 && @sold_nameid[.@i] != 4018 ){
  15. delitem @sold_nameid[.@i],@sold_quantity;
  16. set .@sold,.@sold + @sold_quantity;
  17. }
  18. if( .@sold ){
  19. mes "Exchanged "+.@sold+" cards to "+.@sold+" x "+getitemname( .itemid );
  20. getitem .itemid,.@sold;
  21. }else{
  22. mes "Gained nothing..only accept cards.";
  23. }
  24. close;
  25.  
  26. OnInit:
  27. set .itemid,512;
  28. end;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment