Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - shop card_convert -1,909:-1
- prontera,150,181,5 script Card Converter 757,{
- callshop "card_convert",2;
- npcshopattach "card_convert";
- message strcharinfo(0),"Only Insert Cards.";
- end;
- OnSellItem:
- set .@size,getarraysize( @sold_nameid );
- for( set .@i,0; .@i < .@size; set .@i,.@i + 1 )
- if( getiteminfo( @sold_nameid[.@i],2 ) == 6 && @sold_nameid[.@i] != 4013 && @sold_nameid[.@i] != 4018 ){
- delitem @sold_nameid[.@i],@sold_quantity;
- set .@sold,.@sold + @sold_quantity;
- }
- if( .@sold ){
- mes "Exchanged "+.@sold+" cards to "+.@sold+" x "+getitemname( .itemid );
- getitem .itemid,.@sold;
- }else{
- mes "Gained nothing..only accept cards.";
- }
- close;
- OnInit:
- set .itemid,512;
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment