Hi, i am new at ownedcore, but i learned alot by reading in the past.
However i am struggling with my Aura-Function in 5.0.4.
In 4.3.4 i used the following Function to determine Auras and Aura-Owners:
Code:
int auraCount = Memory.Read<int>(unitBase + (uint)Pointers.UnitAuras.AuraCount1);
uint auraTable = unitBase + (uint)Pointers.UnitAuras.AuraTable1;
if (auraCount < 0) {
auraCount = Memory.Read<int>(unitBase + (uint)Pointers.UnitAuras.AuraCount2);
auraTable = Memory.Read<uint>(unitBase + (uint)Pointers.UnitAuras.AuraTable2);
}
for (uint i = 0; i < auraCount; i++) {
uint auraBase = auraTable + ((uint)Pointers.UnitAuras.AuraSize * i);
int spellId = Memory.Read<int>(auraBase + (uint)Pointers.UnitAuras.AuraSpellId);
if (spellId > 0) {
ulong ownerGUID = Memory.Read<ulong>(auraBase);
}
}
I am using the following Aura-Offsets in 5.0.4:
Code:
AuraCount1 = 0x1058,
AuraCount2 = 0xD5C,
AuraTable1 = 0xD58,
AuraTable2 = 0xD60,
AuraSize = 0x30,
AuraSpellId = 0x18,
The problem now is the OwnerGUID which is now longer stored at the auraBase-Address. I suck at finding Offsets, anyone able to help me and determine the Offset for the OwnerGUID?
Thanks Alex