Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: haZe on April 12, 2003, 07:01 AM

Title: Requesting Brood War Ladder Stats
Post by: haZe on April 12, 2003, 07:01 AM
How would I go about requesting Brood War Ladder Stats? I don't want any code, I just want to know what to send & receive. Thanks.
Title: Re:Requesting Brood War Ladder Stats
Post by: Camel on April 12, 2003, 01:55 PM
Public Function RequestLadder(First As Integer, Length As Integer, Product As String)
   SendPacket &H2E, UCase(StrReverse(Product)) & MKL(1) & MKL(0) & MKL(CLng(First)) & MKL(CLng(Length))
   StartLadder = First
End Function


parsing it out isn't quite so simple...it took me about half a day to do it :(


[edit] also note that you will never get more than 20 results back from bnet
Title: Re:Requesting Brood War Ladder Stats
Post by: Camel on April 12, 2003, 02:05 PM
arta can put this on bnetdocs if he wants...

0x2E server response
(DWORD) Product
(16 bytes you probably don't need)

for each result:
(DWORD) Current Wins
(DWORD) Current Losses
(DWORD) Current Disconnects
(DWORD) Current Rating
(DWORD) Current Rank
(DWORD) Accepted Wins
(DWORD) Accepted Losses
(DWORD) Accepted Disconnects
(DWORD) Accepted Rating
(DWORD) ?
(DWORD) Accepted Rank
(DWORD) ?
(DWORD) ?
(DWORD) High Rating
(DWORD) ?
(DWORD) Season
(FILETIME) Current Last Game
(FILETIME) Accepted Last Game
(STRING) Username