elsweyr

git [05-05-19 - 16:02]
elsweyr
Filename
00_startup.lua
DASMenu.lua
DailyAutoShare.txt
DasGui.lua
locale/en.lua
questData/Elsweyr.lua
diff --git a/00_startup.lua b/00_startup.lua
index 420711a..ff3c878 100644
--- a/00_startup.lua
+++ b/00_startup.lua
@@ -141,6 +141,7 @@ local defaults = {
 		[980]   = true,	    -- Clockwork
 		[1011]  = true,     -- Summerset
 		[726]   = true,     -- Murkmire
+		[1086]  = true,     -- Elsweyr
   },
   trackedLists = {
     newLife = false,
@@ -312,8 +313,7 @@ local function OnUnitCreated(eventCode, unitTag)
   if GetUnitDisplayName(unitTag) == cachedDisplayName then return end
   DAS.TryShareActiveDaily(unitZone)
 end
-local function OnQuestToolUpdate()
-  p("OnQuestToolUpdate")
+local function OnQuestToolUpdate()
   forceRefreshControl()
 end
 local function OnQuestRemoved(eventCode, isCompleted, journalIndex, questName, zoneIndex, poiIndex, questId)
@@ -334,6 +334,7 @@ local function OnQuestRemoved(eventCode, isCompleted, journalIndex, questName, z
   zo_callLater(function()
     DAS.SetAutoInvite(autoInvite)
     forceRefreshControl()
+    DAS.questCacheNeedsRefresh = true
     DAS.RefreshLabelsWithDelay()
   end, 5000)
 end
diff --git a/DASMenu.lua b/DASMenu.lua
index ceca885..e4466f4 100644
--- a/DASMenu.lua
+++ b/DASMenu.lua
@@ -75,6 +75,18 @@ function DAS.CreateMenu(savedVars, defaults)
 			type    = "submenu",
 			name    = "Activate",
 			controls = {
+        {-- Elsweyr
+           type    = "header",
+            title  = "Elsweyr",
+        },
+        { -- checkbox: Summerset
+					type    = "checkbox",
+					tooltip = "Elsweyr?",
+					name    = "Activate in Elsweyr?",
+					getFunc = function() return DAS.GetActiveIn(1086) end,
+					setFunc = function(value) DAS.SetActiveIn(1086, value) end
+				},
+
 				{ -- submenu: Murkmire
 					type        = "submenu",
 					name        = "Murkmire",
diff --git a/DailyAutoShare.txt b/DailyAutoShare.txt
index 5679603..2809fb6 100644
--- a/DailyAutoShare.txt
+++ b/DailyAutoShare.txt
@@ -1,7 +1,7 @@
 ## Title: DailyAutoShare
 ## Author: manavortex
 ## Version: 3.7
-## APIVersion: 100025
+## APIVersion: 100026 100027
 ## SavedVariables: DAS_Settings DAS_Globals
 ## DependsOn: LibStub LibCustomMenu LibAddonMenu-2.0
 ## OptionalDependsOn: pchat
@@ -27,6 +27,7 @@ questData/Cyrodiil.lua
 questData/ClockworkCity.lua
 questData/Summerset.lua
 questData/Murkmire.lua
+questData/Elsweyr.lua
 DASUserSettingsAdapter.lua
 DasChatMessage.lua
 DASContextMenu.lua
diff --git a/DasGui.lua b/DasGui.lua
index c6ebe0d..d99b793 100644
--- a/DasGui.lua
+++ b/DasGui.lua
@@ -251,7 +251,7 @@ function DAS.setLabels(zoneQuests)
     end
   end -- for loop end
   return numLabels
-end
+end
 function DAS.RefreshLabelsWithDelay() zo_callLater(DAS.RefreshLabels, 500) end
 function DAS.RefreshLabels(forceQuestRefresh, forceSkipQuestRefresh)
   forceQuestRefresh = forceQuestRefresh or DAS.questCacheNeedsRefresh
diff --git a/locale/en.lua b/locale/en.lua
index ce49b72..54e8c09 100644
--- a/locale/en.lua
+++ b/locale/en.lua
@@ -27,9 +27,22 @@ local strings  = {
   DAS_SI_PREQUEST         = "\nPrequest <<1>>: <<2>>",
 	DAS_SI_COMPLETED        = "completed",
 	DAS_SI_OPEN             = "open",
+
+  -- Elsweyr
+  -- NIsuzi
+  DAS_KITTY_WILY          = "The Traders' Terror",
+  DAS_KITTY_WIND          = "Wisdom in the Winds",
+
+  -- Rihirr
+  DAS_KITTY_HUNGRY        = "The Hungry Cat's Favor",
+  DAS_KITTY_DEATH         = "Another Day, Another Death",
+
+
+  -- Murkmire
   DAS_SLAVES_QUEST1       = "Varo Hosidias",
   DAS_SLAVES_QUEST2       = "Tuwul",
   DAS_SLAVES_QUEST3       = "Erithel",
+
   DAS_SLAVES_BOSS_1       = "Grave Circumstances",
   DAS_SLAVES_BOSS_2       = "Grave Expectations",
   DAS_SLAVES_BOSS_3       = "Old Baubles",
diff --git a/questData/Elsweyr.lua b/questData/Elsweyr.lua
new file mode 100644
index 0000000..15072b2
--- /dev/null
+++ b/questData/Elsweyr.lua
@@ -0,0 +1,64 @@
+DAS.shareables 	        = DAS.shareables            or {}
+DAS.bingo 		          = DAS.bingo 	              or {}
+DAS.questFinisher       = DAS.questFinisher         or {}
+DAS.questStarter        = DAS.questStarter          or {}
+local zoneId	= 1086
+
+
+local tbl   = {}
+local tbl2  = {}
+--[[
+  set up the tables. Order of quests in the UI depends on the order you add them here.
+  Important: You have to use GetString(YOUR_QUEST_NAME_CONSTANT) here, or localization won't work.
+  Localization strings are defined in ../locale/<lang>.lua
+--]]
+
+-- Nisuzi
+table.insert(tbl, GetString(DAS_KITTY_WILY))
+table.insert(tbl2, {[1] = "wily", [2] = "trade", [3] = "trader"})
+
+table.insert(tbl, GetString(DAS_KITTY_WIND))
+
+-- Ri'hirr
+table.insert(tbl, GetString(DAS_KITTY_HUNGRY))
+table.insert(tbl2, {[1] = "hungry", [2] = "food"})
+
+table.insert(tbl, GetString(DAS_KITTY_DEATH))
+table.insert(tbl2, {[1] = "death", [2] = "day"})
+
+
+
+
+
+-- rinse and repeat, until all your corresponding quest names / bingo strings are in your tables
+-- ...
+-- now set the table with the quest names for the zone
+DAS.shareables[zoneId]      = tbl
+-- call the func to make the bingo table.
+DAS.makeBingoTable(zoneId, tbl2)
+
+DAS.questStarter[zoneId] = {
+    ["Ri'hirr"] = true,
+    ["Nisuzi"] = true,
+}
+DAS.questFinisher[zoneId] = {
+    ["Ri'hirr"] = true,
+    ["Nisuzi"] = true,
+}
+DAS.questIds[zoneId] = {
+  -- single
+	-- [5518]  = true, -- "Meat for the Masses",
+	-- [5519]  = true, -- "Scholarly Salvage",
+	-- [5520]  = true, -- "Flames of Forge and Fallen",
+	-- [5521]  = true, -- "Nature's Bounty",
+	-- [5522]  = true, -- "Heresy of Ignorance",
+	-- [5523]  = true, -- "Snow and Steam",
+	-- [5524]  = true, -- "Reeking of Foul Play",
+	-- Group
+	-- [5507]  = true, -- "Breakfast of the Bizarre",
+	-- [5515]  = true, -- "Free Spirits",
+	-- [5514]  = true, -- "Getting a Bellyful",
+	-- [5509]  = true, -- "Parts of the Whole",
+	-- [5504]  = true, -- "The Skin Trade",
+	-- [5505]  = true, -- "Fire in the Hold",
+}
\ No newline at end of file