Jump to content
  • 0

Points to Points converter?


Question

Posted

An NPC that will trade #POINT1 to #POINT2.

 

Player will input the amount of #POINT2 he wants to convert his current #POINT1.

 

For example:

 

mes "You need 50 #POINT1 to earn 1 #POINT2.";

 

Extra note: Is it possible if you can add an input option. And if the player doesn't have enough #POINT1 for the amount of #POINT2 he wants then it will not work.

 

 

3 answers to this question

Recommended Posts

Posted


prontera,155,181,4 script Sample#point 757,{

if( #POINT1 < 50 ){

mes "you need 50 point 1 to change to point 2";

}

else{

.@amount = ( #POINT1 / 50 );

#POINT1 -= ( .@amount * 50 );

#POINT2 += .@amount;

message strcharinfo(0),"You converted "+( .@amount * 50 )+" Point 1 to "+.@amount+" Point 2";

}

end;

}

  • Upvote 1
Posted

NPC made me have -168 points.

 

prontera,149,171,5 script Time Points Trader#point 757,{
if( #Time < 15 ){
mes "You need 15 Time Points for 1 Mission Point.";
}
else{
.@amount = ( #Time / 15 );
#Time -= ( .@amount * 15 );
#Mission_Points += .@amount;
message strcharinfo(0),"You converted "+( .@amount * 50 )+" Time Points to "+.@amount+" Mission Points.";
}
end;
}

 

 

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