UH + Exura Gran Ico: diferenças entre revisões

Fonte: Wot Wiki
Saltar para a navegação Saltar para a pesquisa
Sem resumo de edição
Sem resumo de edição
 
Linha 35: Linha 35:
   manaPercent = tonumber(text) or manaPercent
   manaPercent = tonumber(text) or manaPercent
end)
end)
local lastExuraGranIcoTime = 0


macro(200, "AutoHeal", function()
macro(200, "AutoHeal", function()
Linha 42: Linha 44:


   if (hppercent() <= exuraGranIcoPercent and manapercent() >= manaPercent) then
   if (hppercent() <= exuraGranIcoPercent and manapercent() >= manaPercent) then
     say("exura gran ico") -- Lance a magia Exura Gran Ico
     local currentTime = os.time()
    if (currentTime - lastExuraGranIcoTime >= 3) then
      say("exura gran ico") -- Lance a magia Exura Gran Ico
      lastExuraGranIcoTime = currentTime
    end
   end
   end
end)
end)
UI.Separator()
UI.Separator()

Edição atual desde as 13h41min de 30 de setembro de 2023

Voltar

Cole em Tolls > Insect Script Editor

Volte em macros e ative


Obs: Caso esteja usando o healbot do cliente é necessário desativar para não dar conflito (Exceto mana potions).

Script Lua:


UI.Separator()
setDefaultTab("Macro")
local exuraGranIcoPercent = 70
local uhPercent = 50
local manaPercent = 10

UI.Label("Porcentagem de HP para usar Exura Gran Ico:")
UI.TextEdit(exuraGranIcoPercent, function(widget, text)
  exuraGranIcoPercent = tonumber(text) or exuraGranIcoPercent
end)

UI.Label("Porcentagem de HP para usar UH:")
UI.TextEdit(uhPercent, function(widget, text)
  uhPercent = tonumber(text) or uhPercent
end)

UI.Label("Porcentagem de Mana para usar Exura Gran Ico (em relação à máxima):")
UI.TextEdit(manaPercent, function(widget, text)
  manaPercent = tonumber(text) or manaPercent
end)

local lastExuraGranIcoTime = 0

macro(200, "AutoHeal", function()
  if (hppercent() <= uhPercent) then
    usewith(3160, player) -- Use a runa UH (3160)
  end

  if (hppercent() <= exuraGranIcoPercent and manapercent() >= manaPercent) then
    local currentTime = os.time()
    if (currentTime - lastExuraGranIcoTime >= 3) then
      say("exura gran ico") -- Lance a magia Exura Gran Ico
      lastExuraGranIcoTime = currentTime
    end
  end
end)
UI.Separator()