postreply Home » Forums » Hero Online » Hero Online Submissions

AutoIt3 : Hero Online Submissions

Posted: November 11th, 2006, 6:06 am
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, 3:58 pm
xxxgod

Total Posts: 416
Joined: August 31st, 2006, 1:58 pm
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.
Want Advertisements After The Last Post Removed? Create A Free Account!
blue large dotWho is online
Users browsing this forum: No registered users and 2 guests
postreply