ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   possible to lookup pledge-giver? (https://www.esoui.com/forums/showthread.php?t=9897)

Shadowfen 08/28/21 04:56 PM

possible to lookup pledge-giver?
 
Is it possible to programmatically look up which pledge-giver would give Spindleclutch I or Lair of Marsalok (for instance)?
I want to be able to do this in an automated fashion.

Baertram 08/29/21 04:44 AM

No unfotunately not afaik
I think I had created some lookup tables in the past but cannot find them anymore, sorry
Should have added them to the Wiki, damn

LibSets got the names (multi language) of the quest givers in LibSets.undauntedChestIds
but I had not added any constants for the quest givers. It's just 1, 2 and 3 for the chestIds ->
Code:

local undauntedChestIds = {
    ["de"] = {
        [1] = "Glirion der Rotbart",
        [2] = "Maj al-Ragath",
        [3] = "Urgarlag Häuptlingsfluch",
    },
    ["en"] = {
        [1] = "Glirion the Redbeard",
        [2] = "Maj al-Ragath",
        [3] = "Urgarlag Chief-bane",
    },
    ["fr"] = {
        [1] = "Glirion Barbe-Rousse",
        [2] = "Maj al-Ragath",
        [3] = "Urgalarg l'Èmasculatrice",
    },
    ["ru"] = {
        [1] = "Глирион Краснобородый",
        [2] = "Мадж аль-Рагат",
        [3] = "Ургарлаг Бич Вождей",
    },
    ["jp"] = {
        [1] = "赤髭グリリオン",
        [2] = "マジ・アルラガス",
        [3] = "族長殺しのウルガルラグ",
    },}
lib.undauntedChestIds = undauntedChestIds


sirinsidiator 08/29/21 07:02 AM

You can use the API provided by UndauntedDaily.

Lua Code:
  1. local dungeons = UndauntedDaily.GetPledgeDungeons() -- optionally pass an offset to get other days than today

"dungeons" contains 3 dungeon objects for Maj al-Ragath, Gilirion and Urgalarg respectively which give you the name and activityId for it:

Lua Code:
  1. local majDungeon = dungeons[1]
  2. local name = majDungeon:GetName()
  3. local normalActivityId = majDungeon:GetNormalId()
  4. local vetActivityId = majDungeon:GetVeteranId()


All times are GMT -6. The time now is 02:57 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI