Postado Janeiro 4, 2013 12 anos function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) local level = 2 if not(getPlayerLevel(cid) > level) then doPlayerSendCancel(cid, "Voce precisa ser level maior que "..level.." para passar.") doTeleportThing(cid, fromPosition, TRUE) end end
Postado Janeiro 4, 2013 12 anos Autor function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) local level = 2 if not(getPlayerLevel(cid) > level) then doPlayerSendCancel(cid, "Voce precisa ser level maior que "..level.." para passar.") doTeleportThing(cid, fromPosition, TRUE) end end Ta funcionando, só level 2+ ta passando, mas a msg não ta aparecendo, ta aparecendo assim: 16:37 The tile seems to be protected against unwanted intruders. +rep pela ajuda coloquei assim: <movevent event="StepIn" actionid="8000" script="pontenorte.lua"/> pontenorte.lua function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) local level = 2 if not(getPlayerLevel(cid) > level) then doPlayerSendCancel(cid, "Voce precisa ser level maior que "..level.." para passar.") doTeleportThing(cid, fromPosition, TRUE) end end EDIT: retestei e não funcionou... Funcionou com duas contas lvl 11 e lvl 10, mas numa outra conta lvl 1 não passava, aparecia essa msg: The tile seems to be protected against unwanted intruders. Upei lvl 2 a msm coisa, essa msg e não passava, upei até level 3 e não funcionou também... Editado Janeiro 4, 2013 12 anos por tiagoduuarte (veja o histórico de edições)
Postado Janeiro 4, 2013 12 anos Eu usei assim, e funcionou normal: <movevent type="StepIn" actionid="8906" event="script" value="tileRook.lua"/>
Postado Janeiro 5, 2013 12 anos Autor Eu usei assim, e funcionou normal: <movevent type="StepIn" actionid="8906" event="script" value="tileRook.lua"/> reputado, achei meu erro, funcinou
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.