Core/PacketIO: Implemented and enabled SMSG_STOP_SPEAKERBOT_SOUND
Port From (https://github.com/TrinityCore/TrinityCore/commit/3f8f8674259b455e47b1456dc0246c1f6758fc74)
This commit is contained in:
@@ -2953,6 +2953,14 @@ namespace Game.Entities
|
||||
SendMessageToSet(playSpeakerBoxSound, true);
|
||||
}
|
||||
|
||||
void StopDistanceSound(Player target = null)
|
||||
{
|
||||
if (target != null)
|
||||
target.SendPacket(new StopSpeakerbotSound(GetGUID()));
|
||||
else
|
||||
SendMessageToSet(new StopSpeakerbotSound(GetGUID()), true);
|
||||
}
|
||||
|
||||
public void PlayDirectSound(uint soundId, Player target = null, uint broadcastTextId = 0)
|
||||
{
|
||||
PlaySound sound = new(GetGUID(), soundId, broadcastTextId);
|
||||
|
||||
Reference in New Issue
Block a user