NCDS
2009-06-08 04:58:58
This is just a small change from Zeph's 'IsChatBoxTextAnyLine'. I only added a couple Parameter's but I find it pretty useful.
{*******************************************************************************
function IsChatBoxTextAnyLine(Text: string; Line1, Line2, TextCol: Integer): Boolean;
By: ZephyrsFury
Description: Returns true if Text with colour TextCol is found between 'Line1'
and 'Line2'.
*******************************************************************************}
function IsChatBoxTextLines(Text: string; Line1, Line2, TextCol: Integer): Boolean;
var
II: Integer;
begin
Result := True;
for II := Line2 downto Line1 do
if (FindChatBoxText(Text, II, TextCol)) then
Exit;
Result := False;
end;