Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classic/DireMaul/Trash: Add trash module #1221

Merged
merged 1 commit into from
Dec 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Classic/DireMaul/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ BigWigs:AddColors("Zevrim Thornhoof", {

BigWigs:AddColors("Alzzin the Wildshaper", {
})

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 @@ -37,3 +37,6 @@ BigWigs:AddSounds("Zevrim Thornhoof", {

BigWigs:AddSounds("Alzzin the Wildshaper", {
})

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