Thank you .Kinshi, Thank you Impulse.
Thank you Moderator for closing this (in advance) :D
#request close.
Thank you Moderator for closing this (in advance) :D
#request close.
Size: 8 + 214 + (C.Name.Length) Packet[212] = 4; Packet[213] = (byte)(C.Name.Length); WriteString(C.Name, 214, Packet);
Dude it's impossible the size to be 214 + 8 + Charname lenghtQuote:
The size of the packet and the offset for the player name is wrong.
Code:Size: 8 + 214 + (C.Name.Length) Packet[212] = 4; Packet[213] = (byte)(C.Name.Length); WriteString(C.Name, 214, Packet);
SpawnPacket = new byte[8 + 214 + Name.Length]; WriteUInt16((ushort)(214 + Name.Length), 0, SpawnPacket); WriteUInt16(10014, 2, SpawnPacket); SpawnPacket[212] = 3; SpawnPacket[213] = (byte)_Name.Length; WriteString(_Name, 214, SpawnPacket);
It Does, but your length is incorrect. If you want to spawn clan name, you gotta increase the length. However, Thank you for your help, I Appreciate that.Quote:
Works just the way it should.Code:SpawnPacket = new byte[8 + 214 + Name.Length]; WriteUInt16((ushort)(214 + Name.Length), 0, SpawnPacket); WriteUInt16(10014, 2, SpawnPacket); SpawnPacket[212] = 3; SpawnPacket[213] = (byte)_Name.Length; WriteString(_Name, 214, SpawnPacket);