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
