From 19ec6554ac2e5db9491878b0dcb5b63ad15e8f8e Mon Sep 17 00:00:00 2001 From: Nick Towle Date: Fri, 29 Nov 2024 14:07:19 -0500 Subject: [PATCH] Classic/DireMaul/Trash: Add trash module --- 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 a5ff8b6ed..31ed7cd75 100644 --- a/Classic/DireMaul/Options/Colors.lua +++ b/Classic/DireMaul/Options/Colors.lua @@ -37,3 +37,6 @@ BigWigs:AddColors("Zevrim Thornhoof", { BigWigs:AddColors("Alzzin the Wildshaper", { }) + +BigWigs:AddColors("Dire Maul Trash", { +}) diff --git a/Classic/DireMaul/Options/Sounds.lua b/Classic/DireMaul/Options/Sounds.lua index 1b26ef54d..25455b7d2 100644 --- a/Classic/DireMaul/Options/Sounds.lua +++ b/Classic/DireMaul/Options/Sounds.lua @@ -37,3 +37,6 @@ BigWigs:AddSounds("Zevrim Thornhoof", { BigWigs:AddSounds("Alzzin the Wildshaper", { }) + +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 @@