Auto Loot Look

Fonte: Wot Wiki
Revisão em 13h30min 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 doAutoLootLook = macro(5000, "Auto Loot on Look", "*", function() end) onTextMessage(function(mode, text) if mode == 20 and text:find("You see") and doAutoLootLook:isOn() then local regex = a)([a-z A-Z]*). local data = regexMatch(text, regex)[1] if data and data[2] then say('!autoloot add, ' ....")
(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 doAutoLootLook = macro(5000, "Auto Loot on Look", "*",  function() end)
onTextMessage(function(mode, text)
    if mode == 20 and text:find("You see") and doAutoLootLook:isOn() then
        local regex = [[You see (?:an|a)([a-z A-Z]*).]]
        local data = regexMatch(text, regex)[1]
        if data and data[2] then
            say('!autoloot add, ' ..data[2]:trim())
        end
    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).

Aperte ou altere a tecla * para ativar ou desativar a macro, em seguida dê look em algum item.