From: TRiLeZ

Search for hp bar colors in that box. Don't count colors though.
Yeah great idea, this is what i came up with:
function F_InFight: Boolean;
var x, y: Integer;
begin
Result := False;
if ( FindColorTolerance( x, y, 49499, 258, 137, 272, 164, 2 ) ) then
Result := True;
end;
Works 100% :)
EDIT: Restarted scar etc and now it stopped working. Whats going on with my color finding functions :D
EDIT2: The search area must be wider because the hits get on the way.
EDIT3: This is the final function, works good (now that my color finding works lol).
function F_InFight: Boolean;
var x, y: Integer;
begin
Result := FindColorTolerance( x, y, 49499, 226, 118, 262, 147, 40 );
end;