UOX3 Script Engine

API and Event handling

Socket Related Methods

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

 

Disconnect
Prototype
void Disconnect();
PurposeDisconnect a client.
Example of Usage
mySock.Disconnect();

 

SoundEffect
Prototype
-
Purpose-
Example of Usage
-

 

CustomTarget
Prototype
void CustomTarget( tNum, toSay );
PurposeVery similar to PopUpTarget. It's a callback situation instead. tNum must be between 0 and 255. Says toSay, and shows a cursor. Reenters the script associated with the socket's player (ie player who gets the cursor). Enters function name based on the value of tNum. if tNum is 0, then the function would be onCallback0. Prototype of callback is:
function onCallback0( tSock, targSerial )
Example of Usage
mySock.CustomTarget( 0, "Select your custom target:" );

 

PopUpTarget
Prototype
void PopUpTarget( tNum, toSay );
PurposeProvides a call to an inbuilt popup target. tNum must be between 0 and 255 inclusive. Says toSay, and shows a cursor. Note that this allows access potentially to GM functions.
Example of Usage
mySock.PopUpTarget( 2, "Where do you wish to teleport to?" );

 

OpenUrl
Prototype
void SysMessage( string message );
PurposeOpens a specified URL in player's browser
Example of Usage
mySock.OpenUrl( "http://www.uox3.org" );
Original: ©Copyright 2000-2001 WWW.UOX3.NET (Daniel Stratton/Matthew Randall) ||| Rewrite: ©Copyright 2002 WWW.UOXDEV.DE (Florian "Rukus" Frick)