Skip to content

Commit

Permalink
Hook up azure vault book auto gossips
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticalOS committed Dec 30, 2022
1 parent 8c0edc8 commit eca646e
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions DBM-Party-Dragonflight/TheAzurevault/TheAzurevaultTrash.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ local yellErraticGrowth = mod:NewYell(375596)
local specWarnMysticVapors = mod:NewSpecialWarningInterrupt(387564, "HasInterrupt", nil, nil, 1, 2)
local specWarnWakingBane = mod:NewSpecialWarningInterrupt(386546, "HasInterrupt", nil, nil, 1, 2)

mod:AddBoolOption("AGBook", true)

--local playerName = UnitName("player")

--Antispam IDs for this mod: 1 run away, 2 dodge, 3 dispel, 4 incoming damage, 5 you/role, 6 misc
Expand Down Expand Up @@ -127,13 +129,25 @@ function mod:SPELL_AURA_REMOVED(args)
end
--]]

--[[
56056 Book 1
56057 book 1 return
56247 book 2
56379 book 2 return
56248 book 3
56378 book 3 return
56250 book 4
107756 book 4 return
56251 book 5
? Book 5 return
--]]
function mod:GOSSIP_SHOW()
local table = C_GossipInfo.GetOptions()
if table[1] and table[1].gossipOptionID then
local gossipOptionID = table[1].gossipOptionID
DBM:Debug("GOSSIP_SHOW triggered with a gossip ID of: "..gossipOptionID)
-- if self.Options.AGSkovaldTrash and (gossipOptionID == 44755 or gossipOptionID == 44801 or gossipOptionID == 44802 or gossipOptionID == 44754) then -- Books
-- C_GossipInfo.SelectOption(gossipOptionID)
-- end
if self.Options.AGBook and (gossipOptionID == 56056 or gossipOptionID == 56057 or gossipOptionID == 56247 or gossipOptionID == 56379 or gossipOptionID == 56248 or gossipOptionID == 56378 or gossipOptionID == 56250 or gossipOptionID == 107756 or gossipOptionID == 56251) then -- Books
C_GossipInfo.SelectOption(gossipOptionID)
end
end
end

0 comments on commit eca646e

Please sign in to comment.