Ir para conteúdo

Featured Replies

  • Respostas 8
  • Visualizações 1k
  • Created
  • Última resposta

Top Posters In This Topic

Postado
  • Autor

é que assim, o erro ta aonde deveria ser o iswalk, se liga:  if not isWalkable(toPosition, true, true, true) then
                                                                      doPlayerSendCancel(cid, "Sorry, not possible.") return true

 

ou seja, toda vez que uso o item, ele fala sorry, not possible

Postado
  • Autor

function onUse(cid, item, fromPosition, itemEx, toPosition)
 
    local canPassAtWalls = false
    local removeAtUse = false
    local maxDist = 4
 
    if not isWalkable(toPosition, true, true, true) then
         doPlayerSendCancel(cid, "Sorry, not possible.") return true
    end
 
    if canPassAtWalls == false and not isSightClear(fromPosition, toPosition, true) then
         doPlayerSendCancel(cid, "Sorry, you can't do it.") return true
    end
 
    if getDistanceBetween(fromPosition, toPosition) > maxDist then
         doPlayerSendCancel(cid, "Sorry, is too far.") return true
    end
 
    doTeleportThing(cid, toPosition, false)
    doSendDistanceShoot(fromPosition, toPosition, 30)
 
    if removeAtUse then
         doRemoveItem(item.uid, 1)
    end
 
    return true
end

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo