SCAR Code:
{*******************************************************************************
Function created by: Wilio.
Version: 1.5
Description: is he bald? wear a brown shirt and green pants?
*******************************************************************************}
function DefaultPlayer: Boolean;
var
x,y,x1,y1,dist:Integer;
matched: Boolean;
begin
wait(450 + random(200));
MMouse(676,184,6,6);
wait(400 + random(100));
clickmouse(676,184,true);
wait(1200 + random(400))
MMouse(602, 428,6,6);
wait(400 + random(100));
clickmouse(602,428,true);
wait(1200 + random(400))
MMouse(98, 86,6,6);
wait(400 + random(100));
clickmouse(98,86,true);
MMouse(105, 178,6,6);
wait(400 + random(100));
clickmouse(105,178,true);
MMouse(109, 211,6,6);
wait(400 + random(211));
clickmouse(109,211,true);
wait(1200 + random(400))
//Then check color
if(findcolortolerance(x,y,6984648,179,72,356,301,4)) //head
and (findcolortolerance(x1,y1,2245649,179,72,356,301,4)) //pants
then
begin
writeln('colors found');
dist:= y1 - y;
if(dist >= 92) then
begin
writeln('distance matched');
matched := true;
end
else
begin
writeln('distance not matched');
matched := false;
end;
end
if(matched = true)
and(findcolortolerance(x,y,2647153,179,72,356,301,4))
then
begin
result:= true
writeln ('Default player detected');
end
end;
this time it will go in equipment, remove the head, body, and legs. then it will check the distance between bald head and pants. if it's true. it will check the color of the shirt. Again if it's true, Result will be true.