Func gegenrot ()
Dim $coord[2] ; ist nicht nötig
While 1
Sleep ( 100 )
$coord = PixelSearch(0,0,1280,1024,0xFF060E,100,90)
sleep (10) ; Das ist der Fehler!
if not @error then ; @error ist immer 0 da es sich auf das Sleep bezieht und,
; dass klappt ja immer
MouseClick("left",$coord[0],$coord[1],10)
sleep (10)
EndIf
WEnd
EndFunc
Liegt wohl daran, dass die Funktion PixelSearch von dir falsch benutzt wird.
Schau mal nach wie die funktioniert, dann solltest du darauf kommen warum
dein Bot das macht was er macht...
wenn du vor das @error ein Sleep (10) machst, bezieht sich das @error auf den sleep-befehl
da aber sleep keinen fehler produziert, will er die koordinaten anklicken; diese wurden aber gar nicht bestimmt, weil das PixelSearch ja einen fehler gemacht hat!
Pixelbot 06/24/2008 - Silkroad Online - 1 Replies I´m working on a pixelbot and so far it works fine :)
But moving the character seems to be hard. I could let the user save some waypoints,but if the char attacks a monster he is out of the waypoints and so the waypoints aren´t correct anymore.
So does anyone know a good way to move the char?
With AutoIT :)
Pixelbot... 12/30/2006 - Conquer Online 2 - 8 Replies Hi all,
I search on forum but I don't find how make a pixelbot
and I answer if it is possible to make pixelbot in c++?
thx bb