diff --git a/Details.toc b/Details.toc index 2acf8d92..61caa883 100644 --- a/Details.toc +++ b/Details.toc @@ -41,11 +41,10 @@ functions\playerclass.lua functions\timedata.lua functions\report.lua functions\rowanimation.lua +functions\raidinfo.lua core\timemachine.lua - - gumps\anime.lua gumps\anime.xml gumps\janela_copy.lua diff --git a/functions/raidinfo.lua b/functions/raidinfo.lua new file mode 100644 index 00000000..268ffa02 --- /dev/null +++ b/functions/raidinfo.lua @@ -0,0 +1,115 @@ + + +--> install data for raiding tiers + +do + --> data for Antorus, the Burning Throne raid + +-- AntorusRaid_BossFaces +-- AntorusRaid_Icon256x128 + + local INSTANCE_EJID = 946 + local INSTANCE_MAPID = 1712 + local HDIMAGESPATH = "Details\\images\\raid" + local HDFILEPREFIX = "AntorusRaid" + local LOADINGSCREEN_FILE, LOADINGSCREEN_COORDS = "LoadingScreen_ArgusRaid_Widescreen", {0, 1, 285/1024, 875/1024} + local EJ_LOREBG = "UI-EJ-LOREBG-Antorus" + + local PORTRAIT_LIST = { + 1715210, --Garothi Worldbreaker - Garothi Worldbreaker + 1715209, --F'harg - Felhounds of Sargeras + 1715225, --Admiral Svirax - Antoran High Command + 1715219, --Portal Keeper Hasabel - Portal Keeper Hasabel + 1715208, --Essence of Eonar - Eonar the Life-Binder + 1715211, --Imonar the Soulhunter - Imonar the Soulhunter + 1715213, --Kin'garoth - Kin'garoth + 1715223, --Varimathras - Varimathras + 1715222, --Noura, Mother of Flames - The Coven of Shivarra + 1715207, --Aggramar - Aggramar + 1715536, --Argus the Unmaker - Argus the Unmaker + } + + local ENCOUNTER_ID_CL = { + 2076, 2074, 2070, 2075, 2064, 2082, 2088, 2069, 2073, 2063, 2092, + [2076] = 1, --Garothi Worldbreaker + [2074] = 2, --Felhounds of Sargeras + [2070] = 3, --Antoran High Command + [2075] = 4, --Eonar + [2064] = 5, --Portal Keeper Hasabel + [2082] = 6, --Imonar the Soulhunter + [2088] = 7, --Kin'garoth + [2069] = 8, --Varimathras + [2073] = 9, --The Coven of Shivarra + [2063] = 10, --Aggramar + [2092] = 11, --Argus the Unmaker + } + + local ENCOUNTER_ID_EJ = { + 1992, 1987, 1997, 1985, 2025, 2009, 2004, 1983, 1986, 1984, 2031, + [1992] = 1, --Garothi Worldbreaker + [1987] = 2, --Felhounds of Sargeras + [1997] = 3, --Antoran High Command + [1985] = 4, --Portal Keeper Hasabel + [2025] = 5, --Eonar the Life-Binder + [2009] = 6, --Imonar the Soulhunter + [2004] = 7, --Kin'garoth + [1983] = 8, --Varimathras + [1986] = 9, --The Coven of Shivarra + [1984] = 10, --Aggramar + [2031] = 11, --Argus the Unmaker + } + + --> install the raid + function Details:ScheduleInstallRaidDataForAntorus() + + --load encounter journal + EJ_SelectInstance (INSTANCE_EJID) + + local InstanceName = EJ_GetInstanceInfo (INSTANCE_EJID) + + --build the boss name 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], + 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 + + Details:ScheduleTimer ("ScheduleInstallRaidDataForAntorus", 2) + +end + diff --git a/images/raid/AntorusRaid_BossFaces.tga b/images/raid/AntorusRaid_BossFaces.tga new file mode 100644 index 00000000..945b94b5 Binary files /dev/null and b/images/raid/AntorusRaid_BossFaces.tga differ diff --git a/images/raid/AntorusRaid_Icon256x128.tga b/images/raid/AntorusRaid_Icon256x128.tga new file mode 100644 index 00000000..b765ff66 Binary files /dev/null and b/images/raid/AntorusRaid_Icon256x128.tga differ