ecstatic Posted May 16, 2009 Posted May 16, 2009 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?
AdmiralAlkex Posted May 16, 2009 Posted May 16, 2009 Use a for loop and a array. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now