you have first determine which encryption they using !
Silkroad use Blowfish Algorithm.
Lineage 2 use RSA and Blowfish Algorithm.
if its blowfish you have to get the key on some-which way.
then, you have to catch packet, learning them, and know for which packet which answer to give him.