masterjojje
Tibia geek! :D
Hello I need a script so players cant get below level 15 so if a player dies and drops to level 14 the next time he logins he gets level 15 again
Does anyone have a solution? 
Last edited:
local fuu = getExperienceForLevel(15)
if getPlayerLevel(cid) < 15 then
doPlayerAddExperience(cid, fuu)
end
function onLogin(cid)
if getPlayerLevel(cid) < 15 then
doPlayerAddExperience(cid, getExperienceForLevel(15) - getPlayerExperience(cid))
end
return true
end
if getPlayerLevel(cid) < 15 then
doPlayerAddExperience(cid, getExperienceForLevel(15) - getPlayerExperience(cid))
end
in Login.lua
add after function .......
LUA:local fuu = getExperienceForLevel(15) if getPlayerLevel(cid) < 15 then doPlayerAddExperience(cid, fuu) end
function onLogin(cid)
if getPlayerLevel(cid) < 15 then
doPlayerAddExperience(cid, getExperienceForLevel(15) - getPlayerExperience(cid))
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, 'You\'ve recovered your lost levels.')
end
return true
end