View Single Post
05/14/20, 06:49 AM   #15
Kyoma
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 125
Ok, the worldmap uses this for actually getting the amounts for each zone completion type:
https://github.com/esoui/esoui/blob/...yboard.lua#L57

Code:
/script local id = GetNextZoneStoryZoneId()
local t, c = 0, 0
while id ~= nil do
local c2, t2 = ZONE_STORIES_MANAGER.GetActivityCompletionProgressValuesAndText(id, ZONE_COMPLETION_TYPE_SKYSHARDS)
id = GetNextZoneStoryZoneId(id)
t = t + t2
c = c + c2
end
df("%d/%d", c,t)
Gives me: 452/452

Seems for skyshards it just gets achievement ids and then check their criteria completion: https://github.com/esoui/esoui/blob/...nager.lua#L104

Still good to use that method since it'll keep working when new zones/skyshards are added.

Last edited by Kyoma : 05/14/20 at 07:14 AM.
  Reply With Quote