SCAR Code:
procedure FindTreeColor;
var TreeColor, TwoTree, MaxTolerance: integer;
begin
TwoTree := BitmapFromString(5, 7, 'z78DA33B3B07035323143' +
'228DCD8D1C0D9C21A419862CF1A491ABA98BA1237E59235313474' +
'3324DC0450200099C2E35');
MaxTolerance := 40;
TreeColor := AutoColorThis(TwoTree, MaxTolerance, MMX1, MMY1, MMX2, MMY2);
WriteLn('TreeColor: '+IntToStr(TreeColor));
FreeBitmap(TwoTree);
end;
procedure WalkToTrees;
var Trees: integer;
begin
Trees := FindTreeColor;
if FindColorSpiral(x, y, Trees, MMX1, MMY1, MMX2, MMY2) then
Mouse(x, y, 1, 1, True);
Flag;
end;
im trying to get scar to move to the trees but it aint working i get this error
Line 18: [Error] (17679:23): Type mismatch in script i
i have no idea what the mismatch it can any1 help?