timfelgentreff's avatar

timfelgentreff

Member for 6 years, 3 months, 2 days User #5186

Comments 2

On a packet ·

pvpgn actually sends the status as a short and adds a 0x0 short for "padding". If you read the status as uint32, these are the status code you get when using this against pvpgn

0x000000    Success
0x010000    Account does not exist
0x020000    Incorrect password
0x060000    Account closed, see additional information
On a packet ·

From the PVPgn sources, it seems the value "0x00" in results can mean "still playing or no player". So a client that disconnects e.g. because they lost the game already should report all remaining players as 0x00 (which will mean still playing). The distinction if it means "still playing" or "no player" is done using the username, a "no player" must have an empty username