Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: LordNevar on May 05, 2004, 09:45 PM

Title: WAR3 Icons.
Post by: LordNevar on May 05, 2004, 09:45 PM
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.
Title: Re:WAR3 Icons.
Post by: effect on May 05, 2004, 10:00 PM
Well its obviosuly telling you that your statstring parsing is all fucked up.

Recomendation: Post it here and let someone pick at it.
Title: Re:WAR3 Icons.
Post by: LordNevar on May 05, 2004, 10:11 PM
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.
Title: Re:WAR3 Icons.
Post by: hismajesty on May 06, 2004, 06:15 AM
Post the code that adds the icon, we're not physic.
Title: Re:WAR3 Icons.
Post by: LordNevar on May 06, 2004, 10:02 AM
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


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.
Title: Re:WAR3 Icons.
Post by: UserLoser. on May 06, 2004, 10:50 AM
First of all, wins are not included in a Warcraft III statstring, you're mistaken wins for level
Title: Re:WAR3 Icons.
Post by: Spht on May 06, 2004, 12:12 PM
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 (http://forum.valhallalegends.com/phpbbs/index.php?board=17;action=display;threadid=6303).  These packages include all the icons and their icon code which is found in a Warcraft III statstring.
Title: Re:WAR3 Icons.
Post by: MyndFyre on May 06, 2004, 10:35 PM
Quote from: Spht on May 06, 2004, 12:12 PM
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 (http://forum.valhallalegends.com/phpbbs/index.php?board=17;action=display;threadid=6303).  These packages include all the icons and their icon code which is found in a Warcraft III statstring.

And aside from all that, someone with the Sorceress icon might still have the rifleman icon selected, because you can.
Title: Re:WAR3 Icons.
Post by: CodeMaster on May 07, 2004, 12:51 AM
Does anyone have the F List icons used for 0x65?

In Chat, In Game, Mutual, Non Mutual etc (I think)
Title: Re:WAR3 Icons.
Post by: LordNevar on May 07, 2004, 01:41 AM
Problems been solved thanxs to everyone's help, and the help of Stealth.
Title: Re:WAR3 Icons.
Post by: MyndFyre on May 07, 2004, 02:31 AM
Quote from: CodeMaster on May 07, 2004, 12:51 AM
Does anyone have the F List icons used for 0x65?

In Chat, In Game, Mutual, Non Mutual etc (I think)

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).
Title: Re:WAR3 Icons.
Post by: Soul Taker on May 07, 2004, 02:57 AM
Quote from: Myndfyre on May 07, 2004, 02:31 AM
Quote from: CodeMaster on May 07, 2004, 12:51 AM
Does anyone have the F List icons used for 0x65?

In Chat, In Game, Mutual, Non Mutual etc (I think)

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).
No, it has little green hands or crossed swords and whatnot so show their friend status.
Title: Re:WAR3 Icons.
Post by: MyndFyre on May 07, 2004, 03:12 AM
hehe whoops, I was thinking of *my* bot.  :P  That's right, I forgot about the hands.
Title: Re:WAR3 Icons.
Post by: CodeMaster on May 07, 2004, 05:28 PM
So does anyone have the hands and the two swords crossing ?
Title: Re:WAR3 Icons.
Post by: Stealth on May 07, 2004, 09:53 PM
Print Screen?
Title: Re:WAR3 Icons.
Post by: Maddox on May 07, 2004, 09:58 PM
Quote from: Stealth on May 07, 2004, 09:53 PM
Print Screen?

Extract from MPQ?
Title: Re:WAR3 Icons.
Post by: CodeMaster on May 07, 2004, 10:07 PM
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?
Title: Re:WAR3 Icons.
Post by: Spht on May 08, 2004, 10:01 AM
Quote from: CodeMaster on May 07, 2004, 10:07 PM
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?

War3.mpq of course.  Look in UI\Widgets\BattleNet\.  There's many programs around for reading MPQ archives.
Title: Re:WAR3 Icons.
Post by: CodeMaster on May 08, 2004, 01:34 PM
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.
Title: Re:WAR3 Icons.
Post by: MyndFyre on May 08, 2004, 03:18 PM
Quote from: CodeMaster on May 08, 2004, 01:34 PM
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.

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???
Title: Re:WAR3 Icons.
Post by: CodeMaster on May 08, 2004, 03:22 PM
No No, I found the War3 icons already, but I was just wondering if maybe they had the ladder icons stored somewhere as well.