From The Mana World
LunaticEdit (talk | contribs) |
m (improve wording) |
||
(15 intermediate revisions by 3 users not shown) | |||
Line 3: | Line 3: | ||
|id=0x0065 | |id=0x0065 | ||
|mode={{{mode}}} | |mode={{{mode}}} | ||
|length= | |length=17 | ||
|alignment=orange | |||
|define= CMSG_CHAR_SERVER_CONNECT | |define= CMSG_CHAR_SERVER_CONNECT | ||
|sent | |sent={{mana location|src/net/tmwa/charserverhandler.cpp|376}} | ||
|parsed={{tmwa location|src/char/char.cpp}} | |||
|fields= | |fields= | ||
{{packet field | 0 | 2 | Packet ID }} | {{packet field | 0 | 2 | Packet ID }} | ||
Line 16: | Line 17: | ||
|description= | |description= | ||
Sent to the Character Server immediately after connecting. After this packet is sent to the server, it immediately replies with | Sent to the Character Server immediately after connecting. After this packet is sent to the server, it immediately replies with 4 bytes containing whatever was sent as the Account ID. The client shall perform a read of 4 bytes and ignore (or verify) the returned value. | ||
If the server is full or the login server does not exist, the char server shall respond with [[Net:0x006C|Refuse Connection]]. The server shall respond to the client with [[Net:0x006B|Update Character List]]. | |||
===Note=== | ===Note=== | ||
* Client Protocol Version must be set to "1"; it was previously "0" for the old client. | * Client Protocol Version must be set to "1"; it was previously "0" for the old client. | ||
* Gender of "Male" is defined as "1", and "Female" is defined as "0". | * Gender of "Male" is defined as "1", and "Female" is defined as "0". | ||
===Internals=== | |||
Emits [[Net:0x2716|Request Email and Time Limit]] if the account is in the auth queue, otherwise [[Net:0x2712]]. | |||
}} | }} |
Latest revision as of 00:44, 29 September 2013
Character Server Connection Request
Packet ID: | 0x0065 |
---|---|
Packet Length: | 17 |
Client Defined: | CMSG_CHAR_SERVER_CONNECT |
Sent Location(s): | src/net/tmwa/charserverhandler.cpp:376 |
Parsed Location(s): | src/char/char.cpp |
Fields
Offset | Length | Contents |
---|---|---|
0 | 2 | Packet ID |
2 | 4 | Account ID |
6 | 4 | Session ID (Part 1) |
10 | 4 | Session ID (Part 2) |
14 | 2 | Client Protocol Version |
16 | 1 | Gender |
Description
Sent to the Character Server immediately after connecting. After this packet is sent to the server, it immediately replies with 4 bytes containing whatever was sent as the Account ID. The client shall perform a read of 4 bytes and ignore (or verify) the returned value.
If the server is full or the login server does not exist, the char server shall respond with Refuse Connection. The server shall respond to the client with Update Character List.
Note
- Client Protocol Version must be set to "1"; it was previously "0" for the old client.
- Gender of "Male" is defined as "1", and "Female" is defined as "0".
Internals
Emits Request Email and Time Limit if the account is in the auth queue, otherwise Net:0x2712.