Syntax highlighting of server-protocol/3aec391 ~( Packet_0x04)

# Packet 0x04

Packet 0x04 is used to set any data that will be resent with any login request. This data is communicated by the client back to the server with later login packets that they send. On earlier versions of the game, any data after the guild card number is ignored.

## Dreamcast Packet Format
| Bytes | Meaning |
| --- | --- |
| 0x00 | Packet Type (0x04) |
| 0x01 | Flags (0x00) |
| 0x02-0x03 | Packet Size (at least 0x0C, at most 0x3C) |
| 0x04-0x07 | Player Tag (0x00010000) |
| 0x08-0x0B | Guild Card Number |
| 0x0C-0x3B | Data to be sent in future login packets (on some versions) |