diff --git a/plugins/Details_RaidInfo-EmeraldNightmare/Details_RaidInfo-EmeraldNightmare.lua b/plugins/Details_RaidInfo-EmeraldNightmare/Details_RaidInfo-EmeraldNightmare.lua new file mode 100644 index 00000000..62c97a92 --- /dev/null +++ b/plugins/Details_RaidInfo-EmeraldNightmare/Details_RaidInfo-EmeraldNightmare.lua @@ -0,0 +1,93 @@ + +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 + diff --git a/plugins/Details_RaidInfo-EmeraldNightmare/Details_RaidInfo-EmeraldNightmare.toc b/plugins/Details_RaidInfo-EmeraldNightmare/Details_RaidInfo-EmeraldNightmare.toc new file mode 100644 index 00000000..37ed32d8 --- /dev/null +++ b/plugins/Details_RaidInfo-EmeraldNightmare/Details_RaidInfo-EmeraldNightmare.toc @@ -0,0 +1,6 @@ +## Interface: 70000 +## Title: Details: Emerald Nightmare +## Notes: Plugin for Details +## RequiredDeps: Details + +Details_RaidInfo-EmeraldNightmare.lua \ No newline at end of file diff --git a/plugins/Details_RaidInfo-EmeraldNightmare/boss_faces.tga b/plugins/Details_RaidInfo-EmeraldNightmare/boss_faces.tga new file mode 100644 index 00000000..2a6a3373 Binary files /dev/null and b/plugins/Details_RaidInfo-EmeraldNightmare/boss_faces.tga differ diff --git a/plugins/Details_RaidInfo-EmeraldNightmare/icon256x128.tga b/plugins/Details_RaidInfo-EmeraldNightmare/icon256x128.tga new file mode 100644 index 00000000..3630e433 Binary files /dev/null and b/plugins/Details_RaidInfo-EmeraldNightmare/icon256x128.tga differ diff --git a/plugins/Details_RaidInfo-Nighthold/Details_RaidInfo-Nighthold.lua b/plugins/Details_RaidInfo-Nighthold/Details_RaidInfo-Nighthold.lua new file mode 100644 index 00000000..7e46cdec --- /dev/null +++ b/plugins/Details_RaidInfo-Nighthold/Details_RaidInfo-Nighthold.lua @@ -0,0 +1,102 @@ + +do + + local INSTANCE_EJID = 786 + local INSTANCE_MAPID = 0--? + local HDPATH = "Details_RaidInfo-Nighthold" + local LOADINGSCREEN_FILE, LOADINGSCREEN_COORDS = "LoadScreen_SuramarRaid", {0, 1, 282/1024, 872/1024} + local EJ_LOREBG = "UI-EJ-LOREBG-TheNighthold" + local PORTRAIT_LIST = { + "UI-EJ-BOSS-Skorpyron", + "UI-EJ-BOSS-Chronomatic Anomaly", + "UI-EJ-BOSS-Trilliax", + "UI-EJ-BOSS-Spellblade Aluriel", + "UI-EJ-BOSS-Tichondrius", + "UI-EJ-BOSS-Krosus", + "UI-EJ-BOSS-Botanist", + "UI-EJ-BOSS-Star Augur Etraeus", + "UI-EJ-BOSS-Grand Magistrix Elisande", + "UI-EJ-BOSS-Guldan", + } + local ENCOUNTER_ID_CL = { + [1849] = 1, --Skorpyron + [1865] = 2, --Chronomatic Anomaly + [1867] = 3, --Trilliax + [1871] = 4, --Spellblade Aluriel + [1862] = 5, --Tichondrius + [1842] = 6, --Krosus + [1886] = 7, --High Botanist Tel'arn + [1863] = 8, --Star Augur Etraeus + [1872] = 9, --Grand Magistrix Elisande + [1866] = 10, --Gul'dan + } + local ENCOUNTER_ID_EJ = { + 1706, 1725, 1731, 1751, 1762, 1713, 1761, 1732, 1743, 1737, + [1706] = 1, --Skorpyron + [1725] = 2, --Chronomatic Anomaly + [1731] = 3, --Trilliax + [1751] = 4, --Spellblade Aluriel + [1762] = 5, --Tichondrius + [1713] = 6, --Krosus + [1761] = 7, --High Botanist Tel'arn + [1732] = 8, --Star Augur Etraeus + [1743] = 9, --Grand Magistrix Elisande + [1737] = 10, --Gul'dan + } + + function Details:InstallNightholdEncounter() + + --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.InstallNightholdEncounter = nil + + end + + --install the encounter + Details:ScheduleTimer ("InstallNightholdEncounter", 2) + +end + diff --git a/plugins/Details_RaidInfo-Nighthold/Details_RaidInfo-Nighthold.toc b/plugins/Details_RaidInfo-Nighthold/Details_RaidInfo-Nighthold.toc new file mode 100644 index 00000000..36b79bbf --- /dev/null +++ b/plugins/Details_RaidInfo-Nighthold/Details_RaidInfo-Nighthold.toc @@ -0,0 +1,6 @@ +## Interface: 70000 +## Title: Details: Nighthold +## Notes: Plugin for Details +## RequiredDeps: Details + +Details_RaidInfo-Nighthold.lua \ No newline at end of file diff --git a/plugins/Details_RaidInfo-Nighthold/boss_faces.tga b/plugins/Details_RaidInfo-Nighthold/boss_faces.tga new file mode 100644 index 00000000..b49ff36e Binary files /dev/null and b/plugins/Details_RaidInfo-Nighthold/boss_faces.tga differ diff --git a/plugins/Details_RaidInfo-Nighthold/icon256x128.tga b/plugins/Details_RaidInfo-Nighthold/icon256x128.tga new file mode 100644 index 00000000..60bcd36c Binary files /dev/null and b/plugins/Details_RaidInfo-Nighthold/icon256x128.tga differ