Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 17:41

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



AutoIt - AIMBOT for Health Bars

Discussion on AutoIt - AIMBOT for Health Bars within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2012
Posts: 1
Received Thanks: 0
AutoIt - AIMBOT for Health Bars

Hey guys... newbie here trying to make a simple little bot, but stuck in one important aspect. Clicking BELOW the moving Health Bar.

What I want to do is... once the mouse is in the area of a moving health bar, autoit pixelsearches a fixed parameters of say 50height x 150length relative to the position of the mouse, for the health bar, once it finds it, the mouse follows the moving bar indefinitely or until the bar disappears, while at the same time, and this is the hard part, clicking in a box right below the moving blue bar. Where the mouse is, is irrelevant, as long as its able to click the box below the bar.

This one has me stomped. Any pros can solve this?

Health Bar Example:

Code:
HotKeySet('{ESC}','_exit')
sleep(2000)

While 1
Global $mouse = MouseGetPos()

            $Coord = PixelSearch( $mouse[0]-150, $mouse[1]-45, $mouse[0]+150, $mouse[1]+45, 0x3F48CC, 5, 5) ; Search a blue bar near mouse position
                While @error = 0
                MouseClick("left",$coord[0]+45,$coord[1]+40)
                MouseMove($coord[0], $coord[1], 1)
                $Coord = PixelSearch( $mouse[0]-40, $mouse[1]-40, $mouse[0]+40, $mouse[1]+40, 0x3F48CC, 5, 5)
                WEnd

sleep(100)
WEnd

Func _exit()
    Exit
EndFunc
darksoltan is offline  
Old 02/02/2012, 22:06   #2
 
TimeTooChill's Avatar
 
elite*gold: 0
Join Date: Sep 2009
Posts: 461
Received Thanks: 55
you can run more then one function without stopping the script with and to close the funktion:
TimeTooChill is offline  
Old 03/22/2012, 21:51   #3
 
elite*gold: 0
Join Date: Sep 2011
Posts: 1
Received Thanks: 0
I'm not sure If this does what you want it to do, or if it will work for what you're trying to make, but it works in the example gif you've provided.

Code:
HotKeySet('{ESC}','_exit')


While 1
	Global $mouse = MouseGetPos()

	$Coord = PixelSearch( $mouse[0]-300, $mouse[1]-60, $mouse[0]+300, $mouse[1]+60, 0x3F48CC, 5, 5)
		If not @error then
			MouseMove($coord[0]+45, $coord[1]+50, 0)
			MouseClick("LEFT")
		EndIf
WEnd


Func _exit()
	Exit
EndFunc
Taruxas is offline  
Reply


Similar Threads Similar Threads
[Macro]Reset action bars (remove all spells from action bars)
08/08/2018 - WoW Guides & Templates - 9 Replies
English Hi, i just found a nice macro that i think many of you could need. It will reset the action bars and remove any spell from it. (You won't lose your keybindings ;)) /run for i = 1,120 do PickupAction(i) ClearCursor() end Deutsch Hi, ich habe gerade ein nettes Makro gefunden dass glaube ich viele von euch brauchen können. Es entfernt alle Spells aus eurer Aktionsleiste und macht diese leer. (Keybinds werden nicht reseted! ;))
[AutoIt] Aimbot
04/24/2013 - Tutorials - 12 Replies
Hallo Ich möchte mal zeigen wie ihr teoretisch einen aimbot machen könnt. is halt nur schwer die richtigen Pixel zu finden. Als erstes öffnet den AuoIt editor und gibt ein: HotKeySet("{F6}","hackoff") Dieser Befehl bringt das wir jetzt mit der Taste F6 eine Funktion machen können z.B. Das Programm zu schließen
MW2 Autoit Aimbot
10/20/2010 - General Coding - 18 Replies
Hallo Ich habe folgendes Problem : Ich habe mit Autoit einen einfachen Aim gemacht. Das eigentliche Problem liegt in Pixel Search. Meine Aim sieht alles was schwarz ist als Feind an. Kann ich die Farbe der Feinde ändern ? ( z.B Neon Grün ). Für jeden hilfreichen Post gibt es ein THX :>
Change Color of KO count and/or Health Bars
09/19/2008 - Conquer Online 2 - 1 Replies
I have made several pixel based bots to lvl chars and have done ok with them up till Warrior leveling. The color of the SM KO count is same color as the healthbars of creatures and guards. My desire is to change the color of one or the other. The ultimate thing would be to change KO color and seperate Guards Healthbars a different color than creatures as well.. If anyone out there can make/explain a edit for this I would be very HAPPY!:D
Monster Health Bars
08/18/2005 - Conquer Online 2 - 4 Replies
At one point in CO, TreasureBird has no health bar, then they fixed that and MeteorDove had longer health bar than TreasureBird, then they fixed that again and game MeteorDove same health bar as TreasureBird. Everytime they made those "fixes", a patch was released. This leads me to believe that monster health bars are controlled by client. Anyone know how monster health bar size is specified for different mobs?



All times are GMT +1. The time now is 17:42.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.