local lvl = 2 function onStepIn(cid, item, position, lastPosition, fromPosition) if getPlayerLevel(cid) < lvl then doPlayerSendCancel(cid, "you need "..lvl.." to enter here..") doTeleportThing(cid, fromPosition) return true end return true end
info
Grupo: Infante
Registrado: 25/01/12
Posts: 1.6k
Reputação: +330

local lvl = 2 function onStepIn(cid, item, position, lastPosition, fromPosition) if getPlayerLevel(cid) < lvl then doPlayerSendCancel(cid, "you need "..lvl.." to enter here..") doTeleportThing(cid, fromPosition) return true end return true end
info
Grupo: Conde
Registrado: 20/09/12
Posts: 711
Reputação: +86
Char no Tibia: noé

/\ acho que falta o true. pelo menos eu uso meus scripts de tile, com doTeleportThing(cid, formPoistion, true)
local lvl = 2 function onStepIn(cid, item, position, lastPosition, fromPosition) if getPlayerLevel(cid) < lvl then doPlayerSendCancel(cid, "you need "..lvl.." to enter here..") doTeleportThing(cid, fromPosition, true) return true end return true end
/\ acho que falta o true. pelo menos eu uso meus scripts de tile, com doTeleportThing(cid, formPoistion, true)
local lvl = 2 function onStepIn(cid, item, position, lastPosition, fromPosition) if getPlayerLevel(cid) < lvl then doPlayerSendCancel(cid, "you need "..lvl.." to enter here..") doTeleportThing(cid, fromPosition, true) return true end return true end
Funcionou! Obrigado, +rep pra vc =d
E pro stylo tbm por tentar ajudar obrigado ai os dois!
info
Grupo: Herói
Registrado: 14/12/10
Posts: 3.6k
Reputação: +846
Gênero: Masculino

Respodendo uma dúvida de vocês, o true nesta função, faz com que em vez de teleportado, ele ande 1 SQM para trás.
#Movido.
info
Grupo: Campones
Registrado: 30/05/13
Posts: 77
Reputação: +4
Eu queria um script que só pude-se passar por ele se for acima do level dois, se for abaixo, te joga pra tras dizendo q vc n tem lvl, tipo a ponte norte de rook, todos que eu achei na net n funcionaram, se alguem souber fazer fico agradecido