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

TFS 1.X+ The next level without renewing MP and HP

Kownikuzyt

Member
Joined
Feb 11, 2020
Messages
170
Solutions
1
Reaction score
8
Hello,

I am using TFS 1.1.

I would like to know how to do that after reaching the next level of MP and HP it does not renew to the maximum value.
 
remove these two lines and recompile your server
@Evil Puncker

Thank you for your help :)

I also edited the code: data/creaturescripts/scripts/others/advance_save.lua



Lua:
local config = {
    heal = false,
    save = true,
    effect = true
}


function onAdvance(player, skill, oldLevel, newLevel)
    if skill ~= SKILL_LEVEL or newLevel <= oldLevel then
        return true
    end


    if config.effect then
        player:getPosition():sendMagicEffect(math.random(CONST_ME_FIREWORK_YELLOW, CONST_ME_FIREWORK_BLUE))
        player:say('LEVEL UP!', TALKTYPE_MONSTER_SAY)
    end


    if config.heal then
        player:addHealth(player:getMaxHealth())
    end


    if config.save then
        player:save()
    end
    return true
end



I also have a problem with:
TFS 0.X - He logs out randomly and the character is still in the game. (https://otland.net/threads/he-logs-out-randomly-and-the-character-is-still-in-the-game.275854/)
TFS 1.X+ - I need "Tibia Store and Get Premium" to activate the output. (https://otland.net/threads/i-need-tibia-store-and-get-premium-to-activate-the-output.275821/)
TFS 1.X+ - Problem with "method="onShareExperience"". (https://otland.net/threads/problem-with-method-onshareexperience.275717/)
 
Back
Top