local beforePos = {x = 738, y = 700, z = 7},
local afterPos = {x = 743, y = 696, z = 7}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 1945 and item.actionid == 1234567 then
doTransformItem(item.uid,1946, 1)
doTeleportThing(cid, afterPos)...