You need an extensive knowledge in programming to hope to achieve this, not to mention a lot of spare time and skill in reverse engineering packets.
You also need a basic understand of how networks (including the internet) work.
You could always start by going over the CO2 section and learning how they made their Emulators (Server software)