Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var guidBytes = new byte[8];
- guidBytes[0] = (byte)(packet.ReadBit("guidBytes[0]") ? 1 : 0);
- guidBytes[7] = (byte)(packet.ReadBit("guidBytes[7]") ? 1 : 0);
- guidBytes[5] = (byte)(packet.ReadBit("guidBytes[5]") ? 1 : 0);
- guidBytes[2] = (byte)(packet.ReadBit("guidBytes[2]") ? 1 : 0);
- guidBytes[4] = (byte)(packet.ReadBit("guidBytes[4]") ? 1 : 0);
- guidBytes[1] = (byte)(packet.ReadBit("guidBytes[1]") ? 1 : 0);
- guidBytes[3] = (byte)(packet.ReadBit("guidBytes[3]") ? 1 : 0);
- guidBytes[6] = (byte)(packet.ReadBit("guidBytes[6]") ? 1 : 0);
- if (guidBytes[1] != 0) guidBytes[1] ^= packet.ReadByte("guidBytes[1]");
- packet.ReadSingle("Speed");
- if (guidBytes[6] != 0) guidBytes[6] ^= packet.ReadByte("guidBytes[6]");
- if (guidBytes[2] != 0) guidBytes[2] ^= packet.ReadByte("guidBytes[2]");
- if (guidBytes[3] != 0) guidBytes[3] ^= packet.ReadByte("guidBytes[3]");
- if (guidBytes[7] != 0) guidBytes[7] ^= packet.ReadByte("guidBytes[7]");
- if (guidBytes[4] != 0) guidBytes[4] ^= packet.ReadByte("guidBytes[4]");
- if (guidBytes[0] != 0) guidBytes[0] ^= packet.ReadByte("guidBytes[0]");
- if (guidBytes[5] != 0) guidBytes[5] ^= packet.ReadByte("guidBytes[5]");
- packet.ReadInt32("Unk");
- Log.WriteLine("GUID: {0}", new Guid(BitConverter.ToUInt64(guidBytes, 0)));
Add Comment
Please, Sign In to add comment