1
0
Fork 0

Simple printing of Valor Point information.

This commit is contained in:
Andrew Tomaka 2011-08-21 14:26:49 -04:00
parent 5c98139097
commit c7dbcfac41

View file

@ -26,9 +26,16 @@ function core:OnEnable()
self.db.profile.lockouts[name] = {} self.db.profile.lockouts[name] = {}
end end
self:RegisterChatCommand('ct','ViewChores');
self:RegisterEvent('UPDATE_INSTANCE_INFO','UpdateChores') self:RegisterEvent('UPDATE_INSTANCE_INFO','UpdateChores')
end 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() function core:UpdateChores()
local level = UnitLevel('player') local level = UnitLevel('player')