From 400b8e31926eabbd9aa2daaf3c920abafec4f299 Mon Sep 17 00:00:00 2001 From: M'Dic Date: Thu, 8 Sep 2022 12:19:15 -0400 Subject: Scripts/Events: Ironforge hourly bell event correction (#28234) Changes go_bells script to play the BellTollDwarfGnome once at every hour. References: https://www.reddit.com/r/classicwow/comments/ou0rw5/question_what_is_that_super_loud_bellowing/ cherry-pick commit (Hourly bell: Dwarf horn sound should only play once vmangos/core#1569) Co-authored-by: schell244 <9536270+schell244@users.noreply.github.com> (cherry picked from commit 5ec5e1e1d0bfd586f934de7716ac88abaaa972b1) --- src/server/scripts/World/go_scripts.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/server/scripts/World/go_scripts.cpp b/src/server/scripts/World/go_scripts.cpp index 05b77388d63..b5e7b2c1b29 100644 --- a/src/server/scripts/World/go_scripts.cpp +++ b/src/server/scripts/World/go_scripts.cpp @@ -1106,6 +1106,12 @@ public: _rings = 12; } + // Dwarf hourly horn should only play a single time, each time the next hour begins. + if (_soundId == BELLTOLLDWARFGNOME) + { + _rings = 1; + } + for (auto i = 0; i < _rings; ++i) _events.ScheduleEvent(EVENT_RING_BELL, Seconds(i * 4 + 1)); } -- cgit v1.2.3