Jump to content
  • 0

R>Exchange rate NPC (Economics)


Overshot

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  01/16/15
  • Last Seen:  

Hello dear rAthena users and Developers!

I am making my server with super-balanced gameplay in a case, there are donators (And yes, they will be). The main idea is to make a need for Donators in TCG cards, so if a farm player wants to buy something from the Cash Shop, he can sell his TCG to a donator.
 

So i would like to request the following NPC : 

 

A dude with a chat room over his head that will say : Exchange Rate : X TCG = Y CP

X = Total amount of TCG cards [ ID 7227 ] aviable on the server

Y = Total amount of unused Cash Points on the server

 

Now i would like him to calculate a configurable for me, default rate of 1:1. If X = 300 total TCG cards wich is aviable on the server and Y = 100 Cash Points total will be aviable on the server, then the exchange rate will be : Exchange Rate : 3 TCG = 1 CP and thats what i would like the NPC to be :)

 

Now another request to this script, is i would like to prevent him to write exchange rates like : 5:3.245. I would like him to find the closest big number and show only that. Like if 3.245 then it will be just 3.

 

Refresh rate? Once in 1 minute.

 

With this system we would be able to balance Donations vs Farmers and prevent overhold of one of the currency.

Edited by Overshot
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  01/16/15
  • Last Seen:  

I am sorry but, BUMP!

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