Advertisement
johnlol

Cash Convert V3

May 4th, 2019
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. prontera,181,170,5  script  Cash Convert    1_M_SIGNMCNT,{
  2. dispbottom "You currently have " +#CASHPOINTS+ " Cash Points";
  3. setarray .@CoinID[0],7227,7539;
  4.  
  5. for( set .@i,0; .@i < getarraysize( .@CoinID ); set .@i,.@i + 1 )
  6.     set .@Menu$,.@Menu$ + getitemname( .@CoinID[.@i] )+":";
  7. mes "Each ^006400 2 ^000000^B8860BCash Points^000000.";
  8. set .@i,( select( .@Menu$ ) - 1 );
  9. if( #CASHPOINTS < 2 ){
  10.     mes "Sorry but you didnt have^006400 2 ^000000^B8860BCash Points^000000.";
  11. }else{
  12.     mes "How many you want ?";
  13.     mes "Amount :^006400 1 ^000000~ "+( #CASHPOINTS / 2 );
  14.     input .@Amount,0,( #CASHPOINTS / 2 );
  15.     if( .@Amount ){
  16.         set #CASHPOINTS,#CASHPOINTS - ( .@Amount * 2 );
  17.         getitem .@CoinID[.@i],.@Amount;
  18.         mes "^FF00FFDone^000000";
  19.     }
  20. }
  21. close;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement