Jump to content

Recommended Posts

Posted (edited)

Func GetOwnHealth()
    $y = 130 - 72 + $Pos[1]
    $intX = 217 - 109 + $Pos[0]
    $endX = 354 - 109 + $Pos[0]
    For $x = $intX to $endX
        If PixelGetColor($x,$y) == 1447446 Then
            ExitLoop
        EndIf
    Next
    Return Int(($x-$intX)/($endX-$intX)*100)
EndFunc

I've had this for a long time. It is part of my bot.

Edited by Manadar

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
×
×
  • Create New...