Sign in to follow this  
Followers 0
Melkor2

Need Help Revising A Script.

5 posts in this topic

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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
Edited by Piano_Man

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites

#3 ·  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

Share this post


Link to post
Share on other sites

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"

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0