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

relog promotion

Sami_san

New Member
Joined
May 20, 2016
Messages
76
Reaction score
1
Hello ive got a small problem.
TFS 1.2
tibia 10.93

After my character get a vocation from the island of destiny after the relog he gets an higher rank

So i got a knight vocation and after relog im a elite knight. please help
 
Go to /data/creaturescript/scripts/login.lua

Find 'Promotion'. There's a function for promotion when you get back to premium from free account, I just set it to certain level and it worked for me:
Code:
    -- Promotion
    local vocation = player:getVocation()
    local promotion = vocation:getPromotion()
    local level = player:getLevel()
    if player:isPremium() then
        local value = player:getStorageValue(STORAGEVALUE_PROMOTION)
        if not promotion and value ~= 1 then
            player:setStorageValue(STORAGEVALUE_PROMOTION, 1)
        elseif level > 49 then
            player:setVocation(promotion)
        end
    elseif not promotion then
        player:setVocation(vocation:getDemotion())
    end
 
Back
Top