fix(Scripts): Use distinct sound entry for BRD L70ETC Music Doodad. (#22029)

This commit is contained in:
Benjamin Jackson
2025-05-10 15:33:48 -04:00
committed by GitHub
parent bd3f4d0228
commit 4dfc44a69b

View File

@@ -458,7 +458,8 @@ public:
####*/
enum L70ETCMusic
{
MUSIC_L70_ETC_MUSIC = 11803
MUSIC_L70_ETC_MUSIC = 11803,
MUSIC_L70_ETC_MUSIC_LOUD = 12868
};
enum L70ETCMusicEvents
@@ -486,7 +487,10 @@ public:
switch (eventId)
{
case EVENT_ETC_START_MUSIC:
me->PlayDirectMusic(MUSIC_L70_ETC_MUSIC);
if (me->GetMapId() == MAP_BLACKROCK_DEPTHS)
me->PlayDirectMusic(MUSIC_L70_ETC_MUSIC_LOUD);
else
me->PlayDirectMusic(MUSIC_L70_ETC_MUSIC);
_events.ScheduleEvent(EVENT_ETC_START_MUSIC, 1600); // Every 1.6 seconds SMSG_PLAY_MUSIC packet (PlayDirectMusic) is pushed to the client (sniffed value)
break;
default: