Ejemplo n.º 1
0
        public static void TeleportThisPlayer(string location, int x, int y)
        {
            //TODO: throw exception to be caught by logging higher up
            if (String.IsNullOrWhiteSpace(location))
            {
                return;
            }

            ConsoleCommands.RunCommand(ConsoleCommands.BuildWarpCommand(location, x, y));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Teleports the local player to specific coordinates of a location using the warp console command. May have unexepected results if used on a remote player.
        /// This method allows the original game code to flag a player as waiting for other players when entering a festival location.
        /// </summary>
        /// <param name="location">The name of the location</param>
        /// <param name="x"></param>
        /// <param name="y"></param>
        public static void TeleportThisPlayer(Location location, int x, int y)
        {
            //TODO: throw exception to be caught by logging higher up
            if (location == Location.None)
            {
                return;
            }

            ConsoleCommands.RunCommand(ConsoleCommands.BuildWarpCommand(location, x, y));
        }