Sometimes you want to lure an NPC out of a level without making it hostile. The advice I heard for these cases is to ":s"wap positions to get the NPC where you want. However, this turns out to be a little counterproductive because it requires you to first walk into a square where you block the path into the desired direction. I find it more effective to use the "pathblocking" method. I will try to explain what I mean now. Suppose we want to lure Tywat Pyre out of Terinyo:
.......................
....................
....................
....t...............
.....@.............. TERINYO
....................
....................
....................
.
.
.
Then the way I would do it is to block his path into the least desired direction, as in the picture. This maximizes the chance he moves toward either the top row or the leftmost column. There is of course still a chance he walks into a wrong direction (right or down), but that chance is now minimized. As soon as Tywat Pyre moves, block his path into the least desired direction again.
Using this method he will usually quickly end up on either the top or the leftmost column and he can be lured out of Terinyo.