Reply
 
Thread Tools Display Modes
Old 01-08-11, 11:16 PM   #1
Whiplash73
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.
Whiplash73 is offline   Reply With Quote
Old 01-08-11, 11:20 PM   #2
Nobgul
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
end

and you need to register it
:RegisterEvent("UNIT_TARGET"
__________________
Nobgul is offline   Reply With Quote
Old 01-09-11, 04:12 PM   #3
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 9,529
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

Seerah is offline   Reply With Quote
Old 01-09-11, 05:44 PM   #4
Saiket
A Chromatic Dragonspawn
 
Saiket's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 152
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.
Saiket is offline   Reply With Quote
Reply

Go BackWoWInterface » 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