Hello everyone
Before introduction, I apologize for my poor english...
If you find something mean weird, please let me know.
------------------------------------------------------------------------------------------------------------------
Started:
- 20/06/2013
Developer:
freeman129
General Info:
Items's price would change, when someone buy/sell them.
Player buy many A items, and then the A item's price will be increase. Player sell many B items, and then the B item's price will be decrease.
Main System:
This inflation is linear formula,
new_price = new_price + origin_price * buy_sell_change / inflation
inflation var. is constant and it according to item's type.
Init: -0.5*inflation <= buy_sell <= inflation
show diagram below:
------------------------------------------------------------------------------------------------------------------
If someone buy/sell, server will add/minus sum of arithmetic sequence to your deduct/get money.
The sum of arithmetic sequence just like the area of the triangle.
ex: If someone buy many A items and then sell all A items, just like diagram below:
-------------------------------------------------------------------------------------------------------------------------------------
Other Mechanism:
This system add auto-recover function,
it means, manager can set timer to recover the changed items(be close to origin price).
File Modification:
I modify some file in conf/
conf/battle/
src/map/
src/config/
I also modify itemdb datastructure,
I add 3 data are 'origin_value_buy' (int). 'inflation' (int) and 'buy_sell' (int),
and change 2 data structure are 'price_buy' (float) and 'price_sell' (float).
This version , dbs must on sql.
Test Video:
Download:
Github
(Git clone from rathena github, and then git push origin master on my github with inflation.)
This project is not perfect, so welcome to modify it to perfect.
If you want to use that, please back up your original version!
and you must use item_db_inflation_re . mob_db_re and mobskill_db_re on sql.
Thank you for reading~