Thread: Addon help
View Single Post
09-20-15, 12:33 AM   #15
Caellian
A Frostmaul Preserver
 
Caellian's Avatar
Join Date: May 2006
Posts: 281
But i'm not interested in any specific loot, i just want to know if i looted it, not what was inside

So basically, you're saying something like this would suffice ? (untested, drycoded)

Code:
local champions = {"Deathtalon", 95053, "Doomroller", 95056, "Terrorfist", 95044, "Vengeance", 95054}

if event == "LOOT_OPENED" then
	for i = 1, GetNumLootItems() do
		local GUID = GetLootSourceInfo(i)

		for id = 1, #champions - 1, 2 do
			if string.find(GUID, champions[id + 1]) then
				C_Timer.After(5, function()
					C_LFGList.RemoveListing()
					LeaveParty()
				end)
			end
		end
	end

	self:UnregisterEvent("LOOT_OPENED")
end
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }

Last edited by Caellian : 09-20-15 at 03:47 AM.
  Reply With Quote