DoubleMcLovin Posted June 2, 2010 Share Posted June 2, 2010 I want to set up script so that it finds object 1 and assigns it a variable, and then looks around object 1 for object 2 and assigns it a variable. My idea is this: $bobber = PixelSearch (149, 300, 1056, 680, 0xC5D0DB, 15, 3) $coord = PixelSearch ($bobber[0] - "80", $bobber[1] - "40", $bobber[0] + "80", $bobber[1] + "40", 0xFCFFFB, 55, 2) But that doesn't work, what must I do to include a math operator inside the pixel search like that without declaring 4 variables? Link to comment Share on other sites More sharing options...
Shakala Posted June 2, 2010 Share Posted June 2, 2010 (edited) $bobber = PixelSearch (149, 300, 1056, 680, 0xC5D0DB, 15, 3) $coord = PixelSearch (($bobber[0] - 80), ($bobber[1] - 40), ($bobber[0] + 80), ($bobber[1] + 40), 0xFCFFFB, 55, 2) That should do it The " You had in your code indicated Text. You were having a number - a string and thats why it was not working Edited June 2, 2010 by Shakala Link to comment Share on other sites More sharing options...
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