• Welcome to Valhalla Legends Archive.
 

&H17 ( MCP_GETCHARLIST ) - FLAGS

Started by BaDDBLooD, April 04, 2004, 10:05 PM

Previous topic - Next topic

BaDDBLooD

I have these so far

&H1 = Amazon
&H2 = Sorceress
&H3 = Necromancer
&H4 = Paladin
&H5 = Barbarian
&H6 = Druid
&H7 = Assassin

&H81 = Normal Character
&HA1 = Expansion Character
&HC1 = Normal, Ladder
&HE1 = Expansion, Ladder
&HA5 = Expansion, Hardcore
&HC5 = Normal, Hardcore, Ladder
&HE5 = Expansion, Hardcore, Ladder

any help is apreciated
There are only two kinds of people who are really fascinating: people who know absolutely everything, and people who know absolutely nothing.

Soul Taker

All you need is (this is from my bot but you should get the point):

If (splString(x + 2) And &H20) Then 'Expansion

If (splString(x + 2) And &H40) Then 'Ladder

If (splString(x + 2) And &H4) Then 'Hardcore

If (splString(x + 2) And &H8) Then 'Dead


MyndFyre

Quote from: Soul Taker on April 05, 2004, 05:33 AM
All you need is (this is from my bot but you should get the point):

If (splString(x + 2) And &H20) Then 'Expansion

If (splString(x + 2) And &H40) Then 'Ladder

If (splString(x + 2) And &H4) Then 'Hardcore

If (splString(x + 2) And &H8) Then 'Dead



And remember -- flags means that you can OR them together, and they would all apply.  The classes aren't Flags; bitwise flags are always powers of 2 (0, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024,  and so on).  As you can see, the Expansion/Ladder/Hardcore/Dead _are_ flags, but since (for example) 7 for assassin can be made by ORing together 4, 2, and 1, your character (if they were flags) would be a Paladin, Amazon, AND Sorceress.

That would make for a character with severe identity issues, to say the least.
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.

UserLoser.

Should use 0x19 since that's what the current clients use instead of pre v1.10.