follow on Z axis

Macro requests from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

honduras
orc pawn
orc pawn
Posts: 14
Joined: Sat Aug 30, 2003 5:22 pm

follow on Z axis

Post by honduras » Sat Sep 20, 2003 1:31 am

Greetings


i did a little work on it . What im trying to do besides making my bot follow on x, y axis. i wanted him to follow on Z axis becuase of levitation, and swimming even.

i had came up with a version. but it isnt too responsive
__________________________________________

Code: Select all

#turbo
/varset
Sub Main
   :Loop
      /if n $target(distance)>30 /sendkey down up
      /if n $target(distance)<10 /sendkey up up
      /face fast
      /if n $calc($target(z)-$char(z))>15 /press page_up
      /if n $calc($char(z)-$target(z))>15 /press page_down
      /if n $calc($target(z)-$char(z))<5 /press home
|      /if n $calc($char(z)-$target(z))<5 /press home
      /delay 0
   /if "$target()"=="TRUE" /goto :Loop
    /if "$target()"=="FALSE" /endmacro

_____________________________________

Please advise how to make this a little better?

Thanks in advance

Edit: Valerian likes code brackets.
edit : thanks