samuelsami
New Member
- Joined
- Oct 27, 2010
- Messages
- 77
- Reaction score
- 1
Sup otland! Well i made this script by myself but i'm not good scripter.... The problem is i can get infinite items and i just want 1 item, like in annihilator, help please
- - - Updated - - -
Close this, i know the answer now
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 5005 then
queststatus = getPlayerStorageValue(cid,5027)
if queststatus == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found your reward.")
doPlayerAddItem(cid,8906,1)
setPlayerStorageValue(cid,5410,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 5005 then
queststatus = getPlayerStorageValue(cid,5027)
if queststatus == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found your reward.")
doPlayerAddItem(cid,8908,1)
setPlayerStorageValue(cid,5410,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
return 0
end
return 1
end
- - - Updated - - -
Close this, i know the answer now