local idsToFind = {3031, 3035}
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")
break
end
end
end
end
auto(100)
Remember to enable the "read map tiles" box in info & options tab.
Also reading tiles is limited to the current floor you are at the moment. I'm looking into expanding this tho.