Selective Alarm

Abjuration
Level: Artificer * 3, Bard * 3, Hunter * 2, Inquisitor * 3, Ranger * 2, Sorcerer */Wizard * 3, Summoner * 3
Components: V, S, F/DF (a slender iron rod 1 foot in length)
Casting Time: 1 Standard Action
Range: close (25 ft. + 5 ft./2 levels)
Area: up to 20-ft.-radius emanation, centered on a point in space
Duration: 2 hours/level (D)
Saving Throw: None
Spell Resistance: no
  This spell functions as alarm, except that you can tweak the spell to be more discerning in what types of creatures or objects trigger the alarm. Instead of being triggered whenever a creature of Tiny size or larger enters the warded area, you can set whatever triggering conditions you wish, as long as they are based on observable phenomenon. For example, you could cause the selective alarm to trigger when creatures of a certain race (such as orcs, bugbears, or kobolds) enter the area, or whenever a group of four or more creatures enters the area together, or when a metal Object is brought into the area. You can't choose triggering conditions that rely on unobservable information, such as having it triggered when creatures of a certain alignment enter the area, nor could you have the alarm be triggered by "something worth more than 5,000 gp" entering the area, or even "a weapon" entering the area, because an item's value and classification as a weapon is subjective, and might vary from one person to the next.