Now all my Quests are Debugging. Dunno how to fix it. I whould be pleased if someone can tell me how to fix this script Because it have allways worked b4 this update.
Code:
-- annihilator chests
function onUse(cid, item, frompos, item2, topos)
if item.uid == 5097 then
queststatus = getPlayerStorageValue(cid,5099)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Griffin Shield")
doPlayerAddItem(cid,2533,1)
setPlayerStorageValue(cid,5099,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 5098 then
queststatus = getPlayerStorageValue(cid,5099)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Shield of honour.")
doPlayerAddItem(cid,2517,1)
setPlayerStorageValue(cid,5099,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 5099 then
queststatus = getPlayerStorageValue(cid,5099)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a spellbook of warding.")
doPlayerAddItem(cid,8901,1)
setPlayerStorageValue(cid,5099,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 5100 then
queststatus = getPlayerStorageValue(cid,5099)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Thunder Hammer.")
doPlayerAddItem(cid,0,1)
setPlayerStorageValue(cid,5099,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
return 0
end
return 1
end