gunmetal
New Member
- Joined
- Oct 15, 2007
- Messages
- 75
- Reaction score
- 0
I have this script:
I want to add a timer to the lever and have it reset the wall. How can i do that? rep to anyone who can help me out
PHP:
---------------------------- Start Config ----------------------------
local stonepos = {x=1551, y=528, z=15, stackpos=1} -- Stone pos
local STONEID = 1355 -- stone id
----------------------------- End Config -----------------------------
function onUse(cid, item, fromPos, item2, toPos)
if item.actionid == 29001 and item.itemid == 1945 then
doRemoveItem(getThingfromPos(stonepos).uid)
doTransformItem(item.uid,1946)
else
doCreateItem(STONEID, 1, stonepos)
doTransformItem(item.uid, 1945)
end
return 1
end
I want to add a timer to the lever and have it reset the wall. How can i do that? rep to anyone who can help me out