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 -- Loop over tab slots
- PlayerAuctionsDB = TSMAPI:GetData("playerauctions", CHARACTER_NAME)
- ItemLink = GetGuildBankItemLink(GuildTab, GuildTabSlot)
- ItemLinkID = TSMAPI:GetItemID(ItemLink, true) -- convert item link into item ID
- print(ItemLinkID)
- for ItemInDB, _ in pairs(PlayerAuctionsDB) do
- print(ItemInDB)
- if ItemInDB ~= ItemLinkID then
- print("item "..ItemLinkID.." not found on AH")
- AutoStoreGuildBankItem(GuildTab, GuildTabSlot)
- 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