Mercurial > wow > itemauditor
comparison Modules/QuickAuctions.lua @ 89:54b917340283
Ticket 27 - Added the ability to select your preferred auction adodn if multiple are available.
| author | Asa Ayers <Asa.Ayers@Gmail.com> |
|---|---|
| date | Tue, 10 Aug 2010 23:25:48 -0700 |
| parents | 8d5ad3b71f6f |
| children | 1cb0027da35c |
comparison
equal
deleted
inserted
replaced
| 88:2112f71c4237 | 89:54b917340283 |
|---|---|
| 1 local ItemAuditor = select(2, ...) | 1 local ItemAuditor = select(2, ...) |
| 2 local QuickAuctions= ItemAuditor:NewModule("QuickAuctions") | 2 local QuickAuctions= ItemAuditor:NewModule("QuickAuctions") |
| 3 local Crafting = ItemAuditor:GetModule("Crafting") | 3 local Crafting = ItemAuditor:GetModule("Crafting") |
| 4 local Utils = ItemAuditor:GetModule("Utils") | 4 local Utils = ItemAuditor:GetModule("Utils") |
| 5 local AuctionHouse = ItemAuditor:GetModule("AuctionHouse") | |
| 5 | 6 |
| 6 local PT = LibStub("LibPeriodicTable-3.1") | 7 local PT = LibStub("LibPeriodicTable-3.1") |
| 7 | 8 |
| 8 --[[ | 9 --[[ |
| 9 This is simply for compatibility while I change the QA API. Once | 10 This is simply for compatibility while I change the QA API. Once |
| 164 | 165 |
| 165 return totalCost + (ahPrice * total) | 166 return totalCost + (ahPrice * total) |
| 166 end | 167 end |
| 167 | 168 |
| 168 function ItemAuditor:GetAuctionPrice(itemLink) | 169 function ItemAuditor:GetAuctionPrice(itemLink) |
| 169 local link = select(2, GetItemInfo(itemLink)) | 170 return AuctionHouse:GetAuctionPrice(itemLink) |
| 170 assert(link, 'Invalid item link: '..itemLink) | |
| 171 if GetAuctionBuyout ~= nil then | |
| 172 return GetAuctionBuyout(link) | |
| 173 elseif AucAdvanced and AucAdvanced.Version then | |
| 174 local _, _, _, _, _, lowBuy= AucAdvanced.Modules.Util.SimpleAuction.Private.GetItems(link) | |
| 175 return lowBuy | |
| 176 end | |
| 177 return nil | |
| 178 end | 171 end |
| 179 | 172 |
| 180 function ItemAuditor:AddToQueue(skillId,skillIndex, toQueue) | 173 function ItemAuditor:AddToQueue(skillId,skillIndex, toQueue) |
| 181 if Skillet == nil then | 174 if Skillet == nil then |
| 182 self:Print("Skillet not loaded") | 175 self:Print("Skillet not loaded") |
