data\creaturescripts\scripts\test.lua
function onAdvance(cid, oldLevel, newLevel)
-- configuratin by notle
local tmp = 60 -- coloca tempo aqui por segundos
local lvl = 250 -- aqui coloca level
local pos = {x=160,y=54,z=7} -- Pos para onde o player sera levado
-- configuratin by notle
if getPlayerStorageValue(cid, 52457) < 1 and getPlayerLevel(cid) == lvl then
addEvent(doTeleportThing, tmp * 1000, cid, pos)
setPlayerStorageValue(cid, 52457, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Depois De "..tmp.." Segundos Você Sera Telepotado Para Templo Pq Atigiu Level "..lvl.." Parabéns")
end
return TRUE
end
creaturescripts.xml
<event type="advance" name="test" event="script" value="test.lua"/>
login.lua
registerCreatureEvent(cid, "test")





info
Grupo: Campones
Registrado: 26/09/12
Posts: 41
Reputação: +2
Olá Pessoal!!!
Eu gostaria de um script bem simples, quando um player atingir level 250 ele ser teleportado para o templo dentro de 1 minuto.
Ex: Peguei lvl 250 (o script dá um aviso de que eu atingi level 250 e que terei que ir para o templo, então em 1 minuto ele me manda pro templo!)
plx com storage.
muito obrigado!