void main() { // Remove some gold from the player object oPC = GetLastSpeaker(); object oTarget = GetWaypointByTag("HeijaDock"); //or whatever the tag is for your destination waypoint AssignCommand(oPC, JumpToObject(oTarget)); }