I still haven't had any luck trying to find what buffs I have on
I'm not sure how bobbysing does it, I tried reading his WoWX source but with no prevail.
Here are some of the functions he uses, my problem is I don't know how to get the dwStorage of an object.
Code:
bool CGUnit_C::HasAura( unsigned long dwSpellID )
{
for( int i = 0; i < 80; i++ )
{
unsigned long dwCurSpellID = GetAuraSpellID( i );
if( !dwSpellID || dwCurSpellID == dwSpellID )
return true;
}
return false;
}
Code:
UNIT_FIELD_AURASTATE = 0xD8,
unsigned long CGUnit_C::GetAuraSpellID( unsigned long dwIndex )
{
return GetKnownField( UNIT_FIELD_AURASTATE + dwIndex * 4 );
}
Code:
unsigned long CGObject_C::GetKnownField( unsigned long dwField )
{
return *(unsigned long*)( dwStorage + dwField );
}
If anyone has any ideas or could point me to a forum post that has already been made elsewhere let me know.