3.2.1 summerset

git [05-23-18 - 23:32]
3.2.1 summerset
Filename
00_startup.lua
DASMenu.lua
DailyAutoShare.txt
locale/en.lua
questData/00_ids.lua
questData/Summerset.lua
diff --git a/00_startup.lua b/00_startup.lua
index b3bbd80..f32201e 100644
--- a/00_startup.lua
+++ b/00_startup.lua
@@ -3,7 +3,7 @@ DAS                         = DailyAutoShare
 local DailyAutoShare        = DailyAutoShare

 DAS.name                    = "DailyAutoshare"
-DAS.version                 = "3.2.0"
+DAS.version                 = "3.3.0"
 DAS.author                  = "manavortex"
 DAS.settings                = {}
 DAS.globalSettings          = {}
@@ -138,6 +138,10 @@ local defaults = {

 local function pointerUpSubzones()

+    -- Summerset
+    defaults[1012]                      = defaults[1011]
+    defaults.tracked[1012]              = defaults.tracked[1011]
+
     -- Gold Coast
     defaults[825]                       = defaults[823]
     defaults[826]                       = defaults[823]
@@ -195,6 +199,7 @@ local allDailyQuestIds = DAS_QUEST_IDS
 local em = EVENT_MANAGER

 local function debugOut(p1, p2, p3, p4, p5, p6, p7, p8)
+    if not DAS.GetDebugMode() then return end
     if (not p2) then d(p1); return; end
     if p8 then
         d(zo_strformat("<<1>> <<2>> <<3>> <<4>> <<5>> <<6>> <<7>> <<8>>", p1, p2, p3, p4, p5, p6, p7, p8))
@@ -255,7 +260,7 @@ local function OnQuestAdded(eventCode, journalIndex, questName, objectiveName)
 end

 local function OnQuestShared(eventCode, questId)
-    -- d(zo_strformat("<<1>> \t <<2>>", questId, questName))
+    p(zo_strformat("<<1>> \t <<2>>", questId, questName))
 	if not allDailyQuestIds[questId] then return end
 	local zoneQuests = DAS.questIds[DAS.GetZoneId()] or {}

@@ -377,6 +382,7 @@ local function resetQuests()
 end
 local typeTable = "table"
 local function isEmpty(tbl)
+    if not tbl then return true end
     local ret = true
     for key, value in pairs(tbl) do
         if type(value) == typeTable then
diff --git a/DASMenu.lua b/DASMenu.lua
index cf346c1..9d8c18c 100644
--- a/DASMenu.lua
+++ b/DASMenu.lua
@@ -175,6 +175,13 @@ function DAS.CreateMenu(savedVars, defaults)
 				},
 				{ -- checkbox: Morrowind
 					type    = "checkbox",
+					tooltip = "Summerset?",
+					name    = "Activate in Summerset?",
+					getFunc = function() return DAS.GetActiveIn(1011) end,
+					setFunc = function(value) DAS.SetActiveIn(1011, value) end
+				},
+				{ -- checkbox: Morrowind
+					type    = "checkbox",
 					tooltip = "Vvardenfell?",
 					name    = "Activate in Vvardenfell?",
 					getFunc = function() return DAS.GetActiveIn(849) end,
diff --git a/DailyAutoShare.txt b/DailyAutoShare.txt
index e2af43d..32eadfc 100644
--- a/DailyAutoShare.txt
+++ b/DailyAutoShare.txt
@@ -1,6 +1,6 @@
 ## Title: DailyAutoShare
 ## Author: manavortex
-## Version: 3.2.1
+## Version: 3.3.0
 ## APIVersion: 100023
 ## SavedVariables: DAS_Settings DAS_Globals
 ## OptionalDependsOn: LibStub LibCustomMenu LibAddonMenu-2.0 LibMediaProvider-1.0 pchat
@@ -46,6 +46,7 @@ questData/HewsBane.lua
 questData/GoldCoast.lua
 questData/Cyrodiil.lua
 questData/ClockworkCity.lua
+questData/Summerset.lua

 DASData.lua
 DASUserSettingsAdapter.lua
diff --git a/locale/en.lua b/locale/en.lua
index adf4a53..b840103 100644
--- a/locale/en.lua
+++ b/locale/en.lua
@@ -29,6 +29,19 @@ local strings  = {
 	DAS_SI_SETOPEN_TRUE	 	= "Toggle open",
 	DAS_SI_SETOPEN_FALSE	= "Toggle complete",

+
+    DAS_ELF_RELIC           = "Relic Runaround",
+    DAS_ELF_PILGR           = "Pilgrimage's End",
+    DAS_ELF_LIGHT           = "Snuffing Out the Light",
+
+    DAS_ELF_GRAVE           = "Never Forgotten",
+    DAS_ELF_QUEEN           = "The Sickening Sea",
+    DAS_ELF_GRIFFIN         = "Birds of a Feather",
+    DAS_ELF_SNAKE           = "Run Aground",
+    DAS_ELF_WILD            = "Taming the Wild",
+
+
+
 	-- Clockwork City
 	DAS_CLOCK_IMP			 = "Inciting the Imperfect",
 	DAS_CLOCK_FOE			 = "A Fine-Feathered Foe",
diff --git a/questData/00_ids.lua b/questData/00_ids.lua
index 1721575..0cfd691 100644
--- a/questData/00_ids.lua
+++ b/questData/00_ids.lua
@@ -1,5 +1,20 @@
 DAS_QUEST_IDS  = {

+    -- Summerset
+    [6152]   = true, -- Pilgrimage's End
+    [6153]   = true, --
+    [6154]   = true, --
+    [6155]   = true, --
+    [6156]   = true, -- Snuffing Out the Light
+    [6157]   = true, --
+    [6158]   = true, --
+    [6159]   = true, -- Culling Serpents
+
+    [6083]   = true, -- Taming the Wild
+    [6084]   = true, --
+    [6085]   = true, --
+    [6086]   = true, -- Never Forgotten
+
     -- Clockwork City
 	[6076]	 = true, -- Inciting the Imperfect,
 	[6077]	 = true, -- A Fine-Feathered Foe,
diff --git a/questData/Summerset.lua b/questData/Summerset.lua
index bcc964f..a2fd343 100644
--- a/questData/Summerset.lua
+++ b/questData/Summerset.lua
@@ -3,19 +3,26 @@ local zoneId2 = 1012

 local tbl = {}

-table.insert(tbl, GetString(DAS_DB_MINO))
-table.insert(tbl, GetString(DAS_DB_ARENA))
-table.insert(tbl, GetString(DAS_DB_GOOD))
-table.insert(tbl, GetString(DAS_DB_EVIL))
+table.insert(tbl, GetString(DAS_ELF_GRIFFIN))
+table.insert(tbl, GetString(DAS_ELF_QUEEN))
+table.insert(tbl, GetString(DAS_ELF_SNAKE))
+table.insert(tbl, GetString(DAS_ELF_WILD))
+
+table.insert(tbl, GetString(DAS_ELF_RELIC))
+table.insert(tbl, GetString(DAS_ELF_PILGR))
+table.insert(tbl, GetString(DAS_ELF_LIGHT))

 DAS.shareables[zoneId] = tbl
 DAS.shareables[zoneId2] = DAS.shareables[zoneId]

 local tbl2 = {}
-table.insert(tbl2, {[1] = "mino", [2] = "m"})
-table.insert(tbl2, {[1] = "arena",[2] = "a"})
-table.insert(tbl2, {[1] = "good", [2] = "common", [3] = "cg"})
-table.insert(tbl2, {[1] = "evil", [2] = "buried", [3] = "be"})
+table.insert(tbl2, {[1] = "griffon", [2] = "griffin", [3] = "gryphon", [4] = "gryffon"})
+table.insert(tbl2, {[1] = "queen"})
+table.insert(tbl2, {[1] = "adder", [2] = "snake"})
+table.insert(tbl2, {[1] = "wild",  [2] = "ward"})
+table.insert(tbl2, {[1] = "relic"})
+table.insert(tbl2, {[1] = "pilgrim"})
+table.insert(tbl2, {[1] = "light"})

 DAS.makeBingoTable(zoneId, tbl2)
 DAS.bingo[zoneId2] = DAS.bingo[zoneId]
@@ -28,10 +35,9 @@ DAS.questStarter[zoneId] = {
 DAS.questFinisher[zoneId] = {
     [GetString(DAS_QUEST_SS_TANO)]    = true,
     [GetString(DAS_QUEST_SS_FARO)]    = true,
-
 }


 DAS.questIds[zoneId] = {
-
+    [5733]  = true, -- Ancient Armaments in Bangkorai
 }
\ No newline at end of file