SMSG_SPELL_START
Client Version 1.12
Wowm Representation
Autogenerated from wowm file at wow_message_parser/wowm/world/spell/smsg_spell_start.wowm:1.
smsg SMSG_SPELL_START = 0x0131 {
PackedGuid cast_item;
PackedGuid caster;
Spell spell;
CastFlags flags;
u32 timer;
SpellCastTargets targets;
if (flags & AMMO) {
u32 ammo_display_id;
u32 ammo_inventory_type;
}
}
Header
SMSG have a header of 4 bytes.
SMSG Header
| Offset | Size / Endianness | Type | Name | Description |
|---|---|---|---|---|
| 0x00 | 2 / Big | uint16 | size | Size of the rest of the message including the opcode field but not including the size field. |
| 0x02 | 2 / Little | uint16 | opcode | Opcode that determines which fields the message contains. |
Body
| Offset | Size / Endianness | Type | Name | Comment |
|---|---|---|---|---|
| 0x04 | - / - | PackedGuid | cast_item | cmangos/vmangos/mangoszero: if cast item is used, set this to guid of cast item, otherwise set it to same as caster. |
| - | - / - | PackedGuid | caster | |
| - | 4 / Little | Spell | spell | |
| - | 2 / - | CastFlags | flags | |
| - | 4 / Little | u32 | timer | |
| - | - / - | SpellCastTargets | targets |
If flags contains AMMO:
| Offset | Size / Endianness | Type | Name | Comment |
|---|---|---|---|---|
| - | 4 / Little | u32 | ammo_display_id | |
| - | 4 / Little | u32 | ammo_inventory_type |
Client Version 2.4.3
Wowm Representation
Autogenerated from wowm file at wow_message_parser/wowm/world/spell/smsg_spell_start.wowm:17.
smsg SMSG_SPELL_START = 0x0131 {
PackedGuid cast_item;
PackedGuid caster;
Spell spell;
u8 cast_count;
CastFlags flags;
u32 timer;
SpellCastTargets targets;
if (flags & AMMO) {
u32 ammo_display_id;
u32 ammo_inventory_type;
}
}
Header
SMSG have a header of 4 bytes.
SMSG Header
| Offset | Size / Endianness | Type | Name | Description |
|---|---|---|---|---|
| 0x00 | 2 / Big | uint16 | size | Size of the rest of the message including the opcode field but not including the size field. |
| 0x02 | 2 / Little | uint16 | opcode | Opcode that determines which fields the message contains. |
Body
| Offset | Size / Endianness | Type | Name | Comment |
|---|---|---|---|---|
| 0x04 | - / - | PackedGuid | cast_item | cmangos/vmangos/mangoszero: if cast item is used, set this to guid of cast item, otherwise set it to same as caster. |
| - | - / - | PackedGuid | caster | |
| - | 4 / Little | Spell | spell | |
| - | 1 / - | u8 | cast_count | |
| - | 2 / - | CastFlags | flags | |
| - | 4 / Little | u32 | timer | |
| - | - / - | SpellCastTargets | targets |
If flags contains AMMO:
| Offset | Size / Endianness | Type | Name | Comment |
|---|---|---|---|---|
| - | 4 / Little | u32 | ammo_display_id | |
| - | 4 / Little | u32 | ammo_inventory_type |
Client Version 3.3.5
Wowm Representation
Autogenerated from wowm file at wow_message_parser/wowm/world/spell/smsg_spell_start.wowm:34.
smsg SMSG_SPELL_START = 0x0131 {
PackedGuid cast_item;
PackedGuid caster;
u8 cast_count;
Spell spell;
CastFlags flags;
u32 timer;
SpellCastTargets targets;
if (flags & POWER_LEFT_SELF) {
(u32)Power power;
}
if (flags & AMMO) {
u32 ammo_display_id;
u32 ammo_inventory_type;
}
if (flags & UNKNOWN_23) {
u32 unknown1;
u32 unknown2;
}
}
Header
SMSG have a header of 4 bytes.
SMSG Header
| Offset | Size / Endianness | Type | Name | Description |
|---|---|---|---|---|
| 0x00 | 2 OR 3 / Big | uint16 OR uint16+uint8 | size | Size 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 / Little | uint16 | opcode | Opcode that determines which fields the message contains. |
Body
| Offset | Size / Endianness | Type | Name | Comment |
|---|---|---|---|---|
| - | - / - | PackedGuid | cast_item | cmangos/vmangos/mangoszero: if cast item is used, set this to guid of cast item, otherwise set it to same as caster. |
| - | - / - | PackedGuid | caster | |
| - | 1 / - | u8 | cast_count | |
| - | 4 / Little | Spell | spell | |
| - | 4 / - | CastFlags | flags | |
| - | 4 / Little | u32 | timer | |
| - | - / - | SpellCastTargets | targets |
If flags contains POWER_LEFT_SELF:
| Offset | Size / Endianness | Type | Name | Comment |
|---|---|---|---|---|
| - | 4 / - | Power | power |
If flags contains AMMO:
| Offset | Size / Endianness | Type | Name | Comment |
|---|---|---|---|---|
| - | 4 / Little | u32 | ammo_display_id | |
| - | 4 / Little | u32 | ammo_inventory_type |
If flags contains UNKNOWN_23:
| Offset | Size / Endianness | Type | Name | Comment |
|---|---|---|---|---|
| - | 4 / Little | u32 | unknown1 | |
| - | 4 / Little | u32 | unknown2 |