Difference between revisions of "Game Opcodes:Set Music"
From FFXIV Classic Wiki
m (0x02 mode confirmed. 0x03 is still....weird with how it layers a music. Like it's bringing back in the previous one, but then how to shut it up after without disrupting the current actual music...) |
|||
(One intermediate revision by one other user not shown) | |||
Line 14: | Line 14: | ||
! style="text-align: center; font-size: 14px;" | Description | ! style="text-align: center; font-size: 14px;" | Description | ||
|- | |- | ||
− | | 0x00 || uint16 || 2 Bytes || | + | | 0x00 || uint16 || 2 Bytes || musicID || The [[music]] to play on the client. |
|- | |- | ||
| 0x04 || uint16 || 2 Bytes || mode|| See Music Modes below. | | 0x04 || uint16 || 2 Bytes || mode|| See Music Modes below. | ||
Line 27: | Line 27: | ||
| 0x01 || Immediately changes the music. | | 0x01 || Immediately changes the music. | ||
|- | |- | ||
− | | 0x02 || Crossfade the current BGM to the new one. | + | | 0x02 || Crossfade the current BGM to the new one. |
|- | |- | ||
| 0x03 || Layer the current BGM with the new one. (Needs Confirming) | | 0x03 || Layer the current BGM with the new one. (Needs Confirming) |
Latest revision as of 11:43, 31 January 2022
Changes the current background music playing on the client.
- Opcode - 0x00C
- Data Size - 8 bytes
- Requirements - None
Data
Offset | Data Type | Length | Variable | Description |
---|---|---|---|---|
0x00 | uint16 | 2 Bytes | musicID | The music to play on the client. |
0x04 | uint16 | 2 Bytes | mode | See Music Modes below. |
Music Modes
Mode | Description |
---|---|
0x01 | Immediately changes the music. |
0x02 | Crossfade the current BGM to the new one. |
0x03 | Layer the current BGM with the new one. (Needs Confirming) |
0x04 | Fade out the current BGM and fade in the new one. |
0x05 | Switches the current BGM music to channel one. (Only works with multilayered music) |
0x06 | Switches the current BGM music to channel two. (Only works with multilayered music) |
Notes
- Retail used musicID 7 for instance loading screens to silence the client.
- MultiTrack mode can only be used for musicID 20. Switches between "The Dark's Embrace" and "The Dark's Kiss".