/// <summary> /// Teleports to a location /// </summary> /// <param name="location">The world location</param> public void MoveToLocation(FluidPoint location) { if (location == null) { return; } this.MoveToLocation(location.X, location.Y); }
/// <summary> /// Teleports a player to a location /// </summary> /// <param name="player">The player</param> /// <param name="location">The location</param> public void TeleportPlayer(WorldPlayer player, FluidPoint location) { if (player == null) { m_Client.Log.Add(FluidLogCategory.Suggestion, "Check if your player is null before attempting to use it."); return; } this.SendMessage("say", string.Format("/teleport {0} {1} {2}", player.Username, location.X, location.Y)); }