-
Member
Auras and CDs
I've a private rotation bot, and although is mainly working, I've some problems with auras and CDs.
CDs are working fine, except for spells with charges. I can't seem to get remaining time correctly for those spells, and I can't find the remaining charges...
Auras are working fine too, can see all my auras and target's too, but I can't find my debuffs in the target. For example when I cast judgement on an enemy, I can't find the judgement debuff in his auras...
Maybe someone can point me in the right direction to solve this issues?
-
Contributor
Then you are not finding them all, the aura list in memory has many Ids even hidden ones that you don't see on the screen,
Code:
public List<Aura> Auras {
get
{
var auraTable = BaseAddress + Pointers64.Unit.AuraTable;
var auraCount = Read<int>(Pointers64.Unit.AuraCount);
if (auraCount == -1)
{
auraCount = Wow.Memory.Read<int>(auraTable);
auraTable = Wow.Memory.Read<IntPtr>(auraTable + 8);
}
var nativeUnitAuras = Wow.Memory.ReadArray<Aura>(auraTable, auraCount);
return nativeUnitAuras.ToList();
}
}
-
Post Thanks / Like - 1 Thanks
waskas (1 members gave Thanks to aeo for this useful post)
-
Last edited by lolp1; 10-24-2016 at 08:46 AM.
-
Post Thanks / Like - 1 Thanks
waskas (1 members gave Thanks to lolp1 for this useful post)
-
Member
Thanks for your help! I had an error in the < 16 case, was reading the address of the table in AuraTable offset instead of using it directly as an array base. Was working ok for the > 16 case, so that kinnda lost me.
Any ideas on how to detect charges from spells in the CDs table?
-
Contributor
Originally Posted by
waskas
Thanks for your help! I had an error in the < 16 case, was reading the address of the table in AuraTable offset instead of using it directly as an array base. Was working ok for the > 16 case, so that kinnda lost me.
Any ideas on how to detect charges from spells in the CDs table?
There are a few ways, you can call the LUA function, you can read the spell struct( I think) or you cn pass the ID to the SPell_C_GetSpellCharges function that is found in the getspellcharges LUA function. I just use the LUA. After that is assume looking at the spell object in reclass or CE would be easy to see the charges.
see:
GetSpellCharges reversing
for more info on the function call
Last edited by aeo; 10-25-2016 at 09:35 AM.
-
Member
Are the 64 bit offsets any different?
-
Contributor
Yes they differ from x86.