juz sobie poradzilem tutaj daje jak by ktos potrzebował
function onUse(cid, item, frompos, item2, topos)

end1pos = {x=2330, y=2210, z=2, stackpos=255}
ppl1pos = {x=2327, y=2212, z=2, stackpos=253}
ppl1 = getThingfromPos(ppl1pos)
item1pos = {x=2326, y=2211, z=2, stackpos=255}
item1 = getThingfromPos(item1pos)


if item.uid == 9997 and item.itemid == 1945 and item1.itemid == 6104 and ppl1.itemid == 1 then

doRemoveItem(item1.uid,1)
doSendMagicEffect(item1pos,13)

doTeleportThing(ppl1.uid,end1pos)
doSendMagicEffect(ppl1pos,10)
doSendMagicEffect(end1pos,10)
doTransformItem(item.uid,item.itemid+1)

elseif item.uid == 9997 and item.itemid == 1946 then
doTransformItem(item.uid,item.itemid-1)
else
return 0
end

return 1

end
end1pos - miejsce do ktorego prze teleportuje cie
ppl1pos - miejsce w którym musi stac gracz
item1pos - miejsce w ktorym bedzie leżał item

a to do actions.xml

<action uniqueid="9997" script="other/dzwignia1.lua"/>
tam gdzie 9997 to unique id dzwigni jakie wpisaliscie