mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Scripts): Use distinct sound entry for BRD L70ETC Music Doodad. (#22029)
This commit is contained in:
@@ -458,7 +458,8 @@ public:
|
|||||||
####*/
|
####*/
|
||||||
enum L70ETCMusic
|
enum L70ETCMusic
|
||||||
{
|
{
|
||||||
MUSIC_L70_ETC_MUSIC = 11803
|
MUSIC_L70_ETC_MUSIC = 11803,
|
||||||
|
MUSIC_L70_ETC_MUSIC_LOUD = 12868
|
||||||
};
|
};
|
||||||
|
|
||||||
enum L70ETCMusicEvents
|
enum L70ETCMusicEvents
|
||||||
@@ -486,7 +487,10 @@ public:
|
|||||||
switch (eventId)
|
switch (eventId)
|
||||||
{
|
{
|
||||||
case EVENT_ETC_START_MUSIC:
|
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)
|
_events.ScheduleEvent(EVENT_ETC_START_MUSIC, 1600); // Every 1.6 seconds SMSG_PLAY_MUSIC packet (PlayDirectMusic) is pushed to the client (sniffed value)
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user