Skip to content

Commit

Permalink
Classic/DireMaul/Trash: Add trash module (#1221)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle authored Dec 1, 2024
1 parent 86323c4 commit a7e5509
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classic/DireMaul/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,6 @@ BigWigs:AddColors("Alzzin the Wildshaper", {
[22689] = {"blue","orange"},
["stages"] = "cyan",
})

BigWigs:AddColors("Dire Maul Trash", {
})
3 changes: 3 additions & 0 deletions Classic/DireMaul/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,6 @@ BigWigs:AddSounds("Alzzin the Wildshaper", {
[22689] = "alarm",
["stages"] = "long",
})

BigWigs:AddSounds("Dire Maul Trash", {
})
42 changes: 42 additions & 0 deletions Classic/DireMaul/Trash.lua
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions Classic/DireMaul/modules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<Script file="Hydrospawn.lua"/>
<Script file="ZevrimThornhoof.lua"/>
<Script file="AlzzinTheWildshaper.lua"/>
<Script file="Trash.lua"/>

<Include file="Options\options.xml"/>

Expand Down

0 comments on commit a7e5509

Please sign in to comment.