/trunk
--[[ |
Desc: |
Info: $Id: utility.lua 36 2009-05-11 00:57:03Z draake $ |
Info: $Id: utility.lua 40 2009-05-12 02:13:32Z draake $ |
]] |
local _G = _G |
end |
end |
function EasyDaily:CleanTable(t) |
function EasyDaily:CleanTable(t, recursive) |
for i, v in pairs(t) do |
t[i] = nil |
if type(t[i]) == "table" and recursive then |
self:CleanTable(t[i], true) |
else |
t[i] = nil |
end |
end |
return t |
end |
-- Debugging |
-------------------------------------------------------------------------------------------------- |
function EasyDaily:Help(...) |
function EasyDaily:Debug(...) |
self:ChatDebug(0, ...) |
end |
function EasyDaily:Helpful(...) |
self:ChatDebug(1, ...) |
end |
function EasyDaily:Debug(...) |
function EasyDaily:Verbose(...) |
self:ChatDebug(2, ...) |
end |
function EasyDaily:RawDebug(...) |
function EasyDaily:Maintenance(...) |
self:ChatDebug(3, ...) |
end |
--[[ |
Desc: |
Info: $Id: database.lua 36 2009-05-11 00:57:03Z draake $ |
Info: $Id: database.lua 40 2009-05-12 02:13:32Z draake $ |
]] |
local _G = _G |
local defaultValues = { |
--~ hkey = { db = "global", locale = nil, side = nil, default = nil, type = "type", value = "number", table = nil, protect = true }, |
hval = { db = "global", locale = nil, side = nil, default = nil, type = "type", value = "string", table = nil, protect = true }, |
name = { db = "global", locale = nil, side = nil, default = nil, type = "type", value = "string", table = nil, protect = true }, |
name = { db = "global", locale = true, side = nil, default = nil, type = "type", value = "string", table = nil, protect = true }, |
index = { db = "global", locale = nil, side = nil, default = nil, type = "type", value = "number", table = nil, protect = true }, |
} |
self:InitHandles() |
self.log.initialize = nil |
self:CleanTable(self.log, true) |
self:CleanTable(self.log.start) |
self:CleanTable(self.log.finish) |
self:CleanTable(self.log.quest) |
self:RefreshQuestLogInfo() |
end |
------------------------------------------------------------------------ |
r39 | draake | 2009-05-11 03:14:05 +0000 (Mon, 11 May 2009) | 1 line |
r41 | draake | 2009-05-12 02:14:01 +0000 (Tue, 12 May 2009) | 1 line |
Changed paths: |
A /tags/v2.0-beta.9 (from /trunk:38) |
A /tags/v2.0-beta.10 (from /trunk:40) |
Tagging as v2.0-beta.9 |
Tagging as v2.0-beta.10 |
------------------------------------------------------------------------ |
r40 | draake | 2009-05-12 02:13:32 +0000 (Tue, 12 May 2009) | 6 lines |
Changed paths: |
M /trunk/core.lua |
M /trunk/database.lua |
M /trunk/locales/enUS.lua |
M /trunk/options.lua |
M /trunk/scripts/Strings.lua |
M /trunk/tracking.lua |
M /trunk/turnin.lua |
M /trunk/utility.lua |
Changed database to store quest names by locale. Requires database purge. |
Fixed quest completion detection. |
Gossip quest tooltip tweaks. |
Disabled quest discovery notices when starting up. |
Temporary solution for 'bounce backs' when declining quests with pop-ups. |
Started seperating debug notices into tiers (Helpful, Verbose, and Maintenance). |
------------------------------------------------------------------------ |
r38 | draake | 2009-05-11 03:13:45 +0000 (Mon, 11 May 2009) | 1 line |
Changed paths: |
M /trunk/tracking.lua |
## Authors: Draake |
## OptionalDeps: Ace3, LibDBIcon-1.0, LibGratuity-3.0, LibAbacus-3.0, LibTourist-3.0, Babble-Faction-3.0, LibBabble-Zone-3.0 |
## SavedVariables: EasyDaily_DB |
## X-Curse-Packaged-Version: v2.0-beta.9 |
## X-Curse-Packaged-Version: v2.0-beta.10 |
## X-Curse-Project-Name: EasyDaily |
## X-Curse-Project-ID: easydaily |
## X-Curse-Repository-ID: wow/easydaily/mainline |
--[[ |
Desc: |
Info: $Id: core.lua 36 2009-05-11 00:57:03Z draake $ |
Info: $Id: core.lua 40 2009-05-12 02:13:32Z draake $ |
]] |
local _G = _G |
-------------------------------------------------------------------------------------------------- |
-- Increasing this forces a database purge |
local RESETDB = 2 |
local RESETDB = 3 |
local defaults = { |
global = { |
tag_elite = true, |
mod_normal = "disable", |
mod_daily = "none", |
mod_daily = "shift", |
mod_repeat = "shift", |
mod_override = "alt", |
mod_suspend = "disable", |
self.version = {} |
-- Version |
self.version.revision = tonumber("38") |
self.version.revision = tonumber("40") |
if self.version.revision then |
local version = "v2.0-beta.9" |
local version = "v2.0-beta.10" |
if string.find(version, "^r%d+$") then |
self.version.major, self.version.minor, self.version.type = 0, 0, "alpha" |
self.version.text = string.format("r%s-alpha", self.version.revision) |
--[[ |
Desc: |
Info: $Id: options.lua 36 2009-05-11 00:57:03Z draake $ |
Info: $Id: options.lua 40 2009-05-12 02:13:32Z draake $ |
]] |
local _G = _G |
if questComplete then |
desc = desc .. sformat("\n%s: %s", self:Colorize(L["Completed"], 1, .8, 0), self:Colorize(YES, 0, 1, 0)) |
if reset then |
desc = desc .. sformat("\n%s: %s", self:Colorize(L["Reset"], 1, .8, 0), date("%x %I:%M:%S", reset)) |
desc = desc .. sformat("\n%s: %s", self:Colorize(L["Reset"], 1, .8, 0), date("%A, %B %d - %I:%M:%S %p", reset)) |
end |
else |
desc = desc .. sformat("\n%s: %s", self:Colorize(L["Completed"], 1, .8, 0), self:Colorize(NO, 1, 0, 0)) |
order = 3, |
type = "toggle", |
name = L["Quest Status Text"], |
desc = L["Displays a quests status in text next to its name in the gossip window."], |
desc = L["Displays a quest's state next to its name in the gossip window."], |
get = getFunc, |
set = function(...) setFunc(...); self:RefreshGossipOrQuestFrame(); end, |
}, |
--[[ |
Desc: |
Info: $Id: turnin.lua 38 2009-05-11 03:13:45Z draake $ |
Info: $Id: turnin.lua 40 2009-05-12 02:13:32Z draake $ |
]] |
local _G = _G |
return true |
end |
if self:GetPVar("stickyturnin") and self.tracker.gossip[title] ~= nil then |
return self.tracker.gossip[title] |
return ( not self.tracker.gossip.child ) and self.tracker.gossip[title] |
end |
local found, _, questType, questTag, _, enabled = self:GetQuestBaseInfo(title) |
if ( not found ) then |
local _, index, need = self:StrSplit(":", objString) |
local count = self:CountContainerItem(index) |
local floor = math.floor( count / need ) |
self:RawDebug(GetItemInfo(index), count, need, floor) |
self:Maintenance(GetItemInfo(index), count, need, floor) |
minimum = math.min( floor, minimum or math.huge ) |
end |
if minimum and ( minimum > 0 ) then |
-- NPC Tracking |
local name, index, kind = self:UnitName("npc") |
if name and index and kind then |
self.log.start[title] = {} |
self.log.start[title].name, self.log.start[title].index, self.log.start[title].type = name, index, kind |
self.log.start[title].zone, self.log.start[title].x, self.log.start[title].y, self.log.start[title].dl = self:GetLocation() |
self:ScheduleTimer(function() self.log.start[title] = nil; end, 10) |
self.tracker.gossip.title, self.tracker.gossip.part = title, "start" |
self.tracker.gossip.name, self.tracker.gossip.index, self.tracker.gossip.type = name, index, kind |
self.tracker.gossip.zone, self.tracker.gossip.x, self.tracker.gossip.y, self.tracker.gossip.dl = self:GetLocation() |
end |
-- Auto Quest |
end |
end |
self.tracker.gossip.child = true |
end |
-- Triggers on: Active/Repeatable |
local title = GetTitleText() |
-- NPC Tracking |
local name, index, kind = self:UnitName("npc") |
if name and index and kind then |
self.log.finish[title] = {} |
self.log.finish[title].name, self.log.finish[title].index, self.log.finish[title].type = name, index, kind |
self.log.finish[title].zone, self.log.finish[title].x, self.log.finish[title].y, self.log.finish[title].dl = self:GetLocation() |
self:ScheduleTimer(function() self.log.finish[title] = nil; end, 10) |
end |
self.tracker.gossip.title, self.tracker.gossip.part = title, "finish" |
self.tracker.gossip.name, self.tracker.gossip.index, self.tracker.gossip.type = self:UnitName("npc") |
self.tracker.gossip.zone, self.tracker.gossip.x, self.tracker.gossip.y, self.tracker.gossip.dl = self:GetLocation() |
-- Auto Quest |
if self:QuestEligibleForAdvancement(title) then |
end |
end |
self.tracker.gossip.child = true |
end |
-------------------------------------------------------------------------------------------------- |
function EasyDaily:GossipOrQuestClosed() |
if ( not QuestFrame:IsShown() ) and ( not GossipFrame:IsShown() ) then |
-- NPC Tracking |
local title, part = self.tracker.gossip.title, self.tracker.gossip.part |
if title and part then |
self.log[part][title] = { |
name = self.tracker.gossip.name, |
index = self.tracker.gossip.index, |
type = self.tracker.gossip.type, |
zone = self.tracker.gossip.zone, |
x = self.tracker.gossip.x, |
y = self.tracker.gossip.y, |
dl = self.tracker.gossip.dl, |
} |
self:ScheduleTimer(function() self.log[part][title] = nil; end, 15) |
end |
self:ClearTracker("gossip") |
end |
end |
iconType = "Available" |
end |
self:RawDebug(title, isActive, questType, questTag, self:QuestTagIsActive(questTag), iconColor, iconState, iconType) |
self:Maintenance(title, isActive, questType, questTag, self:QuestTagIsActive(questTag), iconColor, iconState, iconType) |
icon:SetTexture("Interface\\Addons\\EasyDaily\\Textures\\Gossip-Icons\\" .. iconColor .. iconState .. iconType) |
GameTooltip:AddDoubleLine(textEnabled, textComplete) |
local typeText = sformat("%s: %s", L["Type"], self:Colorize(self:TypeOptToTypeText(questType), 1, 1, 1)) |
local tagText = sformat("%s: %s (%s)", L["Tag"], self:Colorize(self:TagOptToTagText(questTag), 1, 1, 1), self:QuestTagIsActive(questTag) and self:Colorize(YES, 0, 1, 0) or self:Colorize(NO, 1, 0, 0)) |
local tagText = sformat("%s: %s (%s)", L["Tag"], self:Colorize(self:TagOptToTagText(questTag), 1, 1, 1), self:QuestTagIsActive(questTag) and self:Colorize(L["On"], 0, 1, 0) or self:Colorize(L["Off"], 1, 0, 0)) |
local cat1, cat2 = self:GetQuestCategoryInfo(title) |
-- L["Disable PvP Pop-up"] = "" |
-- L["Disables the confirmation pop-up that appears when accepting a daily quest that flags you for pvp."] = "" |
-- L["Disables the confirmation pop-up that appears when completing a daily quest that requires gold."] = "" |
-- L["Displays a quests status in text next to its name in the gossip window."] = "" |
-- L["Displays a quest's state next to its name in the gossip window."] = "" |
-- L["Done"] = "" |
-- L["Enabled"] = "" |
-- L["Enable/Disable debug mode."] = "" |
L["Disable PvP Pop-up"] = true |
L["Disables the confirmation pop-up that appears when accepting a daily quest that flags you for pvp."] = true |
L["Disables the confirmation pop-up that appears when completing a daily quest that requires gold."] = true |
L["Displays a quests status in text next to its name in the gossip window."] = true |
L["Displays a quest's state next to its name in the gossip window."] = true |
L["Done"] = true |
L["Enable/Disable debug mode."] = true |
L["Enable/Disable the addon."] = true |
-- L["Disable PvP Pop-up"] = "" |
-- L["Disables the confirmation pop-up that appears when accepting a daily quest that flags you for pvp."] = "" |
-- L["Disables the confirmation pop-up that appears when completing a daily quest that requires gold."] = "" |
-- L["Displays a quests status in text next to its name in the gossip window."] = "" |
-- L["Displays a quest's state next to its name in the gossip window."] = "" |
-- L["Done"] = "" |
-- L["Enabled"] = "" |
-- L["Enable/Disable debug mode."] = "" |
-- L["Disable PvP Pop-up"] = "" |
-- L["Disables the confirmation pop-up that appears when accepting a daily quest that flags you for pvp."] = "" |
-- L["Disables the confirmation pop-up that appears when completing a daily quest that requires gold."] = "" |
-- L["Displays a quests status in text next to its name in the gossip window."] = "" |
-- L["Displays a quest's state next to its name in the gossip window."] = "" |
-- L["Done"] = "" |
-- L["Enabled"] = "" |
-- L["Enable/Disable debug mode."] = "" |
L["Auto-Select rewards for quests with more than one reward."] = "ÐвÑовÑÐ±Ð¾Ñ Ð½Ð°Ð³Ñад за Ð·Ð°Ð´Ð°Ð½Ð¸Ñ Ñ Ð½ÐµÑколÑкими нагÑадами." |
L["Battleground"] = "Ðоле боÑ" |
L["Complete"] = "ÐÑполнено" |
-- L["Completed"] = "" |
L["Completed"] = "ÐÑполнено" |
L["Completed [%s] of [%s] dailies"] = "ÐÑполнено [%s] из [%s] ежедневнÑÑ Ð·Ð°Ð´Ð°Ð½Ð¸Ð¹" |
-- L["Continent"] = "" |
L["Continent"] = "ÐонÑиненÑ" |
L["Ctrl"] = "Ctrl" |
L["Daily"] = "Ðжедневно" |
L["Daily Quest Discovered"] = "ÐбнаÑÑжено ежедневное задание" |
L["Disable PvP Pop-up"] = "ÐÑклÑÑиÑÑ Ð²ÑплÑвание PvP" |
L["Disables the confirmation pop-up that appears when accepting a daily quest that flags you for pvp."] = "ÐÑклÑÑÐ°ÐµÑ Ð²ÑплÑваÑÑий запÑÐ¾Ñ Ð¿Ð¾Ð´ÑвеÑÐ¶Ð´ÐµÐ½Ð¸Ñ Ð¿Ñи попÑÑке взÑÑÐ¸Ñ ÐµÐ¶ÐµÐ´Ð½ÐµÐ²Ð½Ð¾Ð³Ð¾ заданиÑ, оÑмеÑаÑÑего ваÑ, как PvP-акÑивного." |
L["Disables the confirmation pop-up that appears when completing a daily quest that requires gold."] = "ÐÑклÑÑÐ°ÐµÑ Ð²ÑплÑваÑÑий запÑÐ¾Ñ Ð¿Ð¾Ð´ÑвеÑждениÑ, поÑвлÑÑÑийÑÑ Ð¿Ñи вÑполнении ежедневного заданиÑ, Ð´Ð»Ñ ÐºÐ¾ÑоÑого ÑÑебÑеÑÑÑ Ð·Ð¾Ð»Ð¾Ñо." |
-- L["Displays a quests status in text next to its name in the gossip window."] = "" |
-- L["Done"] = "" |
-- L["Displays a quest's state next to its name in the gossip window."] = "" |
L["Done"] = "ÐоÑово" |
L["Enabled"] = "ÐклÑÑено" |
L["Enable/Disable debug mode."] = "ÐклÑÑиÑÑ/оÑклÑÑиÑÑ Ñежим оÑладки." |
L["Enable/Disable the addon."] = "ÐклÑÑиÑÑ/ÐÑклÑÑиÑÑ Ð°Ð´Ð´Ð¾Ð½." |
L["Enables Auto Turn-in for %s tagged quests."] = "ÐклÑÑиÑÑ Ð°Ð²ÑоÑдаÑÑ Ð·Ð°Ð´Ð°Ð½Ð¸Ð¹, помеÑеннÑÑ , как %s" |
-- L["Enhanced Gossip Icons"] = "" |
L["Enhanced Gossip Icons"] = "УлÑÑÑеннÑе иконки беÑедÑ" |
L["Force"] = "ÐÑинÑдиÑелÑно" |
L["General"] = "ÐбÑее" |
-- L["Gossip/Quest Window"] = "" |
L["Gossip/Quest Window"] = "Ðкно заданиÑ/беÑедÑ" |
L["[Left-Click] to toggle the quest window"] = "[ÐевÑй клик] Ð´Ð»Ñ Ð¾ÑкÑÑÑиÑ/закÑÑÑÐ¸Ñ Ð¾ÐºÐ½Ð° заданий" |
L["Minimap Icon"] = "Ðконка Ñ Ð¼Ð¸Ð½Ð¸-каÑÑÑ" |
L["Multiple Rewards"] = "ÐногоÑиÑленнÑе нагÑадÑ" |
L["None"] = "ÐÑÑÑÑÑÑвÑеÑ" |
L["Note: The modifier 'None' refers to when no modifier is being held. Setting the modifier to 'Disable' disables the option."] = "ÐамеÑка: ÐодиÑикаÑÐ¾Ñ 'ÐÑÑÑÑÑÑÑвÑеÑ' ÑÑÑлаеÑÑÑ Ð½Ð° оÑÑÑÑÑÑвие назнаÑенного модиÑикаÑоÑа. УÑÑановка модиÑикаÑоÑа на 'ÐÑклÑÑиÑÑ' оÑклÑÑÐ°ÐµÑ ÑÑÑ Ð¾Ð¿ÑиÑ." |
-- L["Off"] = "" |
-- L["On"] = "" |
-- L["Quest Confirmation Pop-ups"] = "" |
-- L["Quest Enabled"] = "" |
L["Off"] = "ÐÑкл" |
L["On"] = "Ðкл" |
L["Quest Confirmation Pop-ups"] = "ÐÑплÑÐ²Ð°Ð½Ð¸Ñ Ð¿Ð¾Ð´ÑвеÑÐ¶Ð´ÐµÐ½Ð¸Ñ Ð·Ð°Ð´Ð°Ð½Ð¸Ñ" |
L["Quest Enabled"] = "Ðадание вклÑÑено" |
L["Quest Rewards"] = "ÐагÑÐ°Ð´Ñ Ð·Ð° заданиÑ" |
L["Quests"] = "ÐаданиÑ" |
-- L["Quest Status Text"] = "" |
L["Quest Status Text"] = "ТекÑÑ ÑÑаÑÑÑа заданиÑ" |
L["Quest Tags"] = "ÐеÑки заданиÑ" |
L["Quick Info"] = "ÐÑÑÑÑÐ°Ñ Ð¸Ð½Ñа" |
L["Repeatable"] = "ÐовÑоÑÑÑÑееÑÑ" |
L["Repeatable Quest Discovered"] = "ÐбнаÑÑжено повÑоÑÑÑÑееÑÑ Ð·Ð°Ð´Ð°Ð½Ð¸Ðµ" |
L["Replaces the default gossip icons with color coded versions."] = "ÐамениÑÑ ÑÑандаÑÑнÑе иконки окна беÑÐµÐ´Ñ Ð½Ð° ÑаÑкÑаÑеннÑе." |
-- L["Reset"] = "" |
L["Reset"] = "СбÑоÑ" |
L["[Right-Click] to toggle the options menu"] = "[ÐÑавÑй клик] Ð´Ð»Ñ Ð¾ÑкÑÑÑиÑ/закÑÑÑÐ¸Ñ Ð¼ÐµÐ½Ñ Ð½Ð°ÑÑÑоек" |
-- L["[Right-Click] to toggle this quest's state"] = "" |
L["[Right-Click] to toggle this quest's state"] = "[ÐÑавÑй-Ðлик] пеÑеклÑÑÐ°ÐµÑ ÑоÑÑоÑние заданий" |
L["Selection Modifiers"] = "ÐодиÑикаÑоÑÑ Ð²ÑбоÑа" |
L["Shift"] = "Shift" |
L["Show an icon on the Minimap."] = "ÐÑобÑажаÑÑ Ð¸ÐºÐ¾Ð½ÐºÑ Ñ Ð¼Ð¸Ð½Ð¸-каÑÑÑ." |
L["Special"] = "ÐÑобÑе" |
L["Suspend"] = "ÐÑиоÑÑановиÑÑ" |
-- L["Tag"] = "" |
L["Tag"] = "ÐеÑка" |
L["The [new day] begins in %s"] = "[ÐовÑй денÑ] наÑнÑÑÑÑ ÑеÑез %s" |
L["Toggle this quest's state."] = "ÐеÑеклÑÑение ÑÑаÑÑÑа данного заданиÑ." |
-- L["Type"] = "" |
L["Type"] = "Тип" |
L["Use this modifier to Auto Turn-in %s quests."] = "ÐÑполÑзоваÑÑ ÑÑÐ¾Ñ Ð¼Ð¾Ð´Ð¸ÑикаÑÐ¾Ñ Ð´Ð»Ñ Ð°Ð²ÑоÑдаÑи %s заданий." |
L["Use this modifier to forcibly Auto Turn-in any quest. Overrides all settings."] = "ÐÑполÑзоваÑÑ ÑÑÐ¾Ñ Ð¼Ð¾Ð´Ð¸ÑикаÑÐ¾Ñ Ð´Ð»Ñ Ð¿ÑинÑдиÑелÑной авÑоÑдаÑи лÑбого заданиÑ. ÐгноÑиÑÑÐµÑ Ð²Ñе наÑÑÑойки." |
L["Use this modifier to suspend the Auto Turn-in process."] = "ÐÑполÑзоваÑÑ ÑÑÐ¾Ñ Ð¼Ð¾Ð´Ð¸ÑикаÑÐ¾Ñ Ð´Ð»Ñ Ð¿ÑиоÑÑановки пÑоÑеÑÑа авÑоÑдаÑи." |
-- L["Zone"] = "" |
L["Zone"] = "Ðона" |
-- L["Disable PvP Pop-up"] = "" |
-- L["Disables the confirmation pop-up that appears when accepting a daily quest that flags you for pvp."] = "" |
-- L["Disables the confirmation pop-up that appears when completing a daily quest that requires gold."] = "" |
-- L["Displays a quests status in text next to its name in the gossip window."] = "" |
-- L["Displays a quest's state next to its name in the gossip window."] = "" |
-- L["Done"] = "" |
-- L["Enabled"] = "" |
-- L["Enable/Disable debug mode."] = "" |
-- L["Disable PvP Pop-up"] = "" |
-- L["Disables the confirmation pop-up that appears when accepting a daily quest that flags you for pvp."] = "" |
-- L["Disables the confirmation pop-up that appears when completing a daily quest that requires gold."] = "" |
-- L["Displays a quests status in text next to its name in the gossip window."] = "" |
-- L["Displays a quest's state next to its name in the gossip window."] = "" |
-- L["Done"] = "" |
L["Enabled"] = "Activé" |
L["Enable/Disable debug mode."] = "Activer / désactiver le mode de débogage." |
-- L["Disable PvP Pop-up"] = "" |
-- L["Disables the confirmation pop-up that appears when accepting a daily quest that flags you for pvp."] = "" |
-- L["Disables the confirmation pop-up that appears when completing a daily quest that requires gold."] = "" |
-- L["Displays a quests status in text next to its name in the gossip window."] = "" |
-- L["Displays a quest's state next to its name in the gossip window."] = "" |
-- L["Done"] = "" |
L["Enabled"] = "aktiviert" |
-- L["Enable/Disable debug mode."] = "" |
-- L["Disable PvP Pop-up"] = "" |
-- L["Disables the confirmation pop-up that appears when accepting a daily quest that flags you for pvp."] = "" |
-- L["Disables the confirmation pop-up that appears when completing a daily quest that requires gold."] = "" |
-- L["Displays a quests status in text next to its name in the gossip window."] = "" |
-- L["Displays a quest's state next to its name in the gossip window."] = "" |
-- L["Done"] = "" |
-- L["Enabled"] = "" |
-- L["Enable/Disable debug mode."] = "" |
--[[ |
Desc: |
Info: $Id: tracking.lua 38 2009-05-11 03:13:45Z draake $ |
Info: $Id: tracking.lua 40 2009-05-12 02:13:32Z draake $ |
]] |
local _G = _G |
tempLog[index] = self.log.quest[index] |
tempLog[index].old = true |
else |
tempLog[index] = {} |
tempLog[index].name = logName |
if questTag then |
tempLog[index].tag = TagTextToOpt[questTag] |
else |
tempLog[index].tag = "normal" |
end |
tempLog[index].header = tempHeader |
tempLog[index].daily = isDaily |
tempLog[index].complete = isComplete |
if self.log.start.name then |
tempLog[index].start = self.log.start |
end |
tempLog[index].obj = {} |
end |
local numObj = GetNumQuestLeaderBoards(i) |
for k = 1, numObj, 1 do |
tempLog[index].complete = isComplete |
for k = 1, GetNumQuestLeaderBoards(i), 1 do |
local objType, objName, objCurCount, objNeedCount, objText = self:GetLeaderBoardDetails(k, i) |
if self.log.quest[index] and self.log.quest[index].obj[k] then |
if objCurCount and self.log.quest[index].obj[k].cur and objCurCount > self.log.quest[index].obj[k].cur then |
-- Objective update |
local h = self:GetHandle("quest", index) |
if h then |
self:Debug(index, logName, objType, objName, self.log.quest[index].obj[k].cur, objCurCount, objNeedCount) |
self:Maintenance(index, logName, objType, objName, self.log.quest[index].obj[k].cur, objCurCount, objNeedCount) |
end |
end |
tempLog[index].obj[k] = self.log.quest[index].obj[k] |
for index, v in pairs(self.log.quest) do |
if ( not tempLog[index] ) then |
-- Quest was present in last update, but is now missing; __Add logic for abandoning quests later |
if v.complete then |
if self.log.finish[v.name] then |
self:RecordQuestComplete(v.name) |
end |
end |
if ( not v.old ) then |
if v.daily then |
local h, isNew = self:GetHandle("quest", index, true) |
if isNew then |
if self.log.initialized and isNew then |
self:Display(L["Daily Quest Discovered"], v.name) |
end |
h:SetVal("name", v.name) |