Jump to content

Pixelsearch bot.


Recommended Posts

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
Link to comment
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'
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...