Jump to content
  • 0

[AuthD] ServerList packet


Question

Posted

Following NetPro data i interests the additional block what was added since Freya.

 

<?xml version="1.0" encoding="UTF-8"?>
<packet id="LS_SM_SERVER_LIST" xmlns="http://www.l2emu-unique.net" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.l2emu-unique.net ../../../schemata/packet.xsd">
	<byte alias="Game server count" id="gs_list" />
	<branch id="gs_list" condition="serverlist.ServerListPrelude">
		<byte alias="Last game server" type="GameServerName" />
	</branch>
	<loop id="gs_list">
		<byte alias="Game server" type="GameServerName">
			<scriptAlias id="__INVASIVE_AUTO_EXTRACT_GS_ID" />
		</byte>
		<branch id="gs_list" condition="serverlist.ServerListNamed">
			<bytes alias="Server name" type="auth.CustomServerName">
				<length>40</length>
			</bytes>
		</branch>
		<bytes alias="IPv4" type="IPv4">
			<length>4</length>
			<scriptAlias id="__INVASIVE_AUTO_REPLACE_GS_IP" />
		</bytes>
		<dword alias="Port">
			<scriptAlias id="__INVASIVE_AUTO_REPLACE_GS_PORT" />
		</dword>
		<branch id="gs_list" condition="serverlist.ServerListPrelude">
			<byte alias="Minimum player age" />
			<byte alias="PvP allowed" type="YesOrNo" />
			<word alias="Online players" />
			<word alias="Maximum players" />
			<byte alias="Online" type="YesOrNo" />
			<branch id="gs_list" condition="serverlist.ServerListC1">
				<dword alias="Type(s)" type="GameServerKind" />
				<branch id="gs_list" condition="serverlist.ServerListC2">
					<byte alias="Region" />
				</branch>
			</branch>
		</branch>
	</loop>
	<branch id="gs_list" condition="serverlist.ServerListFreya">
		<word alias="Non-padded bytes" id="bytesize" />
		<branch id="bytesize" condition="Positive">
			<branch id="bytesize" condition="serverlist.ServerList5Ex2">
				<bytes alias="Characters" type="ServerCharacterCount" />
			</branch>
			<branch id="bytesize" condition="serverlist.ServerList5Ex1">
				<byte alias="Game server count" id="gs_list" />
				<loop id="gs_list">
					<byte alias="Game server" type="GameServerName" />
					<byte alias="Total characters" />
					<byte alias="Pending deletion" id="timestamp_list" />
					<loop id="timestamp_list">
						<dword alias="Date of removal" type="SecondsSinceEpoch" />
					</loop>
				</loop>
			</branch>
		</branch>
	</branch>
	<!-- The rest is padding, except for 2nd last DWORD, which is the checksum -->
</packet>

 

Somebody to knows how the "ServerListFreya" block must to look in example? If i'm not mistake it's must add into every server list row the character count of this account for all servers in list. Or client isn't processing this data?

 

Thanks in advance.

4 answers to this question

Recommended Posts

  • 0
Posted (edited)

I am pretty sure that the character count per server is what is contained in that second loop, though personally i have not bothered with a  new Auth yet. i am pretty sure the loop is something like count of servers with characters, then a for each server, how many characters exist.

Edited by pada
  • 0
Posted

@pada ofc, i wanted to example of this loop. Working code. I checked many examples from L2J forks and nothing happened in my client. Maybe it's client side problem, but need be sure what server sent correct info. Otherwise it will looks like searching the black cat in dark room even his is not exists.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • 🎉 L2-SCRIPTS TURNS 20 🎉 This year marks our studio's 20th anniversary!   ▬▬▬▬▬▬▬▬▬▬   Two decades in the Lineage 2 private server market is a long run — we've seen chronicles, engines and trends come and go. We keep doing what we do best: builds, technical support, turnkey projects, website and engine development, personal account systems, anti-cheat and anti-bot protection, auto-donation systems, unique events, geodata — basically anything your project might need.   🎨 To mark the occasion, we figured it was the perfect time for a fresh look. Honestly, the haters deserve some credit too — they never sleep, and they gave us that extra push to finally update the visuals 😉 We kept the familiar structure and sections intact so nobody gets lost — just made everything more modern and easier on the eyes.   ▬▬▬▬▬▬▬▬▬▬   ⚠️ Spot any bugs or rough edges on the updated site? Let us know and we'll fix it right away. Thanks for being with us for 20 years. It only gets better from here 🚀   🌐 https://l2-scripts.ru   |   https://l2-scripts.com ✈️ https://t.me/L2scripts
    • A full MMORPG that runs in your browser. No download, no launcher, no account with anyone else — click the link and you are in the world. ▶ Play free: https://l2d.one Aden Chronicles is an isometric fantasy MMORPG built in the spirit of the old Lineage 2 servers: classes that branch as you grow, castles that change hands, and world bosses that the whole server has to deal with together. Not a single-player game with a leaderboard attached — one shared world, where the same monsters die once and the same castle has one lord. WHAT IS IN IT 7 regions and 245 hunting grounds, scaling from level 1 to 80 6 classes that branch into 24 professions, then Awakening at 60 201 skills, enchantable past their normal ceiling 174 monster types, raid bosses, and grand bosses shared by the entire server Castle sieges, clans with reputation and wars, the Grand Olympiad 23 armour sets across 6 grades, enchanting, augmentation with life stones Caves and mines you walk down into — tunnels, ore veins, a guardian at the bottom 14 islands reached by ship, 10 pets, from a wolf to a dragon hatchling THE TWO THAT EVERYONE FIGHTS Valakas the World-Flame — level 78, 900,000 HP Aetheron, Sky Sovereign — level 82, 1,400,000 HP They do not respawn for you. They respawn for everybody.   Video -->  
    • I personally like it a lot. I see this not as a replacement but as a supplementary client that can fill different type of gameplay. 
    • If I wanted to flex something, I would flex my Mac Studio. Now go back to making Minecraft in Java and asset flips in UE.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..