Jump to content

Aim for a flashgame


Recommended Posts

hey all, i started to do autoit scripts a while ago, and have been setting small goals for programs for me to make, but now i have come to a program that i cant really get myself out of:

I saw this game: http://www.albinoblacksheep.com/flash/curveball

and thought i would make an aimbot for it since its pretty simple and the ball is just green which would be easy to make a bot for, i thought.

So it started out fine and it works, but it doesnt follow the ball that good, and i guess that is because it is only following 1 pixel of the ball, and therefore i wanted to ask if anyone knew how to make it center a group of pixels, like a little picture, or in this case a ball.

I also have another problem i want to make it so that i can press PauseBreak and then it should aim and then when i press again it should stop, anyways here is the script:

HotKeySet("{ESC}","qt")
HotKeySet("{PAUSE}","bot" )
While 1 = 1
    WEnd
Func bot()
$c=PixelSearch(405,265,875,580,0xB2FF9F)
If IsArray($c) Then MouseMove($c[0],$c[1],0)
EndFunc
Func qt()
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...