#2) FindColorTolerance(X, y, [Here the color], MSX1, MSY1, MSX2, MSY2, 5)
explane:
x, y, there will it store where it found the color,
here the color: Thecolor
msx1, msy1 etc. = is the box where it will search for the color (in this example is that the main screen)
change MS to MM = minimap
MS to MC = main chat
Ms to MI= inventory
guide: on the boxes where scar need to search in http://www.villavu.com/forum/showthread.php?t=10942
----------------------------
SCAR Code:
begin;
if FindColorTolerance(X, y, HereColor, MSX1, MSY1, MSX2, MSY2,5) then
begin;
Mouse(x, y, 2, 2, False); //move the mouse to x and y with 2 pixels(?) random, false = right clikc, true = left click.
WriteLn('Color found and right clicked on it');
end else
begin;
WriteLn('Color not found');
end;
end;