bugger0001
2009-08-21 14:39:59
function IsChatBoxTextArrAnyLine(CTxtArr: TStringArray; Amount: integer): boolean;
var
A, TxtArrL, Finds: integer;
begin
Finds := 0;
TxtArrL := High(CTxtArr);
for A := 0 to TxtArrL do
begin
if Result then Exit;
if IsChatBoxTextAnyLine(CTxtArr[A], 0) then Inc(Finds);
Result := (Finds >= Amount);
end;
end;Don't know if it's needed, but I sure needed it for my Smelter's chat check. I guess you can read from the code what it does. But just in case. It will look for each string in the array you set and if it finds the string in chatbox then considers it found. If it finds as many of them as set with Amount then it results True.