I'm sure someone may have thought of this, but I'm tryign to put together a macro to target critters for the "Critter Kill Squad" achievement on my hunter.
Does anyone know of a way to target "critters", i..e rats, roaches, sheep, etc. by their class or subgroup, as opposed to listing each npc individually in a /target list?
Nobgul's script above would require you to target something first, and then if it's a critter it can do something *unprotected*, like print to your chat window or raid warning frame to attack it (not attack it automagically).
Targeting is a protected action, and you can only do it by using /target in a macro or by clicking.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh