Naike
2009-05-27 21:23:23
Was outdated after update.
Note: Only did these two, as they are the most importent.
Note: This will not break any scripts.
Note: Only did these two, as they are the most importent.
{*****************************************************************************
function InFight: Boolean;
By: WT-Fakawi fixed by N1ke!
Description: Returns as True if in fight.
*****************************************************************************}
function InFight: Boolean;
var
x, y : Integer;
begin
Result := (FindColor(x, y, 10496, 230, 130, 280, 180) or
FindColor(x, y, 198716, 230, 130, 280, 180));
end;
{*****************************************************************************
function IsFightAt(x, y: Integer): Boolean;
By: realrune fixed by N1ke!
Description: results true if it finds a fight near x,y.
*****************************************************************************}
function IsFightAt(x, y: Integer): Boolean;
var
xx, yy: Integer;
begin
Result := FindColor(xx, yy, 10496, x - 20, y - 20, x + 20, y + 20);
end;
Note: This will not break any scripts.