Hello everybody!
I'm using 5165 Tanel's Source but I noticed that the chat packet Isn't correct... Somethings are missing,, such as the avatar in whisper chat window and scanning gears of the target..
Any1 has the correct packet? Thanks
Here Goes My Packet
I'm using 5165 Tanel's Source but I noticed that the chat packet Isn't correct... Somethings are missing,, such as the avatar in whisper chat window and scanning gears of the target..
Any1 has the correct packet? Thanks
Here Goes My Packet
Code:
public static COPacket ChatMessage(uint MessageID, string From, string To, string Message, ushort Type, uint Mesh)
{
byte[] Packet = new byte[8 + 34 + Message.Length + From.Length + To.Length];
COPacket P = new COPacket(Packet);
P.WriteInt16((ushort)(Packet.Length - 8));
P.WriteInt16((ushort)0x3ec);
P.WriteBytes(new byte[] { 0xff, 0xff, 0xff, 0x00 });
P.WriteInt32(Type);
P.WriteInt32(MessageID);
P.WriteInt32(Mesh);
P.WriteInt32(Mesh);
P.WriteByte(4);
P.WriteByte((byte)From.Length);
P.WriteString(From);
P.WriteByte((byte)To.Length);
P.WriteString(To);
P.Move(1);
if (Message.Length < 255)
P.WriteByte((byte)(Message.Length));
else
P.WriteByte(255);
P.WriteString(Message, 255);
P.Move(6);
return P;
}