Easy fix, this advice solved it.
Quote:
[05:37] <image> I would just subtract the rest of the packet
|
lines in green
Code:
public void HandleWorldMessage_ChannelMessage(byte[] data, int datasize)
{
int position = 0;
string ChannelTargetName = ReadFixedLengthString(data, ref position, 64);
string ChannelSender = ReadFixedLengthString(data, ref position, 64);
Int32 ChannelLanguage = ReadInt32(data, ref position);
Int32 ChannelNumber = ReadInt32(data, ref position);
Int32 ChannelSkill = ReadInt32(data, ref position);
Int32 ChannelVarLength = datasize - position;
string ChannelMessage = ReadFixedLengthString(data, ref position, ChannelVarLength);
}