I tried to make simple chest quest, but players can't take the iem, they can see "Chest is empty" What's going on? I insert in map editor corret unique id, aa and the same quest, but for gold coins working normal (i just changed ids, 100% corrected). If somebody got working script, please put it here.
Code:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 11239 then
queststatus = getPlayerStorageValue(cid,5690)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found demon legs.")
doPlayerAddItem(cid,2495,1)
setPlayerStorageValue(cid,5690,1)
else
doPlayerSendTextMessage(cid,22,"Chest is empty.")
end
else
return 0
end
return 1
end