Movebehind and checking agro

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

MrSmallie
a hill giant
a hill giant
Posts: 167
Joined: Fri Oct 11, 2002 11:18 am

Movebehind and checking agro

Post by MrSmallie » Tue Mar 23, 2004 6:01 pm

I play around with a rogue macro, and occasionally the rogue will get agro and proceed to do the goofy dance with the mob ;)

So I was trying to figure out a way to see if he had agro. The best I could come up with is this:

Code: Select all

      /assist $target(name,clean)
      /if $target(name,clean)==@myname /goto :End
      /assist @tankname
|.......get behind and do your thing..........
   :End 
|...don't bother dancing with the mob trying to kill you.....
      /assist @tankname 
|Just keep attacking....
So is there a better way?
Me
[img]http://home.comcast.net/~mrsmallie/ches.JPG[/img]

MrSmallie
a hill giant
a hill giant
Posts: 167
Joined: Fri Oct 11, 2002 11:18 am

Post by MrSmallie » Fri Mar 26, 2004 12:09 pm

Any ideas? This seems to work...but it seems....crude.
Me
[img]http://home.comcast.net/~mrsmallie/ches.JPG[/img]

sumdumgeek
decaying skeleton
decaying skeleton
Posts: 4
Joined: Fri Mar 26, 2004 1:09 am

Post by sumdumgeek » Fri Mar 26, 2004 3:25 pm

I've been doing something like

Code: Select all

/varset MyID $char(id)
/assist
/if n $target(id)==@MyID {
...
}
I agree, it's inelegant. Unfortunately, I suspect the client doesn't get told "the target of your target is" normally (some of the new leadership AAs would force it, though); it just tells the server "hey, I wanna assist <ID>" and the server sends "yeah? Okay, your new target is <ID>"...

LamahHerder
a hill giant
a hill giant
Posts: 299
Joined: Sat Jun 29, 2002 2:37 am

Post by LamahHerder » Mon Mar 29, 2004 1:32 pm

Yea ive been trying to think of good logic to do that as well

/assist is too slow and cumbersome and a loss of dps,

Events will be alot of info you dont want to process

the leadership "Target's Target" is server side and cant get that info with MQ

Only solution i have thought of is to do target heading checks
move a little bit and compare your current target heading to your char heading every few steps possibly, if it turns with you then do not do movebehind stuff, and keep rechecking...
Just havnt coded this yet as i think it may be a little buggy.

anon_coward
a lesser mummy
a lesser mummy
Posts: 40
Joined: Wed Mar 24, 2004 11:11 pm

Post by anon_coward » Mon Mar 29, 2004 1:58 pm

What about just staying on the oposite side from the MA. I havent put much thought into it yet, but you should be able to take the position of the MA and the mob and calculate where to stand. Of course this only works if there is only one MA, and they hold agro well enough.