A macro that keeps you a certain distance away from a mob

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

Zorg
a lesser mummy
a lesser mummy
Posts: 44
Joined: Fri Oct 18, 2002 7:01 pm

A macro that keeps you a certain distance away from a mob

Post by Zorg » Wed May 28, 2003 6:54 am

I'm working on a macro that runs you in a circle, always staying between x and y feet away from the targetted mob. However, I've run into a problem.

My idea is to have the macro /face the character at an angle to the mob so that his speed in the mob's direction is exactly equal to the mob's, which should maintain distance at a set number. Basically, something along the lines of /face sin^1(PCspeed/Targspeed)

However, it appears that $char(speed) and $target(speed), when used on a mob, use different units. My character's speed can be listed at say, 0.8, while I'm easily outrunning a mob with speed listed as 1.2, which means something's wrong. Anyway to convert between the two? And any comments on whether or not my idea will even work?

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Wed May 28, 2003 10:34 am

If you search the Macro Depot you should be able to find a kiting script that will have the method you need in it.
MQ2: Think of it as Evolution in action.