• 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!

How to change max stamina?

gmstrikker

Well-Known Member
Joined
Jul 30, 2014
Messages
458
Solutions
1
Reaction score
50
How to change max stamina 42:00 to 56:00

and changing it \/
staminaRatingLimitTop = 54 * 60

i will change bonus stamina until 54~56
right?

Im using 0.4
 
Edit your sources:

player.cpp:
Code:
Find -> staminaMinutes = 2520; (or just find staminaMinutes, I don't know how many minutes you got in there)
Replace to -> staminaMinutes = 3360;

luascript.cpp:
Code:
Find -> player->staminaMinutes = std::min<uint16_t>(2520, stamina);
Replace to -> player->staminaMinutes = std::min<uint16_t>(3360, stamina);

Edit your .sql:
Code:
from -> `stamina` smallint(5) unsigned NOT NULL DEFAULT '2520',
to -> `stamina` smallint(5) unsigned NOT NULL DEFAULT '3360',

I'm not sure if in 0.4 TFS it's same as next way:
go to data\events\scripts\players.lua
Code:
Find -> if staminaMinutes > 2400 and self:isPremium() then
Replace to -> if staminaMinutes > 3240 and self:isPremium() then

Go to data/creaturescripts/scripts/regeneratestamina.lua
Code:
find -> local maxNormalStaminaRegen = 2400 - math.min(2400, staminaMinutes)
Replace to -> local maxNormalStaminaRegen = 3240 - math.min(3240, staminaMinutes)

Find -> staminaMinutes = math.min(2520, math.max(2400, staminaMinutes) + happyHourStaminaRegen)
Replace to -> staminaMinutes = math.min(3360, math.max(3240, staminaMinutes) + happyHourStaminaRegen)

Feel free to correct me, I'm not hundred percent sure in this.
 

Similar threads

Replies
2
Views
251
Back
Top