-
Notifications
You must be signed in to change notification settings - Fork 1
Dynamic Pricing
DynamicShop3 changes item prices from trading activity and stock conditions instead of keeping every item at a fixed price.
The stock simulator uses the item's reference median, value, and current stock to calculate a price. Conceptually, a lower stock level increases price while excess stock reduces it, subject to configured bounds.
Minimum and maximum values can cap the result.
Stock stabilization can periodically move trading conditions toward a configured target. The shop command exposes:
/ds shop <shop> stockStabilizing <interval> <strength>
/ds shop <shop> stockStabilizing off
The global configuration also contains Shop.UseLegacyStockStabilization for servers that need the legacy algorithm.
Optional periodic fluctuation can add controlled variation:
/ds shop <shop> fluctuation <interval> <strength>
/ds shop <shop> fluctuation off
Use conservative values for economies where predictable pricing is important.
Use the stock simulator/editor before applying major changes. Watch transaction logs after deployment and verify that minimum/maximum bounds behave as expected.
Trading activity is tracked per item/player where required by the pricing system. The administration command can reset trading volume when rebuilding an economy or correcting test data.