You need to understand how the game works.
Authentication server = connection server, performs key exchange and user routing to game server
GameServer = the game itself
You need to choose a version to study packet structure of it, through reverse engineering on the client or if you want to use the knowledge acquired by the community over the years I recommend the spirited wiki ->