there must be something wrong, i use it like you have post it but it is still "0" and yes i have kill enoght NPC's ( 10 Lootable )
here's the code what im using:
Code:
GetLootable = Memory.Read<UInt32>(((Memory.BaseAddress + 0x8) + 0x61 * 4) & (uint)UnitDynamicFlags.Lootable);
and here the Secound way:
Code:
private uint GetObjectBaseByGuid(ulong Guid)
{
uint FirstObject = 0;
CurrentManager = Memory.Read<uint>(Memory.Read<uint>(Memory.BaseAddress + Pointers.ObjectManagerPointers.CurrMgr) + Pointers.ObjectManagerPointers.CurrMgrEx);
FirstObject = Memory.Read<UInt32>(CurrentManager + ClientOffsets.FirstObjectOffset);
TempObject.BaseAddress = FirstObject;
while (TempObject.BaseAddress != 0)
{
TempObject.Guid = Memory.Read<UInt64>((uint)(TempObject.BaseAddress + 0x30));
if (TempObject.Guid == Guid)
return TempObject.BaseAddress;
TempObject.BaseAddress = Memory.Read<UInt32>(TempObject.BaseAddress + ClientOffsets.NextObjectOffset);
}
return 0;
}
public string MobNameFromGuid(ulong Guid)
{
uint ObjectBase = GetObjectBaseByGuid(Guid);
return Memory.Read<string>(Memory.Read<UInt32>((Memory.Read<UInt32>((ObjectBase + NameOffsets.mobName)) + NameOffsets.mobNameEx)));
}
Code:
BaseAddress = MobNameFromGuid(wu.GUID);
GetLootable = Memory.Read<UInt32>(((Convert.ToUInt32(BaseAddress) + 0x8) + 0x61 * 4) & (uint)UnitDynamicFlags.Lootable);
GetObjectBaseByGuid & GetMobNameFromGuid from jbrauman