What is file gathering?
DxDark: Depending on the game you would have to debugg the client reverse engineer the packet protocol. My suggestion to you would take any open source private server here and learn how it works inside and out. Whatever you dont understand go and search for the answer. As time goes on you will learn what it takes...