Author | Message | Time |
---|---|---|
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 | April 5, 2004, 3:05 AM |
Soul Taker | All you need is (this is from my bot but you should get the point): [code] 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[/code] | April 5, 2004, 10:33 AM |
Myndfyr | [quote author=Soul Taker link=board=17;threadid=6159;start=0#msg53544 date=1081161227] All you need is (this is from my bot but you should get the point): [code] 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[/code] [/quote] 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. | April 5, 2004, 1:10 PM |
UserLoser. | Should use 0x19 since that's what the current clients use instead of pre v1.10. | April 6, 2004, 12:56 AM |