Hey, i made quest but it works like GlobalStorage, if one guy will use quest, he gain reward, but after him, no1 doesnt gain reward.
Code:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 8452 then
if getPlayerStorageValue(cid,7363) == -1 then
doPlayerSendTextMessage(cid,25,"You have found a Glacier Mask.")
doPlayerAddItem(cid,7902,1)
setPlayerStorageValue(cid,7363,1)
else
doPlayerSendTextMessage(cid,25,"This chest is empty.")
end
end
return TRUE
end