SRL Archive - SRL Archives

IsChatBlackTextAnyLine / IsBlackText not working


markuska815

2008-08-14 05:16:52

I was testing out my CheckAxe function for my SVC and it wasn't checking the black text 'have an axe' which shows when your axe is broken. So i went into what was going wrong and it turns out that the function i was using (IsBlackTextAnyLine) wasn't working, however, FindText() with the right params did catch it. Is this a bug or what's up?

ZephyrsFury

2008-08-14 05:20:49

Yea this was a bug that was caused by a small interface update a couple of days ago. I has been found and fixed already. Thanks for your post though. :)

EDIT: This is the fixed TextCoords I believe. Just replace the current one with this one until the next revision is released:


{*******************************************************************************
Function TextCoords(textn: Integer): TPoint;
By: Wizzup?
Description: Returns x, y for text. (1 to 8)
*******************************************************************************}

Function TextCoords(textn: Integer): TPoint;

Begin
Result.X := 11;
Result.Y := 346 + (14 * (textn - 1));
End;