public static void MimicOtherPlayer(this Extension E, string PlayerName, HHotel Hotel) { try { if (!SKore.CheckPlayerName(PlayerName, Hotel)) { E.ChangeClothes(PlayerName, Hotel); E.ChangeMotto(PlayerName, Hotel); } else { MessageBox.Show(string.Format("Sorry the player '{0}' could not be found on {1}", PlayerName, Hotel.ToDomain()), "Error"); } } catch (Exception e) { MessageBox.Show(e.ToString()); } }
public static Uri ToUri(this HHotel hotel, string subdomain = "www") { return(new Uri($"https://{subdomain}.habbo.{hotel.ToDomain()}")); }
/// <summary> /// Returns the full URL representation of the specified <seealso cref="HHotel"/>. /// </summary> /// <param name="hotel">The <seealso cref="HHotel"/> you wish to retrieve the full URL from.</param> /// <returns></returns> public static string ToUrl(this HHotel hotel, bool isHttps) { string protocol = (isHttps ? "https" : "http"); return($"{protocol}://www.habbo.{hotel.ToDomain()}"); }
/// <summary> /// Returns the full URL representation of the specified <seealso cref="HHotel"/>. /// </summary> /// <param name="hotel">The <seealso cref="HHotel"/> you wish to retrieve the full URL from.</param> /// <returns></returns> public static string ToUrl(this HHotel hotel) { const string HotelUrlFormat = "https://www.Habbo."; return(HotelUrlFormat + hotel.ToDomain()); }
public static string ToUrl(this HHotel hotel, bool https) { return((https ? "https://www.Habbo." : "http://www.Habbo.") + hotel.ToDomain()); }
public static string GetGameHost(this HHotel hotel) { return(string.Format("game-{0}.habbo.com", hotel == HHotel.Com ? "us" : hotel.ToDomain().Replace("com.", string.Empty))); }