Hello! I'm in need of some minor assistance, I found Cykotitants wall lever script earlier and I tried to edit it, but without any success.
Take a look:
Okay, so what I want to do is add another position where a similar action will be taken (removing another piece of wall for the same duration of time) but only with the use of 1 lever.
Can anyone decode this? ;D
Take a look:
HTML:
local pos, e = {x=535, y=1266, z=10}, 0
local f = function(p)
doCreateItem(1304, 1, pos)
doTransformItem(getTileItemById(p, 1946).uid, 1945)
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 1945 then
doRemoveItem(getTileItemById(pos, 1304).uid)
e = addEvent(f, 5 * 60 * 1000, fromPosition)
doTransformItem(item.uid, 1946)
else
stopEvent(e)
e = 0
f(fromPosition)
end
return true
end
Okay, so what I want to do is add another position where a similar action will be taken (removing another piece of wall for the same duration of time) but only with the use of 1 lever.
Can anyone decode this? ;D