@setdest()

The @setdest() function changes the destination of an exit. It takes two
arguments: the dbref of the exit to redirect and where to point the exit.
The exit must be owned by the program's owner. The new destination must
be either a room or the string "home" or "nowhere". If a room, the room
must be owned by the program's owner or set linkok.

Note: Since the order of execution for an exit is success, move player,
drop, setting the destination of %! in the success field  can be used
to move the player to the new destination, and / or the drop field can
be used to change the destination but move the player to the previous
one.

Usage:
@setdest("%!", "14")
@setdest("123", "nowhere")
@setdest("789", "-2")