Untitled

 avatar
unknown
plain_text
a year ago
361 B
3
Indexable
macro(100, "Catar ITEM", function()
local z = posz()
for _, tile in ipairs(g_map.getTiles(z)) do
if z ~= posz() then return end
if getDistanceBetween(pos(), tile:getPosition()) <= 5 then
if tile:getTopLookThing():getId() == 3043 then
g_game.move(tile:getTopLookThing(), {x = 65535, y=SlotBack, z=0}, tile:getTopLookThing():getCount())
end
end
end
end)
Editor is loading...
Leave a Comment