Mercurial > wow > itemauditor
diff Modules/Events.lua @ 8:0271e781b154
Working on converting the database to store items as links instead of names.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Wed, 23 Jun 2010 23:47:48 -0700 |
parents | bbba2fae0f69 |
children | 374dd1a90d02 |
line wrap: on
line diff
--- a/Modules/Events.lua Tue Jun 08 11:19:16 2010 -0700 +++ b/Modules/Events.lua Wed Jun 23 23:47:48 2010 -0700 @@ -4,6 +4,9 @@ local utils = addonTable.utils function addon:PLAYER_ENTERING_WORLD() + addon:ConvertItems() + DevTools_Dump(ItemAuditor.db.factionrealm.items) + self:RegisterEvent("MAIL_SHOW") self:RegisterEvent("UNIT_SPELLCAST_START") self:WatchBags() @@ -99,7 +102,7 @@ if diff.money > 0 and utils:tcount(positive) > 0 and utils:tcount(negative) == 0 then -- self:Debug("loot") elseif utils:tcount(diff.items) == 1 then - -- self:Debug("purchase or sale") + self:Debug("purchase or sale") for itemName, count in pairs(diff.items) do self:SaveValue(itemName, diff.money)