Speed Question

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

Tuffy
a lesser mummy
a lesser mummy
Posts: 33
Joined: Thu Oct 02, 2003 9:20 am

Speed Question

Post by Tuffy » Wed Mar 03, 2004 5:25 pm

I'm trying to tell if a mob has been snared without using events. Will this work?

Code: Select all

Sub main
   /delcare MobSpd global
   /declare spell global
   /varset spell  "Put Spell Here"
/call Speed
/return

Sub Speed

   /varset @MobSpd $target(speed)
:SpdLoop
   /if n @MobSpd==$target(speed){
   /cast "@spell"
   /delay 7s  
   /goto :SpdLoop
}
/return

Gumby
a ghoul
a ghoul
Posts: 99
Joined: Sat Jan 24, 2004 5:27 pm

Post by Gumby » Thu Mar 04, 2004 1:46 am

For most non-GoD mobs:

Code: Select all

/if n $target(speed)<100 {
   //target is snared
}
Assuming it's agro.

G

Tuffy
a lesser mummy
a lesser mummy
Posts: 33
Joined: Thu Oct 02, 2003 9:20 am

Post by Tuffy » Thu Mar 04, 2004 12:03 pm

GoD is why I did what I did. I tested it last night when I got home. It worked for my purpose.

Thanks for the suggestion,

Gumby
a ghoul
a ghoul
Posts: 99
Joined: Sat Jan 24, 2004 5:27 pm

Post by Gumby » Thu Mar 04, 2004 12:59 pm

Tuffy wrote:GoD is why I did what I did. I tested it last night when I got home. It worked for my purpose.

Thanks for the suggestion,
Yeah, I made the qualification for GoD because some mobs have ridiculous speed values (250 and higher, a la pally horse speed, stupid kyv mobs) and while these don't run and I don't even think you can snare most mobs that are of this sort, I put the qualification as in theory snaring might not bring them down sub 100 for speed.

I haven't really tested it though in GoD, everywhere else it's great. Thanks for letting me know it works there too :).

G