Thread: DLC IDs
View Single Post
06/13/21, 08:35 AM   #3
Niwasaka
AddOn Author - Click to view addons
Join Date: Apr 2021
Posts: 4
Thanks for your quick answer ^^ I had already seen that, but then it also depends on the respective achivement. I had seen something else here https://www.esoui.com/forums/showthread.php?t=6194 but I'm not sure how I can use it.

I had already created a function and included it, but there is no output in the chat ^^

The code used was:
Lua Code:
  1. local name, _, numCollectibles, unlockedCollectibles, _, _, collectibleCategoryType = GetCollectibleCategoryInfo(COLLECTIBLE_CATEGORY_TYPE_DLC)
  2.      
  3.     for i=1, numCollectibles do
  4.         local collectibleId = GetCollectibleId(COLLECTIBLE_CATEGORY_TYPE_DLC, nil, i)
  5.         local collectibleName, _, _, _, unlocked = GetCollectibleInfo(collectibleId) -- Will return true or false. If the user unlocked throught ESO+ without buying DLC it will return true.
  6.         d("DLC ".. collectibleName .. "( ".. collectibleId .. ") unlocked : " .. tostring(unlocked))
  7.     end
  Reply With Quote