Valhalla Legends Archive

Programming => Battle.net Bot Development => Battle.net Bot Development References => Topic started by: bob on January 01, 2003, 07:19 PM

Title: 0x25
Post by: bob on January 01, 2003, 07:19 PM
how can you break down the 0x25 packet to get the server uptime?
Title: Re: 0x25
Post by: Spht on January 02, 2003, 07:39 AM
SID_PING (0x25) doesn't include the server's uptime anymore. It's now just a random value.
Title: Re: 0x25
Post by: Etheran on January 05, 2003, 12:47 AM
Compatibility for older clients?
Title: Re: 0x25
Post by: Yoni on January 05, 2003, 02:55 AM
SID_PING has always included a DWORD.
Blizzard games didn't care about the value, they just replied with the same value to Battle.net.
The Battle.net server could use any value here, and it used GetTickCount(), which returns the server's uptime.
Bot developers found out about this and abused this (to show the uptime). This was also abused to spoof lag.
Blizzard didn't want the uptime to be known, and today SID_PING sends a random value as Spht said - and lag spoofing is no longer possible either.
Blizzard games still don't care about the value, they still just reply with the same value.

Any questions? :)