Use Item Around
#17
local useitemlist = { 3035 }
macro(500, "use item around", function()
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)
- remove | + add
01 Jan 2020