Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUO version custom packet (enchantment request) #1633

Open
AtillaG1 opened this issue Sep 1, 2023 · 0 comments
Open

CUO version custom packet (enchantment request) #1633

AtillaG1 opened this issue Sep 1, 2023 · 0 comments

Comments

@AtillaG1
Copy link

AtillaG1 commented Sep 1, 2023

Hi there,

I think it would be awesome for shard devs if there was CUO version custom packet to be able to track the version of CUO players are using, or limit the usage of other unwanted external programs.

What do you think?

Here is example from OUO

PacketOrionVersion
From server

Orion version request package.

BYTE[1] - Packet ID (0xBF)

BYTE[2] - packet size (0x0007)

BYTE[2] - Number of subcommand allocated for Orion (0xFACE)

BYTE[2] - Orion team ID (0x0034)

Sample package for RunUO/ServUO server:

public sealed class PacketOrionVersion : Packet
{
	public PacketOrionVersion() : base(0xBF)
	{
		EnsureCapacity(7);
		m_Stream.Write((ushort)0xFACE);
		m_Stream.Write((ushort)0x0034);
	}
}
From the client

Packet sending version of Orion.

BYTE[1] - Packet ID (0xBF)

BYTE[2] - packet size (0x000B)

BYTE[2] - Number of subcommand allocated for Orion (0xFACE)

BYTE[2] - Orion team ID (0x0034)

BYTE[4] - Orion version

An example of packet formation in Orion:

CPacketOrionVersion::CPacketOrionVersion()
: CPacketOrion(11)
{
	WriteUInt8(0xBF);
	WriteUInt16BE(0x000B);
	WriteUInt16BE(0xFACE);
	WriteUInt16BE(0x0034);
	WriteUInt32BE(0x01000302); //Отправить версию 1.0.3.2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant