auto(100)
local idsToFind = {3031, 3035} -- items ids to find
local tiles = g_map.getTiles()
for _, tile in pairs(tiles) do
local topItem = tile:getTopItem()
if topItem then
for _, id in pairs(idsToFind) do
if topItem:getId() == id then
playSound("alarm.wav")
sleep(1000)
return
end
end
end
end
Remember to enable "Read map tiles" in Info & options tab.