Ziggy
Member
- Joined
- Aug 11, 2007
- Messages
- 49
- Reaction score
- 6
Here is my script for removing a stone with a lever
can someone help me out and add in a delay for like 5 minutes and then the stone comes back?
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
stone = {x=1009, y=1020, z=6, stackpos=2} -- pos of stone
getstone = getThingfromPos(stone)
if item.uid == 20010 and item.itemid == 1945 then -- the item uid
doRemoveItem(getstone.uid,1)
doTransformItem(item.uid,item.itemid+1)
setPlayerStorageValue(cid, 20009, 2)
elseif item.itemid == 1946 then
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return 1
end
can someone help me out and add in a delay for like 5 minutes and then the stone comes back?