local config = {
storage = 5100
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(getPlayerStorageValue(cid, config.storage) < 1) then
doPlayerAddItem(cid, itemid, 1)
doPlayerSendTextMessage(cid,25,"You have found a item name.")
setPlayerStorageValue(cid, 5100, 1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "The tree is empty.")
end
return true
end