Valhalla Legends Forums Archive | Battle.net Bot Development | WAR3 Icons.

AuthorMessageTime
LordNevar
I am trying to parse WAR3 icons by wins and according to race, I have all the icons loaded into my imglist, but it shows the wrong icon for the race and the wins. Any advice on how to go about doing it properly would be appreciated.

Ex: Has a Archer icon with 17 Human wins. (Will show a blue dragon icon or whatever. Will not show the proper icon based on the race or wins.

If I do it by wins I can get the proper icon to show up, but I can't get it race specific.

Ex: Has a Green Dragon Whelp Icon with 17 Random wins, will show an Archer Icon, instead of the Green Dragon Whelp icon.

Thanxs in advance.
May 6, 2004, 2:45 AM
Null
Well its obviosuly telling you that your statstring parsing is all fucked up.

Recomendation: Post it here and let someone pick at it.
May 6, 2004, 3:00 AM
LordNevar
It's not my statstrings, I know they work cause they report the proper icon and wins for the person, it's when I call for the Actual icon based off that info for the wins and the race that I can't figure out.

Ex: Username - Has Joined The Channel Using WarCraft III: Reign of Chaos - With A (Footman Icon, And A Record Of 2 human wins), Instead of the WAR3 Icon you should see the Footman Icon, but it will show a Blue Dragon icon or something. I don't know exactly how to seperate the icon codes by race. I can get it for wins, but can't get it race specific.
May 6, 2004, 3:11 AM
hismajesty
Post the code that adds the icon, we're not physic.
May 6, 2004, 11:15 AM
LordNevar
[code]Case "3RAW"
Code = ICON_3RAW
If record Then
w3 = Split(Mid(Client, 6), " ", 10)
wcladder = Val(w3(1))
If wcladder = 0 Then
Code = ICON_W3H1
ElseIf wcladder = 25 < 249 Then
Code = ICON_W3H2
ElseIf wcladder = 250 < 499 Then
Code = ICON_W3H3
ElseIf wcladder = 500 < 1499 Then
Code = ICON_W3H4
ElseIf wcladder = 1500 Then
Code = ICON_W3H5
End If[/code]

That is what I got to split the icons by wins, but how to make it race specific baffles me. Can't just give everyone human icons.

Edit: Ladder values.
May 6, 2004, 3:02 PM
UserLoser.
First of all, wins are not included in a Warcraft III statstring, you're mistaken wins for level
May 6, 2004, 3:50 PM
Spht
Why are you trying to compute the icon yourself which should be used? The statstring includes which icon to use. Reign of Chaos has 5 icons for each race and The Frozen Throne has 6 icons for each race, plus the 6 tournament icons. I compiled these icons into two packages here. These packages include all the icons and their icon code which is found in a Warcraft III statstring.
May 6, 2004, 5:12 PM
Myndfyr
[quote author=Spht link=board=17;threadid=6675;start=0#msg58804 date=1083863522]
Why are you trying to compute the icon yourself which should be used? The statstring includes which icon to use. Reign of Chaos has 5 icons for each race and The Frozen Throne has 6 icons for each race, plus the 6 tournament icons. I compiled these icons into two packages here. These packages include all the icons and their icon code which is found in a Warcraft III statstring.
[/quote]

And aside from all that, someone with the Sorceress icon might still have the rifleman icon selected, because you can.
May 7, 2004, 3:35 AM
CodeMaster
Does anyone have the F List icons used for 0x65?

In Chat, In Game, Mutual, Non Mutual etc (I think)
May 7, 2004, 5:51 AM
LordNevar
Problems been solved thanxs to everyone's help, and the help of Stealth.
May 7, 2004, 6:41 AM
Myndfyr
[quote author=CodeMaster link=board=17;threadid=6675;start=0#msg58902 date=1083909116]
Does anyone have the F List icons used for 0x65?

In Chat, In Game, Mutual, Non Mutual etc (I think)
[/quote]

Yes.

(If you look at the WC3 client, it either displays the icon of client they are on, or it displays that they are not online. The other info -- chat, game, flags -- is all in a tooltip).
May 7, 2004, 7:31 AM
Soul Taker
[quote author=Myndfyre link=board=17;threadid=6675;start=0#msg58905 date=1083915111]
[quote author=CodeMaster link=board=17;threadid=6675;start=0#msg58902 date=1083909116]
Does anyone have the F List icons used for 0x65?

In Chat, In Game, Mutual, Non Mutual etc (I think)
[/quote]

Yes.

(If you look at the WC3 client, it either displays the icon of client they are on, or it displays that they are not online. The other info -- chat, game, flags -- is all in a tooltip).
[/quote]
No, it has little green hands or crossed swords and whatnot so show their friend status.
May 7, 2004, 7:57 AM
Myndfyr
hehe whoops, I was thinking of *my* bot. :P That's right, I forgot about the hands.
May 7, 2004, 8:12 AM
CodeMaster
So does anyone have the hands and the two swords crossing ?
May 7, 2004, 10:28 PM
Stealth
Print Screen?
May 8, 2004, 2:53 AM
Maddox
[quote author=Stealth link=board=17;threadid=6675;start=0#msg59006 date=1083984824]
Print Screen?
[/quote]

Extract from MPQ?
May 8, 2004, 2:58 AM
CodeMaster
I tried print screen and I had really bad results.....and I'm not quite sure about Extracting from the MPQ, which MPQ would it be?
May 8, 2004, 3:07 AM
Spht
[quote author=CodeMaster link=board=17;threadid=6675;start=15#msg59009 date=1083985628]
I tried print screen and I had really bad results.....and I'm not quite sure about Extracting from the MPQ, which MPQ would it be?
[/quote]

War3.mpq of course. Look in UI\Widgets\BattleNet\. There's many programs around for reading MPQ archives.
May 8, 2004, 3:01 PM
CodeMaster
Got it :) Many Thanks

Edit: I know this is kind of stupid but does anyone know where they store the ladder ranking icons? Like the icons with the little rank numbers on them. I wouldn't mind playing around with those, I checked Stardat.mpq but I don't believe they are in there.
May 8, 2004, 6:34 PM
Myndfyr
[quote author=CodeMaster link=board=17;threadid=6675;start=15#msg59073 date=1084041243]
Got it :) Many Thanks

Edit: I know this is kind of stupd but does anyone know where they store the ladder ranking icons? Like the icons with the little rank numbers on them. I wouldn't mind playing around with those, I checked Stardat.mpq but I don't believe they are in there.
[/quote]

They have to custom-draw the rank numbers onto the icons. There's no way that they would have 1000 different icons.

If you're looking for WC3 icons, then why look in Stardat.mpq???
May 8, 2004, 8:18 PM
CodeMaster
No No, I found the War3 icons already, but I was just wondering if maybe they had the ladder icons stored somewhere as well.
May 8, 2004, 8:22 PM

Search