so i made a bot for heroes of the storm

Post gaming related scripts
hotsbot

so i made a bot for heroes of the storm

06 Sep 2018, 08:32

it does lot, but it's still fairly primitive (due to that everything it does, is done by pixelsearch)

Pause
Loop{
Combat:
PixelSearch XXXXXXXXXXXXXXXXXXXXXXXXXX
if ErrorLevel {
goto Search
}
Else {
gosub Death
;fight
gosub Run
goto Combat
}
Search:
PixelSearch XXXXXXXXXXXXXXXXXXXXXXXXXX
if ErrorLevel {
;select/MVP/summary screen clicks
goto Combat
}
Else {
gosub Mount
;use minimap to move
goto Combat
}
Mount:
PixelSearch XXXXXXXXXXXXXXXXXXXXXXXXXX
if ErrorLevel {
;mount up
Return
}
Else {
Return
}
Death:
PixelSearch XXXXXXXXXXXXXXXXXXXXXXXXXX
if ErrorLevel {
Return
}
Sleep 4000 ;to keep from spamming abilities on respawn
goto Death
}
Run1:
PixelSearch XXXXXXXXXXXXXXXXXXXXXXXXXX
if ErrorLevel {
;run away
Sleep 1000
gosub Run2
Return
}
Return
}
Run2:
PixelSearch XXXXXXXXXXXXXXXXXXXXXXXXXX
if ErrorLevel {
;run away
Sleep 1000
gosub Run3
Return
}
Return
}
Run3:
PixelSearch XXXXXXXXXXXXXXXXXXXXXXXXXX
if ErrorLevel {
;run away
Sleep 1000
gosub Run4
Return
}
Return
}
Run4:
PixelSearch XXXXXXXXXXXXXXXXXXXXXXXXXX
if ErrorLevel {
;run away
Sleep 1000
gosub Run5
Return
}
Return
}
Run5:
PixelSearch XXXXXXXXXXXXXXXXXXXXXXXXXX
if ErrorLevel {
;run away
Sleep 1000
gosub Hearth1
Return
}
Return
}
Hearth1:
PixelSearch XXXXXXXXXXXXXXXXXXXXXXXXXX
if ErrorLevel {
Return
}
goto Hearth2
}
Hearth2:
PixelSearch XXXXXXXXXXXXXXXXXXXXXXXXXX
if ErrorLevel {
goto Hearth1
}
Sleep 6000
goto search
}
}
F1:: Pause

yes it's basic, because that's the limit of my AHK knowledge. I'm happy with the functionality (with the exception of occasional wonkiness, due to everything being PixelSearch), but IT IS very clunky.

MY QUESTION IS, is there any obvious ways to improve it?

Thank you in advance, also feel free to ask any questions.

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 3 guests