Pegar Blueberry

Fonte: Wot Wiki
Revisão em 23h46min de 27 de setembro de 2023 por Igorlabanca (discussão | contribs)
(dif) ← Revisão anterior | Revisão atual (dif) | Revisão seguinte → (dif)
Saltar para a navegação Saltar para a pesquisa

Voltar

Cole em Tolls > Ingame Script Editor

Volte em macros e ative em "MACRO".

Agora basta fazer a cave bot andando pelos corredores da sua plantação!

Caso não saiba como fazer a cave bot, temos um tutorial pra você clicando aqui > Cavebot

Bom jogo!


Script Lua:


UI.Separator()
setDefaultTab("Macro")

local c = {
    pickUp = { 3588, 11792 }, -- IDs dos itens que você deseja pegar
    CheckPOS = 2 -- Distância
}

local useitemlist = { 3699 }
local macrotime = 200 -- Delay do macro

macro(macrotime, "Pegar BB WOT", function()
    for x = -c.CheckPOS, c.CheckPOS do
        for y = -c.CheckPOS, c.CheckPOS do
            local tile = g_map.getTile({x = posx() + x, y = posy() + y, z = posz()})
            if tile then
                local things = tile:getThings()
                for i, item in pairs(things) do
                    if table.find(c.pickUp, item:getId()) then
                        local containers = getContainers()
                        for _, container in pairs(containers) do
                            g_game.move(item, container:getSlotPosition(container:getItemsCount()), item:getCount())
                        end
                    end
                end
            end
        end
    end

    local tiles = getNearTiles(pos())
    for _, tile in pairs(tiles) do
        local topThing = tile:getTopUseThing()
        if topThing and table.find(useitemlist, topThing:getId()) then
             g_game.use(topThing)
        end
    end
end)

UI.Separator()