Mercurial > wow > itemauditor
comparison Modules/Events.lua @ 20:ff9a698caebc
Added options for the crafting threshold and auction threshold. I also fixed the queue to use the item cost to determine if there is enough profit instead of the auction (QA) threshold which already has profit built in.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Sun, 04 Jul 2010 09:33:25 -0700 |
parents | 44e70a3fdb19 |
children | 819bfdc5d73c |
comparison
equal
deleted
inserted
replaced
19:67f4151d535c | 20:ff9a698caebc |
---|---|
98 end | 98 end |
99 end | 99 end |
100 | 100 |
101 if diff.money > 0 and self:tcount(positive) > 0 and self:tcount(negative) == 0 then | 101 if diff.money > 0 and self:tcount(positive) > 0 and self:tcount(negative) == 0 then |
102 self:Debug("loot") | 102 self:Debug("loot") |
103 elseif self:tcount(diff.items) == 1 then | 103 elseif abs(diff.money) > 0 and self:tcount(diff.items) == 1 then |
104 self:Debug("purchase or sale") | 104 self:Debug("purchase or sale") |
105 | 105 |
106 for link, count in pairs(diff.items) do | 106 for link, count in pairs(diff.items) do |
107 self:SaveValue(link, 0 - diff.money) | 107 self:SaveValue(link, 0 - diff.money) |
108 end | 108 end |