View Single Post
08/29/21, 07:02 AM   #3
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
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()
  Reply With Quote