Code:
function onUse(cid, item, frompos, item2, topos)
wall1 = {x=225, y=285, z=15, stackpos=1}
getwall1 = getThingfromPos(wall1)
if item.uid == 5016 and item.itemid == 1945 then
doRemoveItem(getwall1.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 5016 and item.itemid == 1946 then
doCreateItem(6290,1,wall1)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
end
i want this script to reset the lever after 10 mins and the wall to re-apear after it has been used. anyone know how to do it?
Last edited by a moderator: