This updated version will stop moving if you don't have a target and you were autorunning. It will also end if you change targets.
I must admit the idea just came to me. I have done limited testing, so if anyone notices any problems, please let me know.
Code: Select all
#turbo
Sub Main
/declare FollowWho string outer
/if (!${Target.ID}) {
/echo You must select a target to follow
/return
}
/varset FollowWho ${Target.Name}
/echo Following ${FollowWho}
:Loop
/if (${Target.Distance}>60) /keypress up hold
/if (${Target.Distance}<40) /keypress up
/face fast
/delay 2
/if (${Target.ID} && ${Target.Name.Equal[${FollowWho}]}) /goto :Loop
/keypress down
/return

