local gates = {}
gates[11536] = {fromPos = {x=631,y=667,z=5,stackpos=1}, toPos = {x=634,y=668,z=5}, tp_x = nil, tp_y = 669, itemid = 9485}
function onUse(cid, item)
local gate = gates[item.uid]
if(gate) then
local gateTileItem = getThingFromPos(gate.fromPos).itemid
if(gateTileItem...