Jump to content
Sign in to follow this  
JustInuYasha

PixelGetColor?

Recommended Posts

JustInuYasha

Okay, in the code, as you can see, it searches the pixel before the first click, and then it moves on after it's worked.

But when I try to do it with the second click, it keeps doing that "left" click because obviously the script thinks that $aAttack is always equal to $bAttack when it obviously isn't and Shouldn't be.

Anyone got some suggestion for me?

I've tried just PixelSearch for a 00FF00 color, but that doesn't seem to help either.

Thanks

While 1
    $GoodRod = PixelGetColor(526,416)
        Sleep(500)

        Do
            MouseClick("left",316,227)
            $BattleRod = PixelGetColor(526,416)
            Sleep(100)
        Until $GoodRod <> $BattleRod
        Sleep(2000)
        Send("{SPACE}")

    $bAttack = PixelGetColor(473, 455)
                        Sleep(500)

        Do
            $aAttack = PixelSearch(
            MouseClick("left",494,564)
            Sleep(500)
        Until $aAttack <> $bAttack
        Sleep(10000)

WEnd

EDIT - DELETE THIS TOPIC PLEASE!!!!!

I dont' know how I managed to post it twice!!!!!!

Thank you

Edited by JustInuYasha

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.