Jump to content
  • 0

TCG to Cash Exchange/Converter


Meister

Question


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

I know there are like this here but I want an interface in which it is noob friendly :)

Information.

It is like the Phracon/Emveretacon Seller at prt_in or other in's in which you need to input how many TCG's you want to trade to get cash points..

Exchange rate:

1 TCG Card = 5 Cash Points

Thanks!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

<header> {
set .@i, countitem(7227);
mes "[TCG Exchanger]";
mes "You have ^0055FF"+.@i+" TCG^000000.";
if (!.@i) { mes "Please come back later."; close; }
mes "I can trade ^FF00001 TCG^000000 for ^FF00005 Cash Points^000000.";
next;
if(select(" - Trade: - ^777777Leave^000000")==2) close;
mes "[TCG Exchanger]";
mes "How many would you like to exchange?";
next;
input .@j;
mes "[TCG Exchanger]";
if (.@j < 1 || .@j > countitem(7227)) { mes "That's an invalid amount."; close; }
mes "Are you sure you want to exchange ^0055FF"+.@j+" TCG^000000?";
if(select(" - Yes: - No")==2) close;
mes " ";
delitem 7227, .@j;
set #CASHPOINTS, #CASHPOINTS+(.@j*5);
mes "You now have "+#CASHPOINTS+" Cash Points.";
close;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

Thank you!

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