View difference between Paste ID: 2bS4x9xg and xu9mGuTK
SHOW: | | - or go back to the newest paste.
1
--Spare space start
2
local CHARACTER_NAME = UnitName("player")
3-
3+
4
SLASH_GGLYPHS1 = '/gglyphs'; -- Define the "/" Command.
5-
5+
6-
6+
7
		for GuildTabSlot=1, 98 do 	-- Loop over tab slots
8
			PlayerAuctionsDB = TSMAPI:GetData("playerauctions", CHARACTER_NAME)
9
			ItemLink = GetGuildBankItemLink(GuildTab, GuildTabSlot) 
10-
		for GuildTabSlot=1, 98 do 	-- Iterate over tab slots
10+
11-
			PlayerAuctionsDB = TSMAPI:GetData("playerauctions", CHARACTER_NAME)	-- Load Character auctions
11+
12-
			ItemLink = GetGuildBankItemLink(GuildTab, GuildTabSlot) 	-- Get item in Tab/Spot
12+
			for ItemInDB, _ in pairs(PlayerAuctionsDB) do
13
				print(ItemInDB)
14
				if ItemInDB ~= ItemLinkID then
15-
			for ItemInDB, _ in pairs(PlayerAuctionsDB) do		-- Add the key value to ItemInDB
15+
16-
				print(ItemInDB)			-- Checking to see if it actually recieved a key, Not needed
16+
					AutoStoreGuildBankItem(GuildTab, GuildTabSlot)
17-
				if ItemInDB ~= ItemLinkID then		-- Comparing if the itemid is in the table
17+
18
					print("Item Not Found")	-- Print if the item is not found
19-
					AutoStoreGuildBankItem(GuildTab, GuildTabSlot)	-- Grab the item from the guildbank tab / slots
19+
20
			end
21
		end
22
	end
23
end