door switch:
-- Coordinates of the door
local doorPos = {x=1, y=1, z=1}
-- IDs of closed and open door
local doorClosed = 1209
local doorOpen = 1211
function onUse(cid, item, frompos, item2, topos)
if (item.itemid == 1945) then -- Opening door, switch flipped to left...