From c7dbcfac41764d0ae8c650f97bf2fd64f95eedc7 Mon Sep 17 00:00:00 2001 From: atomaka Date: Sun, 21 Aug 2011 14:26:49 -0400 Subject: [PATCH] Simple printing of Valor Point information. --- ChoreTracker.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ChoreTracker.lua b/ChoreTracker.lua index 10ea611..d40ec82 100644 --- a/ChoreTracker.lua +++ b/ChoreTracker.lua @@ -26,9 +26,16 @@ function core:OnEnable() self.db.profile.lockouts[name] = {} end + self:RegisterChatCommand('ct','ViewChores'); self:RegisterEvent('UPDATE_INSTANCE_INFO','UpdateChores') end +function core:ViewChores() + for k,v in pairs(self.db.profile.valorPoints) do + print(k,'has',v,'Valor Points this week.') + end +end + function core:UpdateChores() local level = UnitLevel('player')