From 16a7b3bb7994ad309f9b698ab540ec15742543b7 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sat, 1 Oct 2022 16:37:50 -0400 Subject: [PATCH] Scripts/Events: Ironforge hourly bell event correction Port From (https://github.com/TrinityCore/TrinityCore/commit/400b8e31926eabbd9aa2daaf3c920abafec4f299) --- Source/Scripts/World/GameObject.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Scripts/World/GameObject.cs b/Source/Scripts/World/GameObject.cs index 4b048c1fe..2147d3c03 100644 --- a/Source/Scripts/World/GameObject.cs +++ b/Source/Scripts/World/GameObject.cs @@ -261,7 +261,6 @@ namespace Scripts.World.GameObjects //Bellhourlymisc public const uint GameEventHourlyBells = 73; - public const uint EventRingBell = 1; } [Script] @@ -824,6 +823,10 @@ namespace Scripts.World.GameObjects if (_rings == 0) // 00:00 and 12:00 _rings = 12; + // Dwarf hourly horn should only play a single time, each time the next hour begins. + if (_soundId == SoundIds.BellTolldwarfgnome) + _rings = 1; + for (var i = 0; i < _rings; ++i) _scheduler.Schedule(TimeSpan.FromSeconds(i * 4 + 1), task => me.PlayDirectSound(_soundId)); }