Guest User

Untitled

a guest
May 22nd, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.46 KB | None | 0 0
  1.             var guidBytes = new byte[8];
  2.  
  3.             guidBytes[0] = (byte)(packet.ReadBit("guidBytes[0]") ? 1 : 0);
  4.             guidBytes[7] = (byte)(packet.ReadBit("guidBytes[7]") ? 1 : 0);
  5.             guidBytes[5] = (byte)(packet.ReadBit("guidBytes[5]") ? 1 : 0);
  6.             guidBytes[2] = (byte)(packet.ReadBit("guidBytes[2]") ? 1 : 0);
  7.             guidBytes[4] = (byte)(packet.ReadBit("guidBytes[4]") ? 1 : 0);
  8.             guidBytes[1] = (byte)(packet.ReadBit("guidBytes[1]") ? 1 : 0);
  9.             guidBytes[3] = (byte)(packet.ReadBit("guidBytes[3]") ? 1 : 0);
  10.             guidBytes[6] = (byte)(packet.ReadBit("guidBytes[6]") ? 1 : 0);
  11.  
  12.             if (guidBytes[1] != 0) guidBytes[1] ^= packet.ReadByte("guidBytes[1]");
  13.             packet.ReadSingle("Speed");
  14.             if (guidBytes[6] != 0) guidBytes[6] ^= packet.ReadByte("guidBytes[6]");
  15.             if (guidBytes[2] != 0) guidBytes[2] ^= packet.ReadByte("guidBytes[2]");
  16.             if (guidBytes[3] != 0) guidBytes[3] ^= packet.ReadByte("guidBytes[3]");
  17.             if (guidBytes[7] != 0) guidBytes[7] ^= packet.ReadByte("guidBytes[7]");
  18.             if (guidBytes[4] != 0) guidBytes[4] ^= packet.ReadByte("guidBytes[4]");
  19.             if (guidBytes[0] != 0) guidBytes[0] ^= packet.ReadByte("guidBytes[0]");
  20.             if (guidBytes[5] != 0) guidBytes[5] ^= packet.ReadByte("guidBytes[5]");
  21.             packet.ReadInt32("Unk");
  22.             Log.WriteLine("GUID: {0}", new Guid(BitConverter.ToUInt64(guidBytes, 0)));
Add Comment
Please, Sign In to add comment