PDA

View Full Version : Need help with macro - announce who's aggro'ing me


ReshamDetius
02-01-2009, 10:42 PM
Hi all,

I hope I'm posting this at the right place. I couldn't find what I'm looking for doing a search, and Google wasn't any help either. I'm currently playing a priest, and having alot of trouble in PUGs when getting aggro off of lame tanks (haven't they heard of taunt?). I currently have a very simple macro that simply sends /helpme and /p I have aggro to chat, but I find the other players have trouble finding who is attacking me (especially ranged mobs).

Is there a way to send the name of the attacking mob(s) to chat? I tried looking at the WoW API, but couldn't find a way to detect attacking mobs.

edit: thought an example might be nice, I guess I'm looking for something like this:
Player says: I have aggro from Goblin Engineer!

TIA

clevins
02-01-2009, 10:52 PM
hmm... %t is the variable for your target so if you target Goblin Engineer a macro like this:

/p I have aggro from %t

would actually say in party chat

I have aggro from Goblin Engineer

IIRC mobs that target you are automatically targeted BY you, so that might work.

ReshamDetius
02-01-2009, 11:42 PM
Thanks Clevins,

I had thought about that, but my issue with this solution is that normally I'm targeting the MT, so i won't automatically target the mob attacking me. I'm trying to find a way that if I see the aggro flag popup and my health rapidly dropping I can easily trigger the macro and it would alert my party members of who is attacking me. Rather than searching which mob is attacking me, I can concentrate on keeping me and my party alive.

Surely there must be a way to get the API to return a list of targettable mobs, loop over them, and then check my threat against them? Or actually see if they're attacking me?