Jump to content

Autoit isn't consistent?


Recommended Posts

I'm making a bot for a game. and it seems like half the time it works, half the time it doesn't?

Does that happen to anyone else? Like the first few times it would work, then it would just start messing up?

E: btw im still kinda new to it

Edited by Disciples
Link to comment
Share on other sites

I'm making a bot for a game. and it seems like half the time it works, half the time it doesn't?

Does that happen to anyone else? Like the first few times it would work, then it would just start messing up?

E: btw im still kinda new to it

Maybe you should change your topic title to:

My script isn't consistent.

However, different games use different means to prevent bots from working. Maybe you should just play the game as a human.

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
Share on other sites

;Hdin bot for GUBERS
;You have to start in the X at the bottom right
;it teles to spot, and hammers for 130 seconds
;then, teles around area and spams hammers
;to clear strays

    HotKeySet("{f3}","start")
    HotKeySet("{f4}","stop")
    HotKeySet("{f5}","_Exit")
; start= start
; stop = pause (doesn't work too well)
;_Exit = exit
    
    Global $ON = False
    While 1
            While $ON = True
                
        Send ("{f2}")
;f2 = tele
        sleep(1000)
        MouseClick ("right",252,235)
        sleep(100)
        MouseClick ("right",210,235)
        sleep(100)
        MouseClick ("right",282,239)
        sleep(100)
        MouseClick ("right",435,309)
        sleep(100)
;tele up spot to trap merc
        MouseClick ("left",845,487)
        sleep(500)
        MouseClick ("left",602,282)
        sleep(500)
        MouseClick ("left",249, 383)
        sleep(500)
        MouseClick ("left",264,620)
        sleep(500)
        MouseClick ("left",513,654)
        sleep(1000)
;walk to spot after merc is trapped
        Send ("{w}")
        sleep(2000)
        Send ("{f8}")
        sleep(2000)
        MouseClick("right")
        sleep(1000)
        Send ("{f7}")
        sleep(100)
        MouseClick("right")
        sleep(1000)
        Send ("{w}")
        Sleep(100)
        Send ("{f1}")
        sleep(100)
        Send ("{Enter}")
        Send ("Ready")
        Send ("{Enter}")
    MouseMove(957,642)
    sleep(100)
    Send("{ShiftDown}")
    sleep(100)
    MouseDown("left")
    Sleep("130000")
    MouseUp("left")
    Send("{ShiftUp}")
    sleep(100)
;spin for 130 seconds
    
    Send ("{f2}")
    MouseClick("right",362,431)
    sleep(1000)
    Send("{ShiftDown}")
    sleep(1000)
    Mousedown("left")
    sleep("2000")
    MouseUp("left")
    Send(" {ShiftUp}")
    MouseClick("right",893,615)
        Send("{ShiftDown}")
    sleep(1000)
    Mousedown("left")
    sleep("2000")
    MouseUp("left")
    Send(" {ShiftUp}")
    MouseClick("right",805,267)
        Send("{ShiftDown}")
    sleep(1000)
    Mousedown("left")
    sleep("2000")
    MouseUp("left")
    Send(" {ShiftUp}")
    MouseClick ("right",434,378)
    Send("{ShiftDown}")
    sleep(1000)
    Mousedown("left")
    sleep("2000")
    MouseUp("left")
    Send(" {ShiftUp}")
    MouseClick ("right",460,464)
    Send("{ShiftDown}")
    sleep(1000)
    Mousedown("left")
    sleep("2000")
    MouseUp("left")
    Send(" {ShiftUp}")
    sleep(1000)
; after 130 seconds are done, teles around and clears strays
    MouseClick ("right",984,616)
    sleep(250)
    MouseClick ("right",987,593)
    sleep(250)
    MouseClick("right",968,658)
    sleep(250)
    MouseClick("right",958,519)
    sleep(250)
    MouseClick("right",767,330)
    sleep(250) 
    MouseClick("left",568,406)
    sleep(100)
    Send ("{f6}")
    sleep(100)
    MouseClick("right")
;tele back to reset
    sleep(19000)
; stay for 20 seconds, then repeats.
    WEnd
        WEnd
        Func start()
    $ON = True 
EndFunc

    Func stop()
        $ON = False
    EndFunc
    
    Func _Exit()
        $ON = False
Exit
Endfunc

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...