Jump to content
Sign in to follow this  

Slimming down a huge pixelscan function?

Recommended Posts


Hey guys.

Func scanbelt()
    $Box1Check = Pixelsearch(box1cord, box1color)
    If $Box1check = healthcolor Then
        $Row1Box4 = "Health"
    If $rowCheck = manacolor Then
      $Row1Box4 = "Mana"
    If $row1box4 = rejuvicolor Then
        $Row1Box4 = "Rejuvi"

Theres my ocde.. i have to do the $box1check - If $row1box4 = rejuvi, all of those, 16 more times with different variables.

Is there any way to slim down the work/text?

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