I made the auth server and its work fine ... now I am working on game server side
I am using [hybrid winsock client] socket for both ... account server and game server
The problem now in packet 1001 create character ... when I deserialize the packet using
PHP Code:
public class EntityCreate : Interfaced.IPacket
{
Public string Character;
Public ushort Body;
Public byte Class;
Public void Deserialize (byte [] buffer)
{
Character = Encoding.ASCII.GetString (buffer, 20, 16).Replace ("\0", "");
Body = BitConverter.ToUInt16(buffer, 52);
Class = (byte) BitConverter.ToUInt16(buffer, 54);
}
public byte [] ToArray ()
{
}
public void Send (Client.GameState client)
{
}
}
I get the character name is something like (n, tAV\"liB/eC)
When the character name as I wrote is [ NotAvailable]
Also the body its come as something like (17649) and not 1003, 1004, 2001 or 2002
How I can fix this issue ?