Version Control command.

Got any custom JavaScript additions/tweaks you think other people would like to see? Post 'em here!
Post Reply
dragon slayer
UOX3 Guru
Posts: 776
Joined: Thu Dec 21, 2006 7:37 am
Has thanked: 4 times
Been thanked: 26 times

Version Control command.

Post by dragon slayer »

You want to know what client your user is running well just do 'version and click them and it will emote the info above the users head.

Just add this to your targeting folder in commands.

credits to Xuri for they javascript info.
function CommandRegistration()
{
    RegisterCommand( "version", 2, true );
}

function command_VERSION( socket, cmdString )
{
     socket.CustomTarget( 0, "Select player you wish to get client version from." );
}

function onCallback0( socket, targChar )
{
     var socket = targChar.socket;
     var majorVersion = socket.clientMajorVer;
     var minorVersion = socket.clientMinorVer;
     var subVersion = socket.clientSubVer;
     var letterVersion = socket.clientLetterVer;

     targChar.EmoteMessage("Client "+majorVersion+"."+minorVersion+"."+subVersion+"."+letterVersion+"");
}
Post Reply