Jump to content
  • 0

Need help!


ahloi007

Question


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  78
  • Reputation:   1
  • Joined:  10/15/12
  • Last Seen:  

prontera,140,199,5 script Cash Point Exchanger 497,{

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 ^FF00002 TCG^000000 for ^FF00001 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 < 2 || .@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*1);

mes "You now have "+#CASHPOINTS+" Cash Points.";

close;

}

//This wasn't my script, I took from other people and the original script was 1 TCG to 5 Cash Point ( it worked perfectly) but I changed the TCG exchange rate: 2 TCG card to 1 cash point. It became 2 TCG card to 2 Cash point. Did I change wrong thing inside it?

Sorry for disturb and my bad english. =)

 

Im new to here* nice to meet y'all

Edited by Radian
please use codebox next time. thanks!
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

Replace 

set #CASHPOINTS, #CASHPOINTS+(.@j*1);

with

set #CASHPOINTS, #CASHPOINTS + (.@j / 2 );

Because the value of .@j -> is 2 and you want to only give half of the number of TCG to be cash points right?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  78
  • Reputation:   1
  • Joined:  10/15/12
  • Last Seen:  

Replace 

set #CASHPOINTS, #CASHPOINTS+(.@j*1);

with

set #CASHPOINTS, #CASHPOINTS + (.@j / 2 );

Because the value of .@j -> is 2 and you want to only give half of the number of TCG to be cash points right?

 

problem solved!! thank you... xD

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