Jump to content
  • 0

Question

2 answers to this question

Recommended Posts

Posted


prontera,150,150,5 script trader 58,{

.@exchange_value = 3;// get 3 kafrapoints for 1 cashpoints

if ( #CASHPOINTS == 0 ) {

mes "You need some cashpoints.";

close;

}

if ( select( "Trade", "Leave" ) == 2 ) {

mes "Good bye.";

close;

}

mes "How many points do you want to trade? You currently have "+ #CASHPOINTS +" cashpoints. 1 cashpoint = "+ .@exchange_value +" kafrapoint";

if ( input( .@value, 1, #CASHPOINTS ) != 0 ) {

mes "Wrong value.";

close;

}

#CASHPOINTS -= .@value;

#KAFRAPOINTS = #KAFRAPOINTS + .@value * .@exchange_value;

mes "you exchange "+ .@value +" cashpoints for "+ ( .@value * .@exchange_value ) +" kafrapoints";

close;

}

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