For 3.09, use UnitFields [0x16], which is Bytes_0. So, from the Storage array, read 0x58 [byte] = Race
You should see values like this:
Code:
public enum Race
{
Human = 0x01,
Orc = 0x02,
Dwarf = 0x03,
NightElf = 0x04,
Undead = 0x05,
Tauren = 0x06,
Gnome = 0x07,
Troll = 0x08,
BloodElf = 0x0A,
Draenei = 0x0B
}
Using the above values, you can compute Alliance vs Horde using a simple control structure. You can also read from 0x59 [byte] = Class:
Code:
public enum Class
{
DeathKnight = 0x06,
Druid = 0x0B,
Hunter = 0x03,
Mage = 0x08,
Paladin = 0x02,
Priest = 0x05,
Rogue = 0x04,
Shaman = 0x07,
Warlock = 0x09,
Warrior = 0x01
}
0x60 [byte] has gender information if I remember correctly.