Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Spare space start
- local CHARACTER_NAME = UnitName("player")
- --Start
- SLASH_GGLYPHS1 = '/gglyphs'; -- Define the "/" Command.
- function SlashCmdList.GGLYPHS(msg, editbox)-- Handle the "/"
- for GuildTab=1, 3 do -- Start loop to iterate over bank tabs 3 = max tab you want to check
- for GuildTabSlot=1, 98 do -- Iterate over tab slots
- PlayerAuctionsDB = TSMAPI:GetData("playerauctions", CHARACTER_NAME) -- Load Character auctions
- ItemLink = GetGuildBankItemLink(GuildTab, GuildTabSlot) -- Get item in Tab/Spot
- ItemLinkID = TSMAPI:GetItemID(ItemLink, true) -- convert item link into item ID
- print(ItemLinkID)
- for ItemInDB, _ in pairs(PlayerAuctionsDB) do -- Add the key value to ItemInDB
- print(ItemInDB) -- Checking to see if it actually recieved a key, Not needed
- if ItemInDB ~= ItemLinkID then -- Comparing if the itemid is in the table
- print("item "..ItemLinkID.." not found on AH")
- AutoStoreGuildBankItem(GuildTab, GuildTabSlot) -- Grab the item from the guildbank tab / slots
- else
- print("Item Not Found") -- Print if the item is not found
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement