• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Edit item + Quest storage 5h.

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 :
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:
Back
Top