diff options
author | M'Dic <joshua.lee.betts@gmail.com> | 2022-09-08 12:19:15 -0400 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-09-29 21:44:13 +0200 |
commit | 400b8e31926eabbd9aa2daaf3c920abafec4f299 (patch) | |
tree | 93f0e504eaea31fbb1deb6844b85329766925b43 /src | |
parent | 0c90378cec45c94c846bb86d30022e2ded31d9cd (diff) |
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)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/World/go_scripts.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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)); } |