• Welcome to Valhalla Legends Archive.
 

Requesting Brood War Ladder Stats

Started by haZe, April 12, 2003, 07:01 AM

Previous topic - Next topic

haZe

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.

Camel

#1
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

Camel

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