savePos & teleportBack
Module: player_savePos.lua
What it does
Provides a two-part position checkpoint system. savePos records the player's current world coordinates (X, Y, Z) and zone name into memory, then announces the saved position in player chat and the server log. teleportBack instantly moves the player back to those saved coordinates. If no position has been saved yet, the player is notified and nothing happens.
Trigger type
savePos
Parameters
| Parameter | Type | Default | Valid Values | Description |
|---|---|---|---|---|
| Neither module takes any parameters. Both operate purely on current player state or the internally saved position. | ||||
The saved position persists for the lifetime of the game session but is not written to disk — it will be lost on reload.
Examples
Save the player's current position
{ type="savePos" }
Teleport back to the last saved position
{ type="teleportBack" }
Pair them in a sequence: save, do something, come back
{ type="savePos" } { type="moveTo", location="Louisville" } { type="teleportBack" }