From a7e5509f64e11d7f34e1dcf9127e6b1f4b5e60c3 Mon Sep 17 00:00:00 2001 From: Nick Towle Date: Sun, 1 Dec 2024 18:24:50 -0500 Subject: [PATCH] Classic/DireMaul/Trash: Add trash module (#1221) --- Classic/DireMaul/Options/Colors.lua | 3 +++ Classic/DireMaul/Options/Sounds.lua | 3 +++ Classic/DireMaul/Trash.lua | 42 +++++++++++++++++++++++++++++ Classic/DireMaul/modules.xml | 1 + 4 files changed, 49 insertions(+) create mode 100644 Classic/DireMaul/Trash.lua diff --git a/Classic/DireMaul/Options/Colors.lua b/Classic/DireMaul/Options/Colors.lua index 597c96e66..4906bab58 100644 --- a/Classic/DireMaul/Options/Colors.lua +++ b/Classic/DireMaul/Options/Colors.lua @@ -66,3 +66,6 @@ BigWigs:AddColors("Alzzin the Wildshaper", { [22689] = {"blue","orange"}, ["stages"] = "cyan", }) + +BigWigs:AddColors("Dire Maul Trash", { +}) diff --git a/Classic/DireMaul/Options/Sounds.lua b/Classic/DireMaul/Options/Sounds.lua index 0265af625..af01f865e 100644 --- a/Classic/DireMaul/Options/Sounds.lua +++ b/Classic/DireMaul/Options/Sounds.lua @@ -63,3 +63,6 @@ BigWigs:AddSounds("Alzzin the Wildshaper", { [22689] = "alarm", ["stages"] = "long", }) + +BigWigs:AddSounds("Dire Maul Trash", { +}) diff --git a/Classic/DireMaul/Trash.lua b/Classic/DireMaul/Trash.lua new file mode 100644 index 000000000..7d10d7245 --- /dev/null +++ b/Classic/DireMaul/Trash.lua @@ -0,0 +1,42 @@ +-------------------------------------------------------------------------------- +-- Module Declaration +-- + +local mod, CL = BigWigs:NewBoss("Dire Maul Trash", 429) +if not mod then return end +mod.displayName = CL.trash +mod:RegisterEnableMob( + 11491 -- Ironbark the Redeemed (gossip NPC) +) + +-------------------------------------------------------------------------------- +-- Initialization +-- + +local autotalk = mod:AddAutoTalkOption(false) +function mod:GetOptions() + return { + -- Autotalk + autotalk, + }, { + [autotalk] = CL.general, + } +end + +function mod:OnBossEnable() + -- Autotalk + self:RegisterEvent("GOSSIP_SHOW") +end + +-------------------------------------------------------------------------------- +-- Event Handlers +-- + +-- Autotalk + +function mod:GOSSIP_SHOW() + if self:GetOption(autotalk) and self:GetGossipID(29281) then + -- 29281:Thank you, Ironbark. We are ready for you to open the door. + self:SelectGossipID(29281) + end +end diff --git a/Classic/DireMaul/modules.xml b/Classic/DireMaul/modules.xml index abfcde6d2..997cdeb61 100644 --- a/Classic/DireMaul/modules.xml +++ b/Classic/DireMaul/modules.xml @@ -14,6 +14,7 @@