Icon Target e Cave Bot

Fonte: Wot Wiki
Revisão em 21h48min de 16 de setembro de 2023 por Igorlabanca (discussão | contribs) (Criou a página com "<span style="font-size: 18px;">Voltar</span> <div class="mw-custom-box"> '''Script Lua:''' <pre> local cIcon = addIcon("cI",{text="Cave\nBot",switchable=false,moveable=true}, function() if CaveBot.isOff() then CaveBot.setOn() else CaveBot.setOff() end end) cIcon:setSize({height=30,width=50}) cIcon.text:setFont('verdana-11px-rounded') local tIcon = addIcon("tI",{text="Target\nBot",switchable=false,moveable=true}, function() if TargetB...")
(dif) ← Revisão anterior | Revisão atual (dif) | Revisão seguinte → (dif)
Saltar para a navegação Saltar para a pesquisa

Voltar


Script Lua:

local cIcon = addIcon("cI",{text="Cave\nBot",switchable=false,moveable=true}, function()
  if CaveBot.isOff() then 
    CaveBot.setOn()
  else 
    CaveBot.setOff()
  end
end)
cIcon:setSize({height=30,width=50})
cIcon.text:setFont('verdana-11px-rounded')

local tIcon = addIcon("tI",{text="Target\nBot",switchable=false,moveable=true}, function()
  if TargetBot.isOff() then 
    TargetBot.setOn()
  else 
    TargetBot.setOff()
  end
end)
tIcon:setSize({height=30,width=50})
tIcon.text:setFont('verdana-11px-rounded')

macro(50,function()
  if CaveBot.isOn() then
    cIcon.text:setColoredText({"CaveBot\n","white","ON","green"})
  else
    cIcon.text:setColoredText({"CaveBot\n","white","OFF","red"})
  end
  if TargetBot.isOn() then
    tIcon.text:setColoredText({"Target\n","white","ON","green"})
  else
    tIcon.text:setColoredText({"Target\n","white","OFF","red"})
  end
end)

Para que a macro funcione corretamente, será necessário:

Inserir a macro em Tolls > Ingame script editor (Caso possua outros scripts, você deverá rolar a barra até o final, saltar alguns espaços e colar o nome em seguida).

Clique sobre as opções no canto superior esquerdo da tela para ativar/desativar.