The first part, the quest, I got with this code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 1002 then
queststatus = getPlayerStorageValue(cid, 1002)
if queststatus == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You...