From The Mana World
LunaticEdit (talk | contribs) m |
LunaticEdit (talk | contribs) |
||
Line 8: | Line 8: | ||
|parsed={{tmwa location|src/login/login.cpp|3644}} | |parsed={{tmwa location|src/login/login.cpp|3644}} | ||
|fields= | |fields= | ||
{{packet field | 0 | 2 | | {{packet field | 0 | 2 | Packet ID }} | ||
{{packet field | 2 | 4 | | {{packet field | 2 | 4 | Client Version }} | ||
{{packet field | 6 | 24 | | {{packet field | 6 | 24 | Username }} | ||
{{packet field | 30 | 24 | | {{packet field | 30 | 24 | Password }} | ||
{{packet field | 54 | 1 | Bitmask: | {{packet field | 54 | 1 | Bitmask: | ||
0x01: Can handle [[:Packet:0x0063|Update Host]] packet | 0x01: Can handle [[:Packet:0x0063|Update Host]] packet | ||
Line 25: | Line 25: | ||
* If the "Update Host" is defined on the server, the server will respond with [[Packet:0x0063|Host Update]]. | * If the "Update Host" is defined on the server, the server will respond with [[Packet:0x0063|Host Update]]. | ||
* If at least one character is defined for the player, the server will respond with [[Packet::0x0069]], otherwise the server will respond with [[Packet:0x0081]]. | * If at least one character is defined for the player, the server will respond with [[Packet::0x0069]], otherwise the server will respond with [[Packet:0x0081]]. | ||
===Notes === | |||
* All supported clients must send a 3 on the final packet, indicating "Update Host" support, as well as defaulting to first server instead of last. | |||
* Client Version is currently expected to be 0. | |||
}} | }} |
Revision as of 14:29, 1 February 2013
Login Register
Packet ID: | 0x0064 |
---|---|
Packet Length: | 55 |
Client Defined: | (hard-coded) |
Sent Location(s): | src/net/tmwa/loginhandler.cpp:298 |
Parsed Location(s): | src/login/login.cpp |
Fields
Offset | Length | Contents |
---|---|---|
0 | 2 | Packet ID |
2 | 4 | Client Version |
6 | 24 | Username |
30 | 24 | Password |
54 | 1 | Bitmask:
0x01: Can handle Update Host packet 0x02: defaults to first char-server instead of last |
Description
Registers login credentials.
The server will take the following actions upon receiving this command (in order):
- If the connection is refused, the server will respond with Packet:0x006A.
- If the account is banned or restricted, the server will respond with Packet:0x006A.
- If the account's GM level is less than the "Minimum GM Level" defined, the server will respond with Packet:0x0081.
- If the "Update Host" is defined on the server, the server will respond with Host Update.
- If at least one character is defined for the player, the server will respond with Packet::0x0069, otherwise the server will respond with Packet:0x0081.
Notes
- All supported clients must send a 3 on the final packet, indicating "Update Host" support, as well as defaulting to first server instead of last.
- Client Version is currently expected to be 0.