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