Jump to content
  • 0

TCG code help


tiradauno

Question


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  50
  • Reputation:   1
  • Joined:  05/16/12
  • Last Seen:  

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?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  268
  • Reputation:   27
  • Joined:  12/06/11
  • Last Seen:  

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
Link to comment
Share on other sites

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.

×
×
  • Create New...