It wont recognize the specific note. It only works for "note". Any ideas how to solve the problem?
function thanks()
-- iterate through all contained items on alcove, checking for a matching name
for i in northern_dungeon_alcove_20:containedItems() do
if i.name == "note_17" then
i:destroy()
pressure_plate_hidden_152:destroy()
break
end
end
end