local storage = 10000
local caskID = 1771 -- 8176 is the actual ID
function onUse(cid, item, fromPosition, itemEx, toPosition)
if itemEx.itemid == caskID and getPlayerStorageValue(cid, storage) == 1 then
doCreatureSay(cid, "GULP, GULP, GULP", TALKTYPE_ORANGE_1, nil, nil, toPosition)
doSendMagicEffect(toPosition, CONST_ME_SOUND_YELLOW)
doTransformItem(item.uid, 7495)
setPlayerStorageValue(cid, storage, 2)
return true
end
return false
end