-- Script made by Tosse12
-- Works only with levers with id 1946 or 1945!
-- Change this! --
local lever = xxx -- Unique ID at Lever (change unique id to yours)
local wallid1 = xxxx -- ID at wall (which id your wall have)
-- Change Pos at your wall here! (Do not change Stackpos)
local W1 = {x=1000, y=1000, z=7, stackpos = 255} -- Wall pos!
-- DO NOT CHANGE!
local getw1 = getThingFromPos(w1)
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 1945 and item.uid == lever then
doRemoveItem(wallid1, getw1)
doTransformItem(item.uid, item.itemid+1)
elseif item.itemid == 1946 and item.uid == lever then
doCreateItem(wallid1, getw1)
doTransformItem(item.uid, item.itemid-1)
end
return 1
end