View Single Post
03/20/16, 02:37 PM   #1
SnowmanDK
 
SnowmanDK's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 161
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:
  1. If isDLCAvailable(2) then
  2. -- show quests in the Orsinium dlc zone and subzones
  3. end
  Reply With Quote