Ok so i noticed InFight did not work all the times and gave false results when i was not fighting.
Heres a function i made:
SCAR Code:function InFight: Boolean;
var GTPA, RTPA: TPointArray;
begin
FindColorsTolerance( GTPA, 49499, MSCX - 20, MSCY - 30, MSCX + 20, MSCY - 10, 20 );
FindColorsTolerance( RTPA, 590010, MSCX - 20, MSCY - 30, MSCX + 20, MSCY - 10, 20 );
Result := ( ( GetArrayLength( GTPA ) + GetArrayLength( RTPA ) ) >= 20 );
end;






Reply With Quote










