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

update another script to tfs 1.2

jurass

New Member
Joined
Jul 7, 2015
Messages
98
Reaction score
3
Location
Poland
Code:
function onAdvance(cid, type, oldlevel, newlevel)
    local name = getCreatureName(cid)

    if (oldlevel ~= newlevel and type == SKILL__LEVEL) then
        if (newlevel >= 100 and getPlayerStorageValue(cid, 74569) == -1) then
            doBroadcastMessage("Player " .. name .. " reached 100 lvl! Congratulations!")
            setPlayerStorageValue(cid, 74569, 1)
        end
    end
return TRUE
end

update script to tfs 1.2
 
Code:
function onAdvance(player, skill, oldLevel, newLevel)
    local storage = 74569
    if skill == SKILL__LEVEL and player:getStorageValue(storage) == -1 and newLevel >= 100 then
        broadcastMessage(player:getName() .. ' has reached level 100, congratulations!')
        player:setStorageValue(storage, 1)
    end
    return true
end
 
Back
Top