Please take time to read this post. I'm sure that you can be more of a help if you read it all.
I'm fairly new to Scar. I actually started with it 3 days ago.
I created a function for the sandwich lady.
SCAR Code:
function sandwichlady(x,y:Integer): Boolean;
begin
if (findcolortolerance(x,y,15066600,0,0,516,338,7))
and
(findcolortolerance(x,y,8226746,0,0,516,338,7)) then
begin
Result:=True;
getMousePos(x,y);
end;
end;
The problem isn't with findcolortolerance, in fact this part work perfectly.
It seem that
isn't working. It should return the value of x and y in findcolortolerance, but it doesn't.
Example:
SCAR Code:
program lol;
var
x,y: Integer;
begin
if (sandwichlady(x,y)) then
moveMouseSmooth(x,y);
wait(1000);
end.
The mouse should move to the lady, but instead, it only moves to coordinates: 0,0.
Now you have my problem.