You start off simple. You write a packet sniffer and begin analysis of the protocol. As you determine how the protocol works, you can start to implement the base of a server. Implement authorization, game discovery, etc. If you'd like to know more, hit me up on IRC -- I cut my teeth on MMO server emulation, so it's a subject that's near and dear to my heart.