Obtaining Client Information

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 096.
Note: Core 096 is no longer officially supported.
Post Reply
Ziden
New User
Posts: 1
Joined: Wed Feb 13, 2008 6:19 am

Obtaining Client Information

Post by Ziden »

I wish to know, wich client information i can get with pol, like version, hex , or whatever i can get, and how i can those informations. Could someone help me out ?
User avatar
OldnGrey
POL Expert
Posts: 657
Joined: Sat Feb 04, 2006 6:26 pm

Post by OldnGrey »

I use the .clientversion to test to see whether the player is using a pre-v5 client. In this instance it's to send a cliloc instead of normal SendSysMessage.

Code: Select all

if ( CInt(character.clientversion[1, 1]) < 5 )
	SendSysMessage(character, "Cancelled");
else
	SendSysMessageCL(character, CL_CANCELLED);
endif
All I am doing is getting the client version string and finding the first character in the string, then turning it into an integer. In most cases all I want is to know if it's a v2 client, or a v4 client etc.

Alternatively, if you wanted to know the exact client version, skip all my string manipulation and just use:
var version := character.clientversion;
That might return a string like 5.0.9.1

If you want even more information, try .clientinfo which is client operating system information.
See the core-changes.txt for the information that returns.
Post Reply