mocoba
New Member
- Joined
- Aug 23, 2008
- Messages
- 332
- Reaction score
- 0
Hello Guys
when i put this scrip i made it the first chest only work but another 4 chests not work it open like box please help me guys
when i put this scrip i made it the first chest only work but another 4 chests not work it open like box please help me guys
PHP:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 59939 then
queststatus = getPlayerStorageValue(cid,59982)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Chain bolter.")
doPlayerAddItem(cid,8850,1)
setPlayerStorageValue(cid,59982,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 59938 then
queststatus = getPlayerStorageValue(cid,59982)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Bloody edge .")
doPlayerAddItem(cid,7416,1)
setPlayerStorageValue(cid,59982,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 59937 then
queststatus = getPlayerStorageValue(cid,59982)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a demonwing axe .")
doPlayerAddItem(cid,8926,1)
setPlayerStorageValue(cid,59982,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 59936 then
queststatus = getPlayerStorageValue(cid,59982)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a bonebreaker.")
doPlayerAddItem(cid,7428,1)
setPlayerStorageValue(cid,59982,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 59935 then
queststatus = getPlayerStorageValue(cid,59982)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Ducks Wand.")
doPlayerAddItem(cid,7410,1)
setPlayerStorageValue(cid,59982,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
return 0
end
return 1
end