SysMessage | ||
---|---|---|
Prototype | void SysMessage( string message ); | |
Purpose | Sends a string as a sysmessage | |
Example of Usage | mySock.SysMessage( "Isn't the world great?" ); |
TextMessage | ||
---|---|---|
Prototype | void TextMessage( message ); | |
Purpose | Causes the object to say a message. The function has 5 extra optional arguments (if including an optional parameter, make sure to also include the preceding argument): allHear (broadcast true/false) txtHue (colour of the text sent to the client) speechTarget (intended target of message. 0 = only visible to sender and receiver, 1 = visible to all players in range, 2 = visible to all NPCs and players in range, 3 = visible to all PCs everywhere + NPCs in range, 4 = visible to all PCs everywhere (broadcast), 5 = only visible to receiver) speechTargetSerial (serial of the receiver of the message, used if speechTarget is 0 or 5) speechFontType (type of font to use. Defaults to normal. 0 = bold, 1 = normal with shadow, 2 = bold with shadow, 3 = normal, 4 = gothic, 5 = italic, 6 = small and dark, 7 = colourful, 8 = runic (only works with CAPS), 9 = small and light) | |
Example of Usage | myChar.TextMessage( "Hello world!" ); |
EmoteMessage | ||
---|---|---|
Prototype | void EmoteMessage( string message ); | |
Purpose | Causes a Char to emote message. Note that you need to manually put in the start and end * | |
Example of Usage | myChar.EmoteMessage( "*look around*" ); |
YellMessage | ||
---|---|---|
Prototype | void YellMessage( string message ); | |
Purpose | Causes the char to yell message. | |
Example of Usage | myChar.YellMessage( "Yeehaa!" ); |
WhisperMessage | ||
---|---|---|
Prototype | void WhisperMessage( string message ); | |
Purpose | Causes the Char to whisper message. | |
Example of Usage | myChar.WhisperMessage( "He you, i've got something for you!" ); |
GetDictionaryEntry | ||
---|---|---|
Prototype | string GetDictionaryEntry( entryNum [, language ] ); | |
Purpose | Pulls entry from the dictionary file based on language (or default). | |
Example of Usage | var textString = GetDictionaryEntry( 1, socket.Language ); |
BroadcastMessage | ||
---|---|---|
Prototype | void BroadcastMessage( string toSend ); | |
Purpose | Sends toSend to every client in the world | |
Example of Usage | BroadcastMessage( "You're all going to die a hideous and painful death" ); |
ConsoleMessage | ||
---|---|---|
Prototype | void ConsoleMessage( string toSend ); | |
Purpose | Prints out a string to the server console | |
Example of Usage | ConsoleMessage( "Isn't the world great?" ); |
Yell | ||
---|---|---|
Prototype | void Yell( socket, string message, commandlevel ); | |
Purpose | Globally sends the message to anyone matching the provided commandlevel | |
Example of Usage | Yell( pSock, "Isn't the world great?", 2 ); |