Following offensive target?

Zandros

Script Author: VGA
Is there any way to use this software to /follow my offensive target?
Yes, save the following code to a file such as FollowOffensive.iss to your script folder.

Whenever you want to follow your target staying within 5 meters, just type in: /run FollowOffensive or if you want to set a distance then type in something like this: /run FollowOffensive 20

To stop following the target... just press the ESC key to clear your target which will end the script. Running this script without a target will also end it.

To take it even further... you can put this in a macro so that you can just push the button and it will chase the target

Code:
main(int Distance = 5)
{
     while ${Me.Target(exists)}
     {
          ;; slow this down
          wait .5

          ;; loop until target doesn't exist or within the distance you define
          if ${Me.Target.Distance}>=${Distance}
          {
               while ${Me.Target.Distance}>=${Distance}
               {
                    ;; slow this down
                    wait .1

                    VG:ExecBinding[moveforward]
                    face ${Me.Target.X} ${Me.Target.Y}
                    if !${Me.Target(exists)}
                    {
                         break
                    }
               }

               ;; stop moving forward
               VG:ExecBinding[moveforward,release]
          }
     }
}
 
Last edited:
Top Bottom