Roby123 Posted June 4, 2009 Share Posted June 4, 2009 Goodmornig to Everybody! I want to create a bot that go around a map (a flash map) find an Item (that has a lot of color) and click on it and send left ctrl this is the code Func streuner() while 1 $trovato=false $puntoX = Random($MiniMappaXa, $MiniMappaXb, 1); $puntoY = Random($MiniMappaYa, $MiniMappaYb, 1); MouseClick( "left", $puntoX, $puntoY, 1, 0) $loop=0 while $loop=0 call("nemico") $colore="0xFF0000" $pixel=PixelSearch ( 0,20, 20,40,$colore ) If Not @error Then $trovato= True MouseClick($pixel[0], $pixel[1], 1,0) Send("{LCTRL}") $loop=1 EndIf wend Sleep(1000) wend endFunc with minimappa I choose a random cupple number's for decide the coordinate, it does it only once time and I don't know why! and it doesn't find the pixel color iven if the items is on the window! Please help me! Thanks for the answers Roberto Link to comment Share on other sites More sharing options...
oMBRa Posted June 4, 2009 Share Posted June 4, 2009 try to use shade varations, and... what game is it? Link to comment Share on other sites More sharing options...
Roby123 Posted June 4, 2009 Author Share Posted June 4, 2009 try to use shade varations, and... what game is it?the game is darkorbit if you want to see what is it insertnick -venge-password sapessi90then click to startthat is the window I need and streuner the Item that I want to capture! Link to comment Share on other sites More sharing options...
Roby123 Posted June 4, 2009 Author Share Posted June 4, 2009 Nobody Can Help me??? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now