Jump to content

Recommended Posts

Posted

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,

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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