Skip to content

Dynamic Pricing

Cupjok edited this page Sep 11, 2026 · 1 revision

Dynamic Pricing

DynamicShop3 changes item prices from trading activity and stock conditions instead of keeping every item at a fixed price.

Basic model

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

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.

Price fluctuation

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.

Testing changes

Use the stock simulator/editor before applying major changes. Watch transaction logs after deployment and verify that minimum/maximum bounds behave as expected.

Trading volume

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.

Clone this wiki locally