• Welcome to Valhalla Legends Archive.

W3GS_LEAVEREQ 0x21 - Player ID???

Started by Glorfindel(RW), February 12, 2009, 08:29 PM

Previous topic - Next topic


OK, so I didn't find anything about this on bnetdocs.org, but this still seems like the most relevant forum...

#define W3GS_LEAVEREQ 0x21 // client requests leave
struct sW3GS_LEAVEREQ {
BYTE  playerNum;
BYTE  zero[3];

Source:   http://forum.valhallalegends.com/index.php?topic=14970.0
Source2: http://desc.se/blackbook/forum/viewtopic.php?id=13

So these sources both say, however, I'm finding different results.

f7 21  08 00 07 00 00 00         @qa....! ......

Every single time I try sniffing out this packet, the "playerNum" byte is 0x07 for every player.

My program needs to know either the user name or the player ID of the person who disconnected...  does anyone know how I might find this?  I've sniffed around, but I'm not finding any way to identify which person it was who left aside from the IP who sent W3GS_LEAVEREQ, and I'm afraid that using that might cause issues with people playing on the same IP.