SMSG_ENCHANTMENTLOG

Client Version 1, Client Version 2

cmangos and vmangos/mangoszero disagree about packed and extra u8

Wowm Representation

Autogenerated from wowm file at wow_message_parser/wowm/world/item/smsg_enchantmentlog.wowm:2.

smsg SMSG_ENCHANTMENTLOG = 0x01D7 {
    Guid target;
    Guid caster;
    Item item;
    Spell spell;
    Bool show_affiliation;
}

SMSG have a header of 4 bytes.

SMSG Header

OffsetSize / EndiannessTypeNameDescription
0x002 / Biguint16sizeSize of the rest of the message including the opcode field but not including the size field.
0x022 / Littleuint16opcodeOpcode that determines which fields the message contains.

Body

OffsetSize / EndiannessTypeNameComment
0x048 / LittleGuidtarget
0x0C8 / LittleGuidcastervmangos: message says enchant has faded if empty
0x144 / LittleItemitem
0x184 / LittleSpellspell
0x1C1 / -Boolshow_affiliationvmangos: Only used if caster is not 0.

Client Version 3.3.5

Some emulators have the guids as not packed.

Wowm Representation

Autogenerated from wowm file at wow_message_parser/wowm/world/item/smsg_enchantmentlog.wowm:15.

smsg SMSG_ENCHANTMENTLOG = 0x01D7 {
    PackedGuid target;
    PackedGuid caster;
    Item item;
    Spell spell;
    Bool show_affiliation;
}

Header

SMSG have a header of 4 bytes.

SMSG Header

OffsetSize / EndiannessTypeNameDescription
0x002 OR 3 / Biguint16 OR uint16+uint8sizeSize of the rest of the message including the opcode field but not including the size field. Wrath server messages can be 3 bytes. If the first (most significant) size byte has 0x80 set, the header will be 3 bytes, otherwise it is 2.
-2 / Littleuint16opcodeOpcode that determines which fields the message contains.

Body

OffsetSize / EndiannessTypeNameComment
-- / -PackedGuidtarget
-- / -PackedGuidcastervmangos: message says enchant has faded if empty
-4 / LittleItemitem
-4 / LittleSpellspell
-1 / -Boolshow_affiliationvmangos: Only used if caster is not 0.