gw2tools packet-extract Scans through the game client and dumps the packet structures as a header file. Makes use of the debugging info that was left in the client to name a few structures.