• 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 EXP BONUS

kaiquefb

New Member
Joined
Feb 18, 2010
Messages
62
Reaction score
0
Hello friends,

I have a doubt, I wonder where is the file to change the 2 hours of bonus exp. (Green Stamina) The correct is to give 50% xp bonus. I would like to change, most do not think the correct location.

TFS 1.0
 
Last edited:
1.1:
events > player.lua, function:
Code:
Player:onGainExperience(source, exp, rawExp)

1.0:
player.cpp
Code:
void Player::addExperience(Creature* source, uint64_t exp, bool sendText/* = false*/, bool applyStaminaChange/* = false*/, bool applyMultiplier/* = false*)/
 
tank you.
I changed the line below and it worked.

Code:
if (applyStaminaChange && g_config.getBoolean(ConfigManager::STAMINA_SYSTEM)) {

        if (staminaMinutes > 2400) {
            if (isPremium()) {
                exp *= 1.5;
 
Back
Top