Jump to content

Recommended Posts

Posted

Func _checkhealth()
Do
    $pixeltest = Pixelgetcolor(459, 58)
    sleep(200)
Until $pixeltest = 0x0C0301
endfuncoÝ÷ Ø m Ø^²+njب+)¥ÓÓ}5r§ë,äÓë®*mç²Ú0¢¹&¢·¥G­+Å©©ê­kkÊ)à¶hÉë"z0Û"Ê+­ç-r^jëh×6Func _checkhealth()
Do
    $pixeltest = Pixelgetcolor(459, 58)
    sleep(200)
Until $pixeltest Other Than = 0xBD0400
endfunc

The color 0xBD0400 is static, and used in 3 other parts of the script. I don't want to go into explaining why. But I hope you understand what I'm asking.

Posted (edited)

I'll toss it in there, see how it goes.

Does <> mean greater than or less than? basically telling the program "anything other than"?

Edited by Melkor2
Posted

Seeing as it's constant, make it a constant:

Const $COLOR = 0xBD0400
Then I think this might be what you want for the second part:

Until $pixeltest <> $COLOR
<> means "different"

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...