Pegar Blueberry: diferenças entre revisões
Saltar para a navegação
Saltar para a pesquisa
(Criou a página com "<span style="font-size: 18px;">Voltar</span> Cole em Tolls > Insect Script Editor arquivo:insetc.png Volte em macros e ative em "MACROS". <div class="mw-custom-box"> '''Script Lua:''' <pre> 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",...") |
Sem resumo de edição |
||
Linha 5: | Linha 5: | ||
[[arquivo:insetc.png]] | [[arquivo:insetc.png]] | ||
Volte em macros e ative em " | Volte em macros e ative em "MACRO". | ||
Revisão das 23h40min de 27 de setembro de 2023
Cole em Tolls > Insect Script Editor
Volte em macros e ative em "MACRO".
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()