-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from MysteryDragon/kynes-aegis-announcements
Adding several Kyne's Aegis announcements
- Loading branch information
Showing
6 changed files
with
170 additions
and
3 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
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,75 @@ | ||
RaidNotifier = RaidNotifier or {} | ||
RaidNotifier.KA = {} | ||
|
||
local RaidNotifier = RaidNotifier | ||
|
||
local function p() end | ||
local function dbg() end | ||
|
||
local data = {} | ||
|
||
function RaidNotifier.KA.Initialize() | ||
p = RaidNotifier.p | ||
dbg = RaidNotifier.dbg | ||
|
||
data = {} | ||
end | ||
|
||
function RaidNotifier.KA.OnCombatEvent(_, result, isError, aName, aGraphic, aActionSlotType, sName, sType, tName, tType, hitValue, pType, dType, log, sUnitId, tUnitId, abilityId) | ||
local raidId = RaidNotifier.raidId | ||
local self = RaidNotifier | ||
local buffsDebuffs, settings = self.BuffsDebuffs[raidId], self.Vars.kynesAegis | ||
|
||
if (tName == nil or tName == "") then | ||
tName = self.UnitIdToString(tUnitId) | ||
end | ||
|
||
if (result == ACTION_RESULT_BEGIN) then | ||
-- Half-Giant Tidebreaker's Crashing Wall | ||
if (abilityId == buffsDebuffs.tidebreaker_crashing_wall) then | ||
if (settings.tidebreaker_crashing_wall == true) then | ||
self:StartCountdown(hitValue, GetString(RAIDNOTIFIER_ALERTS_KYNESAEGIS_CRASHING_WALL), "kynesAegis", "tidebreaker_crashing_wall", false) | ||
end | ||
end | ||
-- Bloodknight's Blood Fountain | ||
if (abilityId == buffsDebuffs.bloodknight_blood_fountain) then | ||
if (settings.bloodknight_blood_fountain == true) then | ||
self:StartCountdown(hitValue, GetString(RAIDNOTIFIER_ALERTS_KYNESAEGIS_BLOOD_FOUNTAIN), "kynesAegis", "bloodknight_blood_fountain", false) | ||
end | ||
end | ||
elseif (result == ACTION_RESULT_EFFECT_GAINED) then | ||
-- Bitter Knight's Sanguine Prison | ||
if (abilityId == buffsDebuffs.bitter_knight_sanguine_prison) then | ||
if (settings.bitter_knight_sanguine_prison == true) then | ||
if (tType ~= COMBAT_UNIT_TYPE_PLAYER and tName ~= "") then | ||
self:AddAnnouncement(zo_strformat(GetString(RAIDNOTIFIER_ALERTS_KYNESAEGIS_SANGUINE_PRISON_OTHER), tName), "kynesAegis", "bitter_knight_sanguine_prison") | ||
end | ||
end | ||
end | ||
-- Dragon Totems spawn at Yandir the Butcher boss | ||
if (abilityId == buffsDebuffs.yandir_dragon_totem_spawn) then | ||
if (settings.yandir_totem_spawn == 2) then | ||
-- Since two totems spawns at once we want to avoid extra announcements, so we're adding 2 sec alert suppression | ||
self:AddAnnouncement(GetString(RAIDNOTIFIER_ALERTS_KYNESAEGIS_DRAGON_TOTEM), "kynesAegis", "yandir_totem_spawn", 2) | ||
end | ||
end | ||
-- Harpy Totem spawn at Yandir the Butcher boss | ||
if (abilityId == buffsDebuffs.yandir_harpy_totem_spawn) then | ||
if (settings.yandir_totem_spawn == 2) then | ||
self:AddAnnouncement(GetString(RAIDNOTIFIER_ALERTS_KYNESAEGIS_HARPY_TOTEM), "kynesAegis", "yandir_totem_spawn") | ||
end | ||
end | ||
-- Gargoyle Totem spawn at Yandir the Butcher boss | ||
if (abilityId == buffsDebuffs.yandir_gargoyle_totem_spawn) then | ||
if (settings.yandir_totem_spawn == 2) then | ||
self:AddAnnouncement(GetString(RAIDNOTIFIER_ALERTS_KYNESAEGIS_GARGOYLE_TOTEM), "kynesAegis", "yandir_totem_spawn") | ||
end | ||
end | ||
-- Chaurus Totem spawn at Yandir the Butcher boss | ||
if (abilityId == buffsDebuffs.yandir_chaurus_totem_spawn) then | ||
if (settings.yandir_totem_spawn >= 1) then | ||
self:AddAnnouncement(GetString(RAIDNOTIFIER_ALERTS_KYNESAEGIS_CHAURUS_TOTEM), "kynesAegis", "yandir_totem_spawn") | ||
end | ||
end | ||
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