Mercurial > wow > inventory
comparison Modules/Queue.lua @ 92:88898c1e9e61
Fixed queueing of items which have none at the AH.
| author | Zerotorescue |
|---|---|
| date | Fri, 07 Jan 2011 23:14:33 +0100 |
| parents | a12d22ef3f39 |
| children | 31493364b163 |
comparison
equal
deleted
inserted
replaced
| 91:f10e9b7b7a5e | 92:88898c1e9e61 |
|---|---|
| 107 if amount > 0 and amount >= minCraftingQueue then | 107 if amount > 0 and amount >= minCraftingQueue then |
| 108 -- If we are queueing at least one AND more than the minimum amount, then proceed | 108 -- If we are queueing at least one AND more than the minimum amount, then proceed |
| 109 | 109 |
| 110 -- Auction value settings | 110 -- Auction value settings |
| 111 local priceThreshold = addon:GetOptionByKey(groupName, "priceThreshold"); | 111 local priceThreshold = addon:GetOptionByKey(groupName, "priceThreshold"); |
| 112 local value = (priceThreshold ~= 0 and addon:GetAuctionValue(itemLink, groupName)); | |
| 112 | 113 |
| 113 if priceThreshold == 0 or addon:GetAuctionValue(itemLink, groupName) >= priceThreshold then | 114 if priceThreshold == 0 or value == -1 or value >= priceThreshold then |
| 114 -- If no price threshold is set or the auction value is equal to or larger than the price threshold, then proceed | 115 -- If no price threshold is set or the auction value is equal to or larger than the price threshold, then proceed |
| 115 | 116 |
| 116 self:Queue(i, amount, groupName); | 117 self:Queue(i, amount, groupName); |
| 117 | 118 |
| 118 print("Queued " .. amount .. " of " .. itemLink); | 119 print("Queued " .. amount .. " of " .. itemLink); |
