function onUse(cid, item, frompos, item2, topos)
queststatus = getPlayerStorageValue(cid, YOUR STORAGE)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,'You have found ---.')
doPlayerAddItem(cid,????,?)
setPlayerStorageValue(cid,YOURSTORAGE,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
return 1
end
function onUse(cid, item, frompos, item2, topos)
if item.uid ==7516 then
queststatus = getPlayerStorageValue(cid,7616)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found item.")
doPlayerAddItem(cid,item id,1)
setPlayerStorageValue(cid,7616,1)
else
doPlayerSendTextMessage(cid,22,"You aledry done this quest.")
end
else
return 0
end
return 1
end
doPlayerAddItem(cid,item id,1)