5 Commits

Author SHA1 Message Date
b6d78b1caf Update version 2020-11-16 17:59:58 -05:00
be513420c2 Fix API call 2020-11-16 17:59:48 -05:00
ecc6f258a2 Adjust level checks
Not sure if 10 is right but can adjust later
2020-11-16 17:59:29 -05:00
d99c214111 Update pkgmeta 2020-11-16 16:06:37 -05:00
294bb6dede Add change from l4r0e - thanks! 2020-11-16 15:55:32 -05:00
3 changed files with 21 additions and 20 deletions

View File

@@ -2,41 +2,41 @@
externals: externals:
Libs/LibStub: Libs/LibStub:
url: svn://svn.wowace.com/wow/libstub/mainline/trunk url: https://repos.wowace.com/wow/libstub/trunk
tag: latest tag: latest
Libs/CallbackHandler-1.0: Libs/CallbackHandler-1.0:
url: svn://svn.wowace.com/wow/callbackhandler/mainline/trunk/CallbackHandler-1.0 url: https://repos.wowace.com/wow/ace3/trunk/CallbackHandler-1.0
tag: latest tag: latest
Libs/LibQTip-1.0: Libs/LibQTip-1.0:
url: svn://svn.wowace.com/wow/libqtip-1-0/mainline/trunk url: https://repos.wowace.com/wow/libqtip-1-0
tag: latest tag: latest
Libs/LibDataBroker-1.1: Libs/LibDataBroker-1.1:
url: git://github.com/tekkub/libdatabroker-1-1.git url: git://github.com/tekkub/libdatabroker-1-1.git
tag: latest tag: latest
Libs/AceLocale-3.0: Libs/AceLocale-3.0:
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceLocale-3.0 url: https://repos.wowace.com/wow/ace3/trunk/AceLocale-3.0
tag: latest tag: latest
Libs/AceConsole-3.0: Libs/AceConsole-3.0:
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceConsole-3.0 url: https://repos.wowace.com/wow/ace3/trunk/AceConsole-3.0
tag: latest tag: latest
Libs/AceAddon-3.0: Libs/AceAddon-3.0:
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceAddon-3.0 url: https://repos.wowace.com/wow/ace3/trunk/AceAddon-3.0
tag: latest tag: latest
Libs/AceEvent-3.0: Libs/AceEvent-3.0:
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceEvent-3.0 url: https://repos.wowace.com/wow/ace3/trunk/AceEvent-3.0
tag: latest tag: latest
Libs/AceTimer-3.0: Libs/AceTimer-3.0:
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceTimer-3.0 url: https://repos.wowace.com/wow/ace3/trunk/AceTimer-3.0
tag: latest tag: latest
Libs/AceConfig-3.0: Libs/AceConfig-3.0:
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceConfig-3.0 url: https://repos.wowace.com/wow/ace3/trunk/AceConfig-3.0
tag: latest tag: latest
Libs/AceDB-3.0: Libs/AceDB-3.0:
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceDB-3.0 url: https://repos.wowace.com/wow/ace3/trunk/AceDB-3.0
tag: latest tag: latest
Libs/AceGUI-3.0: Libs/AceGUI-3.0:
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceGUI-3.0 url: https://repos.wowace.com/wow/ace3/trunk/AceGUI-3.0
tag: latest tag: latest
Libs/LibDBIcon-1.0: Libs/LibDBIcon-1.0:
url: svn://svn.wowace.com/wow/libdbicon-1-0/mainline/trunk/LibDBIcon-1.0 url: https://repos.wowace.com/wow/libdbicon-1-0/trunk/LibDBIcon-1.0
tag: latest tag: latest

View File

@@ -223,9 +223,9 @@ function TillerTracker:OnInitialize()
end end
function TillerTracker:OnEnable() function TillerTracker:OnEnable()
-- Disable if the player is less than 90 -- Disable if the player is less than 10
if (UnitLevel("player") < 90) then if (UnitLevel("player") < 10) then
LDB.text = L["Disabled until level 90"] LDB.text = L["Disabled until level 10"]
-- Register to get player level events -- Register to get player level events
self:RegisterEvent("PLAYER_LEVEL_UP") self:RegisterEvent("PLAYER_LEVEL_UP")
@@ -244,7 +244,7 @@ function TillerTracker:OnEnable()
end end
function TillerTracker:PLAYER_LEVEL_UP(event, newLevel) function TillerTracker:PLAYER_LEVEL_UP(event, newLevel)
if (tonumber(newLevel) >= 90) then if (tonumber(newLevel) >= 10) then
-- Do the real enable -- Do the real enable
TillerTracker:OnEnableCore() TillerTracker:OnEnableCore()
@@ -344,9 +344,10 @@ local function Entry_OnMouseUp(frame, info, button)
return return
end end
local m = TomTom:GetCurrentPlayerPosition()
local location = info["LOCATION"] local location = info["LOCATION"]
_G.TomTom:AddMFWaypoint(807, nil, location[1] / 100, location[2] / 100, { title = info["NAME"] }) _G.TomTom:AddWaypoint(m, location[1] / 100, location[2] / 100, { title = info["NAME"] })
end end
end end
@@ -386,7 +387,7 @@ end
function TillerTracker:UpdateData() function TillerTracker:UpdateData()
-- Get information on all quests completed -- Get information on all quests completed
local questsCompleted = GetQuestsCompleted() local questsCompleted = C_QuestLog.GetAllCompletedQuestIDs()
-- Create a table to store our current inventory of required mats -- Create a table to store our current inventory of required mats
local inv_table = {} local inv_table = {}

View File

@@ -1,6 +1,6 @@
## Interface: 90001 ## Interface: 90001
## Title: Tiller Tracker ## Title: Tiller Tracker
## Version: 9.0.0 ## Version: 9.0.2
## Notes: Helps with the daily Tiller food quests ("A Dish for...") by keeping track of what quests have been completed that day, how many dishes need to be cooked, and what materials are required. ## Notes: Helps with the daily Tiller food quests ("A Dish for...") by keeping track of what quests have been completed that day, how many dishes need to be cooked, and what materials are required.
## Author: Amanoa ## Author: Amanoa
## SavedVariables: TillerTrackerDB ## SavedVariables: TillerTrackerDB