init
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
local mod = DBM:NewMod("Aeonus", "DBM-Party-BC", 12)
|
||||
local L = mod:GetLocalizedStrings()
|
||||
|
||||
mod:SetRevision(("$Revision: 128 $"):sub(12, -3))
|
||||
mod:SetCreatureID(17881)
|
||||
|
||||
mod:RegisterCombat("combat")
|
||||
|
||||
mod:RegisterEvents(
|
||||
"CHAT_MSG_MONSTER_EMOTE",
|
||||
"SPELL_CAST_SUCCESS"
|
||||
)
|
||||
|
||||
local warnFrenzy = mod:NewAnnounce("warnFrenzy", 3)
|
||||
local warnTimeStop = mod:NewSpellAnnounce(31422)
|
||||
local timerTimeStop = mod:NewBuffActiveTimer(4, 31422)
|
||||
|
||||
function mod:CHAT_MSG_MONSTER_EMOTE(msg)
|
||||
if msg == L.AeonusFrenzy and self:IsInCombat() then -- Frenzy
|
||||
warnFrenzy:Show()
|
||||
end
|
||||
end
|
||||
|
||||
function mod:SPELL_CAST_SUCCESS(args)
|
||||
if args.spellId == 31422 then --Time Stop
|
||||
warnTimeStop:Show()
|
||||
timerTimeStop:Start()
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,12 @@
|
||||
local mod = DBM:NewMod("Deja", "DBM-Party-BC", 12)
|
||||
local L = mod:GetLocalizedStrings()
|
||||
|
||||
mod:SetRevision(("$Revision: 128 $"):sub(12, -3))
|
||||
mod:SetCreatureID(17879)
|
||||
|
||||
mod:RegisterCombat("combat")
|
||||
|
||||
mod:RegisterEvents(
|
||||
"SPELL_CAST_SUCCESS",
|
||||
"SPELL_AURA_APPLIED"
|
||||
)
|
||||
@@ -0,0 +1,73 @@
|
||||
local mod = DBM:NewMod("PT", "DBM-Party-BC", 12)
|
||||
local L = mod:GetLocalizedStrings()
|
||||
|
||||
mod:SetRevision(("$Revision: 147 $"):sub(12, -3))
|
||||
|
||||
mod:RegisterEvents(
|
||||
"UPDATE_WORLD_STATES",
|
||||
"UNIT_DIED",
|
||||
"CHAT_MSG_MONSTER_YELL"
|
||||
)
|
||||
|
||||
mod:RemoveOption("HealthFrame")
|
||||
|
||||
-- Portals
|
||||
local warnWavePortalSoon = mod:NewAnnounce("WarnWavePortalSoon", 2, 57687)
|
||||
local warnWavePortal = mod:NewAnnounce("WarnWavePortal", 3, 57687)
|
||||
local warnBossPortal = mod:NewAnnounce("WarnBossPortal", 4, 33341)
|
||||
local timerNextPortal = mod:NewTimer(120, "TimerNextPortal", 57687)
|
||||
|
||||
--mod:AddBoolOption("ShowAllPortalTimers", false, "timer")
|
||||
|
||||
local lastPortal = 0
|
||||
|
||||
function mod:UNIT_DIED(args)
|
||||
local cid = self:GetCIDFromGUID(args.destGUID)
|
||||
if cid == 17879 then
|
||||
timerNextPortal:Start(40, lastPortal + 1)
|
||||
warnWavePortalSoon:Schedule(35)
|
||||
elseif cid == 17880 then
|
||||
timerNextPortal:Start(40, lastPortal + 1)
|
||||
warnWavePortalSoon:Schedule(35)
|
||||
end
|
||||
end
|
||||
|
||||
function mod:UPDATE_WORLD_STATES()
|
||||
local text = select(3, GetWorldStateUIInfo(2))
|
||||
if not text then return end
|
||||
local _, _, currentPortal = string.find(text, L.PortalCheck)
|
||||
if not currentPortal then
|
||||
currentPortal = 0
|
||||
end
|
||||
currentPortal = tonumber(currentPortal)
|
||||
lastPortal = tonumber(lastPortal)
|
||||
if currentPortal > lastPortal then
|
||||
warnWavePortalSoon:Cancel()
|
||||
timerNextPortal:Cancel()
|
||||
if currentPortal == 6 or currentPortal == 12 or currentPortal == 18 then
|
||||
warnBossPortal:Show()
|
||||
else
|
||||
warnWavePortal:Show(currentPortal)
|
||||
--[[ if self.Options.ShowAllPortalTimers then
|
||||
timerNextPortal:Start(122, currentPortal + 1)--requires complete overhaul I haven't patience to do.
|
||||
warnWavePortalSoon:Schedule(112)--because portals spawn faster and faster each time.
|
||||
end--]]
|
||||
end
|
||||
lastPortal = currentPortal
|
||||
elseif currentPortal < lastPortal then
|
||||
lastPortal = 0
|
||||
end
|
||||
end
|
||||
|
||||
function mod:CHAT_MSG_MONSTER_YELL(msg)
|
||||
if msg == L.Shielddown or msg:find(L.Shielddown) then
|
||||
self:SendSync("Wipe")
|
||||
end
|
||||
end
|
||||
|
||||
function mod:OnSync(msg, arg)
|
||||
if msg == "Wipe" then
|
||||
warnWavePortalSoon:Unschedule()
|
||||
timerNextPortal:Cancel()
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,44 @@
|
||||
local mod = DBM:NewMod("Temporus", "DBM-Party-BC", 12)
|
||||
local L = mod:GetLocalizedStrings()
|
||||
|
||||
mod:SetRevision(("$Revision: 128 $"):sub(12, -3))
|
||||
mod:SetCreatureID(17880)
|
||||
|
||||
mod:RegisterCombat("combat")
|
||||
|
||||
mod:RegisterEvents(
|
||||
"SPELL_CAST_SUCCESS",
|
||||
"SPELL_AURA_APPLIED",
|
||||
"SPELL_AURA_REMOVED"
|
||||
)
|
||||
|
||||
local isDispeller = select(2, UnitClass("player")) == "MAGE"
|
||||
or select(2, UnitClass("player")) == "PRIEST"
|
||||
or select(2, UnitClass("player")) == "SHAMAN"
|
||||
|
||||
local warnSpellReflect = mod:NewSpellAnnounce(38592)
|
||||
local warnHasten = mod:NewSpellAnnounce(31458)
|
||||
local timerSpellReflect = mod:NewBuffActiveTimer(6, 38592)
|
||||
local timerHasten = mod:NewBuffActiveTimer(10, 31458)
|
||||
local specWarnHasten = mod:NewSpecialWarningDispel(31458, isDispeller)
|
||||
|
||||
function mod:SPELL_CAST_SUCCESS(args)
|
||||
if args.spellId == 38592 then
|
||||
warnSpellReflect:Show()
|
||||
timerSpellReflect:Start()
|
||||
end
|
||||
end
|
||||
|
||||
function mod:SPELL_AURA_APPLIED(args)
|
||||
if args.spellId == 31458 and not args:IsDestTypePlayer() then --Hasten
|
||||
warnHasten:Show(args.destName)
|
||||
timerHasten:Start(args.destName)
|
||||
specWarnHasten:Show(args.destName)
|
||||
end
|
||||
end
|
||||
|
||||
function mod:SPELL_AURA_REMOVED(args)
|
||||
if args.spellId == 31458 then
|
||||
timerHasten:Cancel(args.destName)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user