Skip to content

UserPresence

Lekuru edited this page Jan 17, 2024 · 6 revisions

The current format for the User Presence looks like this:

Size Datatype Description
4 sInt UserId
String Username
1 char Timezone + 24
1 char CountryId
1 char Permissions | Mode << 5
4 float Longitude
4 float Latitude
4 sInt Rank

Note

The "CountryId", is the index of a country inside this list.

Note

The Permissions | Mode << 5 operation packs the permissions and mode values into a single character by shifting the mode value 5 bits to the left and performing a bitwise OR with the permissions.


In b20121119, the "AvatarExtension" enum was added:

Name Value
None 0
Png 1
Jpg 2
Size Datatype Description
4 sInt UserId
String Username
1 AvatarExtension
1 char Timezone + 24
1 char CountryId
String City
1 char Permissions
4 float Longitude
4 float Latitude
4 sInt Rank
1 char Mode
Clone this wiki locally