So, i copy the packet from lotf and change some info.
I dont know how to rebuild packet more, who can help me?
Here a packet:
The red fonts its error i need to fix.Quote:
case 1015: //ViewEquip
{
ushort PacketType = 0x3f7;
string Spouse = CSocket.Client.Spouse;
byte[] Packet = new byte[11 + Spouse.Length];
fixed (byte* p = Packet)
{
*((ushort*)p) = (ushort)Packet.Length;
*((ushort*)(p + 2)) = (ushort)PacketType;
*((uint*)(p + 4)) = (uint)CSocket.Client.UID;
*(p + 8) = 0x10;
*(p + 9) = 0x01;
*(p + 10) = (byte)Spouse.Length;
for (int i = 0; i < Spouse.Length; i++)
{
*(p + 11 + i) = Convert.ToByte(Spouse[i]);
}
}
return;
}
THE green color its a UID function. Here a code.
Go to Entines/Characters.cs and put
If u help me really big THANKSQuote:
public uint UID = 0;






