-
Notifications
You must be signed in to change notification settings - Fork 8
/
TrialAetherianArchive.lua
79 lines (72 loc) · 3.16 KB
/
TrialAetherianArchive.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
RaidNotifier = RaidNotifier or {}
RaidNotifier.AA = {}
local RaidNotifier = RaidNotifier
local function p() end
local function dbg() end
function RaidNotifier.AA.Initialize()
p = RaidNotifier.p
dbg = RaidNotifier.dbg
end
function RaidNotifier.AA.OnCombatEvent(_, result, isError, aName, aGraphic, aActionSlotType, sName, sType, tName, tType, hitValue, pType, dType, log, sUnitId, tUnitId, abilityId)
local raidId = RaidNotifier.raidId
local self = RaidNotifier
if (tName == nil or tName == "") then
tName = self.UnitIdToString(tUnitId)
end
local buffsDebuffs, settings = self.BuffsDebuffs[raidId], self.Vars.archive
if (result == ACTION_RESULT_BEGIN) then
-- Lightning Storm Atronach
if (buffsDebuffs.stormatro_impendingstorm == abilityId) then
if settings.stormatro_impendingstorm then
self:AddAnnouncement(GetString(RAIDNOTIFIER_ALERTS_ARCHIVE_STORMATRO_IMPENDINGSTORM), "archive", "stormatro_impendingstorm")
end
elseif (buffsDebuffs.stormatro_lightningstorm == abilityId) then
if settings.stormatro_lightningstorm then
self:AddAnnouncement(GetString(RAIDNOTIFIER_ALERTS_ARCHIVE_STORMATRO_LIGHTNINGSTORM), "archive", "stormatro_lightningstorm")
end
-- Foundation Stone Atronach
elseif (buffsDebuffs.stoneatro_boulderstorm == abilityId) then
if settings.stoneatro_boulderstorm then
self:AddAnnouncement(GetString(RAIDNOTIFIER_ALERTS_ARCHIVE_STONEATRO_BOULDERSTORM), "archive", "stoneatro_boulderstorm", 8)
end
elseif (buffsDebuffs.stoneatro_bigquake == abilityId) then
if settings.stoneatro_bigquake then
self:AddAnnouncement(GetString(RAIDNOTIFIER_ALERTS_ARCHIVE_STONEATRO_BIGQUAKE), "archive", "stoneatro_bigquake", 8)
end
-- Celestial Mage
elseif (buffsDebuffs.mage_conjure_axe[abilityId]) then
if settings.mage_conjure_axe then
end
elseif (buffsDebuffs.mage_conjure_reflection[abilityId]) then
if settings.mage_conjure_reflection then
--self.tempVars.minions.archive.reflections[tUnitId] = {
-- uId = tUnitId,
-- health = 1000000,
-- maxHealth = 1000000,
-- name = "Conjured Reflection",
--}
end
-- Overchargers, Overcharged
elseif (buffsDebuffs.overcharged == abilityId) then
if settings.overcharge >= 1 then
if (tType == COMBAT_UNIT_TYPE_PLAYER) then
self:AddAnnouncement(GetString(RAIDNOTIFIER_ALERTS_ARCHIVE_OVERCHARGE), "archive", "overcharge")
elseif (tName ~= "" and settings.overcharge == 2) then
self:AddAnnouncement(zo_strformat(GetString(RAIDNOTIFIER_ALERTS_ARCHIVE_OVERCHARGE_OTHER), tName), "archive", "overcharge")
end
end
-- Overchargers, Call Lightning
elseif (buffsDebuffs.call_lightning == abilityId) then
if settings.call_lightning >= 1 then
if (tType == COMBAT_UNIT_TYPE_PLAYER) then
self:AddAnnouncement(GetString(RAIDNOTIFIER_ALERTS_ARCHIVE_CALL_LIGHTNING), "archive", "call_lightning")
elseif (tName ~= "" and settings.call_lightning == 2) then
self:AddAnnouncement(zo_strformat(GetString(RAIDNOTIFIER_ALERTS_ARCHIVE_CALL_LIGHTNING_OTHER), tName), "archive", "call_lightning")
end
end
end
elseif (result == ACTION_RESULT_EFFECT_GAINED_DURATION) then
if (tType == COMBAT_UNIT_TYPE_PLAYER) then
end
end
end