Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while count > 0 do
- for bag = 0, 4 do
- for slot = 1, GetContainerNumSlots(bag) do
- local link = GetContainerItemLink(bag, slot)
- if link then
- local id = tonumber(string.match(link, "item:(%d+)"))
- if var == "Prospecting" or var == "Milling" then
- if count < 5 then break end
- end
- if id == ItemID then
- local name = (select(1, GetItemInfo(id)))
- print(labelColor.."Disenchanting:|cffffffff "..link.." - location: bag: "..bag..", slot: "..slot)
- f.icon = _G["EasyDisenchantButtonIcon"]
- f.icon:SetTexture((select(1, GetContainerItemInfo(bag, slot))))
- f.icon:Show()
- f:SetAttribute("type", "item")
- f:SetAttribute("target-bag", bag)
- f:SetAttribute("target-slot", slot)
- UIFrameFadeOut(f, 3, 1, 0)
- return
- end
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment