Skip to content

Commit

Permalink
Add AutoGossip for Norushen
Browse files Browse the repository at this point in the history
  • Loading branch information
QartemisT committed May 12, 2024
1 parent 826a28b commit 00b595e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
14 changes: 13 additions & 1 deletion DBM-Raids-MoP/SiegeOfOrgrimmar/Norushen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ mod:RegisterEventsInCombat(
"CHAT_MSG_ADDON"
)

mod:AddBoolOption("AGStartNorushen", true)

mod:RegisterEvents(
"ENCOUNTER_START",
"CHAT_MSG_MONSTER_YELL"
"CHAT_MSG_MONSTER_YELL",
"GOSSIP_SHOW"
)

local boss = DBM:EJ_GetSectionInfo(8216)
Expand Down Expand Up @@ -264,3 +267,12 @@ function mod:CHAT_MSG_ADDON(prefix, message, channel, sender)
end
end
end

function mod:GOSSIP_SHOW()
local gossipOptionID = self:GetGossipID()
if gossipOptionID then
if self.Options.AGStartNorushen and gossipOptionID == 42038 then
self:SelectGossip(gossipOptionID, true)
end
end
end
4 changes: 4 additions & 0 deletions DBM-Raids-MoP/localization.en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,10 @@ L:SetWarningLocalization({
---------------------------
L = DBM:GetModLocalization(866)

L:SetOptionLocalization({
AGStartNorushen = "Auto select gossip to start fight when interacting with Norushen"
})

L:SetMiscLocalization({
wasteOfTime = "Very well, I will create a field to keep your corruption quarantined."
})
Expand Down

0 comments on commit 00b595e

Please sign in to comment.