
Originally Posted by
riwu
Basically the difference in color in which the function will tolerate to perceive as equivalent.
You can check out this tutorial for a more in-depth explanation for tolerance and CTS:
Ok thanks, but I added a new procedure for climbing the 1st obstacle net and now it won't click the log again:
Code:
program CrisisXAgility;
{$i srl/srl.simba}
Procedure ClickLogBalance;
var
X,Y:Integer;
begin
if FindColorTolerance(X, Y, 872066, 294, 172, 400, 480, 3) or
FindColorTolerance(X, Y, 868459, 324, 171, 400, 480, 3)
then
begin
mmouse(x, y,1,1);
wait(250);
ClickMouse(X, Y, mouse_Left)
end;
end;
Procedure ClickObstacleNet1;
var
X,Y:Integer;
begin
if FindColorTolerance(X, Y, 7301224, 440, 191, 500, 480, 3) or
FindColorTolerance(X, Y, 537172, 440, 184, 500, 480, 3)
then
begin
mmouse(x, y,1,1);
wait(250);
ClickMouse(X, Y, mouse_Left)
end;
end;
Begin
SetupSRL;
MouseSpeed := 15;
ClickLogBalance;
ClickObstacleNet1;
end.