I try to create all the class stuff i found here in Forum and after that i Update my Offset class.
but now i cant get:
x y z pitch pos from a player solved see edit below
the level combat flag
mana and live
i read it like that:
Code:
/// <summary>
/// Memory locations specific to the WowObject type.
/// Version: 4.0.6 13623
/// </summary>
public enum WowObject : uint
{
******editNowI Use*********
X = 0x790,
Y = X + 0x4,
Z = X + 0x8,
RotationOffset = X + 0x10,
GameObjectX = 0x110,
GameObjectY = GameObjectX + 0x4,
GameObjectZ = GameObjectX + 0x8,
Pitch = X + 0x14,
Rotation = X + 0x10,
****************************
X = 0x898,
Y = X + 0x4,
Z = X + 0x8,
GameObjectX = 0x110,
GameObjectY = GameObjectX + 0x4,
GameObjectZ = GameObjectX + 0x8,
Pitch = X + 0x14,
Rotation = X + 0x10,
}
BaseAddress = the base of the found objekt (type of it is 4)
float x = ObjectManager.Memory.ReadFloat(BaseAddress + (uint)Offsets.WowObject.X);
float y = ObjectManager.Memory.ReadFloat(BaseAddress + (uint)Offsets.WowObject.Y);
float z = ObjectManager.Memory.ReadFloat(BaseAddress + (uint)Offsets.WowObject.Z);
Code:
UNIT_FIELD_LEVEL = 0xC0;
protected T GetStorageField<T>(uint field) where T : struct
{
field *= 4;
var m_pStorage = ObjectManager.Read<uint>(BaseAddress + 0x08);
return (T)ObjectManager.Memory.ReadObject(m_pStorage + field, typeof(T));
}
int level = GetStorageField<int>((uint)Offsets.WowUnitFields.UNIT_FIELD_LEVEL);
***EditRemoved DownloadLink*Reason: Out of Date*********
my full Projekt can be downloaded at xxxxxxxx
***EditRemoved DownloadLink**********
i hope some of you can give me some tipps its my first time for me doing stuff in wow
and maybe tipps to hide my actions from warden
thanks for all your help