Skip to content

Cmd_CheckCharNameAck

GigaToni edited this page May 4, 2017 · 2 revisions

Server -> Client = Cmd_CheckCharNameAck (81)

  • The character name that was checked. Max 42-Bytes long
  • If the name is available or not
    • true/1 = Available
    • false/0 = Not Available

This is the answer packet to Cmd_CheckCharName (80)

Raw packet data sent by server

000000: 51 00 4C 00 79 00 73 00 65 00 72 00 67 00 69 00  Q · L · y · s · e · r · g · i · 
000016: 63 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  c · · · · · · · · · · · · · · · 
000032: 00 00 00 00 00 00 00 00 00 00 00 00 01  · · · · · · · · · · · · · 

Pseudo struct

typedef struct
{
    wstring_t CharacterName;
    byte Availability;
};

Pseudo C# Class

public class CheckCharacterNameAckPacket
{
    public string CharacterName;
    public bool Availability;
    
    public void Send(Client client)
    {
        var ack = new Packet(Packets.CheckCharNameAck);
        ack.Writer.WriteUnicodeStatic(CharacterName, 21);
        ack.Writer.Write(Availability);
        client.Send(ack);
    }
}
Clone this wiki locally