Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: UserLoser on June 23, 2003, 10:28 PM

Title: Statstring Values
Post by: UserLoser on June 23, 2003, 10:28 PM
I got most of this down, but I need some verification or help on some values to make sure I have it correct. [Starcraft/Broodwar/Japanese/Shareware/Warcraft II].

Example [W2BN]: 1482 208 13 0 0 1482 9999 1 0
This users ladder rating would be 1482, with 13 wins, ranked 208 on ladder, no spawn, ???, highest ladder rating, iron man rating, rank, ???

Is that correct for a user who is on W2BN, and what are the 5th and 9th values?

Also, on the other products, what are the 5th, 7th, 8th, 9th values?  Is the 7th one highest rank?
Title: Re:Statstring Values
Post by: Camel on June 23, 2003, 10:38 PM
       Case "RATS", "PXES", "RTSJ", "RHSJ"
           ParseStatString = Values(0) & _
                             IIf(Values(4) = 1, " (spawn)", "") & ": " & _
                             Values(3) & " wins" & _
                             IIf(Values(1), ", with a rating of " & Values(1) & " (high " & Values(6) & ")", "")
       Case "NB2W"
           ParseStatString = Values(0) & _
                             IIf(Values(4) = 1, " (spawn)", "") & ": " & _
                             Values(3) & " wins" & _
                             IIf(Values(1), ", with a rating of " & Values(1) & " (high " & Values(6) & ")", "") & _
                             IIf(Values(7), ", and an ironman rating of " & Values(7), "") & _
       Case "RHSD", "LTRD"
           Select Case Values(2)
               Case 0: cType = "warrior"
               Case 1: cType = "sorceror"
               Case 2: cType = "rogue"
           End Select
           ParseStatString = ParseStatString & _
               Values(0) & _
               ": Level " & Values(1) & " " & cType & " with " & _
               Values(3) & " dots, " & _
               Values(4) & " strength, " & _
               Values(5) & " magic, " & _
               Values(6) & " dexterity, " & _
               Values(7) & " vitality, and " & _
               Values(8) & " gold"
Title: Re:Statstring Values
Post by: UserLoser on June 24, 2003, 12:25 PM
That didn't answer my question at all...I know how to parse it, I want to know what the values mean.
Title: Re:Statstring Values
Post by: Camel on June 24, 2003, 07:35 PM
you can figgure out what they mean from my code :)

for example sc/w2:
1 ladder rating
3 number of wins
4 spawned?
6 ladder rating high score
7 (W2BN only) ironman rating
diablo:
1 level
2 char type
3 dots
4 str
5 magic
6 dex
7 vit
8 gold

ironman high score should be in there too, i think
Title: Re:Statstring Values
Post by: UserLoser on July 11, 2003, 07:13 PM
Isn't one of them high rank?
Title: Re:Statstring Values
Post by: Camel on July 13, 2003, 05:50 PM
You have to check their profile to get high rank.

*cough* Arta should document all of the known keys and their formats on bnetdocs. ;)