Ir para conteúdo
  • Cadastre-se

(Resolvido)[AJUDA] COLOCAR O CLIENTE PRA ANDAR NO ASDW


Ir para solução Resolvido por Visitante,

Posts Recomendados

Boa noite tks!

 

Se tiver no lugar errado favor mover para o correto...

 

Procurei em vários lugares porém sem sucesso, gostaria de saber como faço para colocar o no meu cliente, pro char andar nas teclas (asdw)

sendo que para isso teria que colocar o chat para ser ativado e desativado no enter. se alguem puder me ajudar ou mandar link de algum 

tutorial caso já exista, ficaria muito grato...

Link para o post
Compartilhar em outros sites
1 minuto atrás, Underewar disse:

@Furyons Qual client?

Estou usando o Pokemon HuatsonOT V2.0 (DXP) NO lvl sys & Poke Bar

Segue o link dele: 

 

pretendo fazer varias melhorias nele porém sou iniciante com codigos e programação.

Link para o post
Compartilhar em outros sites

@Furyons
ai irmão,não sei se isso ajuda mas vc pode usar o OT Client v8 - ele ja tem esse recurso de "custom hotkey"
eu não manjo muito sobre script/programação mas talvez tenha algum esquema pra usar a seu favor,sei la rs

malz se não ajudei mt

"follow me? Target is lost.
get me? There is no way.
kill me? Sorry,its not posible."

 

tibia old thief - Cópia 2.jpg

Link para o post
Compartilhar em outros sites
  • Solução

Adicione este modulo

function toggleChat()
  if consoleToggleChat:isChecked() then
    disableChat()
  else
    enableChat()
  end
end

function enableChat()
  local gameInterface = modules.game_interface

  consoleTextEdit:setVisible(true)
  consoleTextEdit:setText("")

  local quickFunc = function()
    if consoleToggleChat:isChecked(false) then
      consoleToggleChat:setChecked()
    end
    disableChat()
  end
  g_keyboard.unbindKeyUp('CTRL+F', quickFunc)

  gameInterface.unbindWalkKey("W")
  gameInterface.unbindWalkKey("D")
  gameInterface.unbindWalkKey("S")
  gameInterface.unbindWalkKey("A")

  gameInterface.unbindWalkKey("E")
  gameInterface.unbindWalkKey("Q")
  gameInterface.unbindWalkKey("C")
  gameInterface.unbindWalkKey("Z")

  consoleToggleChat:setTooltip(tr("Disable fight mode (Ctrl+F)."))
end

function disableChat()
  local gameInterface = modules.game_interface

  consoleTextEdit:setVisible(false)
  consoleTextEdit:setText("")

  local quickFunc = function()
    if consoleToggleChat:isChecked() then
      consoleToggleChat:setChecked(false)
    end
    enableChat()
  end
  g_keyboard.bindKeyUp('CTRL+F', quickFunc)

  gameInterface.bindWalkKey("W", North)
  gameInterface.bindWalkKey("D", East)
  gameInterface.bindWalkKey("S", South)
  gameInterface.bindWalkKey("A", West)

  gameInterface.bindWalkKey("E", NorthEast)
  gameInterface.bindWalkKey("Q", NorthWest)
  gameInterface.bindWalkKey("C", SouthEast)
  gameInterface.bindWalkKey("Z", SouthWest)

  consoleToggleChat:setTooltip(tr("Enable fight mode (Ctrl+F)."))
end

 

Link para o post
Compartilhar em outros sites
10 minutos atrás, Underewar disse:

Adicione este modulo


function toggleChat()
  if consoleToggleChat:isChecked() then
    disableChat()
  else
    enableChat()
  end
end

function enableChat()
  local gameInterface = modules.game_interface

  consoleTextEdit:setVisible(true)
  consoleTextEdit:setText("")

  local quickFunc = function()
    if consoleToggleChat:isChecked(false) then
      consoleToggleChat:setChecked()
    end
    disableChat()
  end
  g_keyboard.unbindKeyUp('CTRL+F', quickFunc)

  gameInterface.unbindWalkKey("W")
  gameInterface.unbindWalkKey("D")
  gameInterface.unbindWalkKey("S")
  gameInterface.unbindWalkKey("A")

  gameInterface.unbindWalkKey("E")
  gameInterface.unbindWalkKey("Q")
  gameInterface.unbindWalkKey("C")
  gameInterface.unbindWalkKey("Z")

  consoleToggleChat:setTooltip(tr("Disable fight mode (Ctrl+F)."))
end

function disableChat()
  local gameInterface = modules.game_interface

  consoleTextEdit:setVisible(false)
  consoleTextEdit:setText("")

  local quickFunc = function()
    if consoleToggleChat:isChecked() then
      consoleToggleChat:setChecked(false)
    end
    enableChat()
  end
  g_keyboard.bindKeyUp('CTRL+F', quickFunc)

  gameInterface.bindWalkKey("W", North)
  gameInterface.bindWalkKey("D", East)
  gameInterface.bindWalkKey("S", South)
  gameInterface.bindWalkKey("A", West)

  gameInterface.bindWalkKey("E", NorthEast)
  gameInterface.bindWalkKey("Q", NorthWest)
  gameInterface.bindWalkKey("C", SouthEast)
  gameInterface.bindWalkKey("Z", SouthWest)

  consoleToggleChat:setTooltip(tr("Enable fight mode (Ctrl+F)."))
end

 

Tenho que adicionar ele na source ou direto na pasta do cliente?

 

Link para o post
Compartilhar em outros sites

@Furyons Crie um nova pastaclient/ modules e um novo arquivo lua e adicione isso dentro.

voce precisa chamar a funçao no init do otui/otmod

Link para o post
Compartilhar em outros sites
17 minutos atrás, Underewar disse:

@Furyons Crie um nova pastaclient/ modules e um novo arquivo lua e adicione isso dentro.

voce precisa chamar a funçao no init do otui/otmod

ok mano vou tentar aqui. obrigado pela atenção!

 

-- Edit

Criei a pasta e o arquivo .lua mas acho que estou fazendo algo errado para chamar essa função ^^

Editado por Furyons (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
  • Erimyth locked this tópico
Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo