Jump to content

Question

Posted

prontera,157,181,4 script Exchanger 2 2035,{
mes "Please input the amount of TCG you wish to change into Zeny";
mes "Each TCG = 100,000 zeny";
mes "Currently , you have "+countitem(7227)+" TCG.";
input @amount,0,countitem(7227);
if ( @amount < 1){
mes "You have choose to end the deal.";
close;
}
delitem 7227,@amount;
set Zeny,Zeny+(@amount*100000);
mes "You have changed "+@amount+" TCG into Zeny.";
close;
}

TCG = ZENY I WANT ZENY = TCG

ANYONE CAN HELP ME?

1 answer to this question

Recommended Posts

Posted (edited)

Try this

prontera,157,181,4 script Exchanger 2 2035,{
mes "Please input the amount of Zeny you wish to change into TCG";
mes "Each 100k Zeny = 1TCG";
mes "Currently , you have "+Zeny+" Zeny.";
input @amount,0,Zeny;
if ( @amount < 1){
mes "You have choose to end the deal.";
close;
}
set @exchange, @amount / 100000;
getitem 7227,@exchange;
set Zeny,Zeny-(100000*@exchange);
mes "You have changed "+(100000*@exchange)+" Zeny into TCG.";
close;
}

Edited by Kaito_Kid

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...