local config = {
item = 1693, -- torqoise round pillow,
storage = 111444, -- storage value
actionId = 1234
}
function onUse(cid, item, frompos, item2, topos)
-- check to see if they did the quest already, if they didn't continue --
if ((item.uid == 1234) and (getPlayerStorageValue(cid, config.storage) == 0)) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found "..getItemArticleById(config.item).." "..
getItemNameById(config.item)..".")
doSetItemActionId(doPlayerAddItem(cid, config.item, 1), config.actionId)
setPlayerStorageValue(cid, config.storage, 1)
else
-- if they did it already tell them too bad its empty :P --
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"It is empty.")
end
end