JuKKa
2008-05-26 05:17:18
I just got a frog and it didnt solve the cave so i thought… why not look at it.. so i found this..
now this line (CountColor(0, MMX1, MMY1, MMX2, MMY2) > 1000);
should be
(CountColorTolerance(0, MMX1, MMY1, MMX2, MMY2, 1) > 1000);
function DetectFrogCave: Boolean;
var
tcts: Integer;
arPoolPoints: TPointArray;
begin
tcts := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorspeed2Modifiers(0.2, 10.0);
FindColorsTolerance(arPoolPoints, 6189364, MMX1, MMY1, MMX2, MMY2, 50);
ColorToleranceSpeed(tcts);
Result := (GetArrayLength(arPoolPoints) > 1000)and
(CountColor(0, MMX1, MMY1, MMX2, MMY2) > 1000);
SetColorspeed2Modifiers(0.2, 0.2);
end;now this line (CountColor(0, MMX1, MMY1, MMX2, MMY2) > 1000);
should be
(CountColorTolerance(0, MMX1, MMY1, MMX2, MMY2, 1) > 1000);