示例#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());
            }
        }
示例#2
0
 public static Uri ToUri(this HHotel hotel, string subdomain = "www")
 {
     return(new Uri($"https://{subdomain}.habbo.{hotel.ToDomain()}"));
 }
示例#3
0
文件: SKore.cs 项目: xnumad/Tanji
        /// <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()}");
        }
示例#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());
        }
示例#5
0
 public static string ToUrl(this HHotel hotel, bool https)
 {
     return((https ? "https://www.Habbo." : "http://www.Habbo.") + hotel.ToDomain());
 }
示例#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)));
 }
示例#7
0
文件: TM.cs 项目: lSergi/TanjiMimic
 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());
     }
 }