Mr Zool
New Member
- Joined
- Jul 5, 2012
- Messages
- 216
- Reaction score
- 2
I have 2 questions :
1)
How to make Item time 5h.
Here is problem.
Item should be only 5h, doesnt matter if player using it. Or he stay offline.
After 5h this item should decay to "xxxx" id
example item :
2)
I want to be possible to make this quest every 5h
Here is my quest :
1)
How to make Item time 5h.
Here is problem.
Item should be only 5h, doesnt matter if player using it. Or he stay offline.
After 5h this item should decay to "xxxx" id
example item :
Code:
<item id="2492" article="a" name="dragon scale mail">
<attribute key="weight" value="11400" />
<attribute key="armor" value="15" />
<attribute key="slotType" value="body" />
<attribute key="absorbPercentAll" value="3" />
<attribute key="showattributes" value="1" />
</item>
2)
I want to be possible to make this quest every 5h
Here is my quest :
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
Last edited: