Magictibiaman
New Member
- Joined
- May 25, 2009
- Messages
- 371
- Reaction score
- 0
how do i Create one time reward chests?
so i can't open the same chest twice?
so i can't open the same chest twice?
Last edited:
Just put the items in the chest via map editor.. Don't set an action id or anything like that
I dont understand ya.
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 9030 then
queststatus = getPlayerStorageValue(cid,9030)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Crystal Coin.")
doPlayerAddItem(cid,2160,1)
setPlayerStorageValue(cid,9030,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 9031 then
queststatus = getPlayerStorageValue(cid,9031)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Crystal Coin.")
doPlayerAddItem(cid,2160,1)
setPlayerStorageValue(cid,9031,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
end
return 1
end
<action uniqueid="9030" script="dubblequest.lua"/>
<action uniqueid="9031" script="dubblequest.lua"/>
<action uniqueid="9030" event="script" value="dubblequest.lua"/>
<action uniqueid="9031" event="script" value="dubblequest.lua"/>