Use Item Around
#17
--[[
Script made by Lee (Discord: l33_) - www.trainorcreations.com
If you want to support my work, feel free to donate at https://trainorcreations.com/donate
PS. Stop ripping off my work and selling it as your own.
]]--
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)
01 Jan 2020