Fixed AH macro; should work pretty well now
This commit is contained in:
parent
53701ad4df
commit
998e51c038
1 changed files with 6 additions and 0 deletions
|
@ -168,8 +168,12 @@ end
|
|||
|
||||
-- mass buyout
|
||||
local bought = {}
|
||||
local finished = false
|
||||
local last = nil
|
||||
function mod:AuctionHouseBuyout()
|
||||
local selected = GetSelectedAuctionItem("list")
|
||||
if last == selected and finished then return end
|
||||
last, finished = selected, false
|
||||
if selected>0 then
|
||||
local name,_,count,_,_,_,_,_,price = GetAuctionItemInfo("list", selected)
|
||||
for j=50,1,-1 do
|
||||
|
@ -188,10 +192,12 @@ function mod:AuctionHouseBuyout()
|
|||
-- no purchase made, buy selected
|
||||
PlaceAuctionBid("list", selected, price)
|
||||
self:Print("All auctions bought.")
|
||||
finished = true
|
||||
end
|
||||
end
|
||||
|
||||
function mod:QueryAuctionItems()
|
||||
finished = false
|
||||
wipe(bought)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue