I am trying to create an add-on that will grab all the glyph prices off of the AH. However, when I call
Code:
QueryAuctionItems("Glyph", nil, nil, nil, 5, nil, nil, false, nil, true)
and put that data into tables with
Code:
numBatchAuctions, totalAuctions = GetNumAuctionItems("list")
Glyph_Count = totalAuctions
for Glyph_Number = 1, Glyph_Count do
local name, _, count, _, _, _, minBid, _, buyoutPrice, _, _, _, _ = GetAuctionItemInfo("list", Glyph_Number)
-- if string.find (name, "Glyph") == nil then return end
Glyph_List_Names [Glyph_Number] = name
Glyph_List_Count [Glyph_Number] = count
Glyph_List_MinBid [Glyph_Number] = minBid
Glyph_List_MinBO [Glyph_Number] = buyoutPrice
I end up with tables of all 18 thousand auctions on the auction house. Using string.find as a workaround will result in having four empty tables. Does the fault lie in querying or saving?
Here is my full code:
http://pastebin.com/qB6vydkV.
Thanks in advance!