UOX3 Script Engine

API and Event handling

Speech Related Methods

SysMessage
Prototype
void SysMessage( string message );
PurposeSends a string as a sysmessage
Example of Usage
mySock.SysMessage( "Isn't the world great?" );

 

TextMessage
Prototype
void TextMessage( string message );
PurposeCauses the object to say message.
Example of Usage
myChar.TextMessage( "The world is great!" );

 

EmoteMessage
Prototype
void EmoteMessage( string message );
PurposeCauses 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 );
PurposeCauses the char to yell message.
Example of Usage
myChar.YellMessage( "Yeehaa!" );

 

WhisperMessage
Prototype
void WhisperMessage( string message );
PurposeCauses the Char to whisper message.
Example of Usage
myChar.WhisperMessage( "He you, i've got something for you!" );

 

Speech Related Functions

GetDictionaryEntry
Prototype
string GetDictionaryEntry( entryNum [, language ] );
PurposePulls 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 );
PurposeSends 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 );
PurposePrints out a string to the server console
Example of Usage
ConsoleMessage( "Isn't the world great?" );

 

Yell
Prototype
void Yell( socket, string message, commandlevel );
PurposeGlobally sends the message to anyone matching the provided commandlevel
Example of Usage
Yell( pSock, "Isn't the world great?", 2 );
ęCopyright 2000-2001 WWW.UOX3.NET (Daniel Stratton/Matthew Randall)