Skip to content

Advanced Keywords for Delves #319

@RavenDT

Description

@RavenDT

It would be nice to have keywords for delves, such as the name of the delves, or whether the delve is bountiful or not.

As far as determining bountiful delves goes, I don't see a straightforward way to accomplish, but the roundabout way would be:

local isBountiful, delves, mapID, poiID, poiInfo, twwZoneMapIDs
twwZoneMapIDs = {
  2214, -- The Ringing Deeps
  2215, -- Hallowfall
  2248, -- Isle of Dorn
  2255, -- Azj-Kahet
  2256, -- Azj-Kahet - Lower
  2346, -- Undermine
}
for _,mapID in ipairs(twwZoneMapIDs) do
  delves = C_AreaPoiInfo.GetDelvesForMap(mapID)
  for _,poiID in ipairs(delves) do
    poiInfo = C_AreaPoiInfo.GetAreaPOIInfo(mapID, poiID)
    isBountiful = (poiInfo.atlasName=="delves-bountiful")
    print(mapID, poiID, poiInfo.name, isBountiful)
  end
end

Prints the following:

2214 7780 Mycomancer Cavern true
2214 7866 The Waterworks false
2214 7867 The Dread Pit false
2214 8181 Excavation Site 9 true
2215 7780 Mycomancer Cavern true
2215 7868 Nightfall Sanctum false
2215 7870 The Sinkhole false
2215 7871 Skittering Breach false
2248 7779 Fungal Folly true
2248 7863 Earthcrawl Mines false
2248 7865 Kriegval's Rest false
2255 7784 Tak-Rethan Abyss true
2255 7872 The Underkeep false
2255 7874 The Spiral Weave false
2346 8140 Sidestreet Sluice false
2346 8142 Demolition Dome false

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions