function onAdvance(cid, skill, oldLevel, newLevel)
if newLevel == 20 then
doPlayerSendTextMessage(cid, 22, "Você será teleportado para The Oracle para escolher sua vocação!")
addEvent(doTeleportThing, 2000, cid, {x=, y=, z=})
end
end
sempre que o player upar qualquer coisa no 20 ele seria teleportado. (sword,ml,axe,club..)
para concertar basta adicionar
if skill == SKILL__LEVEL then
ficando
function onAdvance(cid, skill, oldLevel, newLevel)
if skill == SKILL__LEVEL then
if newLevel >= 20 and oldLevel < 20 then
doPlayerSendTextMessage(cid, 22, "Você será teleportado para The Oracle para escolher sua vocação!")
addEvent(doTeleportThing, 2000, cid, {x=, y=, z=})
end
end
end
tb adicionei uma verificação de newLevel, que ao upar por exemplo do 19 ao 21 direto ele tb teleporte =D