Mr Zool
New Member
- Joined
- Jul 5, 2012
- Messages
- 216
- Reaction score
- 2
I just want to be possible to make this quest as many times as someone want.
Only 1 time in 5h.
Can someone help ?
Only 1 time in 5h.
Can someone help ?
Code:
-- demodras chests
function onUse(cid, item, frompos, item2, topos)
if item.uid == 1303 then
queststatus = getPlayerStorageValue(cid,5010)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a infernal bolt.")
doPlayerAddItem(cid,6529,1)
setPlayerStorageValue(cid,5010,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 1305 then
queststatus = getPlayerStorageValue(cid,5010)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a sprite wand.")
doPlayerAddItem(cid,2453,1)
setPlayerStorageValue(cid,5010,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 1304 then
queststatus = getPlayerStorageValue(cid,5010)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a .")
doPlayerAddItem(cid,2507,1)
setPlayerStorageValue(cid,5010,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
return 0
end
return 1
end