Skip to content

Commit

Permalink
Merge pull request #6 from GyroJoe/the-eternal-palace-update
Browse files Browse the repository at this point in the history
Update for The Eternal Palace
  • Loading branch information
Tercioo authored Aug 3, 2019
2 parents b333731 + 4d99f94 commit 6b48e83
Showing 1 changed file with 96 additions and 1 deletion.
97 changes: 96 additions & 1 deletion functions/raidinfo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,101 @@

--> install data for raiding tiers

do
--> data for The Eternal Palace (BFA tier 2)

local INSTANCE_EJID = 1179
local INSTANCE_MAPID = 2164
local HDIMAGESPATH = "Details\\images\\raid"
local HDFILEPREFIX = "DazaralorRaid"
local LOADINGSCREEN_FILE, LOADINGSCREEN_COORDS = "LoadingScreen_Nazjatar_RAID", {0, 1, 285/1024, 875/1024}
local EJ_LOREBG = "UI-EJ-LOREBG-EternalPalace"

local PORTRAIT_LIST = {
3012047, --Sivara - Abyssal Commander Sivara
3012062, --Blackwater Behemoth - Blackwater Behemoth
3012062, --Radiance of Azshara - Radiance of Azshara
3012055, --Lady Ashvane - Lady Ashvane
3012054, --Orgozoa - Orgozoa
3012057, --Silivaz - The Queen's Court
3012064, --Za'qul - Za'qul, Harbinger of Ny'alotha
3012056, --Queen Azshara - Queen Azshara
}

local ENCOUNTER_ID_CL = {
2298, 2289, 2305, 2304, 2303, 2311, 2293, 2299
[2298] = 1, --Abyssal Commander Sivara
[2289] = 2, --Blackwater Behemoth
[2305] = 3, --Radiance of Azshara
[2304] = 4, --Lady Ashvane
[2303] = 5, --Orgozoa
[2311] = 6, --The Queen's Court
[2293] = 7, --Za'qul, Harbinger of Ny'alotha
[2299] = 8, --Queen Azshara
}

local ENCOUNTER_ID_EJ = {
2352, 2347, 2353, 2354, 2351, 2359, 2349
[2352] = 1, --Abyssal Commander Sivara
[2347] = 2, --Blackwater Behemoth
[2353] = 3, --Radiance of Azshara
[2354] = 4, --Lady Ashvane
[2351] = 5, --Orgozoa
[2359] = 6, --The Queen's Court
[2349] = 7, --Za'qul, Harbinger of Ny'alotha
[2361] = 8, --Queen Azshara
}

--> install the raid
C_Timer.After (10, function()

--load encounter journal
DetailsFramework.EncounterJournal.EJ_SelectInstance (INSTANCE_EJID)

local InstanceName = DetailsFramework.EncounterJournal.EJ_GetInstanceInfo (INSTANCE_EJID)

--build the boss name list
local BOSSNAMES = {}
local ENCOUNTERS = {}

for i = 1, #PORTRAIT_LIST do
local bossName = DetailsFramework.EncounterJournal.EJ_GetEncounterInfoByIndex (i, INSTANCE_EJID)
if (bossName) then
tinsert (BOSSNAMES, bossName)
local encounterTable = {
boss = bossName,
--portrait = "Interface\\EncounterJournal\\" .. PORTRAIT_LIST [i],
portrait = 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\\" .. HDIMAGESPATH .. "\\" .. HDFILEPREFIX .. "_BossFaces",
icon = "Interface\\AddOns\\" .. HDIMAGESPATH .. "\\" .. HDFILEPREFIX .. "_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
},
})
end)

end

do
--> data for Crucible of Storms (BFA tier 1)

Expand Down Expand Up @@ -398,4 +493,4 @@ do

Details:ScheduleTimer ("ScheduleInstallRaidDataForAntorus", 2)

end
end

0 comments on commit 6b48e83

Please sign in to comment.