Cazax
2008-03-18 17:25:59
ill be editing this post for more functions.
function 1:
will be posting more functions.
function 1:
{*******************************************************************************
Function : AssistRequested(Action: integer): Boolean;
By: Cazax / Edit by EvilChicken!
Description: Checks if someone is requesting assist. If Accept is true then
accepts the request. Results true if request found.
*******************************************************************************}
function AssistRequested(Accept: Boolean): boolean;
begin
if (Accept) then begin
case FindTextTpa(14822282, 5, MCX1, MCY1, MCX2, MCY2, 'assistance', UpChars, ClickLeft) of
True: begin
Writeln('Someone is requesting assist, accepted.');
Result := True;
end;
False: Result := False;
end;
end else begin
case FindTextTpa(14822282, 5, MCX1, MCY1, MCX2, MCY2, 'assistance', upchars, Nothing) of
True: begin
Writeln('Someone is requesting assist.');
Result := True;
end;
False: Result := False;
end;
end;
end;will be posting more functions.