SMSG_LOG_XPGAIN

Client Version 1, Client Version 2

Wowm Representation

Autogenerated from wowm file at wow_message_parser/wowm/world/exp/smsg_log_xpgain.wowm:8.

smsg SMSG_LOG_XPGAIN = 0x01D0 {
    Guid target;
    u32 total_exp;
    ExperienceAwardType exp_type;
    if (exp_type == NON_KILL) {
        u32 experience_without_rested;
        f32 exp_group_bonus;
    }
}

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
0x0C4 / Littleu32total_exp
0x101 / -ExperienceAwardTypeexp_type

If exp_type is equal to NON_KILL:

OffsetSize / EndiannessTypeNameComment
0x114 / Littleu32experience_without_rested
0x154 / Littlef32exp_group_bonusmangoszero sets to 1 and comments: 1 - none 0 - 100% group bonus output

Client Version 3.3.5

Wowm Representation

Autogenerated from wowm file at wow_message_parser/wowm/world/exp/smsg_log_xpgain.wowm:21.

smsg SMSG_LOG_XPGAIN = 0x01D0 {
    Guid target;
    u32 total_exp;
    ExperienceAwardType exp_type;
    if (exp_type == NON_KILL) {
        u32 experience_without_rested;
        f32 exp_group_bonus;
    }
    Bool exp_includes_recruit_a_friend_bonus;
}

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
-8 / LittleGuidtarget
-4 / Littleu32total_exp
-1 / -ExperienceAwardTypeexp_type

If exp_type is equal to NON_KILL:

OffsetSize / EndiannessTypeNameComment
-4 / Littleu32experience_without_rested
-4 / Littlef32exp_group_bonusmangoszero sets to 1 and comments: 1 - none 0 - 100% group bonus output
-1 / -Boolexp_includes_recruit_a_friend_bonus