Jump to content

Pixel Bot Help.


 Share

Recommended Posts

I have been recently working on a pixel bot and have achieved the core script of it and works, but of course it has an issue.

And here is the code:

While 1
    $coord = PixelSearch( 320, 250, 720, 420, 0xD5D673, 100, 5)
        If Not @error Then
            MouseMove($coord[0],$coord[1], 5000)
            MouseClick("left")
            Sleep(2000)
    Else
            MouseMove(Random(345,675), Random765, 495), 4500) ; this is where the minimap lies.
            MouseClick("left")
            sleep(Random(6700, 23900)) ; I think the issue is here.
    EndIf
WEnd

The pixelserach will find a box that has to be clicked, and if error then it will click somewhere on mini map so that my player moves and during the movement which ever box it comes across is not detected not until the sleep time under Else func is finished. is there a way to carry out pixel search while the player is moving?

Thanks in advance,

Link to comment
Share on other sites

Read this: http://www.autoitscript.com/forum/forum-2/announcement-13-forum-rules/

Br,

UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...