Jump to content
  • 0

New Exchanger


Lanz

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  32
  • Reputation:   2
  • Joined:  11/22/11
  • Last Seen:  

A. This Exchanger trades Kafrapoints to zeny and vice versa but this is not an ordinary exchanger its exchange rate changes randomly from time to time..

For Example:

8:00 AM Exchange rate 1 Kafrapoints = 100,000z

8:10 AM Exchange rate 1 Kafrapoints = 112,000z

9:13 AM Exchange rate 1 Kafrapoints = 90,230z

12:28PM Exchange rate 1 Kafrapoints = 99,100z

So Basically exchange rate can be higher or lower from time to time

Concept taken from: Currency Exchange rates.

rand(90000,120000);

B. A NPC that you can invest your zeny or kafrapoints and your investment can go higher or lower also from time to time..

Concept taken from: Stock Market

You can withdraw you investment anytime you like..

Thanks in advance

Edited by Lanz
Link to comment
Share on other sites

1 answer 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:  

Did you want random times or only times you choose? It's more efficient if you set the times so you can use labels instead of timers:

mes "You have "+#KAFRAPOINTS+" Kafra Points.";
mes "They can be traded for "+$@Zeny_Kafra+" Zeny each.";
next;
if(select("Trade:Cancel") == 2) close;
// etc., this part is easy

OnInit: OnClock0800: OnClock0810: OnClock0913: OnClock1228:
   set $@Zeny_Kafra, rand(90000,120000);
   end;

Does the second NPC use the same rates as the first? If so,

mes "Kafra Points cost "+$@Zeny_Kafra+" each.";
if(select("Purchase:Cancel") == 2) close;
// etc.

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