Attacked

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

javelinl
a lesser mummy
a lesser mummy
Posts: 70
Joined: Thu Mar 11, 2004 12:40 pm

Attacked

Post by javelinl » Tue Apr 27, 2004 1:03 pm

Is there a variable for detecting if someone is being attacked and / or who is attacking them?

A problem I'm running into with bots, is detecting who is blasting them and sending the warrior to go thump the offending caster.

I'm quite comfortable handling the check loops etc... but Me.Combat only is positive if you hit auto attack.

Preocts
a snow griffon
a snow griffon
Posts: 312
Joined: Thu Jan 29, 2004 1:02 pm

Post by Preocts » Tue Apr 27, 2004 1:12 pm

You prolly want to do an #Event concerned with getting hit by melee and non-melee damage. Just pull the name of the mob attacking you from that message and send it down the bot line.
Is there a variable for detecting if someone is being attacked and / or who is attacking them?
No. Most/all that information is server-side of course. :wink: