local FROM_POS = {x=11, y=22, y=33}
local TO_POS = {x=44, y=55, y=66}
---
local relocated = FALSE
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 1945 and relocated == FALSE then
doTransformItem(item.uid, 1946)
doRelocate(FROM_POS, TO_POS)
relocated = TRUE
elseif relocated == TRUE
doPlayerSendCancel(cid, 'Item was already teleported')
else
doTransformItem(item.uid, 1945)
end
end