This document describes the steps needed to be accepted by the Diablo II Game Server after MCP_JOINGAME (message 0x04) is received from the Realm Server. If the result of that message 0x00, then connection is dropped from the Realm Server and initiated with the Game Server.
(S>C)
D2GS_SERVERCONNECTED (0xAF)
After initiating connection with the Game Server, you will receive message 0xAF, with byte data 01.
(byte) Packet ID - 0xAF
(byte) 0x01
(C>S)
D2GS_LOGON (0x68)
You must then send the login message 0x68.
(S>C)
D2GS_REQUESTENTERENVIRONMENT (0x5C)
In response to sending 0x68, you will receive message 0x5C.
Receiving this message confirms that the game server has accepted your login.
(byte) 0x02
(byte) 0x5C
(C>S)
D2GS_ENTERGAMEENVIRONMENT (0x6A)
You must then request to enter the game environment with message 0x6A.
(byte) 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.
#20
User Comments:None