Page 1 of 1

AutoIt3

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

Code: Register to unlock hidden link

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, 3:58 pm
by xxxgod
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.