Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void OnMovement(PacketReader packet)
- {
- uint objectID = packet.Read<uint>();
- byte hasDestination = packet.Read<byte>();
- if (hasDestination == 1)
- {
- ushort destinationSectors = packet.Read<ushort>();
- ushort xDestination = packet.Read<ushort>();
- float zDestination = packet.Read<float>();
- ushort yDestination = packet.Read<ushort>();
- if (objectID == playerID)
- {
- Console.WriteLine("Player is moving to : " + xDestination + "|" + yDestination + "|" + zDestination);
- }
- }
- else
- {
- byte unknown = packet.Read<byte>();
- ushort angle = packet.Read<ushort>();
- }
- byte hasSource = packet.Read<byte>();
- if (hasSource == 1)
- {
- ushort sourceSectors = packet.Read<ushort>();
- ushort xSource = packet.Read<ushort>();
- float zSource = packet.Read<float>();
- ushort ySource = packet.Read<ushort>();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement