Post Reply Home » Forums » Hero Online » Hero Online Submissions

AutoIt3 : Hero Online Submissions

Posted: November 11th, 2006
svanteh
Can't be arsed creating a full bot so I'll just release functions that I created, simple.

Code: Select all

Const $_color_health = 8650752
Const $_depth_health = 0.8

Func DetectHealthBar()
	$i = 0
	$match = PixelSearch(0,70, 1024, 768, $_color_health)
	if not @error Then
		$color = PixelGetColor($match[0], $match[1])
		$i = $i +1
		Do
		$color = PixelGetColor($match[0]+$i, $match[1])
		$i = $i +1
		Until $color <> 8650752
	;ConsoleWrite(($i-1)*$_depth_health & chr(10))
	Return ($i)*$_depth_health
	EndIf
EndFunc
Basically DetectHealthBar returns the exact % of your current health.
This should work aslong as you keep the healtbar in the northwest part of the program :p
Posted: November 11th, 2006
Total Posts:416 Joined:2006
Not really needed as we allready have these in exe format.. and myself and few others are working on one WHOLE bot...

Also Wrong forum, i moved it now.
Ready to join the community? Click here and see all of the benefits!
blue large dotWho is online
Users browsing this forum: No registered users and 9 guests
Post Reply