180319mu 0 Postado Março 23, 2014 Share Postado Março 23, 2014 Eu tenho um script de limite de level pra usar o teleport, basicamente ele não deixaria players de level 140+ usarem esse tp, mas não ta funcionando.. PS: Não ta dando erro nenhum tb, só nao funciona. local posi = {x=1096, y=1062, z=7} -- Posicao pra onde vai o player function onStepIn(cid, item, position, lastPosition, fromPosition) if getPlayerLevel(cid) < 141 then doTeleportThing(cid, posi) doSendMagicEffect(getThingPos(cid), 10) else doPlayerSendTextMessage(cid, 27, "Sorry, you need a level 140 minus.") doTeleportThing(cid, lastPosition) end end Se alguem puder arrumar ou fazer outro pra mim eu agradeço. Link para o comentário https://xtibia.com/forum/topic/230593-pedido-teleport-com-limite-de-level/ Compartilhar em outros sites More sharing options...
0 zipter98 1102 Postado Março 23, 2014 Share Postado Março 23, 2014 local pos = {x = 1096, y = 1062, z = 7} local lv = 140 function onStepIn(cid, item, position, lastPosition, fromPosition) if not isPlayer(cid) then return true end if getPlayerLevel(cid) >= lv then return doTeleportThing(cid, fromPosition) and doPlayerSendCancel(cid, "You can't pass here.") else doTeleportThing(cid, pos) doPlayerSendTextMessage(cid, 27, "Welcome.") end return true end Link para o comentário https://xtibia.com/forum/topic/230593-pedido-teleport-com-limite-de-level/#findComment-1627904 Compartilhar em outros sites More sharing options...
0 RastaLegion 64 Postado Março 23, 2014 Share Postado Março 23, 2014 (editado) Tenta assim function onStepIn(cid, pos) local pos = {x=xxxx, y=xxxx, z=x} --position do tp if isPlayer(cid) then if getPlayerLevel(cid) >= 140 then doTeleportThing(cid, pos) else doPlayerSendTextMessage(cid,22,"Você não tem o level necessario") end return true end end Editado Março 23, 2014 por RastaLegion Link para o comentário https://xtibia.com/forum/topic/230593-pedido-teleport-com-limite-de-level/#findComment-1627828 Compartilhar em outros sites More sharing options...
0 Alvez123 0 Postado Março 23, 2014 Share Postado Março 23, 2014 Aki esta amigo, so vai teleportar se o player tiver o level exato ou + function onStepIn(cid, item, position, fromPosition) if getPlayerLevel(cid) >= 4500 then local teleport = {x=56, y=31, z=7} doTeleportThing(cid, teleport) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "voce precisa do level 4500") return true end end Link para o comentário https://xtibia.com/forum/topic/230593-pedido-teleport-com-limite-de-level/#findComment-1627833 Compartilhar em outros sites More sharing options...
0 IvanAppel 87 Postado Março 23, 2014 Share Postado Março 23, 2014 local posi = {x=1096, y=1062, z=7} -- Posicao pra onde vai o player function onStepIn(cid, item, position, lastPosition, fromPosition) if getPlayerLevel(cid) >= 140 then doTeleportThing(cid, posi) doSendMagicEffect(getThingPos(cid), 10) elseif doPlayerSendTextMessage(cid, 27, "Sorry, you need a level 140.") doTeleportThing(cid, lastPosition) end end Vê se funciona Link para o comentário https://xtibia.com/forum/topic/230593-pedido-teleport-com-limite-de-level/#findComment-1627843 Compartilhar em outros sites More sharing options...
0 180319mu 0 Postado Março 23, 2014 Autor Share Postado Março 23, 2014 Resolvido. ty zipster98 Link para o comentário https://xtibia.com/forum/topic/230593-pedido-teleport-com-limite-de-level/#findComment-1627924 Compartilhar em outros sites More sharing options...
Pergunta
180319mu 0
Eu tenho um script de limite de level pra usar o teleport, basicamente ele não deixaria players de level 140+ usarem esse tp, mas não ta funcionando..
PS: Não ta dando erro nenhum tb, só nao funciona.
Link para o comentário
https://xtibia.com/forum/topic/230593-pedido-teleport-com-limite-de-level/Compartilhar em outros sites
5 respostass a esta questão
Posts Recomendados