URI:
   DIR Return Create A Forum - Home
       ---------------------------------------------------------
       Hack Community
  HTML https://roshacks.createaforum.com
       ---------------------------------------------------------
       *****************************************************
   DIR Return to: Codes
       *****************************************************
       #Post#: 58--------------------------------------------------
       [C#] GetEncryptedPosition_X
   DIR By: pipo1337
       Date: March 31, 2018, 4:47 am
       ---------------------------------------------------------
       --- Code ---
       public static Vector3 GetEncryptedPosition_X(int
       pEntity)
       {
       xPos =
       BitConverter.ToUInt32(BitConverter.GetBytes(Mem.ReadMemory<float>(pEntity
       + 0x10)), 0);
       yPos =
       BitConverter.ToUInt32(BitConverter.GetBytes(Mem.ReadMemory<float>(pEntity
       + 0x18)), 0);
       zPos =
       BitConverter.ToUInt32(BitConverter.GetBytes(Mem.ReadMemory<float>(pEntity
       + 0x20)), 0);
       
       KeyX =
       Mem.ReadMemory<UInt32>(Mem.ReadMemory<int>(pEntity + 0x14));
       KeyY =
       Mem.ReadMemory<UInt32>(Mem.ReadMemory<int>(pEntity + 0x1C));
       KeyZ =
       Mem.ReadMemory<UInt32>(Mem.ReadMemory<int>(pEntity + 0x24));
       
       xDecrypted =
       BitConverter.ToSingle(BitConverter.GetBytes(xPos ^ KeyX), 0);
       yDecrypted =
       BitConverter.ToSingle(BitConverter.GetBytes(yPos ^ KeyY), 0);
       zDecrypted =
       +BitConverter.ToSingle(BitConverter.GetBytes(zPos ^ KeyZ), 0);
       
       TMP.X = xDecrypted;
       TMP.Y = yDecrypted;
       TMP.Z = zDecrypted;
       return TMP;
       }
       --- End Code ---
       #Post#: 148--------------------------------------------------
       Re: [C#] GetEncryptedPosition_X
   DIR By: babaktu
       Date: April 11, 2018, 4:07 pm
       ---------------------------------------------------------
       public static Vector3 GetEncryptedPosition_X(int
       pEntity)
       {
       xPos =
       BitConverter.ToUInt32(BitConverter.GetBytes(Mem.ReadMemory<float>(pEntity
       + 0x10)), 0);
       yPos =
       BitConverter.ToUInt32(BitConverter.GetBytes(Mem.ReadMemory<float>(pEntity
       + 0x18)), 0);
       zPos =
       BitConverter.ToUInt32(BitConverter.GetBytes(Mem.ReadMemory<float>(pEntity
       + 0x20)), 0);
       KeyX =
       Mem.ReadMemory<UInt32>(Mem.ReadMemory<int>(pEntity + 0x14));
       KeyY =
       Mem.ReadMemory<UInt32>(Mem.ReadMemory<int>(pEntity + 0x1C));
       KeyZ =
       Mem.ReadMemory<UInt32>(Mem.ReadMemory<int>(pEntity + 0x24));
       xDecrypted =
       BitConverter.ToSingle(BitConverter.GetBytes(xPos ^ KeyX), 0);
       yDecrypted =
       BitConverter.ToSingle(BitConverter.GetBytes(yPos ^ KeyY), 0);
       zDecrypted =
       +BitConverter.ToSingle(BitConverter.GetBytes(zPos ^ KeyZ), 0);
       TMP.X = xDecrypted;
       TMP.Y = yDecrypted;
       TMP.Z = zDecrypted;
       return TMP;
       }
       *****************************************************
       Page 1 of 1