function IN(i) local t = GetInventoryItemLink("player",i) if t then local _,_,name = string.find(t, "^.*%[(.*)%].*$") return name else return "" end end -- Values local i = 17 local b = 2 local s = 2 local n = IN(s) -- Debug :) --ChatFrame1:AddMessage("ItemName: ".. IN(i)) if (n == "Eskhandar's Left Claw") then PickupContainerItem(b, s) PickupInventoryItem(i) end