Ir para conteúdo

Featured Replies

Postado
  • Autor
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?

 

  • Respostas 8
  • Visualizações 967
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • @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

Postado

@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

Postado
  • Autor
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)

Postado

Topico resolvido.

  • Erimyth locked this tópico
Visitante
Este tópico está impedido de receber novos posts.

Quem Está Navegando 0

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

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo