Jump to content
  • 0

Cash to Pods


Question

Posted
prontera,166,161,3 script Pods Trader 437,{
Main:
switch(select( "POD to Cash",
"Cash to POD",
"^FF0000Close^000000")){

Case 1:
mes "Please insert the amount of POD you want to change to cash.";
mes "Each POD = 1 Cash Points.";
input @Amount,0,countitem(7179);
next;
if ( @Amount < 1 ) goto Main;
mes "You have successfully changed "+@Amount+" of POD into Cash.";
mes "Currently you have "+#CASHPOINTS+" CashPoints.";
delitem 7179,@Amount;
set #CASHPOINTS,#CASHPOINTS+@Amount;
next;
goto Main;

Case 2:
mes "Please insert the amount of POD you want.";
mes "Each POD Cost 1 CashPoints.";
input @Amount,0,#CASHPOINTS;
next;
if ( @Amount < 1 ) goto Main;
mes "You have successfully exchange Cashpoint into POD.";
getitem 7179,@Amount;
set #CASHPOINTS,#CASHPOINTS-@Amount;
next;
goto Main;
}
}

cash to pods.txt

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...