Possible to check if player have DLC access?
I wonder if there is a function I missed that can tell me if a player have access to a specific DLC.
I need it to hide/show certain quests. Lets say each DLC was given a number value, like this: 1 = Imperial City 2 = Orsinium 3 = Thieves Guild and the function was like this: isDLCAvailable(DLC number) Returns true/false depending on if the player has access to that DLC. Then I could do something like this: Lua Code:
|
The collections menu shows exactly what you ask for. Take a look at collections/keyboard/dlcbook_keyboard.lua and you will find that the function you are looking for is called GetCollectibleUnlockStateById and returns a CollectibleUnlockState.
The ESOUIDocumentation.txt shows that CollectibleUnlockState can be one of these three values:
Now you just need to figure out how to get the collectibleIds for the DLCs. |
254 - Thieves Guild
215 - Orsinium 154 - Imperial City For the list : Lua Code:
|
Thanks for your replies :)
Didn't think about checking the collectibles functions :o Now I just need to find out how to get the Thieves Guild Skill Line level... |
Lua Code:
DESTINATIONS_DLC_SKILLLINE = de = "Diebesgilde" fr = "Guilde des voleurs" en = "Thieves Guild" |
Wouldn't it be better to check the first abilityId in each skill line? That way you are independent of translations.
|
It can change too.
They changed skills in IC (Racial passives). They deleted the skillLine 2 in IC (Emperor) make the 3rd become the 2nd (Assistance moved from 3rd to the 2nd). And they added a skillline in the 3rd position instead of the 4th with TG. And for World it can change depending of skillline unlocking. And for Tradeskills, skilllines are not even sames if you are starting game in EN , DE or FR. And with a revamp, they can add skills too. Plus, for 1 skill, you can have 12 abilityId. Per exemple here are abilityId of DK Skill 1 of Draconic Skillline (1st skill line). Lua Code:
And with passive they can add unlimited #amount of passives ranks. So yes, there is not real proper way to do it, you'll need to check at each new DLC. |
Quote:
But it got me started, and I ended up with this: Lua Code:
|
All times are GMT -6. The time now is 04:51 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI