function IN(b,s) local t = nil if (b == -1) then t = GetInventoryItemLink("player",s) else t = GetContainerItemLink(b, s) end if t then local _,_,name = string.find(t, "^.*%[(.*)%].*$") return name else return "" end end -- Values local b = 2 local s = 2 local n = IN(b,s) -- Debug :) --ChatFrame1:AddMessage("ItemNam: ".. IN(b,s)) if (n == "Band of Rumination") then PickupContainerItem(b, s) -- 12 = Finger1slot PickupInventoryItem(12) else ChatFrame1:AddMessage("Already equiped.") end