Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: BaDDBLooD on April 04, 2004, 10:05 PM

Title: &H17 ( MCP_GETCHARLIST ) - FLAGS
Post by: BaDDBLooD on April 04, 2004, 10:05 PM
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
Title: Re:&H17 ( MCP_GETCHARLIST ) - FLAGS
Post by: 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

Title: Re:&H17 ( MCP_GETCHARLIST ) - FLAGS
Post by: MyndFyre on April 05, 2004, 08:10 AM
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.
Title: Re:&H17 ( MCP_GETCHARLIST ) - FLAGS
Post by: UserLoser. on April 05, 2004, 07:56 PM
Should use 0x19 since that's what the current clients use instead of pre v1.10.