Hey,
I am trying to read the energy (mana, rage [...]) of a player on the 3.3.5 (build 12340) client. It kinda works, but the problem is, the offset I am using seems to only get updated by the MP5-tick. This is the important part of my code:
Code:
internal enum UnitOffsets : uint {
Health = 0x18 * 4,
Energy = 0x19 * 4,
MaxHealth = 0x20 * 4,
MaxEnergy = 0x21 * 4,
Level = 0x36 * 4,
SummonedBy = 0xE * 4
}
Code:
p.UnitFieldsAddress = Magic.ReadUInt(p.BaseAddress + (uint)Pointers.ObjectOffsets.UnitFields);
p.Energy = Magic.ReadUInt(p.UnitFieldsAddress + (uint)Pointers.UnitOffsets.Energy);
Like I said, sometimes the values doesn't get updated and stays below the max energy.
Can anyone point me in the right direction? :confused: