Coletar Itens

Descrição

Coletar itens no chão pelo ID.

Autor: Luiz

                
1
2
3
4
5
6
7
8
9
10
11
12
local idz = {2644, 3043} -- adicionar ID dos itens macro(100, "Coletar itens do chão", function() local z = posz() for _, tile in ipairs(g_map.getTiles(z)) do if z ~= posz() then return end if getDistanceBetween(pos(), tile:getPosition()) <= 10 then -- distância que quer coletar if table.find(idz, tile:getTopLookThing():getId()) then g_game.move(tile:getTopLookThing(), {x = 65535, y=SlotBack, z=0}, tile:getTopLookThing():getCount()) end end end end)