function onUse(cid, item, frompos, item2, topos)
local switchUniqueID = 13001
local switchID = 1945
local switch2ID = 1946
local bridge = {x=727, y=544, z=7, stackpos=0}
local bridgs = {x=727, y=545, z=7, stackpos=0}
local brids = getThingfromPos(bridge)
local bride = getThingfromPos(bridgs)
if item.uid == switchUniqueID and item.itemid == switchID and brids.itemid == 448 and bride.itemid == 448 then
doRemoveItem(brids.uid,1)
doRemoveItem(bride.uid,1)
doTransformItem(item.uid, 1946)
elseif item.uid == switchUniqueID and item.itemid == switch2ID then
doCreateItem(448, bridge)
doCreateItem(448, bridgs)
doTransformItem(item.uid, 1945)
else doPlayerSendCancel(cid,"Your not that strong man.")
end
return 1
end