Code: Select all
Sub movebehind
/if $target()==FALSE {
/attack off
/return
}
/face fast nopredict
/varset MobShouldFace $char(heading)
:moveloop
/if @Combatstatus=="1" {
/if $target()==FALSE {
/return
/attack off
}
/face fast nopredict
/if n $target(heading)>=$calc($calc(@MobShouldFace-40)%360) {
/goto :right
} else {
/if n $target(heading)<=$calc($calc(@MobShouldFace+40)%360) {
/goto :left
}
} else {
/goto :end
}
/sendkey up ctrl
/face fast nopredict
}
:right
/if n $target(heading)<=$calc($calc(@MobShouldFace+40)%360) {
/goto :left
} else /if n $target(heading)>=$calc($calc(@MobShouldFace-40)%360) {
/face fast nopredict
/sendkey down Ctrl
/press Left
/press Left
/press Left
/sendkey up ctrl
/face fast nopredict
/goto :moveloop
} else {
/goto :end
}
:left
/if n $target(heading)>=@MobShouldFace {
/goto :right
} else /if n $target(heading)>=$calc($calc(@MobShouldFace-40)%360) {
/face fast nopredict
/sendkey down Ctrl
/press Right
/press Right
/press Right
/sendkey up ctrl
/face fast nopredict
/goto :moveloop
} else {
/goto :end
}
:end
/sendkey up ctrl
/return




