Jump to content

bot ?


Recommended Posts

okay i need a bot to a game where some gnats spawn all the time and then i have to click on them...

here is my script (still need somethink . that what i need help for)

[/code]MsgBox (0,"",""); that is just so i can switch to the browser
do
$1= PixelSearch (180,350,780,755,11162191,0,1); some of the possible colors it need to click on
$2= PixelSearch (180,350,780,755,9068879,0,1); some of the possible colors it need to click on
$3= PixelSearch (180,350,780,755,7227967,0,1); some of the possible colors it need to click on
$4= PixelSearch (180,350,780,755,16777215,0,1); some of the possible colors it need to click on


if PixelSearch (180,350,780,755,16777215,0,1) = PixelSearch (180,350,780,755,16777215,0,1) then; the problem comes up here ... what do i need to wright so it can click on the gnat there it
spawn? i cant use mouseclick for then i need a x and a y but this is nearly never the same
if PixelSearch (180,350,780,755,7227967,0,1) = PixelSearch (180,350,780,755,7227967,0,1) then; the problem comes up here ... what do i need to wright so it can click on the gnat there it spawn? i cant use mouseclick for then i need a x and a y but this is nearly never the same
if PixelSearch (180,350,780,755,9068879,0,1) = PixelSearch (180,350,780,755,9068879,0,1) then; the problem comes up here ... what do i need to wright so it can click on the gnat there it spawn? i cant use mouseclick for then i need a x and a y but this is nearly never the same
if PixelSearch (180,350,780,755,11162191,0,1) = PixelSearch (180,350,780,755,11162191,0,1) then; the problem comes up here ... what do i need to wright so it can click on the gnat there it spawn?  i cant use mouseclick for then i need a x and a y but this is nearly never the same
until send ("{f8}")
Edited by TheOnlyOne
Link to comment
Share on other sites

Here is a little script to get you started.....

$search=PixelSearch(50,50,200,200,162775,50)
if IsArray($search) then 
MsgBox(0,"","found that colour at X"&$search[0]&"   Y"&$search[1],0)
MouseMove($search[0],$search[1])
Else
    MsgBox(0,"Error","not found",0)
EndIf
Link to comment
Share on other sites

sleep (3000)
Dim $Game,$mid
Dim $My_Color =0xA37649
Dim $My_Color2 = 0xAC130B
Dim $My_Color3 =0xA72010
opt("MouseCoordMode", 0)       ;see Level I or Search Help for "options".
Opt("PixelCoordMode", 0)       
do
$hitgnot = PixelSearch( 180, 350, 780, 755, $My_Color, 50, 10) 
        If Not @error Then MouseClick("left", $hitgnot[0], $hitgnot[1], 1, 0)
        
$hitgnot2 = PixelSearch( 180, 350, 780, 755, $My_Color, 50, 10) 
        If Not @error Then MouseClick("left", $hitgnot2[0], $hitgnot2[1], 1, 0)
    until run ("nothink.exe")

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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