function onUse(cid, item, fromPosition, itemEx, toPosition)
if (getPlayerStorageValue(cid, 54321) == -1) then
local key = doPlayerAddItem(cid, 2087)
doSetItemActionId(key, 2087)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found a wooden key.")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.")
end
return true
end