LibRaidEquip-1.0

250 Downloads

Simple library that keeps the equipment of your group or raid cached. Not pretty, as it was just made quickly to enable a little addon that I wanted for myself, but perhaps it can be of use to others.

Usage:

local lre = LibStub("LibRaidEquip-1.0", true)
lre:Enable()
if lre:HasGear(GUID) then
  local slots = lre:GetGear(GUID)
  local feet = lre:GetGear(GUID)[INVSLOT_FEET]
end

... where slots is a table with each key corresponding to an inventory slotId, where the value is an item link.