Sign in to follow this  
Followers 0
ecstatic

Slimming down a huge pixelscan function?

2 posts in this topic

Hey guys.

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

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  
Followers 0