P1nky
2012-01-24 18:55:12

if FindNPCChatText('The knights noticed your lack of zeal',True) then
Does not work with this specific message for some reason…
2012-01-24 18:55:12

if FindNPCChatText('The knights noticed your lack of zeal',True) then
2012-01-24 18:58:17
2012-01-24 18:59:35
From: YoHoJo
For things like that, I just use WaitColor.
X,Y would be coordinate of any of the black text (preferably a period or something near the end/beginning), Color for text is always 0 I believe, tol would be 0 (it never changes), and maxtime can be anything, 5 seconds is fine since it waits for color OR time to expire.
Much faster, and it work great, use it in many of my scripts.
2012-01-24 19:04:50
2012-01-24 20:00:24
2012-01-24 21:19:32
Procedure Test;
var
X,Y: Integer;
begin
if FindText(x, y, 'attle', UpChars, MCX1, MCY1, MCX2, MCY2) then
Writeln('Found!');
end;
2012-01-24 21:37:49