Jump to content
  • 0

Points to Points converter?


Currently

Question


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  313
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

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.

 

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


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


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  313
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

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;
}

 

 

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


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

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