void main() { // Remove some gold from the player object oPC = GetLastUsedBy(); object oTarget = GetWaypointByTag("IA_LEAVE"); AssignCommand(oPC, JumpToObject(oTarget)); }