Thread Tools Display Modes
Prev Previous Post   Next Post Next
12-04-15, 07:15 AM   #1
Furchee
A Murloc Raider
 
Furchee's Avatar
Join Date: Dec 2015
Posts: 5
Old Addon Help! (FastDisenchant)

Hi guys!

So I'm actually here because I'm rather miffed as to why this addon simply will not do it's job.
I've added the itemID's for WoD but it doesn't seem to want to loot regardless of which expansion.

Now I'm assuming blizzard changed something in the later expansions and broke this old addon and all I ask is someone to point me in the right direction of fixing this gem.

It's a rather simple coded thing and I'm sure the answer is quite obvious to those who have dealt with these types of codes before. *I code in sourcepawn so I understand the difference!

Anyway, without further delays here is the code!

Code:
local FastDEItems = {
	[774] = true, -- Malachite
	[818] = true, -- Tigerseye
	[1210] = true, -- Shadowgem
>>>>Cut out the list of items as there is quite a few!<<<<
}

function FastDisenchant_OnLoad()
	this:RegisterEvent("LOOT_OPENED");
end

function FastDisenchant_OnEvent(event)
	for slotnum = 1, GetNumLootItems() do
		if (not LootSlotIsItem(slotnum)) then return end

		local link = GetLootSlotLink(slotnum)
		local _, _, itemID = string.find(link, "item:(%d+)")

		itemID = tonumber(itemID);
		if (not itemID or not FastDEItems[itemID]) then return end
	end

	for slotnum = 1, GetNumLootItems() do LootSlot(slotnum) end
end
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Old Addon Help! (FastDisenchant)


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off