local unique = 1111 --Unique ID of the Lever
local newpos = {x=32351, y=32228, z=4} --Player's new position
function onUse(cid, item, frompos, item2, topos)
item1pos = {x=826, y=1088, z=7, stackpos=1} --Item Position
getitem1 = getThingfromPos(item1pos)
if item.uid == unique and item.itemid == 1945 and getpiece1.itemid == 2160 then
doRemoveItem(getitem1.uid,1)
doSendMagicEffect(item1pos,23)
doSendMagicEffect(getPlayerPosition(cid), 2)
doTeleportThing(cid,newpos)
doSendMagicEffect(newpos,10)
else
doPlayerSendTextMessage(cid,22,"You have to put the 10cc on the right Place.")
end
return 1
end