RareAlert

This simple addon shows a raid warning and plays the raid warning sound when a rare creature or treasure appears on your minimap. This means you can keep your eyes on the game world and only look at the minimap when you hear the sound.

1.4

Disabled alerts while in garrison to avoid spam from invasions.
Bumped ToC for patch 6.0.

I hope they fix those bugs. What irks me from the system used by, for example, NPC Scan is that it depends on managing the cache. I know that system lets you search for many more things than just "rares", but anyway...

This new feature of showing rares on the minimap is really cool and I hope they extend it to every rare in the game (if it isn't already like that, of course!).

You could also just use objectIcon != 41, but I wanted to catch any other values if they existed.
name is check for nil due to a bug with large IDs returning nil for x,y,name.

@Egris - nice stuff there. I had hacked it up almost exactly the same, but like yours a bit more given it checks for the icon instead of the name itself. Any way to work around the name bug that anyone knows of? I'd like to get names for any alert if possible...or at least position since finding them still takes a bit of searching once the alert pops.