Login (Packets)

The Login packet is the packet that is first received when the user attempts to log in into an account and sent when sending a response to the login attempt.

Packet Structure
Note: This packet structure reffers to a specific version. It may differ from version to version. Additionally, certain values will not be mentioned as they are unknown for now.

Succesful authentication packet:
​[Login Status Operation Code] [00] [00] [00 00 00 00] [Account ID as Integer] [00 00 00 00 00 00 00 00 00] [Account Name as Maple String] [00 00 00 00 00 00 00 00] [00 00 00 00] [00 00 00 00 00 00 00 00] [2E 00 00 00] [Jobs Enabled as Byte] [Job Order as Byte] (For each job) [Job Flag as Byte] [01 00] [04 00] [Session ID as Long] Here's an explanation about each parameter: 
 * Login Status Operation Code - The opcode of the packet, usually 0x00. In earlier versions it used to be 0x01.
 * Account ID - The ID of the account.
 * Account Name - The name of the account.
 * Jobs Enabled - A flag determing if the jobs in the character creation page are enabled or not.
 * Job Order - The order of the character creation page, located in the WZ files (certain location unknown).
 * Job Flag - A flag determing if this certain job is enabled or not.
 * Session ID - A randomly generated long bound to each account, later used in the migration packet handler.