SRL Archive - Research & Development Lounge

FindRoadColor


Bobzilla69

2008-07-02 13:49:43

well FindRoadColor function aint working so i made this easy procedure to help while it gets fixed.

instead of using

RadialRoadWalk(FindRoadColor, 84, 100, 55, 0, 0)
if you use that at all in you script or any other procedures where you need road color just add the next procedure into the script


procedure RoadColor2;
begin
road := BitmapFromString(8, 5, 'beNorSqgrGggEAGeMNIE=');
r:=AutoColorThis(road, 60, 542, 8, 710, 161);
FreeBitmap(road);
end;

now with this procedure in your script.

all that you have to do is call RoadColor2 before you need to use it so that it can get the correct color for walking

RadialRoadWalk(r, 84, 100, 55, 0, 0)

this will allow you to continue autoing untill the autocolor is fixed.

please tell me if this works for you

Cazax

2008-07-02 17:11:29

60, 542, 8, 710, 161);
Use MMX1, MMY1, MMX2, MMY2.

Naum

2008-07-03 03:17:16

Tolerance needs to be abit lower around 40 ish.