PlayerStocks: Algorithm - Wintergrasped/UniqueRP_PlayerDocs GitHub Wiki

The price of PlayerStocks is completely based upon the activity of the Community below is the mathematical formula used to Calculate the price of PlayerStocks

The Math behind it all

PlayerStocks price takes into consideration the the Number Of Players who have joined the Server the Number Of New player who have joined the server and the Time that all players have spent on the server (in a 24 hour time span). Below is the equation.

The Actual Equation

    * Base = 10
    * NewPlayerMultiplyed = 1.88
    * JoinMultiplyer = 1.05
    * PlayTimeMultiplyer = 1.65

    * NewPlayerMultiplyer = NewPlayerJoins x NewPlayerMultiplyed

    * BaseMultiplyer = Joins x JoinMultiplyer

* PlayMultiplyer = PlayTime x PlayTimeMultiplyer

* TotalMultiplyer = (BaseMultiplyer x PlayMultiplyer) x (NewPlayerMultiplyer * NewPlayerPlayTime)

* if TotalMultiplyer >= 1 then
        * StockPrice = Base * TotalMultiplyer
 * else
	* StockPrice = Base
* end