function onUse(cid, item, frompos, item2, topos)
if item.uid == 6605 then
queststatus = getPlayerStorageValue(cid,6607)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found the Mexcalibur.")
doPlayerAddItem(cid,8980,1)
setPlayerStorageValue(cid,6607,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 6606 then
queststatus = getPlayerStorageValue(cid,6607)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found the Arch Axe.")
doPlayerAddItem(cid,8926,1)
setPlayerStorageValue(cid,6607,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 6607 then
queststatus = getPlayerStorageValue(cid,6607)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found the Obsidian Truncheon.")
doPlayerAddItem(cid,8928,1)
setPlayerStorageValue(cid,6607,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 6608 then
queststatus = getPlayerStorageValue(cid,6607)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found the Blaze Staff.")
doPlayerAddItem(cid,7451,1)
setPlayerStorageValue(cid,6607,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 6609 then
queststatus = getPlayerStorageValue(cid,6607)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Flash Arrow.")
doPlayerAddItem(cid,7838,1)
setPlayerStorageValue(cid,6607,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
return 0
end
return 1
end