-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Classic/DireMaul/Trash: Add trash module (#1221)
- Loading branch information
Showing
4 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters