• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Stamina Bug

Shackal

Alien Project
Joined
Feb 7, 2009
Messages
211
Reaction score
17
Location
Brazil
Hello guys,

I looked for all the related forums and have not found solution to the case.
I have a problem that the stamina of your server is taking too long to rise. I do not know if it's distro problem or what.
It's taking about 1 hour up to 1 minute of stamina with these settings:

Code:
    rateStaminaLoss = 1
    rateStaminaGain = 3
    rateStaminaThresholdGain = 6
    staminaRatingLimitTop = 40 * 60
    staminaRatingLimitBottom = 14 * 60
    staminaLootLimit = 14 * 60
    rateStaminaAboveNormal = 1.5
    rateStaminaUnderNormal = 0.5
    staminaThresholdOnlyPremium = true

grateful
 
NOTE: Stamina is stored in miliseconds, so seconds are multiplied by 1000.
rateStaminaHits multiplies every hit done a creature, which are later
multiplied by player attack speed.
rateStaminaGain is multiplying every second of logged out time, eg:
60 * 1000 / 3 = 20 seconds, what gives 1 stamina minute for 3 being logged off.
rateStaminaThresholdGain is dividing in case the normal gain (that is
multiplied by rateStaminaGain, btw.) passed above threshold, eg:
60 * 1000 / 3 = 20 / 4 = 5 seconds (3 * 4 = 12 minutes for 1 stamina minute).
staminaRatingLimit* is in minutes.
 
I also have this explanation here, but I could not understand the logic of these variables, as it is doing the calculation. Could you help me with the stamina climb 1 min each 1 min?
 
Back
Top