Cria um arquivo chamado doorlevel.lua em data/actions/scripts e adicione dentro:
local levelNeed = 100 -- LVL NEED
local tpPos = {x = 500, y = 400, z = 7} -- Tp pos
function onUse(cid, item)
if getPlayerLevel(cid) >= levelNeed then
doTeleportThing(cid, tpPos)
else
doPlayerSendCancel(cid, "Você não tem o level necessário {"..levelNeed.."}")
end
return true
end
Em actions.xml adicione:
<action actionid="12289" event="script" value="doorlevel.lua"/>
No map editor põe action id 12289 na door







info
Grupo: Visconde
Registrado: 22/11/12
Posts: 267
Reputação: +26
Gênero: Masculino
Char no Tibia: ADM Kabo
Eu preciso de uma porta Que ao dar você dara teleporte..