Sign in to follow this  
Followers 0
IKilledBambi

Pixelsearch bot.

2 posts in this topic

#1 ·  Posted (edited)

Func _Pixels()
    If $Pix1 = 0xEAE7E6 Then Call("_BottomStash")
;### Tidy Error -> "else" is closing previous "func"
ElseIf $Pix2 = 0x7E9FD0 Then Call("_UnderBlue1")
ElseIf $Pix3 = 0x857254 And $Pix4 = 0x89734C Then Call("_RightOfBlue")
ElseIf $Pix5 = 0x1F120C Then Call("_AtSheep")
ElseIf $Pix6 = 0x65665E Then Call("_FarFromSheep")
EndFunc ;==>_Pixels

I'm not really getting why that doesn't work.

EDIT* With a second try at searching for the problem I found it.

Edited by IKilledBambi

Share this post


Link to post
Share on other sites



Func _Pixels()
    If $Pix1 = 0xEAE7E6 Then Call("_BottomStash")
;### Tidy Error -> "else" is closing previous "func"
ElseIf $Pix2 = 0x7E9FD0 Then Call("_UnderBlue1")
ElseIf $Pix3 = 0x857254 And $Pix4 = 0x89734C Then Call("_RightOfBlue")
ElseIf $Pix5 = 0x1F120C Then Call("_AtSheep")
ElseIf $Pix6 = 0x65665E Then Call("_FarFromSheep")
EndFunc;==>_Pixels

I'm not really getting why that doesn't work.

EDIT* With a second try at searching for the problem I found it.

You forgot to 'EndIf'

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