SRL Archive - OSR Help

How to get each line of the chat box in 07 scape?


ilklhl1Lihl1

2013-04-21 18:46:18

Title is the question :D

an example would be great

Frement

2013-04-21 18:57:13

(*
GetChatBoxText
~~~~~~~~~~~~~~

.. code-block:: pascal

function GetChatBoxText(Line, TextCol: Integer): string;

Gets text on the line Line with colour TextCol.
(Line 1 is the top, Line 8 is the bottom line).
Colours:

- clMessage/clBlack - Black text messages ("Oh Dear you are dead", etc).
- clChat/clBlue - Chat messages from you and other players.
- clTrade/clPurple - Colour of trade request text.
- clFriend - Colour of friend and clan chat.

Works with other colours too.


.. note::

by ZephyrsFury

Example:

.. code-block:: pascal


*)

ilklhl1Lihl1

2013-04-21 19:05:56

thanks, found it , forgot to update my thread :)