local storage = 47476
function onUse(cid, item, fromPosition, target, toPosition, isHotkey)
local player = Player(cid)
if player:getStorageValue(storage) == -1 then
player:setStorageValue(storage, 1)
player:addItem(7369, 1):setAttribute(ITEM_ATTRIBUTE_DESCRIPTION, "This trophy belongs to "..player:getName()..".")
player:sendTextMessage(MESSAGE_INFO_DESCR, "You found a trophy.")
else
player:sendTextMessage(MESSAGE_INFO_DESCR, "This chest is empty.")
player:getPosition():sendMagicEffect(CONST_ME_POFF)
end
return true
end