function onUse(cid, item, fromPosition, itemEx, toPosition)
if(fromPosition.x ~= CONTAINER_POSITION) then
doSendMagicEffect(fromPosition, CONST_ME_BIGCLOUDS)
end
local value = math.random(XXXX, XXXX) --set the items it can change into--
doTransformItem(item.uid, value)
return true
end