If you leave the codes like this youll get 2 magic effects on the same place.
function onUse(cid, item, fromPosition, itemEx, toPosition)
local pos = {x=123, y=112, z=7}
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_GIFT_WRAPS)
doTeleportThing(cid, pos, TRUE)...