SRL Archive - Help

What function can detect this message?


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…

YoHoJo

2012-01-24 18:58:17

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.

P1nky

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.


I was thinking that, let me give that a go, although this is the only message that is giving me trouble :/
Oh wells let me try to code something up for it!

Thanks for the suggestion and help Mate!

Brandon

2012-01-24 19:04:50

If u can upload a better image with quality, I'll write a function that MIGHT detect it.

KingKong

2012-01-24 20:00:24

I would suggest using a shorter string, something like 'knights', because every time I use it, it works perfectly. Also try putting it in a loop.

Flight

2012-01-24 21:19:32

Try this mate:

Procedure Test;
var
X,Y: Integer;
begin
if FindText(x, y, 'attle', UpChars, MCX1, MCY1, MCX2, MCY2) then
Writeln('Found!');
end;

DemiseScythe

2012-01-24 21:37:49

The font might be off, zoom on it and analize it