Hacking online games is a bit tricky. All you need is to perfectly understand some programming nouns like adresses (the most important), if statements, loops, variables, functions and binary / hexadecimal system.
This is only the beginning
Then you have to know how the game works (reverse engineering here).