SendMessageToPCByStrRef(object, int)

Send a message to a player

void SendMessageToPCByStrRef(
    object oPlayer,
    int nStrRef
);

Parameters

oPlayer

Player to send message to

nStrRef

StrRef of the message to send


Description

Send a server message (szMessage) to the oPlayer.



Remarks

The StrRef is an index number into the user's dialog.tlk file, which is a language specific file. Since Hordes of the Underdark, it's become possible to easily make your own tlk file and include with your module. Note that you must add 16777216 to the index in your file, so if you want entry 1 in your custom tlk file, you'll need use 16777217 for the nStrRef in this function.

More detailed information on talktables can be found here:
http://ccg.dladventures.com/index.php/TalkTables


Version

1.61

See Also

functions: SendMessageToPC
categories: PC Only Functions | String Functions


 author: Lilac Soul