• Welcome to Valhalla Legends Archive.
 

WAR3 Icons.

Started by LordNevar, May 05, 2004, 09:45 PM

Previous topic - Next topic

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.

A good fortune may forbode a bad luck, which may in turn disguise a good fortune.
The greatest trick the Devil ever pulled, was convincing the world he didn't exsist.

effect

Well its obviosuly telling you that your statstring parsing is all fucked up.

Recomendation: Post it here and let someone pick at it.
Quote from: Mangix on March 22, 2005, 03:03 AM
i am an expert Stealthbot VBScript. Recognize Bitch.

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.

A good fortune may forbode a bad luck, which may in turn disguise a good fortune.
The greatest trick the Devil ever pulled, was convincing the world he didn't exsist.

hismajesty

Post the code that adds the icon, we're not physic.

LordNevar

#4
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.

A good fortune may forbode a bad luck, which may in turn disguise a good fortune.
The greatest trick the Devil ever pulled, was convincing the world he didn't exsist.

UserLoser.

First of all, wins are not included in a Warcraft III statstring, you're mistaken wins for level

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.

MyndFyre

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.  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.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

CodeMaster

Does anyone have the F List icons used for 0x65?

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

LordNevar

Problems been solved thanxs to everyone's help, and the help of Stealth.

A good fortune may forbode a bad luck, which may in turn disguise a good fortune.
The greatest trick the Devil ever pulled, was convincing the world he didn't exsist.

MyndFyre

#10
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).
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Soul Taker

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.

MyndFyre

hehe whoops, I was thinking of *my* bot.  :P  That's right, I forgot about the hands.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

CodeMaster

So does anyone have the hands and the two swords crossing ?

Stealth

- Stealth
Author of StealthBot