PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
Obtaining Client Information

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help 096
Display posts from previous:   

Author Message
Ziden



Joined: 13 Feb 2008
Posts: 1

PostPosted: Wed Feb 13, 2008 10:23 am    Post subject: Obtaining Client Information Reply with quote

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 ?

Author Message
OldnGrey



Joined: 04 Feb 2006
Posts: 517

PostPosted: Wed Feb 13, 2008 7:07 pm    Post subject: Reply with quote

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:
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 new topic   Reply to topic    PenUltima Online Forum Index -> General Help 096 All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty