NCDS
2010-06-28 19:31:00
{*******************************************************************************
function IsResting: Boolean;
By: Sabzi
Last Edit: 19 Sep 2009
Description: Returns True if you are currently resting.
*******************************************************************************}
function IsResting: Boolean;
begin
result := (CountColorTolerance(3712343,707, 95,732, 122,10)>10);
end;
First thing, the color is static so is there really any reason for a tolerance of 10??
Second, would a simple Result := (GetColor(x, y) = 3712343); not be better?