Try this, no idea if it will work, because it wasn't tested.
function onUse(cid, item, frompos, item2, topos)
if item.uid == 1964 then
local kasaPos = {x=1035, y=1004, z=7, stackpos=3}
local getKasa = getThingfromPos(kasaPos)
local teleportTo = {x=1088, y=943, z=9}...