teleport
A helper function to teleport the NPC to a new coordinate. This will furthermore mark the movement type as teleport, meaning no matter what other coordinate changes are applied, as teleport has the highest priority, teleportation will be how it is rendered on the client's end.
Parameters
the new height level of the NPC
the new absolute x coordinate of the NPC
the new absolute z coordinate of the NPC
whether to "jump" the NPC to the new coordinate, or to treat it as a regular walk/run type movement. While this should almost always be true, there are certain NPCs, such as Sarachnis in OldSchool, that utilize teleporting without jumping. This effectively makes the NPC appear as it is walking towards the destination. If the NPC falls visually behind, the client will begin increasing its movement speed, to a maximum of run speed, until it has caught up visually.