BNETDocs
Diablo II Game Server Accept Sequence

This document describes the steps needed to be accepted by the Diablo II Game Server after [0x04] MCP_JOINGAME is received from the Realm Server. If the result of that message is 0x00, then the connection is dropped from the Realm Server and initiated with the Game Server.

  1. S > C [0xAF] D2GS_NEGOTIATECOMPRESSION

    • After initiating connection with the Game Server, you will receive message 0xAF informing you of the server's compression mode.
  2. C > S [0x68] D2GS_GAMELOGON

    • You must then send the login message 0x68.
  3. S > C [0x5C] D2GS_(COMP)STARTGAME
    • In response to sending 0x68, you will receive message 0x5C.
    • Receiving this message confirms that the game server has accepted your login.
      (UINT8) 0x02
      (UINT8) 0x5C
  4. C > S [0x6A] D2GS_ENTERGAMEENVIRONMENT
    • You must then request to enter the game environment with message 0x6A.
      (UINT8) 0x6A
    • Upon sending this byte, you have successfully entered the gaming environment. At this point, the D2GS will send you many messages regarding player information about you and other players. All packets sent from the server should now be decompressed.
| Edited: Sixen
Comments

no one has commented yet.