function onUse(cid, item, frompos, item2, topos)
if item.uid == 9239 then
queststatus = getPlayerStorageValue(cid,9239)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Magic Sword.")
doPlayerAddItem(cid,2400,1)
setPlayerStorageValue(cid,9239,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
return 0
end
return 1
end
Isso teria que muder tambem nao?
setPlayerStorageValue(cid,9239,1)