Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local numBatchAuctions, totalAuctions
- local Item_Number = 1
- local name, _, count, _, _, _, minBid, _, buyoutPrice, _, _, _, _
- local Glyphs_Called = 0
- Glyph_Pages = 5
- Glyph_Page = 1
- local GlyphMaster = CreateFrame ("FRAME", "GlyphMaster", UIParent, nil)
- GlyphMaster:RegisterEvent("AUCTION_ITEM_LIST_UPDATE")
- GlyphMaster:RegisterEvent("ADDON_LOADED")
- GlyphMaster:SetScript("OnEvent", function (self, event)
- if event == "ADDON_LOADED" then
- --if not Glyph_List_Names then
- Glyph_List_Names = {}
- --elseif not Glyph_Count then
- Glyph_Count = 0
- --elseif not Glyph_List_Count then
- Glyph_List_Count = {}
- --elseif not Glyph_List then
- Glyph_List = {}
- --elseif not Glyph_List_MinBid then
- Glyph_List_MinBid = {}
- --elseif not Glyph_List_MinBO then
- Glyph_List_MinBO = {}
- elseif event == "AUCTION_ITEM_LIST_UPDATE" then
- --if Glyphs_Called == 0 then return end
- numBatchAuctions, wholeCount = GetNumAuctionItems("list")
- for Item_Number = 1, wholeCount do
- name, _, _, _, _, _, _, _, buyoutPrice, _, _, _, _ = GetAuctionItemInfo("list", Item_Number)
- if string.find(name, "Glyph") == 1 then
- Glyph_List[Glyph_Count] = {name, buyoutPrice}
- Glyph_Count = Glyph_Count + 1
- end
- end
- end
- --Glyphs_Called = 0
- --end
- end
- )
- SLASH_GlyphMaster1 = "/GMaster"
- SLASH_GlyphMaster2 = "/GlyphM"
- function SlashCmdList.GlyphMaster ()
- QueryAuctionItems("Glyph", nil, nil, nil, nil, nil, nil, false, nil, true)
- --Glyphs_Called = 1
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement