Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //////////////////////////////////////////////
- // LIL TROLL //
- // FEEL FREE TO MODIFY //
- ///////////////////////////////////////////
- prontera,181,162,5 script Cash To Coin 419,{
- dispbottom "You currently have "+countitem(7517)+" "+getitemname(7517)+".";
- dispbottom "You currently have " +#CASHPOINTS+ " Cash Points";
- set @name$,"^FF0000Trader^000000";
- mes @name$;
- mes "What do you want to do?";
- next;
- switch(select("^006400Information^000000","^FF0000Convert^000000")) {
- case 1:
- mes @name$;
- mes "I can ^FF0000convert^000000 your ^C0C0C0Cash^000000 into ^FFD700Gold^000000 Coins and vice versa.";
- mes "1 ^FFD700Gold^000000 Coin = 1 ^C0C0C0Cash^000000"; //EDIT TO YOUR LIKING
- close;
- case 2:
- switch(select("^FFD700Gold^000000 Coin to ^C0C0C0Cash^000000","^C0C0C0Cash^000000 to ^FFD700Gold^000000 Coin")) {
- case 1:
- mes @name$;
- mes "How many ^C0C0C0Cash^000000 you want to have?";
- input .@item_count ;
- if( .@item_count == 0 ) close;
- if (countitem(7517) < (.@item_count*1)) goto noMITH;
- delitem 7517,(.@item_count*1);
- set #CASHPOINTS,#CASHPOINTS +.@item_count;
- dispbottom "Current Balance = "+#CASHPOINTS+" Cashpoints";
- next;
- mes @name$;
- mes "There you go! You got your " + .@item_count + " ^C0C0C0Cash^000000. Hope to see you again!";
- close;
- case 2:
- mes @name$;
- mes "How many ^FFD700Gold^000000 Coin you want to have?";
- input .@item_count;
- if( .@item_count == 0 ) close;
- if (checkweight(7517,100) == 100 ) goto overWeight;
- if (#CASHPOINTS == 0) goto noCASH;
- set #CASHPOINTS,#CASHPOINTS-(.@item_count/1);
- dispbottom "Current Balance = "+#CASHPOINTS+" Cashpoints";
- getitem 7517,.@item_count;
- next;
- mes @name$;
- mes "There you go! You got your " + .@item_count + " ^FFD700Gold^000000 ^C0C0C0Coins^000000. Hope to see you again!";
- close;
- }
- }
- OnInit:
- waitingroom "Cash To Gold Coin",0; //Gold Coin WAITING ROOM
- end;
- noCASH:
- next;
- mes @name$;
- mes "I'm Sorry but you don't have enough ^C0C0C0Cash^000000.";
- close;
- noMITH:
- next;
- mes @name$;
- mes "I'm Sorry you don't have enough ^FFD700Gold^000000 ^C0C0C0Coins^000000";
- close;
- overWeight:
- next;
- mes @name$;
- mes "Sorry you're ^FF0000overweight^000000.";
- close;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement