All pastes #34222 Raw Edit

Haste

public lua v1 · immutable
#34222 ·published 2005-12-19 18:09 UTC
rendered paste body
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 ""   endend-- Valueslocal b = 2local s = 2local 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