Originally Posted by
MasqLB
Okay, I've edited the following lines:
184 - RandClick("middle", Round(175 * $x_ratio), Round(600 * $y_ratio), 2, 2) ;middle of courtyard [waypoint 3]
192 - RandMove(Round(200 * $x_ratio), Round(71 * $y_ratio), 1, 1) ;moves cursor over to the cellar so the proper blue pixel becomes highlighted
now, at line 192 it mouses over the dark cellar, but still goes to line 206 (ABORT RUN). How can I adjust it so that it properly detects the cellar?
Line 200ish.
Code:
$Pixel2 = PixelSearch(0, 0, Round(600 * $x_ratio), Round(600 * $y_ratio), 0x334FB7, 3)
This is creating a boxed area to search for that pixel.
There are 4 coords in the above code that create the box. It goes Left -> Top -> Bottom -> Right. So 0,0, 600, 600 would be a 600 by 600 pixel search in the top corner left corner of your screen. Adjust your box size, and you probably need to find a new pixel color (maybe).