--After you get there Base (by Looping with this If Statement)
Code:
BaseAddress Getter
if (target_GUID == WowObjects[q].OBJECT_FIELD_GUID)
{
//Wow Objects Is a Struct that stores it.
Code:
Get Targets HP Percent
int cur_hp = Memory.ReadInt(hProcess, (Memory.ReadUInt(hProcess, targetbase + 0x08)) + 0x17 * 4);
int max_hp = Memory.ReadInt(hProcess, (Memory.ReadUInt(hProcess, targetbase + 0x08)) + 0x1F * 4);
target_hp_percent = (double)cur_hp / (double)max_hp;
Code:
Thats How to get there Coordinates
myinfo.tx = Memory.ReadFloat(hProcess, targetbase + 0x7d0); //x
myinfo.ty = Memory.ReadFloat(hProcess, targetbase + 0x7d4); //y
myinfo.tz = Memory.ReadFloat(hProcess, targetbase + 0x7d8); //z
Code:
My Wow Object Struct (Cut down a lil)
public struct Object
{
public UInt64 OBJECT_FIELD_GUID;
public int OBJECT_FIELD_TYPE;
public uint OBJECT_FIELD_BASEADRESS;
public string OBJECT_FIELD_NAME;
public int OBJECT_FIELD_DISPLAY_ID;
public float OBJECT_X;
public float OBJECT_Y;
public float OBJECT_Z;
public int OBJECT_FIELD_LEVEL;
}