Quantcast
possible to lookup pledge-giver? - ESOUI
Thread Tools Display Modes
08/28/21, 04:56 PM   #1
Shadowfen
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 77
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.
  Reply With Quote
08/29/21, 04:44 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 3,753
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
  Reply With Quote
08/29/21, 07:02 AM   #3
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,490
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()
__________________
https://www.imperialtradingcompany.eu/ - My Addons - The Vault (Early updates and experimental projects) - My patreon - My blog
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » possible to lookup pledge-giver?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off