Jump to content
Sign in to follow this  
fataly

Why pixel search never work right?

Recommended Posts

fataly

I have used tooltips to show whats its doing, so, all time when its "searc" monster its find it, with out MONSTER. Understunt? so its search- there is no monster but its "fake found monster and do attack.

There is script

while 1

if PixelSearch( 418,24,419,24,0xE74542) then

sleep(1000)

ToolTip("Monster Found",0,0,"ArhclordBot")

Send($kill)

Sleep(5000)

Send($skill1)

Sleep(5000)

if not PixelSearch( 418,24,419,24,0xE74542) then

ToolTip("Looting",0,0,"ArhclordBot")

Send($loot)

Sleep(200)

Send($loot)

Sleep(300)

Send($loot)

Sleep(400)

Send($loot)

EndIf

EndIf

wend

plz help me:)

Edited by fataly

Share this post


Link to post
Share on other sites
Iklim

Did you try something like that ?

while 1
    PixelSearch( 418,24,419,24,0xE74542)
    If Not @error Then  ; 0xE74542 found
        sleep(1000)
        ToolTip("Monster Found",0,0,"ArhclordBot")
        Send($kill)
        Sleep(5000)
        Send($skill1)
        Sleep(5000)
        PixelSearch( 418,24,419,24,0xE74542)
        If @error Then  ; 0xE74542 not found
            ToolTip("Looting",0,0,"ArhclordBot")
            Send($loot)
            Sleep(200)
            Send($loot)
            Sleep(300)
            Send($loot)
            Sleep(400)
            Send($loot)
        EndIf
    EndIf
wend

Iklim

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  

×