From The Mana World
LunaticEdit (talk | contribs) m (moved Packet::0x0069 to Packet:0x0069: Typo) |
LunaticEdit (talk | contribs) |
||
Line 23: | Line 23: | ||
{{packet field | X+30 | 2 | ''Unused'' }} | {{packet field | X+30 | 2 | ''Unused'' }} | ||
|description= | |description= | ||
This packet is sent to the client by the server to define the character sex, the account and session IDs, as well as provide a list of worlds the player can connect to. | |||
===Error Codes === | ===Error Codes === |
Revision as of 15:57, 1 February 2013
Login Data
Packet ID: | 0x0069 |
---|---|
Packet Length: | -1 |
Client Defined: | SMSG_LOGIN_DATA |
Sent Location(s): | |
Parsed Location(s): |
Fields
Offset | Length | Contents |
---|---|---|
0 | 2 | Packet ID |
2 | 2 | Packet Length (47 + (32 * ServerCount)) |
4 | 4 | Session ID (Part 1) |
8 | 4 | Account ID |
12 | 4 | Session ID (Part 2) |
16 | 4 | Unused - Always set to 0x00000000 |
20 | 26 | Unused - Currently set to account.lastlogin for some reason. |
46 | 1 | Character Sex |
| | WorldInfo Packet (Repeated for each world) |
X+0 | 4 | Address |
X+4 | 2 | Port |
X+6 | 20 | Server Name |
X+26 | 4 | Online Users (Count) |
X+30 | 2 | Unused |
Description
This packet is sent to the client by the server to define the character sex, the account and session IDs, as well as provide a list of worlds the player can connect to.
Error Codes
- 0x0000 - Authentication failed.
- 0x0001 - No servers available.
- 0x0002 - This account is already logged in (if logging in); Someone else is trying to log into your account (if logged in).
- 0x0003 - Speed hack detected.
- 0x0008 - Duplicated login.
- Other - Unknown connection error.