Quantcast Critter targeting macro help - WoWInterface
Thread Tools Display Modes
01-09-11, 12:16 AM   #1
A Kobold Labourer
Join Date: Jan 2011
Posts: 1
Critter targeting macro help

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?

any help would be appreciated.
  Reply With Quote
01-09-11, 12:20 AM   #2
A Molten Giant
Nobgul's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 693
not sure about a macro but

local squishy = UnitCreatureType("target")
if (squishy == "critter") then
-- Whatever should happen here

and you need to register it
  Reply With Quote
01-09-11, 05:12 PM   #3
Fishing Trainer
Seerah's Avatar
WoWInterface Super Mod
Join Date: Oct 2006
Posts: 10,556
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

  Reply With Quote
01-09-11, 06:44 PM   #4
A Chromatic Dragonspawn
Saiket's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 154
There's no way to target by creature type or anything but name. If you want to target them using a macro, listing each critter's name is the only way.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Macro Help » Critter targeting macro help

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off