Beispiel #1
0
        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());
            }
        }
Beispiel #2
0
 public static Uri ToUri(this HHotel hotel, string subdomain = "www")
 {
     return(new Uri($"https://{subdomain}.habbo.{hotel.ToDomain()}"));
 }
Beispiel #3
0
        /// <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()}");
        }
Beispiel #4
0
        /// <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());
        }
Beispiel #5
0
 public static string ToUrl(this HHotel hotel, bool https)
 {
     return((https ? "https://www.Habbo." : "http://www.Habbo.") + hotel.ToDomain());
 }
Beispiel #6
0
 public static string GetGameHost(this HHotel hotel)
 {
     return(string.Format("game-{0}.habbo.com", hotel == HHotel.Com ? "us" : hotel.ToDomain().Replace("com.", string.Empty)));
 }
Beispiel #7
0
 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());
     }
 }