local useKnife = true local useStake = true -- Script local knifeBodies = {4286, 4272, 4173, 4011, 4025, 4047, 4052, 4057, 4062, 4112, 4212, 4321, 4324, 4327, 10352, 10356, 10360, 10364} local stakeBodies = {4097, 4137, 8738, 18958} macro(500,"Stake Bodies", function() for i, tile in ipairs(g_map.getTiles(posz())) do for u,item in ipairs(tile:getItems()) do if useKnife and table.find(knifeBodies, item:getId()) and findItem(3299) then useWith(3299, item) end if useStake and table.find(stakeBodies, item:getId()) and findItem(3299) then useWith(3299, item) end end end end)