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
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
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.
Should use 0x19 since that's what the current clients use instead of pre v1.10.