Files
coa-details/plugins/Details_RaidInfo-EmeraldNightmare/Details_RaidInfo-EmeraldNightmare.lua
T
Tercio 031e55cca8 plugins:
- removed warlords of draenor dungeon info plugin.
- removed hellfire citadel raid info plugin.
- remove calc leech plugin.
- added emerald nightmare raid info plugin.
- added the nighthold raid info plugin.

hotfixes:
- fix for total bar where sometimes it desappears.
- fix for overall data reseting its elapsed time making dps and hps goes to millions.
- fix for overall not reseting when entering in a new dungeon.
- fix for trash cleanup on dungeons.
- fix for item level detection on dungeons.
- fix for artifact offhand always being counter as 750 item level.
- fix for segments menu sometimes not opening at all after a dungeon boss.
- fix for segments menu not showing the boss icon above the sub panel.
- fix for the top left corner of the window be ignoring the 'hide icon' setting at a /reload.
2016-09-13 14:13:47 -03:00

94 lines
2.5 KiB
Lua

do
local INSTANCE_EJID = 768
local INSTANCE_MAPID = 1520
local HDPATH = "Details_RaidInfo-EmeraldNightmare"
local LOADINGSCREEN_FILE, LOADINGSCREEN_COORDS = "LoadScreen_EmeraldNightmareRaid_wide", {0, 1, 228/1024, 874/1024}
local EJ_LOREBG = "UI-EJ-LOREBG-TheEmeraldNightmare"
local PORTRAIT_LIST = {
"UI-EJ-BOSS-Nythendra",
"UI-EJ-BOSS-Elerethe Renferal",
"UI-EJ-BOSS-Ilgynoth Heart of Corruption",
"UI-EJ-BOSS-Ursoc",
"UI-EJ-BOSS-Dragons of Nightmare",
"UI-EJ-BOSS-Cenarius",
"UI-EJ-BOSS-Xavius",
}
local ENCOUNTER_ID_CL = {
[1853] = 1, --Nythendra
[1876] = 2, --Elerethe Renferal
[1873] = 3, --Il'gynoth, Heart of Corruption
[1841] = 4, --Ursoc
[1854] = 5, --Dragons of Nightmare
[1877] = 6, --Cenarius
[1864] = 7, --Xavius
}
local ENCOUNTER_ID_EJ = {
1703, 1744, 1738, 1667, 1704, 1750, 1726,
[1703] = 1, --Nythendra
[1744] = 2, --Elerethe Renferal
[1738] = 3, --Il'gynoth, Heart of Corruption
[1667] = 4, --Ursoc
[1704] = 5, --Dragons of Nightmare
[1750] = 6, --Cenarius
[1726] = 7, --Xavius
}
function Details:InstallEmeraldNightmareEncounter()
--load encounter journal
EJ_SelectInstance (INSTANCE_EJID)
local InstanceName = EJ_GetInstanceInfo (INSTANCE_EJID)
--build the boss names list
local BOSSNAMES = {}
local ENCOUNTERS = {}
for i = 1, #PORTRAIT_LIST do
local bossName = EJ_GetEncounterInfoByIndex (i, INSTANCE_EJID)
if (bossName) then
tinsert (BOSSNAMES, bossName)
local encounterTable = {
boss = bossName,
portrait = "Interface\\EncounterJournal\\" .. PORTRAIT_LIST [i],
}
tinsert (ENCOUNTERS, encounterTable)
else
break
end
end
_detalhes:InstallEncounter ({
id = INSTANCE_MAPID, --map id
ej_id = INSTANCE_EJID, --encounter journal id
name = InstanceName,
icons = "Interface\\AddOns\\" .. HDPATH .. "\\boss_faces",
icon = "Interface\\AddOns\\" .. HDPATH .. "\\icon256x128",
is_raid = true,
backgroundFile = {file = "Interface\\Glues\\LOADINGSCREENS\\" .. LOADINGSCREEN_FILE, coords = LOADINGSCREEN_COORDS},
backgroundEJ = "Interface\\EncounterJournal\\" .. EJ_LOREBG,
encounter_ids = ENCOUNTER_ID_EJ,
encounter_ids2 = ENCOUNTER_ID_CL,
boss_names = BOSSNAMES,
encounters = ENCOUNTERS,
boss_ids = { --npc ids
},
})
--remove the install from the memory
Details.InstallEmeraldNightmareEncounter = nil
end
--install the encounter
Details:ScheduleTimer ("InstallEmeraldNightmareEncounter", 2)
end