SMSG AURA UPDATE

From ArcEmu-Wiki
Jump to: navigation, search

Structure of SMSG_AURA_UPDATE (removing aura):

FastGUIDPack(data, GetGUID());
uint8 VisualSlot;
uint32 0; // SpellID

Structure of SMSG_AURA_UPDATE (adding and updating an aura):

FastGUIDPack(data, GetGUID());
uint8 VisualSlot;
uint32 SpellID;
uint8 Flags;
uint8 Level);
uint8 AuraCharges;
if( !(Flags & AFLAG_NOT_CASTER) )
      uint8 0; // caster guid
if(Flags & AFLAG_DURATION)
{
      uint32 MaxDuration;
      uint32 Duration;
}

Details -

Aura flags:
   AFLAG_EMPTY			= 0x0,
   AFLAG_EFFECT_1		= 0x1,
   AFLAG_EFFECT_2		= 0x2,
   AFLAG_EFFECT_3		= 0x4,
   AFLAG_NOT_CASTER	        = 0x8,
   AFLAG_SET			= 0x9,
   AFLAG_POSTIVE		= 0x10,
   AFLAG_DURATION		= 0x20,
   AFLAG_HIDE			= 0x40,
   AFLAG_NEGATIVE		= 0x80
Personal tools