AnDy1990
New Member
- Joined
- Mar 6, 2008
- Messages
- 104
- Reaction score
- 0
Hi I got some problems with my dhq chests.
I can get the items, but I can get them as many times as I want ...
I can get the items, but I can get them as many times as I want ...
Code:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 7043 then
queststatus = getPlayerStorageValue(cid,4013)
if queststatus == 1 then
doPlayerSendTextMessage(cid,22,"You have found a Demon Helmet.")
doPlayerAddItem(cid,2493,1)
setPlayerStorageValue(cid,4013,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 7044 then
queststatus = getPlayerStorageValue(cid,4013)
if queststatus == 1 then
doPlayerSendTextMessage(cid,22,"You have found a Demon shield.")
doPlayerAddItem(cid,2645,1)
setPlayerStorageValue(cid,4013,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 7045 then
queststatus = getPlayerStorageValue(cid,4013)
if queststatus == 1 then
doPlayerSendTextMessage(cid,22,"You have found Steel boots.")
doPlayerAddItem(cid,2520,1)
setPlayerStorageValue(cid,4013,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
return 0
end
return 1
end