Hi all, I have a little issue with the bot I'm doin using the tt6 move to engine. I'm trying the make it scan in front of my charc on the minimap to check if enemies are present.
So here's the func:
And here's how I've used it in my script:
Still it doesnt seem to be working as my charc moves to the next waypoint while there is or isnt any enemies in front. So I was wondering if anyone could help me out.
Thx
So here's the func:
Code:
;scan if enemy is in front of us
Func ScanEnemy1()
PixelSearch(86, 460, 173, 516, $MonsterColor_Red, 10)
If @error then
Sleep( 100 )
PixelSearch(86, 460, 173, 516, $MonsterColor_Red, 10)
if @error then return False
EndIf
return True
EndFunc
Code:
;go to Lissah PrepMoveTo() MoveTo(1, 17619, -17449) MoveTo(1, 15697, -15812) MoveTo(1, 13328, -14471) MoveTo(1, 11022, -12727) MoveTo(1, 10985, -12696) RndSleep(200) ;check enemy in path StopMoveTo() RndSleep(500) InitDest(4140, -11602) If ScanEnemy1() Then Sleep(100) EndIf If Not ScanEnemy1() Then ContinueLoop ;resume PrepMoveTo() MoveTo(1, 9504, -12488) MoveTo(1, 7695, -10883) MoveTo(1, 4239, -11442) MoveTo(1, 4140, -11602) EndIf
Thx