public void Handle(GameClient Session, ClientMessage Event)
 {
     Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
     if (@class != null && (@class.AllowPet || @class.CheckRights(Session, true)))
     {
         uint uint_ = Event.PopWiredUInt();
         Pet class2 = Session.GetHabbo().method_23().method_4(uint_);
         if (class2 != null && !class2.PlacedInRoom)
         {
             int num = Event.PopWiredInt32();
             int num2 = Event.PopWiredInt32();
             if (@class.method_30(num, num2, 0.0, true, false))
             {
                 if (@class.Int32_2 >= LicenseTools.int_2)
                 {
                     Session.SendNotif(GoldTreeEnvironment.smethod_1("error_maxpets") + LicenseTools.int_2);
                 }
                 else
                 {
                     class2.PlacedInRoom = true;
                     class2.RoomId = @class.Id;
                     List<RandomSpeech> list = new List<RandomSpeech>();
                     List<BotResponse> list2 = new List<BotResponse>();
                     @class.method_4(new RoomBot(class2.PetId, class2.RoomId, AIType.const_0, "freeroam", class2.Name, "", class2.Look, num, num2, 0, 0, 0, 0, 0, 0, ref list, ref list2, 0), class2);
                     if (@class.CheckRights(Session, true))
                     {
                         Session.GetHabbo().method_23().method_6(class2.PetId, @class.Id);
                     }
                 }
             }
         }
     }
 }
Example #2
0
 internal void method_20(int int_0, bool bool_0)
 {
     for (int i = 0; i < this.Session.Length; i++)
     {
         GameClient @class = this.Session[i];
         if (@class != null && @class.GetHabbo() != null)
         {
             try
             {
                 long NoBug = 0;
                 NoBug += @class.GetHabbo().VipPoints;
                 NoBug += int_0;
                 if (NoBug <= 2147483647 || -2147483648 >= NoBug)
                 {
                     @class.GetHabbo().VipPoints += int_0;
                     @class.GetHabbo().method_14(false, bool_0);
                     @class.SendNotif("You just received " + int_0 + " points from staff!");
                 }
                 else
                 {
                     if (int_0 > 0)
                     {
                         @class.GetHabbo().Credits = 2147483647;
                         @class.GetHabbo().method_13(true);
                         @class.SendNotif("You just received max points from staff!");
                     }
                     else if (int_0 < 0)
                     {
                         @class.GetHabbo().Credits = -2147483648;
                         @class.GetHabbo().method_13(true);
                         @class.SendNotif("You just received max negative points from staff!");
                     }
                 }
             }
             catch
             {
             }
         }
     }
 }
Example #3
0
 internal void method_21(string string_0)
 {
     for (int i = 0; i < this.Session.Length; i++)
     {
         GameClient @class = this.Session[i];
         if (@class != null && @class.GetHabbo() != null)
         {
             try
             {
                 @class.GetHabbo().method_22().method_2(@class, string_0, true);
                 @class.SendNotif("You just received a badge from hotel staff!");
             }
             catch
             {
             }
         }
     }
 }
Example #4
0
 public void method_9(GameClient Session, Item Item, int int_0, string string_0, bool bool_0, uint uint_1)
 {
     string text = Item.Type.ToString();
     if (text != null)
     {
         if (text == "i" || text == "s")
         {
             int i = 0;
             while (i < int_0)
             {
                 uint num;
                 if (!bool_0 && uint_1 > 0u)
                 {
                     num = uint_1;
                 }
                 else
                 {
                     num = this.method_14();
                 }
                 text = Item.InteractionType.ToLower();
                 if (text == null)
                 {
                     goto IL_4CF;
                 }
                 if (!(text == "pet"))
                 {
                     if (!(text == "teleport"))
                     {
                         if (!(text == "dimmer"))
                         {
                             goto IL_4CF;
                         }
                         using (DatabaseClient @class = GoldTree.GetDatabase().GetClient())
                         {
                             @class.ExecuteQuery("INSERT INTO room_items_moodlight (item_id,enabled,current_preset,preset_one,preset_two,preset_three) VALUES ('" + num + "','0','1','#000000,255,0','#000000,255,0','#000000,255,0')");
                         }
                         Session.GetHabbo().method_23().method_11(num, Item.UInt32_0, string_0, bool_0);
                     }
                     else
                     {
                         uint num2 = this.method_14();
                         using (DatabaseClient @class = GoldTree.GetDatabase().GetClient())
                         {
                             @class.ExecuteQuery(string.Concat(new object[]
                             {
                                 "INSERT INTO tele_links (tele_one_id,tele_two_id) VALUES ('",
                                 num,
                                 "','",
                                 num2,
                                 "')"
                             }));
                             @class.ExecuteQuery(string.Concat(new object[]
                             {
                                 "INSERT INTO tele_links (tele_one_id,tele_two_id) VALUES ('",
                                 num2,
                                 "','",
                                 num,
                                 "')"
                             }));
                         }
                         Session.GetHabbo().method_23().method_11(num2, Item.UInt32_0, "0", bool_0);
                         Session.GetHabbo().method_23().method_11(num, Item.UInt32_0, "0", bool_0);
                     }
                 }
                 else
                 {
                     string[] array = string_0.Split(new char[]
                     {
                         '\n'
                     });
                     Pet class15_ = this.method_11(Session.GetHabbo().Id, array[0], Convert.ToInt32(Item.Name.Split(new char[]
                     {
                         't'
                     })[1]), array[1], array[2]);
                     Session.GetHabbo().method_23().method_7(class15_);
                     Session.GetHabbo().method_23().method_11(num, 320u, "0", bool_0);
                 }
                 IL_4EA:
                 ServerMessage Message = new ServerMessage(832u);
                 Message.AppendInt32(1);
                 if (Item.InteractionType.ToLower() == "pet")
                 {
                     Message.AppendInt32(3);
                     Session.GetHabbo().NewPetsBuyed++;
                 }
                 else
                 {
                     if (Item.Type.ToString() == "i")
                     {
                         Message.AppendInt32(2);
                     }
                     else
                     {
                         Message.AppendInt32(1);
                     }
                 }
                 Message.AppendInt32(1);
                 Message.AppendUInt(num);
                 Session.SendMessage(Message);
                 i++;
                 Session.GetHabbo().CheckPetCountAchievements();
                 continue;
                 IL_4CF:
                 Session.GetHabbo().method_23().method_11(num, Item.UInt32_0, string_0, bool_0);
                 goto IL_4EA;
             }
             Session.GetHabbo().method_23().method_9(false);
             return;
         }
         if (text == "e")
         {
             for (int i = 0; i < int_0; i++)
             {
                 Session.GetHabbo().method_24().method_0(Item.Sprite, 3600);
             }
             return;
         }
         if (text == "h")
         {
             for (int i = 0; i < int_0; i++)
             {
                 Session.GetHabbo().GetSubscriptionManager().method_3("habbo_club", 2678400);
                 Session.GetHabbo().CheckHCAchievements();
             }
             ServerMessage Message2 = new ServerMessage(7u);
             Message2.AppendStringWithBreak("habbo_club");
             if (Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club"))
             {
                 double num3 = (double)Session.GetHabbo().GetSubscriptionManager().method_1("habbo_club").Int32_0;
                 double num4 = num3 - GoldTree.GetUnixTimestamp();
                 int num5 = (int)Math.Ceiling(num4 / 86400.0);
                 int num6 = num5 / 31;
                 if (num6 >= 1)
                 {
                     num6--;
                 }
                 Message2.AppendInt32(num5 - num6 * 31);
                 Message2.AppendBoolean(true);
                 Message2.AppendInt32(num6);
             }
             else
             {
                 for (int i = 0; i < 3; i++)
                 {
                     Message2.AppendInt32(0);
                 }
             }
             Session.SendMessage(Message2);
             ServerMessage Message3 = new ServerMessage(2u);
             if (Session.GetHabbo().Vip || LicenseTools.Boolean_3)
             {
                 Message3.AppendInt32(2);
             }
             else
             {
                 if (Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club"))
                 {
                     Message3.AppendInt32(1);
                 }
                 else
                 {
                     Message3.AppendInt32(0);
                 }
             }
             if (Session.GetHabbo().HasFuse("acc_anyroomowner"))
             {
                 Message3.AppendInt32(7);
             }
             else
             {
                 if (Session.GetHabbo().HasFuse("acc_anyroomrights"))
                 {
                     Message3.AppendInt32(5);
                 }
                 else
                 {
                     if (Session.GetHabbo().HasFuse("acc_supporttool"))
                     {
                         Message3.AppendInt32(4);
                     }
                     else
                     {
                         if (Session.GetHabbo().Vip || LicenseTools.Boolean_3 || Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club"))
                         {
                             Message3.AppendInt32(2);
                         }
                         else
                         {
                             Message3.AppendInt32(0);
                         }
                     }
                 }
             }
             Session.SendMessage(Message3);
             return;
         }
     }
     Session.SendNotif("Something went wrong! The item type could not be processed. Please do not try to buy this item anymore, instead inform support as soon as possible.");
 }
Example #5
0
 public bool method_6(GameClient Session, int int_0, uint uint_1, string string_0, bool bool_0, string string_1, string string_2, bool bool_1)
 {
     CatalogPage @class = this.method_5(int_0);
     if (@class == null || [email protected]_1 || [email protected]_0 || @class.uint_0 > Session.GetHabbo().Rank)
     {
         return false;
     }
     else
     {
         if (@class.bool_2 && (!Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club") || !Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_vip")))
         {
             return false;
         }
         else
         {
             CatalogItem class2 = @class.method_1(uint_1);
             if (class2 == null)
             {
                 return false;
             }
             else
             {
                 uint num = 0u;
                 if (bool_0)
                 {
                     if (!class2.method_0().AllowGift)
                     {
                         return false;
                     }
                     if (Session.GetHabbo().method_4() > 0)
                     {
                         TimeSpan timeSpan = DateTime.Now - Session.GetHabbo().dateTime_0;
                         if (timeSpan.Seconds > 4)
                         {
                             Session.GetHabbo().int_23 = 0;
                         }
                         if (timeSpan.Seconds < 4 && Session.GetHabbo().int_23 > 3)
                         {
                             Session.GetHabbo().bool_15 = true;
                             return false;
                         }
                         if (Session.GetHabbo().bool_15 && timeSpan.Seconds < Session.GetHabbo().method_4())
                         {
                             return false;
                         }
                         Session.GetHabbo().bool_15 = false;
                         Session.GetHabbo().dateTime_0 = DateTime.Now;
                         Session.GetHabbo().int_23++;
                     }
                     using (DatabaseClient class3 = GoldTree.GetDatabase().GetClient())
                     {
                         class3.AddParamWithValue("gift_user", string_1);
                         try
                         {
                             num = (uint)class3.ReadDataRow("SELECT Id FROM users WHERE username = @gift_user LIMIT 1")[0];
                         }
                         catch (Exception)
                         {
                         }
                     }
                     if (num == 0u)
                     {
                         ServerMessage Message = new ServerMessage(76u);
                         Message.AppendBoolean(true);
                         Message.AppendStringWithBreak(string_1);
                         Session.SendMessage(Message);
                         return false;
                     }
                 }
                 bool flag = false;
                 bool flag2 = false;
                 int int_ = class2.int_2;
                 if (Session.GetHabbo().Credits < class2.int_0)
                 {
                     flag = true;
                 }
                 if ((int_ == 0 && Session.GetHabbo().ActivityPoints < class2.int_1) || (int_ > 0 && Session.GetHabbo().VipPoints < class2.int_1))
                 {
                     flag2 = true;
                 }
                 if (flag || flag2)
                 {
                     ServerMessage Message2 = new ServerMessage(68u);
                     Message2.AppendBoolean(flag);
                     Message2.AppendBoolean(flag2);
                     Session.SendMessage(Message2);
                     return false;
                 }
                 else
                 {
                     if (bool_0 && class2.method_0().Type == 'e')
                     {
                         Session.SendNotif("You can not send this item as a gift.");
                         return false;
                     }
                     else
                     {
                         string text = class2.method_0().InteractionType.ToLower();
                         if (text != null)
                         {
                             if (!(text == "pet"))
                             {
                                 if (text == "roomeffect")
                                 {
                                     double num2 = 0.0;
                                     try
                                     {
                                         num2 = double.Parse(string_0);
                                     }
                                     catch (Exception)
                                     {
                                     }
                                     string_0 = num2.ToString().Replace(',', '.');
                                     goto IL_4FC;
                                 }
                                 if (text == "postit")
                                 {
                                     string_0 = "FFFF33";
                                     goto IL_4FC;
                                 }
                                 if (text == "dimmer")
                                 {
                                     string_0 = "1,1,1,#000000,255";
                                     goto IL_4FC;
                                 }
                                 if (text == "trophy")
                                 {
                                     string_0 = string.Concat(new object[]
                                     {
                                         Session.GetHabbo().Username,
                                         Convert.ToChar(9),
                                         DateTime.Now.Day,
                                         "-",
                                         DateTime.Now.Month,
                                         "-",
                                         DateTime.Now.Year,
                                         Convert.ToChar(9),
                                         ChatCommandHandler.smethod_4(GoldTree.DoFilter(string_0, true, true))
                                     });
                                     goto IL_4FC;
                                 }
                                 if (text == "musicdisc")
                                 {
                                     string_0 = class2.song_id.ToString();
                                     goto IL_4FC;
                                 }
                             }
                             else
                             {
                                 try
                                 {
                                     string[] array = string_0.Split(new char[]
                                     {
                                         '\n'
                                     });
                                     string string_3 = array[0];
                                     string text2 = array[1];
                                     string text3 = array[2];
                                     int.Parse(text2);
                                     if (!this.method_8(string_3))
                                     {
                                         return false;
                                     }
                                     if (text2.Length > 2)
                                     {
                                         return false;
                                     }
                                     if (text3.Length != 6)
                                     {
                                         return false;
                                     }
                                     goto IL_4FC;
                                 }
                                 catch (Exception)
                                 {
                                     return false;
                                 }
                             }
                         }
                         if (class2.string_0.StartsWith("disc_"))
                         {
                             string_0 = class2.string_0.Split(new char[]
                             {
                                 '_'
                             })[1];
                         }
                         else
                         {
                             string_0 = "";
                         }
                         IL_4FC:
                         if (class2.int_0 > 0)
                         {
                             Session.GetHabbo().Credits -= class2.int_0;
                             Session.GetHabbo().method_13(true);
                         }
                         if (class2.int_1 > 0 && int_ == 0)
                         {
                             Session.GetHabbo().ActivityPoints -= class2.int_1;
                             Session.GetHabbo().method_15(true);
                         }
                         else
                         {
                             if (class2.int_1 > 0 && int_ > 0)
                             {
                                 Session.GetHabbo().VipPoints -= class2.int_1;
                                 Session.GetHabbo().method_16(0);
                                 Session.GetHabbo().method_14(false, true);
                             }
                         }
                         ServerMessage Message3 = new ServerMessage(67u);
                         Message3.AppendUInt(class2.method_0().UInt32_0);
                         Message3.AppendStringWithBreak(class2.method_0().Name);
                         Message3.AppendInt32(class2.int_0);
                         Message3.AppendInt32(class2.int_1);
                         Message3.AppendInt32(class2.int_2);
                         if (bool_1)
                         {
                             Message3.AppendInt32(1);
                         }
                         else
                         {
                             Message3.AppendInt32(0);
                         }
                         Message3.AppendStringWithBreak(class2.method_0().Type.ToString());
                         Message3.AppendInt32(class2.method_0().Sprite);
                         Message3.AppendStringWithBreak("");
                         Message3.AppendInt32(1);
                         Message3.AppendInt32(-1);
                         Message3.AppendStringWithBreak("");
                         Session.SendMessage(Message3);
                         if (bool_0)
                         {
                             uint num3 = this.method_14();
                             Item class4 = this.method_10();
                             using (DatabaseClient class3 = GoldTree.GetDatabase().GetClient())
                             {
                                 class3.AddParamWithValue("gift_message", "!" + ChatCommandHandler.smethod_4(GoldTree.DoFilter(string_2, true, true)) + " - " + Session.GetHabbo().Username);
                                 class3.AddParamWithValue("extra_data", string_0);
                                 class3.ExecuteQuery(string.Concat(new object[]
                                 {
                                     "INSERT INTO items (Id,user_id,base_item,extra_data,wall_pos) VALUES ('",
                                     num3,
                                     "','",
                                     num,
                                     "','",
                                     class4.UInt32_0,
                                     "',@gift_message,'')"
                                 }));
                                 class3.ExecuteQuery(string.Concat(new object[]
                                 {
                                     "INSERT INTO user_presents (item_id,base_id,amount,extra_data) VALUES ('",
                                     num3,
                                     "','",
                                     class2.method_0().UInt32_0,
                                     "','",
                                     class2.int_3,
                                     "',@extra_data)"
                                 }));
                             }
                             GameClient class5 = GoldTree.GetGame().GetClientManager().method_2(num);
                             if (class5 != null)
                             {
                                 class5.SendNotif("You have received a gift! Check your inventory.");
                                 class5.GetHabbo().method_23().method_9(true);
                                 class5.GetHabbo().GiftsReceived++;
                                 class5.GetHabbo().CheckGiftReceivedAchievements();
                             }
                             Session.GetHabbo().GiftsGiven++;
                             Session.GetHabbo().CheckGiftGivenAchievements();
                             Session.SendNotif("Gift sent successfully!");
                             return true;
                         }
                         else
                         {
                             this.method_9(Session, class2.method_0(), class2.int_3, string_0, true, 0u);
                             if (class2.uint_2 > 0u)
                             {
                                 GoldTree.GetGame().GetAchievementManager().addAchievement(Session, class2.uint_2, 1);
                             }
                             if (!string.IsNullOrEmpty(class2.BadgeID))
                             {
                                 Session.GetHabbo().method_22().method_2(Session, class2.BadgeID, true);
                             }
                             return true;
                         }
                     }
                 }
             }
         }
     }
 }
        public void Handle(GameClient Session, ClientMessage Event)
        {
            Room Room = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);

            int AlreadyStaffPicks;
            AlreadyStaffPicks = 0;

            using (DatabaseClient dbClient = GoldTree.GetDatabase().GetClient())
            {
                if (dbClient.ReadDataRow("SELECT * FROM navigator_publics WHERE room_id = '" + Room.Id + "'") != null)
                {
                    AlreadyStaffPicks = 1;
                }
            }

            if (AlreadyStaffPicks == 0)
            {
                string Owner;
                int OwnerID;
                using (DatabaseClient dbClient = GoldTree.GetDatabase().GetClient())
                {
                    Owner = dbClient.ReadString("SELECT owner FROM rooms WHERE id = '" + Room.Id + "'");
                    dbClient.ExecuteQuery("INSERT INTO `navigator_publics` (`bannertype`, `caption`, `room_id`, `category_parent_id`, `image`, `image_type`) VALUES ('1', '" + Room.Name + "', '" + Room.Id + "', '" + LicenseTools.int_16 + "', 'officialrooms_hq/staffpickfolder.gif', 'external')");
                }

                GameClient RoomOwner = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Owner);
                if (RoomOwner != null)
                {
                    RoomOwner.GetHabbo().StaffPicks++;
                    RoomOwner.GetHabbo().CheckStaffPicksAchievement();
                }
                else
                {
                    using (DatabaseClient dbClient = GoldTree.GetDatabase().GetClient())
                    {
                        OwnerID = dbClient.ReadInt32("SELECT id FROM users WHERE username = '******'");
                        dbClient.ExecuteQuery("UPDATE user_stats SET staff_picks = staff_picks + 1 WHERE id = '" + OwnerID + "' LIMIT 1");
                    }
                }

                using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient())
                {
                    GoldTree.GetGame().GetNavigator().method_0(class5);
                }

                Session.SendNotif("Room added to Staff Picks successfully.");

            }
            else
            {
                using (DatabaseClient dbClient = GoldTree.GetDatabase().GetClient())
                {

                    dbClient.ExecuteQuery("DELETE FROM `navigator_publics` WHERE (`room_id`='" + Room.Id + "')");
                }

                using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient())
                {
                    GoldTree.GetGame().GetNavigator().method_0(class5);
                }

                Session.SendNotif("Room removed from Staff Picks successfully.");
            }
        }
        public static bool smethod_5(GameClient Session, string Input)
        {
            string[] Params = Input.Split(new char[]
            {
                ' '
            });
            GameClient TargetClient = null;
            Room class2 = Session.GetHabbo().CurrentRoom;
            if (!GoldTree.GetGame().GetRoleManager().dictionary_4.ContainsKey(Params[0]))
            {
                return false;
            }
            else
            {
                try
                {
                    int num;
                    if (class2 != null && class2.CheckRights(Session, true))
                    {
                        num = GoldTree.GetGame().GetRoleManager().dictionary_4[Params[0]];
                        if (num <= 33)
                        {
                            if (num == 8)
                            {
                                class2 = Session.GetHabbo().CurrentRoom;
                                if (class2.bool_5)
                                {
                                    class2.bool_5 = false;
                                }
                                else
                                {
                                    class2.bool_5 = true;
                                }
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            if (num == 33)
                            {
                                class2 = Session.GetHabbo().CurrentRoom;
                                if (class2 != null && class2.CheckRights(Session, true))
                                {
                                    List<RoomItem> list = class2.method_24(Session);
                                    Session.GetHabbo().method_23().method_17(list);
                                    Session.GetHabbo().method_23().method_9(true);
                                    GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input + " " + Session.GetHabbo().CurrentRoomId);
                                    return true;
                                }
                                return false;
                            }
                        }
                        else
                        {
                            if (num == 46)
                            {
                                class2 = Session.GetHabbo().CurrentRoom;
                                try
                                {
                                    int num2 = int.Parse(Params[1]);
                                    if (Session.GetHabbo().Rank >= 6u)
                                    {
                                        class2.UsersMax = num2;
                                    }
                                    else
                                    {
                                        if (num2 > 100 || num2 < 5)
                                        {
                                            Session.SendNotif("ERROR: Use a number between 5 and 100");
                                        }
                                        else
                                        {
                                            class2.UsersMax = num2;
                                        }
                                    }
                                }
                                catch
                                {
                                    return false;
                                }
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            if (num == 53)
                            {
                                class2 = Session.GetHabbo().CurrentRoom;
                                GoldTree.GetGame().GetRoomManager().method_16(class2);
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                        }
                    }
                    switch (GoldTree.GetGame().GetRoleManager().dictionary_4[Params[0]])
                    {
                        case 2:
                            {
                                if (!Session.GetHabbo().HasFuse("cmd_alert"))
                                {
                                    return false;
                                }
                                string TargetUser = Params[1];
                                TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(TargetUser);
                                if (TargetClient == null)
                                {
                                    Session.SendNotif("Could not find user: "******"cmd_award"))
                                {
                                    return false;
                                }
                                string text = Params[1];
                                TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text);
                                if (TargetClient == null)
                                {
                                    Session.SendNotif("Could not find user: "******"cmd_ban"))
                                {
                                    return false;
                                }
                                TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]);
                                if (TargetClient == null)
                                {
                                    Session.SendNotif("User not found.");
                                    GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                    return true;
                                }
                                if (TargetClient.GetHabbo().Rank >= Session.GetHabbo().Rank && !Session.GetHabbo().isJuniori)
                                {
                                    Session.SendNotif("You are not allowed to ban that user.");
                                    GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                    return true;
                                }

                                string banlenght = "0";
                                try
                                {
                                    banlenght = Params[2];
                                }
                                catch (FormatException)
                                {
                                    Console.ForegroundColor = ConsoleColor.Red;
                                    Console.WriteLine("OOPS! Something went wrong when trying format ban length! Report this and your date format!");
                                    Console.ForegroundColor = ConsoleColor.Gray;
                                }

                                banlenght = banlenght.Replace("m", "");
                                banlenght = banlenght.Replace("h", "");
                                banlenght = banlenght.Replace("d", "");

                                Console.WriteLine(banlenght);
                                int num3 = 0;

                                try
                                {
                                    num3 = int.Parse(banlenght);
                                }
                                catch (FormatException)
                                {
                                    Console.ForegroundColor = ConsoleColor.Red;
                                    Console.WriteLine("OOPS! Something went wrong when trying format ban length! Report this and your date format!");
                                    Console.ForegroundColor = ConsoleColor.Gray;
                                }

                                if (Params[2].Contains("m"))
                                {
                                    num3 *= 60;
                                }

                                if (Params[2].Contains("h"))
                                {
                                    num3 *= 3600;
                                }

                                if (Params[2].Contains("d"))
                                {
                                    num3 *= 86400;
                                }

                                Console.WriteLine(num3);

                                int laskettupaivia = 0;
                                int laskettutunteja = 0;
                                int laskettuminuutteja = 0;
                                int laskettavaa = num3;

                                for (int i = 0; laskettavaa >= 86400; i++)
                                {
                                    laskettupaivia += 1;
                                    laskettavaa -= 86400;
                                }
                                for (int i = 0; laskettavaa >= 3600; i++)
                                {
                                    laskettutunteja += 1;
                                    laskettavaa -= 3600;
                                }
                                for (int i = 0; laskettavaa >= 60; i++)
                                {
                                    laskettuminuutteja += 1;
                                    laskettavaa -= 60;
                                }
                                if (num3 < 600)
                                {
                                    Session.SendNotif("Ban time is in seconds and must be at least 600 seconds (ten minutes). For more specific preset ban times, use the mod tool.");
                                    GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                    return true;
                                }
                                Session.SendNotif("You banned user: "******" Ban lenght is: " + laskettupaivia + " day " + laskettutunteja + "  hour " + laskettuminuutteja + " minute " + laskettavaa + " second");
                                GoldTree.GetGame().GetBanManager().method_2(TargetClient, Session.GetHabbo().Username, (double)num3, ChatCommandHandler.MergeParams(Params, 3), false);
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                        case 6:
                            {
                                if (!Session.GetHabbo().HasFuse("cmd_coins"))
                                {
                                    return false;
                                }
                                TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]);
                                if (TargetClient == null)
                                {
                                    Session.SendNotif("User could not be found.");
                                    GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                    return true;
                                }
                                int num4;
                                if (int.TryParse(Params[2], out num4))
                                {
                                    long NoBug = 0;
                                    NoBug += TargetClient.GetHabbo().Credits;
                                    NoBug += num4;
                                    Console.WriteLine(NoBug);
                                    if (NoBug <= 2147483647 || -2147483648 >= NoBug)
                                    {
                                        TargetClient.GetHabbo().Credits = TargetClient.GetHabbo().Credits + num4;
                                        TargetClient.GetHabbo().method_13(true);
                                        TargetClient.SendNotif(Session.GetHabbo().Username + " has awarded you " + num4.ToString() + " credits!");
                                        Session.SendNotif("Credit balance updated successfully.");
                                        GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                    }
                                    else
                                    {
                                        if (num4 > 0)
                                        {
                                            TargetClient.GetHabbo().Credits = 2147483647;
                                            TargetClient.GetHabbo().method_13(true);
                                            TargetClient.SendNotif("You just received max credits from staff!");
                                        }
                                        else if (num4 < 0)
                                        {
                                            TargetClient.GetHabbo().Credits = -2147483648;
                                            TargetClient.GetHabbo().method_13(true);
                                            TargetClient.SendNotif("You just received max negative credits from staff!");
                                        }
                                    }
                                    return true;
                                }
                                Session.SendNotif("Please send a valid amount of credits.");
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                        case 7:
                            {
                                if (!Session.GetHabbo().HasFuse("cmd_coords"))
                                {
                                    return false;
                                }
                                class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                if (class2 == null)
                                {
                                    return false;
                                }
                                RoomUser class3 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
                                if (class3 == null)
                                {
                                    return false;
                                }
                                Session.SendNotif(string.Concat(new object[]
                        {
                            "X: ",
                            class3.int_3,
                            " - Y: ",
                            class3.int_4,
                            " - Z: ",
                            class3.double_0,
                            " - Rot: ",
                            class3.int_8,
                            ", sqState: ",
                            class2.Byte_0[class3.int_3, class3.int_4].ToString()
                        }));
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                        case 11:
                            if (Session.GetHabbo().HasFuse("cmd_enable"))
                            {
                                int int_ = int.Parse(Params[1]);
                                Session.GetHabbo().method_24().method_2(int_, true);
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 14:
                            if (Session.GetHabbo().HasFuse("cmd_freeze"))
                            {
                                RoomUser class4 = Session.GetHabbo().CurrentRoom.method_56(Params[1]);
                                if (class4 != null)
                                {
                                    class4.bool_5 = !class4.bool_5;
                                }
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 15:
                            if (Session.GetHabbo().HasFuse("cmd_givebadge"))
                            {
                                TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]);
                                if (TargetClient != null)
                                {
                                    TargetClient.GetHabbo().method_22().method_2(TargetClient, GoldTree.FilterString(Params[2]), true);
                                }
                                else
                                {
                                    Session.SendNotif("User: "******" could not be found in the database.\rPlease try your request again.");
                                }
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 16:
                            if (Session.GetHabbo().HasFuse("cmd_globalcredits"))
                            {
                                try
                                {
                                    int num5 = int.Parse(Params[1]);
                                    GoldTree.GetGame().GetClientManager().method_18(num5);
                                    using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient())
                                    {
                                        class5.ExecuteQuery("UPDATE users SET credits = credits + " + num5);
                                    }
                                }
                                catch
                                {
                                    Session.SendNotif("Input must be a number");
                                }
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 17:
                            if (Session.GetHabbo().HasFuse("cmd_globalpixels"))
                            {
                                try
                                {
                                    int num5 = int.Parse(Params[1]);
                                    GoldTree.GetGame().GetClientManager().method_19(num5, false);
                                    using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient())
                                    {
                                        class5.ExecuteQuery("UPDATE users SET activity_points = activity_points + " + num5);
                                    }
                                }
                                catch
                                {
                                    Session.SendNotif("Input must be a number");
                                }
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 18:
                            if (Session.GetHabbo().HasFuse("cmd_globalpoints"))
                            {
                                try
                                {
                                    int num5 = int.Parse(Params[1]);
                                    GoldTree.GetGame().GetClientManager().method_20(num5, false);
                                    using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient())
                                    {
                                        class5.ExecuteQuery("UPDATE users SET vip_points = vip_points + " + num5);
                                    }
                                }
                                catch
                                {
                                    Session.SendNotif("Input must be a number");
                                }
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 19:
                            if (Session.GetHabbo().HasFuse("cmd_hal"))
                            {
                                string text2 = Params[1];
                                Input = Input.Substring(4).Replace(text2, "");
                                string text3 = Input.Substring(1);
                                ServerMessage Message = new ServerMessage(161u);
                                Message.AppendStringWithBreak(string.Concat(new string[]
                            {
                                GoldTreeEnvironment.smethod_1("cmd_hal_title"),
                                "\r\n",
                                text3,
                                "\r\n-",
                                Session.GetHabbo().Username
                            }));
                                Message.AppendStringWithBreak(text2);
                                GoldTree.GetGame().GetClientManager().method_14(Message);
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 20:
                            if (Session.GetHabbo().HasFuse("cmd_ha"))
                            {
                                string str = Input.Substring(3);
                                ServerMessage Message2 = new ServerMessage(808u);
                                Message2.AppendStringWithBreak(GoldTreeEnvironment.smethod_1("cmd_ha_title"));
                                Message2.AppendStringWithBreak(str + "\r\n- " + Session.GetHabbo().Username);
                                ServerMessage Message3 = new ServerMessage(161u);
                                Message3.AppendStringWithBreak(str + "\r\n- " + Session.GetHabbo().Username);
                                GoldTree.GetGame().GetClientManager().method_15(Message2, Message3);
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 21:
                            if (Session.GetHabbo().HasFuse("cmd_invisible"))
                            {
                                Session.GetHabbo().isVisible = !Session.GetHabbo().isVisible;
                                Session.SendNotif("You are now " + (Session.GetHabbo().isVisible ? "visible" : "invisible") + "\nTo apply the changes reload the room ;D");
                                return true;
                            }
                            return false;
                        case 22:
                            if (!Session.GetHabbo().HasFuse("cmd_ipban"))
                            {
                                return false;
                            }
                            TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]);
                            if (TargetClient == null)
                            {
                                Session.SendNotif("User not found.");
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            if (TargetClient.GetHabbo().Rank >= Session.GetHabbo().Rank && !Session.GetHabbo().isJuniori)
                            {
                                Session.SendNotif("You are not allowed to ban that user.");
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            GoldTree.GetGame().GetBanManager().method_2(TargetClient, Session.GetHabbo().Username, 360000000.0, ChatCommandHandler.MergeParams(Params, 2), true);
                            GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                            return true;
                        case 23:
                            {
                                if (!Session.GetHabbo().HasFuse("cmd_kick"))
                                {
                                    return false;
                                }
                                string text = Params[1];
                                TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text);
                                if (TargetClient == null)
                                {
                                    Session.SendNotif("Could not find user: "******"You are not allowed to kick that user.");
                                    GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                    return true;
                                }
                                if (TargetClient.GetHabbo().CurrentRoomId < 1u)
                                {
                                    Session.SendNotif("That user is not in a room and can not be kicked.");
                                    GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                    return true;
                                }
                                class2 = GoldTree.GetGame().GetRoomManager().GetRoom(TargetClient.GetHabbo().CurrentRoomId);
                                if (class2 == null)
                                {
                                    GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                    return true;
                                }
                                class2.method_47(TargetClient, true, false);
                                if (Params.Length > 2)
                                {
                                    TargetClient.SendNotif("A moderator has kicked you from the room for the following reason: " + ChatCommandHandler.MergeParams(Params, 2));
                                }
                                else
                                {
                                    TargetClient.SendNotif("A moderator has kicked you from the room.");
                                }
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                        case 24:
                            if (Session.GetHabbo().HasFuse("cmd_massbadge"))
                            {
                                GoldTree.GetGame().GetClientManager().method_21(Params[1]);
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 25:
                            if (Session.GetHabbo().HasFuse("cmd_masscredits"))
                            {
                                try
                                {
                                    int num5 = int.Parse(Params[1]);
                                    GoldTree.GetGame().GetClientManager().method_18(num5);
                                }
                                catch
                                {
                                    Session.SendNotif("Input must be a number");
                                }
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 26:
                            if (Session.GetHabbo().HasFuse("cmd_masspixels"))
                            {
                                try
                                {
                                    int num5 = int.Parse(Params[1]);
                                    GoldTree.GetGame().GetClientManager().method_19(num5, true);
                                }
                                catch
                                {
                                    Session.SendNotif("Input must be a number");
                                }
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 27:
                            if (Session.GetHabbo().HasFuse("cmd_masspoints"))
                            {
                                try
                                {
                                    int num5 = int.Parse(Params[1]);
                                    GoldTree.GetGame().GetClientManager().method_20(num5, true);
                                }
                                catch
                                {
                                    Session.SendNotif("Input must be a number");
                                }
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 30:
                            {
                                if (!Session.GetHabbo().HasFuse("cmd_motd"))
                                {
                                    return false;
                                }
                                string text = Params[1];
                                TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text);
                                if (TargetClient == null)
                                {
                                    Session.SendNotif("Could not find user: "******"cmd_mute"))
                                {
                                    return false;
                                }
                                string text = Params[1];
                                TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text);
                                if (TargetClient == null || TargetClient.GetHabbo() == null)
                                {
                                    Session.SendNotif("Could not find user: "******"You are not allowed to (un)mute that user.");
                                    GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                    return true;
                                }
                                TargetClient.GetHabbo().method_17();
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                        case 32:
                            {
                                if (!Session.GetHabbo().HasFuse("cmd_override"))
                                {
                                    return false;
                                }
                                class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                if (class2 == null)
                                {
                                    return false;
                                }
                                RoomUser class3 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
                                if (class3 == null)
                                {
                                    return false;
                                }
                                if (class3.bool_1)
                                {
                                    class3.bool_1 = false;
                                    Session.SendNotif("Walking override disabled.");
                                }
                                else
                                {
                                    class3.bool_1 = true;
                                    Session.SendNotif("Walking override enabled.");
                                }
                                class2.method_22();
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                        case 34:
                            {
                                if (!Session.GetHabbo().HasFuse("cmd_pixels"))
                                {
                                    return false;
                                }
                                TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]);
                                if (TargetClient == null)
                                {
                                    Session.SendNotif("User could not be found.");
                                    GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                    return true;
                                }
                                int num4;
                                if (int.TryParse(Params[2], out num4))
                                {
                                    long NoBug = 0;
                                    NoBug += TargetClient.GetHabbo().ActivityPoints;
                                    NoBug += num4;
                                    if (NoBug <= 2147483647 || -2147483648 >= NoBug)
                                    {
                                        TargetClient.GetHabbo().ActivityPoints = TargetClient.GetHabbo().ActivityPoints + num4;
                                        TargetClient.GetHabbo().method_15(true);
                                        TargetClient.SendNotif(Session.GetHabbo().Username + " has awarded you " + num4.ToString() + " Pixels!");
                                        Session.SendNotif("Pixels balance updated successfully.");
                                        GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                    }
                                    else
                                    {
                                        if (num4 > 0)
                                        {
                                            TargetClient.GetHabbo().Credits = 2147483647;
                                            TargetClient.GetHabbo().method_13(true);
                                            TargetClient.SendNotif("You just received max pixels from staff!");
                                        }
                                        else if (num4 < 0)
                                        {
                                            TargetClient.GetHabbo().Credits = -2147483648;
                                            TargetClient.GetHabbo().method_13(true);
                                            TargetClient.SendNotif("You just received max negative pixels from staff!");
                                        }
                                    }
                                    return true;
                                }
                                Session.SendNotif("Please send a valid amount of pixels.");
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                        case 35:
                            {
                                if (!Session.GetHabbo().HasFuse("cmd_points"))
                                {
                                    return false;
                                }
                                TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]);
                                if (TargetClient == null)
                                {
                                    Session.SendNotif("User could not be found.");
                                    GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                    return true;
                                }
                                int num4;
                                if (int.TryParse(Params[2], out num4))
                                {
                                    long NoBug = 0;
                                    NoBug += TargetClient.GetHabbo().VipPoints;
                                    NoBug += num4;
                                    if (NoBug <= 2147483647 || -2147483648 >= NoBug)
                                    {
                                        TargetClient.GetHabbo().VipPoints = TargetClient.GetHabbo().VipPoints + num4;
                                        TargetClient.GetHabbo().method_14(false, true);
                                        TargetClient.SendNotif(Session.GetHabbo().Username + " has awarded you " + num4.ToString() + " Points!");
                                        Session.SendNotif("Points balance updated successfully.");
                                        GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                    }
                                    else
                                    {
                                        if (num4 > 0)
                                        {
                                            TargetClient.GetHabbo().Credits = 2147483647;
                                            TargetClient.GetHabbo().method_13(true);
                                            TargetClient.SendNotif("You just received max points from staff!");
                                        }
                                        else if (num4 < 0)
                                        {
                                            TargetClient.GetHabbo().Credits = -2147483648;
                                            TargetClient.GetHabbo().method_13(true);
                                            TargetClient.SendNotif("You just received max negative points from staff!");
                                        }
                                    }
                                    return true;
                                }
                                Session.SendNotif("Please send a valid amount of points.");
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                        case 39:
                            if (Session.GetHabbo().HasFuse("cmd_removebadge"))
                            {
                                TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]);
                                if (TargetClient != null)
                                {
                                    TargetClient.GetHabbo().method_22().method_6(GoldTree.FilterString(Params[2]));
                                }
                                else
                                {
                                    Session.SendNotif("User: "******" could not be found in the database.\rPlease try your request again.");
                                }
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 41:
                            {
                                if (!Session.GetHabbo().HasFuse("cmd_roomalert"))
                                {
                                    return false;
                                }
                                class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                if (class2 == null)
                                {
                                    return false;
                                }
                                string string_ = ChatCommandHandler.MergeParams(Params, 1);
                                for (int i = 0; i < class2.RoomUser_0.Length; i++)
                                {
                                    RoomUser class6 = class2.RoomUser_0[i];
                                    if (class6 != null)
                                    {
                                        class6.GetClient().SendNotif(string_);
                                    }
                                }
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                        case 42:
                            if (!Session.GetHabbo().HasFuse("cmd_roombadge"))
                            {
                                return false;
                            }
                            if (Session.GetHabbo().CurrentRoom == null)
                            {
                                return false;
                            }
                            for (int i = 0; i < Session.GetHabbo().CurrentRoom.RoomUser_0.Length; i++)
                            {
                                try
                                {
                                    RoomUser class6 = Session.GetHabbo().CurrentRoom.RoomUser_0[i];
                                    if (class6 != null)
                                    {
                                        if (!class6.IsBot)
                                        {
                                            if (class6.GetClient() != null)
                                            {
                                                if (class6.GetClient().GetHabbo() != null)
                                                {
                                                    class6.GetClient().GetHabbo().method_22().method_2(class6.GetClient(), Params[1], true);
                                                }
                                            }
                                        }
                                    }
                                }
                                catch (Exception ex)
                                {
                                    Session.SendNotif("Error: " + ex.ToString());
                                }
                            }
                            GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                            return true;
                        case 43:
                            {
                                if (!Session.GetHabbo().HasFuse("cmd_roomkick"))
                                {
                                    return false;
                                }
                                class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                if (class2 == null)
                                {
                                    return false;
                                }
                                bool flag = true;
                                string text4 = ChatCommandHandler.MergeParams(Params, 1);
                                if (text4.Length > 0)
                                {
                                    flag = false;
                                }
                                for (int i = 0; i < class2.RoomUser_0.Length; i++)
                                {
                                    RoomUser class7 = class2.RoomUser_0[i];
                                    if (class7 != null && class7.GetClient().GetHabbo().Rank < Session.GetHabbo().Rank)
                                    {
                                        if (!flag)
                                        {
                                            class7.GetClient().SendNotif("You have been kicked by an moderator: " + text4);
                                        }
                                        class2.method_47(class7.GetClient(), true, flag);
                                    }
                                }
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                        case 44:
                            if (Session.GetHabbo().HasFuse("cmd_roommute"))
                            {
                                if (Session.GetHabbo().CurrentRoom.bool_4)
                                {
                                    Session.GetHabbo().CurrentRoom.bool_4 = false;
                                }
                                else
                                {
                                    Session.GetHabbo().CurrentRoom.bool_4 = true;
                                }
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 45:
                            if (Session.GetHabbo().HasFuse("cmd_sa"))
                            {
                                ServerMessage Logging = new ServerMessage(134u);
                                Logging.AppendUInt(0u);
                                Logging.AppendString(Session.GetHabbo().Username + ": " + Input.Substring(3));
                                GoldTree.GetGame().GetClientManager().method_16(Logging, Logging);
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 47:
                            if (Session.GetHabbo().HasFuse("cmd_setspeed"))
                            {
                                int.Parse(Params[1]);
                                Session.GetHabbo().CurrentRoom.method_102(int.Parse(Params[1]));
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 48:
                            if (Session.GetHabbo().HasFuse("cmd_shutdown"))
                            {
                                Logging.LogCriticalException("User " + Session.GetHabbo().Username + " shut down the server " + DateTime.Now.ToString());
                                Task task = new Task(new Action(GoldTree.smethod_18));
                                task.Start();
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 49:
                            if (Session.GetHabbo().HasFuse("cmd_spull"))
                            {
                                try
                                {
                                    string a = "down";
                                    string text = Params[1];
                                    TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text);
                                    class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                    if (Session == null || TargetClient == null)
                                    {
                                        return false;
                                    }
                                    RoomUser class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
                                    RoomUser class4 = class2.GetRoomUserByHabbo(TargetClient.GetHabbo().Id);
                                    if (TargetClient.GetHabbo().Username == Session.GetHabbo().Username)
                                    {
                                        Session.GetHabbo().method_28("You cannot pull yourself");
                                        return true;
                                    }
                                    class6.method_1(Session, "*pulls " + TargetClient.GetHabbo().Username + " to them*", false);
                                    if (class6.int_8 == 0)
                                    {
                                        a = "up";
                                    }
                                    if (class6.int_8 == 2)
                                    {
                                        a = "right";
                                    }
                                    if (class6.int_8 == 4)
                                    {
                                        a = "down";
                                    }
                                    if (class6.int_8 == 6)
                                    {
                                        a = "left";
                                    }
                                    if (a == "up")
                                    {
                                        if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor)
                                        {
                                            if (!(class6.int_3 == class2.Class28_0.int_0 && class6.int_4 - 1 == class2.Class28_0.int_1) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor"))
                                                class4.MoveTo(class6.int_3, class6.int_4 - 1);
                                            else
                                                class4.MoveTo(class6.int_3, class6.int_4 + 1);
                                        }
                                        else
                                        {
                                            class4.MoveTo(class6.int_3, class6.int_4 - 1);
                                        }
                                    }
                                    if (a == "right")
                                    {
                                        if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor)
                                        {
                                            if (!(class6.int_3 + 1 == class2.Class28_0.int_0 && class6.int_4 == class2.Class28_0.int_1) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor"))
                                                class4.MoveTo(class6.int_3 + 1, class6.int_4);
                                            else
                                                class4.MoveTo(class6.int_3 - 1, class6.int_4);
                                        }
                                        else
                                        {
                                            class4.MoveTo(class6.int_3 + 1, class6.int_4);
                                        }
                                    }
                                    if (a == "down")
                                    {
                                        if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor)
                                        {
                                            if (!(class6.int_3 == class2.Class28_0.int_0 && class6.int_4 + 1 == class2.Class28_0.int_1) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor"))
                                                class4.MoveTo(class6.int_3, class6.int_4 + 1);
                                            else
                                                class4.MoveTo(class6.int_3, class6.int_4 - 1);
                                        }
                                        else
                                        {
                                            class4.MoveTo(class6.int_3, class6.int_4 + 1);
                                        }
                                    }
                                    if (a == "left")
                                    {
                                        if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor)
                                        {
                                            if (!(class6.int_3 - 1 == class2.Class28_0.int_0 && class6.int_4 == class2.Class28_0.int_1) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor"))
                                                class4.MoveTo(class6.int_3 - 1, class6.int_4);
                                            else
                                                class4.MoveTo(class6.int_3 + 1, class6.int_4);
                                        }
                                        else
                                        {
                                            class4.MoveTo(class6.int_3 - 1, class6.int_4);
                                        }
                                    }
                                    return true;
                                }
                                catch
                                {
                                    return false;
                                }
                            }
                            return false;
                        case 50:
                            if (Session.GetHabbo().HasFuse("cmd_summon"))
                            {
                                TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]);
                                if (TargetClient != null && TargetClient.GetHabbo().CurrentRoom != Session.GetHabbo().CurrentRoom)
                                {
                                    ServerMessage Message5 = new ServerMessage(286u);
                                    Message5.AppendBoolean(Session.GetHabbo().CurrentRoom.Boolean_3);
                                    Message5.AppendUInt(Session.GetHabbo().CurrentRoomId);
                                    TargetClient.SendMessage(Message5);
                                    TargetClient.SendNotif(Session.GetHabbo().Username + " has summoned you to them");
                                }
                                else
                                {
                                    Session.GetHabbo().method_28("User: "******" could not be found - Maybe they're not online anymore :(");
                                }
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 51:
                            if (!Session.GetHabbo().HasFuse("cmd_superban"))
                            {
                                return false;
                            }
                            TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]);
                            if (TargetClient == null)
                            {
                                Session.SendNotif("User not found.");
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            if (TargetClient.GetHabbo().Rank >= Session.GetHabbo().Rank && !Session.GetHabbo().isJuniori)
                            {
                                Session.SendNotif("You are not allowed to ban that user.");
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            GoldTree.GetGame().GetBanManager().method_2(TargetClient, Session.GetHabbo().Username, 360000000.0, ChatCommandHandler.MergeParams(Params, 2), false);
                            GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                            return true;
                        case 52:
                            {
                                if (!Session.GetHabbo().HasFuse("cmd_teleport"))
                                {
                                    return false;
                                }
                                class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                if (class2 == null)
                                {
                                    return false;
                                }
                                RoomUser class3 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
                                if (class3 == null)
                                {
                                    return false;
                                }
                                if (class3.TeleportMode)
                                {
                                    class3.TeleportMode = false;
                                    Session.SendNotif("Teleporting disabled.");
                                }
                                else
                                {
                                    class3.TeleportMode = true;
                                    Session.SendNotif("Teleporting enabled.");
                                }
                                class2.method_22();
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                        case 54:
                            {
                                if (!Session.GetHabbo().HasFuse("cmd_unmute"))
                                {
                                    return false;
                                }
                                string text = Params[1];
                                TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text);
                                if (TargetClient == null || TargetClient.GetHabbo() == null)
                                {
                                    Session.SendNotif("Could not find user: "******"cmd_update_achievements"))
                            {
                                using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient())
                                {
                                    AchievementManager.smethod_0(class5);
                                }
                                return true;
                            }
                            return false;
                        case 56:
                            if (Session.GetHabbo().HasFuse("cmd_update_bans"))
                            {
                                using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient())
                                {
                                    GoldTree.GetGame().GetBanManager().method_0(class5);
                                }
                                GoldTree.GetGame().GetClientManager().method_28();
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 57:
                            if (Session.GetHabbo().HasFuse("cmd_update_bots"))
                            {
                                using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient())
                                {
                                    GoldTree.GetGame().GetBotManager().method_0(class5);
                                }
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 58:
                            if (Session.GetHabbo().HasFuse("cmd_update_catalogue"))
                            {
                                using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient())
                                {
                                    GoldTree.GetGame().GetCatalog().method_0(class5);
                                }
                                GoldTree.GetGame().GetCatalog().method_1();
                                GoldTree.GetGame().GetClientManager().method_14(new ServerMessage(441u));
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 59:
                            if (Session.GetHabbo().HasFuse("cmd_update_filter"))
                            {
                                using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient())
                                {
                                    ChatCommandHandler.InitWords(class5);
                                }
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 60:
                            if (Session.GetHabbo().HasFuse("cmd_update_items"))
                            {
                                using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient())
                                {
                                    GoldTree.GetGame().GetItemManager().method_0(class5);
                                }
                                Session.SendNotif("Item defenitions reloaded successfully.");
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 61:
                            if (Session.GetHabbo().HasFuse("cmd_update_navigator"))
                            {
                                using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient())
                                {
                                    GoldTree.GetGame().GetNavigator().method_0(class5);
                                    GoldTree.GetGame().GetRoomManager().method_8(class5);
                                }
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 62:
                            if (Session.GetHabbo().HasFuse("cmd_update_permissions"))
                            {
                                using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient())
                                {
                                    GoldTree.GetGame().GetRoleManager().method_0(class5);
                                }
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 63:
                            if (Session.GetHabbo().HasFuse("cmd_update_settings"))
                            {
                                using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient())
                                {
                                    GoldTree.GetGame().method_17(class5);
                                }
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                            return false;
                        case 64:
                            {
                                if (!Session.GetHabbo().HasFuse("cmd_userinfo"))
                                {
                                    return false;
                                }
                                string text5 = Params[1];
                                bool flag2 = true;
                                if (string.IsNullOrEmpty(text5))
                                {
                                    Session.SendNotif("Please enter a username");
                                    GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                    return true;
                                }
                                GameClient class8 = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text5);
                                Habbo class9;
                                if (class8 == null)
                                {
                                    flag2 = false;
                                    class9 = Authenticator.smethod_2(text5);
                                }
                                else
                                {
                                    class9 = class8.GetHabbo();
                                }
                                if (class9 == null)
                                {
                                    Session.SendNotif("Unable to find user " + Params[1]);
                                    GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                    return true;
                                }
                                StringBuilder stringBuilder = new StringBuilder();
                                if (class9.CurrentRoom != null)
                                {
                                    stringBuilder.Append(" - ROOM INFORMATION FOR ROOMID: " + class9.CurrentRoom.Id + " - \r");
                                    stringBuilder.Append("Owner: " + class9.CurrentRoom.Owner + "\r");
                                    stringBuilder.Append("Room name: " + class9.CurrentRoom.Name + "\r");
                                    stringBuilder.Append(string.Concat(new object[]
                            {
                                "Users in room: ",
                                class9.CurrentRoom.Int32_0,
                                "/",
                                class9.CurrentRoom.UsersMax
                            }));
                                }
                                uint num6 = class9.Rank;
                                //if (class9.isAaronble)
                                //{
                                //	num6 = 1u;
                                //}
                                string text6 = "";
                                if (Session.GetHabbo().HasFuse("cmd_userinfo_viewip"))
                                {
                                    text6 = "UserIP: " + class9.LastIp + " \r";
                                }
                                Session.SendNotif(string.Concat(new object[]
                        {
                            "User information for user: "******":\rRank: ",
                            num6,
                            " \rUser online: ",
                            flag2.ToString(),
                            " \rUserID: ",
                            class9.Id,
                            " \r",
                            text6,
                            "Visiting room: ",
                            class9.CurrentRoomId,
                            " \rUser motto: ",
                            class9.Motto,
                            " \rUser credits: ",
                            class9.Credits,
                            " \rUser pixels: ",
                            class9.ActivityPoints,
                            " \rUser points: ",
                            class9.VipPoints,
                            " \rUser muted: ",
                            class9.bool_3.ToString(),
                            "\r\r\r",
                            stringBuilder.ToString()
                        }));
                                GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                return true;
                            }
                        case 65:
                            if (Session.GetHabbo().HasFuse("cmd_update_texts"))
                            {
                                using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient())
                                {
                                    GoldTreeEnvironment.smethod_0(class5);
                                }
                                return true;
                            }
                            return false;
                        case 66:
                            {
                                if (!Session.GetHabbo().HasFuse("cmd_disconnect"))
                                {
                                    return false;
                                }
                                string text = Params[1];
                                TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text);
                                if (TargetClient == null)
                                {
                                    Session.SendNotif("Could not find user: "******"You are not allowed to kick that user.");
                                    GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                    return true;
                                }
                                if (!TargetClient.GetHabbo().isJuniori)
                                {
                                    TargetClient.method_12();
                                }
                                return true;
                            }
                        case 87:
                            if (Session.GetHabbo().HasFuse("cmd_vipha"))
                            {
                                if (GoldTree.GetUnixTimestamp() - Session.GetHabbo().vipha_last >= LicenseTools.vipha_interval)
                                {
                                    Session.GetHabbo().vipha_last = GoldTree.GetUnixTimestamp();
                                    using (DatabaseClient dbClient = GoldTree.GetDatabase().GetClient())
                                    {
                                        dbClient.AddParamWithValue("sessionid", Session.GetHabbo().Id);
                                        dbClient.ExecuteQuery("UPDATE users SET vipha_last = UNIX_TIMESTAMP() WHERE id = @sessionid");
                                    }
                                    string str = Input.Substring(6);
                                    ServerMessage Message2 = new ServerMessage(808u);
                                    Message2.AppendStringWithBreak(GoldTreeEnvironment.smethod_1("cmd_vipha_title"));
                                    Message2.AppendStringWithBreak(str + "\r\n- " + Session.GetHabbo().Username);
                                    ServerMessage Message3 = new ServerMessage(161u);
                                    Message3.AppendStringWithBreak(str + "\r\n- " + Session.GetHabbo().Username);
                                    GoldTree.GetGame().GetClientManager().method_15(Message2, Message3);
                                    GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                    return true;
                                }
                                else
                                {
                                    Session.SendNotif("You need wait: " + (int)((Session.GetHabbo().vipha_last - GoldTree.GetUnixTimestamp() + LicenseTools.vipha_interval) / 60) + " minute!");
                                    return true;
                                }
                            }
                            return false;
                        case 91:
                            if (!Session.GetHabbo().HasFuse("cmd_roomeffect"))
                            {
                                return false;
                            }
                            if (Session.GetHabbo().CurrentRoom == null)
                            {
                                return false;
                            }
                            for (int i = 0; i < Session.GetHabbo().CurrentRoom.RoomUser_0.Length; i++)
                            {
                                try
                                {
                                    RoomUser class6 = Session.GetHabbo().CurrentRoom.RoomUser_0[i];
                                    if (class6 != null)
                                    {
                                        if (!class6.IsBot)
                                        {
                                            if (class6.GetClient() != null)
                                            {
                                                if (class6.GetClient().GetHabbo() != null)
                                                {
                                                    int int_ = int.Parse(Params[1]);
                                                    class6.GetClient().GetHabbo().method_24().method_2(int_, true);
                                                }
                                            }
                                        }
                                    }
                                }
                                catch (Exception ex)
                                {
                                    Session.SendNotif("Error: " + ex.ToString());
                                }
                            }
                            GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                            return true;
                        case 97:
                            if (Session.GetHabbo().HasFuse("cmd_viphal"))
                            {
                                if (GoldTree.GetUnixTimestamp() - Session.GetHabbo().viphal_last >= LicenseTools.viphal_interval)
                                {
                                    Session.GetHabbo().viphal_last = GoldTree.GetUnixTimestamp();
                                    using (DatabaseClient dbClient = GoldTree.GetDatabase().GetClient())
                                    {
                                        dbClient.AddParamWithValue("sessionid", Session.GetHabbo().Id);
                                        dbClient.ExecuteQuery("UPDATE users SET viphal_last = UNIX_TIMESTAMP() WHERE id = @sessionid");
                                    }

                                    string text2 = Params[1];
                                    Input = Input.Substring(4).Replace(text2, "");
                                    string text3 = Input.Substring(1);
                                    ServerMessage Message = new ServerMessage(161u);
                                    Message.AppendStringWithBreak(string.Concat(new string[]
                            {
                                GoldTreeEnvironment.smethod_1("cmd_viphal_title"),
                                "\r\n",
                                text3,
                                "\r\n-",
                                Session.GetHabbo().Username
                            }));
                                    Message.AppendStringWithBreak(text2);
                                    GoldTree.GetGame().GetClientManager().method_14(Message);
                                    GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                    return true;
                                }

                                else
                                {
                                    Session.SendNotif("You need wait: " + (int)((Session.GetHabbo().viphal_last - GoldTree.GetUnixTimestamp() + LicenseTools.viphal_interval) / 60) + " minute!");
                                    return true;
                                }
                            }
                            return false;
                    }
                    num = GoldTree.GetGame().GetRoleManager().dictionary_4[Params[0]];
                    if (num <= 13)
                    {
                        if (num != 1)
                        {
                            switch (num)
                            {
                                case 5:
                                    {
                                        int num7 = (int)Convert.ToInt16(Params[1]);
                                        if (num7 > 0 && num7 < 101)
                                        {
                                            Session.GetHabbo().int_24 = (int)Convert.ToInt16(Params[1]);
                                        }
                                        else
                                        {
                                            Session.GetHabbo().method_28("Please choose a value between 1 - 100");
                                        }
                                        return true;
                                    }
                                case 6:
                                case 7:
                                case 8:
                                case 11:
                                    goto IL_3F91;
                                case 9:
                                    Session.GetHabbo().method_23().method_0();
                                    Session.SendNotif(GoldTreeEnvironment.smethod_1("cmd_emptyitems_success"));
                                    GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                    return true;
                                case 10:
                                    if (Session.GetHabbo().HasFuse("cmd_empty") && Params[1] != null)
                                    {
                                        GameClient class10 = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]);
                                        if (class10 != null && class10.GetHabbo() != null)
                                        {
                                            class10.GetHabbo().method_23().method_0();
                                            Session.SendNotif("Inventory cleared! (Database and cache)");
                                        }
                                        else
                                        {
                                            using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient())
                                            {
                                                class5.AddParamWithValue("usrname", Params[1]);
                                                int num8 = int.Parse(class5.ReadString("SELECT Id FROM users WHERE username = @usrname LIMIT 1;"));
                                                class5.ExecuteQuery("DELETE FROM items WHERE user_id = '" + num8 + "' AND room_id = 0;");
                                                Session.SendNotif("Inventory cleared! (Database)");
                                            }
                                        }
                                        GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                        return true;
                                    }
                                    return false;
                                case 12:
                                    {
                                        if (!(LicenseTools.Boolean_11 || Session.GetHabbo().HasFuse("cmd_flagme")))
                                        {
                                            Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_disabled"));
                                            return true;
                                        }
                                        if (!(Session.GetHabbo().Vip || Session.GetHabbo().HasFuse("cmd_flagme")))
                                        {
                                            Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_permission_vip"));
                                            return true;
                                        }
                                        ServerMessage Message5_ = new ServerMessage(573u);
                                        Session.SendMessage(Message5_);
                                        return true;
                                    }
                                case 13:
                                    if (!(LicenseTools.Boolean_9 || Session.GetHabbo().HasFuse("cmd_follow")))
                                    {
                                        Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_disabled"));
                                        return true;
                                    }
                                    if (!(Session.GetHabbo().Vip || Session.GetHabbo().HasFuse("cmd_follow")))
                                    {
                                        Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_permission_vip"));
                                        return true;
                                    }
                                    TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]);
                                    if (TargetClient != null && TargetClient.GetHabbo().InRoom && Session.GetHabbo().CurrentRoom != TargetClient.GetHabbo().CurrentRoom && !TargetClient.GetHabbo().HideInRom)
                                    {
                                        ServerMessage Message5 = new ServerMessage(286u);
                                        Message5.AppendBoolean(TargetClient.GetHabbo().CurrentRoom.Boolean_3);
                                        Message5.AppendUInt(TargetClient.GetHabbo().CurrentRoomId);
                                        Session.SendMessage(Message5);
                                    }
                                    else
                                    {
                                        Session.GetHabbo().method_28("User: "******" could not be found - Maybe they're not online or not in a room anymore (or maybe they're a ninja)");
                                    }
                                    GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                    return true;
                                default:
                                    goto IL_3F91;
                            }
                        }
                    }
                    else
                    {
                        switch (num)
                        {
                            case 28:
                                {
                                    if (!(LicenseTools.Boolean_12 || Session.GetHabbo().HasFuse("cmd_mimic")))
                                    {
                                        Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_disabled"));
                                        return true;
                                    }
                                    if (!(Session.GetHabbo().Vip || Session.GetHabbo().HasFuse("cmd_mimic")))
                                    {
                                        Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_permission_vip"));
                                        return true;
                                    }
                                    string text = Params[1];
                                    TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text);
                                    if (TargetClient == null)
                                    {
                                        Session.GetHabbo().method_28("Could not find user: "******"cmd_moonwalk")))
                                    {
                                        Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_disabled"));
                                        return true;
                                    }
                                    if (!(Session.GetHabbo().Vip || Session.GetHabbo().HasFuse("cmd_moonwalk")))
                                    {
                                        Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_permission_vip"));
                                        return true;
                                    }
                                    class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                    if (class2 == null)
                                    {
                                        return false;
                                    }
                                    RoomUser class3 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
                                    if (class3 == null)
                                    {
                                        return false;
                                    }
                                    if (class3.bool_3)
                                    {
                                        class3.bool_3 = false;
                                        Session.GetHabbo().method_28("Your moonwalk has been disabled.");
                                        return true;
                                    }
                                    class3.bool_3 = true;
                                    Session.GetHabbo().method_28("Your moonwalk has been enabled.");
                                    return true;
                                }
                            default:
                                {
                                    RoomUser class6;
                                    switch (num)
                                    {
                                        case 36:
                                            try
                                            {
                                                if (!(LicenseTools.Boolean_10 || Session.GetHabbo().HasFuse("cmd_pull")))
                                                {
                                                    Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_disabled"));
                                                    return true;
                                                }
                                                if (!(Session.GetHabbo().Vip || Session.GetHabbo().HasFuse("cmd_pull")))
                                                {
                                                    Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_permission_vip"));
                                                    return true;
                                                }
                                                string a = "down";
                                                string text = Params[1];
                                                TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text);
                                                class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                                if (Session == null || TargetClient == null)
                                                {
                                                    return false;
                                                }
                                                class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
                                                RoomUser class4 = class2.GetRoomUserByHabbo(TargetClient.GetHabbo().Id);
                                                if (TargetClient.GetHabbo().Username == Session.GetHabbo().Username)
                                                {
                                                    Session.GetHabbo().method_28("You cannot pull yourself");
                                                    return true;
                                                }
                                                if (TargetClient.GetHabbo().CurrentRoomId == Session.GetHabbo().CurrentRoomId && Math.Abs(class6.int_3 - class4.int_3) < 3 && Math.Abs(class6.int_4 - class4.int_4) < 3)
                                                {
                                                    class6.method_1(Session, "*pulls " + TargetClient.GetHabbo().Username + " to them*", false);
                                                    if (class6.int_8 == 0)
                                                    {
                                                        a = "up";
                                                    }
                                                    if (class6.int_8 == 2)
                                                    {
                                                        a = "right";
                                                    }
                                                    if (class6.int_8 == 4)
                                                    {
                                                        a = "down";
                                                    }
                                                    if (class6.int_8 == 6)
                                                    {
                                                        a = "left";
                                                    }
                                                    if (a == "up")
                                                    {
                                                        if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor)
                                                        {
                                                            if (!(class6.int_3 == class2.Class28_0.int_0 && class6.int_4 - 1 == class2.Class28_0.int_1) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor"))
                                                                class4.MoveTo(class6.int_3, class6.int_4 - 1);
                                                            else
                                                                class4.MoveTo(class6.int_3, class6.int_4 + 1);
                                                        }
                                                        else
                                                        {
                                                            class4.MoveTo(class6.int_3, class6.int_4 - 1);
                                                        }
                                                    }
                                                    if (a == "right")
                                                    {
                                                        if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor)
                                                        {
                                                            if (!(class6.int_3 + 1 == class2.Class28_0.int_0 && class6.int_4 == class2.Class28_0.int_1) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor"))
                                                                class4.MoveTo(class6.int_3 + 1, class6.int_4);
                                                            else
                                                                class4.MoveTo(class6.int_3 - 1, class6.int_4);
                                                        }
                                                        else
                                                        {
                                                            class4.MoveTo(class6.int_3 + 1, class6.int_4);
                                                        }
                                                    }
                                                    if (a == "down")
                                                    {
                                                        if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor)
                                                        {
                                                            if (!(class6.int_3 == class2.Class28_0.int_0 && class6.int_4 + 1 == class2.Class28_0.int_1) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor"))
                                                                class4.MoveTo(class6.int_3, class6.int_4 + 1);
                                                            else
                                                                class4.MoveTo(class6.int_3, class6.int_4 - 1);
                                                        }
                                                        else
                                                        {
                                                            class4.MoveTo(class6.int_3, class6.int_4 + 1);
                                                        }
                                                    }
                                                    if (a == "left")
                                                    {
                                                        if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor)
                                                        {
                                                            if (!(class6.int_3 - 1 == class2.Class28_0.int_0 && class6.int_4 == class2.Class28_0.int_1) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor"))
                                                                class4.MoveTo(class6.int_3 - 1, class6.int_4);
                                                            else
                                                                class4.MoveTo(class6.int_3 + 1, class6.int_4);
                                                        }
                                                        else
                                                        {
                                                            class4.MoveTo(class6.int_3 - 1, class6.int_4);
                                                        }
                                                    }
                                                    return true;
                                                }
                                                Session.GetHabbo().method_28("That user is not close enough to you to be pulled, try getting closer");
                                                return true;
                                            }
                                            catch
                                            {
                                                return false;
                                            }
                                        case 37:
                                            break;
                                        case 38:
                                            goto IL_3F03;
                                        case 39:
                                            goto IL_3F91;
                                        case 40:
                                            {
                                                string text = Params[1];
                                                class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                                class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
                                                RoomUser class4 = class2.method_57(text);
                                                if (class6.class34_1 != null)
                                                {
                                                    Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_ride_err_riding"));
                                                    return true;
                                                }
                                                if (!class4.IsBot || class4.PetData.Type != 13u)
                                                {
                                                    Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_ride_err_nothorse"));
                                                    return true;
                                                }
                                                bool arg_40EB_0;
                                                if ((class6.int_3 + 1 != class4.int_3 || class6.int_4 != class4.int_4) && (class6.int_3 - 1 != class4.int_3 || class6.int_4 != class4.int_4) && (class6.int_4 + 1 != class4.int_4 || class6.int_3 != class4.int_3))
                                                {
                                                    if (class6.int_4 - 1 == class4.int_4)
                                                    {
                                                        if (class6.int_3 == class4.int_3)
                                                        {
                                                            goto IL_40C2;
                                                        }
                                                    }
                                                    arg_40EB_0 = (class6.int_3 != class4.int_3 || class6.int_4 != class4.int_4);
                                                    goto IL_40EB;
                                                }
                                            IL_40C2:
                                                arg_40EB_0 = false;
                                            IL_40EB:
                                                if (arg_40EB_0)
                                                {
                                                    Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_ride_err_toofar"));
                                                    return true;
                                                }
                                                if (class4.class34_0.RoomUser_0 == null)
                                                {
                                                    class4.class34_0.RoomUser_0 = class6;
                                                    class6.class34_1 = class4.class34_0;
                                                    class6.int_3 = class4.int_3;
                                                    class6.int_4 = class4.int_4;
                                                    class6.double_0 = class4.double_0 + 1.0;
                                                    class6.int_8 = class4.int_8;
                                                    class6.int_7 = class4.int_7;
                                                    class6.UpdateNeeded = true;
                                                    class2.method_87(class6, false, false);
                                                    class6.RoomUser_0 = class4;
                                                    class6.Statusses.Clear();
                                                    class4.Statusses.Clear();
                                                    Session.GetHabbo().method_24().method_2(77, true);
                                                    Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_ride_instr_getoff"));
                                                    class2.method_22();
                                                    return true;
                                                }
                                                Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_ride_err_tooslow"));
                                                return true;
                                            }
                                        case 88:
                                            try
                                            {
                                                if (!Session.GetHabbo().HasFuse("cmd_spush"))
                                                {
                                                    return false;
                                                }
                                                string a = "down";
                                                string text = Params[1];
                                                TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text);
                                                class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                                if (Session == null || TargetClient == null)
                                                {
                                                    return false;
                                                }
                                                class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
                                                RoomUser class4 = class2.GetRoomUserByHabbo(TargetClient.GetHabbo().Id);
                                                if (TargetClient.GetHabbo().Username == Session.GetHabbo().Username)
                                                {
                                                    Session.GetHabbo().method_28("It can't be that bad mate, no need to push yourself!");
                                                    return true;
                                                }
                                                bool arg_3DD2_0;
                                                if (TargetClient.GetHabbo().CurrentRoomId == Session.GetHabbo().CurrentRoomId)
                                                {
                                                    if ((class6.int_3 + 1 != class4.int_3 || class6.int_4 != class4.int_4) && (class6.int_3 - 1 != class4.int_3 || class6.int_4 != class4.int_4) && (class6.int_4 + 1 != class4.int_4 || class6.int_3 != class4.int_3))
                                                    {
                                                        if (class6.int_4 - 1 == class4.int_4)
                                                        {
                                                            if (class6.int_3 == class4.int_3)
                                                            {
                                                                goto IL_3DA6;
                                                            }
                                                        }
                                                        arg_3DD2_0 = (class6.int_3 != class4.int_3 || class6.int_4 != class4.int_4);
                                                        goto IL_3DD2;
                                                    }
                                                IL_3DA6:
                                                    arg_3DD2_0 = false;
                                                }
                                                else
                                                {
                                                    arg_3DD2_0 = true;
                                                }
                                            IL_3DD2:
                                                if (!arg_3DD2_0)
                                                {
                                                    class6.method_1(Session, "*pushes " + TargetClient.GetHabbo().Username + "*", false);
                                                    if (class6.int_8 == 0)
                                                    {
                                                        a = "up";
                                                    }
                                                    if (class6.int_8 == 2)
                                                    {
                                                        a = "right";
                                                    }
                                                    if (class6.int_8 == 4)
                                                    {
                                                        a = "down";
                                                    }
                                                    if (class6.int_8 == 6)
                                                    {
                                                        a = "left";
                                                    }
                                                    if (a == "up")
                                                    {
                                                        if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor)
                                                        {
                                                            if (Session.GetHabbo().HasFuse("acc_moveotheruserstodoor"))
                                                            {
                                                                class4.MoveTo(class4.int_3, class4.int_4 - 1);
                                                                class4.MoveTo(class4.int_3, class4.int_4 - 2);
                                                                class4.MoveTo(class4.int_3, class4.int_4 - 3);
                                                                class4.MoveTo(class4.int_3, class4.int_4 - 4);
                                                                class4.MoveTo(class4.int_3, class4.int_4 - 5);
                                                            }
                                                            else
                                                            {
                                                                if (!(class4.int_3 == class2.Class28_0.int_0 && class4.int_4 - 1 == class2.Class28_0.int_1))
                                                                    class4.MoveTo(class4.int_3, class4.int_4 - 1);
                                                                if (!(class4.int_3 == class2.Class28_0.int_0 && class4.int_4 - 2 == class2.Class28_0.int_1))
                                                                    class4.MoveTo(class4.int_3, class4.int_4 - 2);
                                                                if (!(class4.int_3 == class2.Class28_0.int_0 && class4.int_4 - 3 == class2.Class28_0.int_1))
                                                                    class4.MoveTo(class4.int_3, class4.int_4 - 3);
                                                                if (!(class4.int_3 == class2.Class28_0.int_0 && class4.int_4 - 4 == class2.Class28_0.int_1))
                                                                    class4.MoveTo(class4.int_3, class4.int_4 - 4);
                                                                if (!(class4.int_3 == class2.Class28_0.int_0 && class4.int_4 - 5 == class2.Class28_0.int_1))
                                                                    class4.MoveTo(class4.int_3, class4.int_4 - 5);
                                                            }
                                                        }
                                                        else
                                                        {
                                                            class4.MoveTo(class4.int_3, class4.int_4 - 1);
                                                            class4.MoveTo(class4.int_3, class4.int_4 - 2);
                                                            class4.MoveTo(class4.int_3, class4.int_4 - 3);
                                                            class4.MoveTo(class4.int_3, class4.int_4 - 4);
                                                            class4.MoveTo(class4.int_3, class4.int_4 - 5);
                                                        }
                                                    }
                                                    if (a == "right")
                                                    {
                                                        if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor)
                                                        {
                                                            if (Session.GetHabbo().HasFuse("acc_moveotheruserstodoor"))
                                                            {
                                                                class4.MoveTo(class4.int_3 + 1, class4.int_4);
                                                                class4.MoveTo(class4.int_3 + 2, class4.int_4);
                                                                class4.MoveTo(class4.int_3 + 3, class4.int_4);
                                                                class4.MoveTo(class4.int_3 + 4, class4.int_4);
                                                                class4.MoveTo(class4.int_3 + 5, class4.int_4);
                                                            }
                                                            else
                                                            {
                                                                if (!(class4.int_3 + 1 == class2.Class28_0.int_0 && class4.int_4 == class2.Class28_0.int_1))
                                                                    class4.MoveTo(class4.int_3 + 1, class4.int_4);
                                                                if (!(class4.int_3 + 2 == class2.Class28_0.int_0 && class4.int_4 == class2.Class28_0.int_1))
                                                                    class4.MoveTo(class4.int_3 + 2, class4.int_4);
                                                                if (!(class4.int_3 + 3 == class2.Class28_0.int_0 && class4.int_4 == class2.Class28_0.int_1))
                                                                    class4.MoveTo(class4.int_3 + 3, class4.int_4);
                                                                if (!(class4.int_3 + 4 == class2.Class28_0.int_0 && class4.int_4 == class2.Class28_0.int_1))
                                                                    class4.MoveTo(class4.int_3 + 4, class4.int_4);
                                                                if (!(class4.int_3 + 5 == class2.Class28_0.int_0 && class4.int_4 == class2.Class28_0.int_1))
                                                                    class4.MoveTo(class4.int_3 + 5, class4.int_4);
                                                            }
                                                        }
                                                        else
                                                        {
                                                            class4.MoveTo(class4.int_3 + 1, class4.int_4);
                                                            class4.MoveTo(class4.int_3 + 2, class4.int_4);
                                                            class4.MoveTo(class4.int_3 + 3, class4.int_4);
                                                            class4.MoveTo(class4.int_3 + 4, class4.int_4);
                                                            class4.MoveTo(class4.int_3 + 5, class4.int_4);
                                                        }
                                                    }
                                                    if (a == "down")
                                                    {
                                                        if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor)
                                                        {
                                                            if (Session.GetHabbo().HasFuse("acc_moveotheruserstodoor"))
                                                            {
                                                                class4.MoveTo(class4.int_3, class4.int_4 + 1);
                                                                class4.MoveTo(class4.int_3, class4.int_4 + 2);
                                                                class4.MoveTo(class4.int_3, class4.int_4 + 3);
                                                                class4.MoveTo(class4.int_3, class4.int_4 + 4);
                                                                class4.MoveTo(class4.int_3, class4.int_4 + 5);
                                                            }
                                                            else
                                                            {
                                                                if (!(class4.int_3 == class2.Class28_0.int_0 && class4.int_4 + 1 == class2.Class28_0.int_1))
                                                                    class4.MoveTo(class4.int_3, class4.int_4 + 1);
                                                                if (!(class4.int_3 == class2.Class28_0.int_0 && class4.int_4 + 2 == class2.Class28_0.int_1))
                                                                    class4.MoveTo(class4.int_3, class4.int_4 + 2);
                                                                if (!(class4.int_3 == class2.Class28_0.int_0 && class4.int_4 + 3 == class2.Class28_0.int_1))
                                                                    class4.MoveTo(class4.int_3, class4.int_4 + 3);
                                                                if (!(class4.int_3 == class2.Class28_0.int_0 && class4.int_4 + 4 == class2.Class28_0.int_1))
                                                                    class4.MoveTo(class4.int_3, class4.int_4 + 4);
                                                                if (!(class4.int_3 == class2.Class28_0.int_0 && class4.int_4 + 5 == class2.Class28_0.int_1))
                                                                    class4.MoveTo(class4.int_3, class4.int_4 + 5);
                                                            }
                                                        }
                                                        else
                                                        {
                                                            class4.MoveTo(class4.int_3, class4.int_4 + 1);
                                                            class4.MoveTo(class4.int_3, class4.int_4 + 2);
                                                            class4.MoveTo(class4.int_3, class4.int_4 + 3);
                                                            class4.MoveTo(class4.int_3, class4.int_4 + 4);
                                                            class4.MoveTo(class4.int_3, class4.int_4 + 5);
                                                        }
                                                    }
                                                    if (a == "left")
                                                    {
                                                        if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor)
                                                        {
                                                            if (Session.GetHabbo().HasFuse("acc_moveotheruserstodoor"))
                                                            {
                                                                class4.MoveTo(class4.int_3 - 1, class4.int_4);
                                                                class4.MoveTo(class4.int_3 - 2, class4.int_4);
                                                                class4.MoveTo(class4.int_3 - 3, class4.int_4);
                                                                class4.MoveTo(class4.int_3 - 4, class4.int_4);
                                                                class4.MoveTo(class4.int_3 - 5, class4.int_4);
                                                            }
                                                            else
                                                            {
                                                                if (!(class4.int_3 - 1 == class2.Class28_0.int_0 && class4.int_4 == class2.Class28_0.int_1))
                                                                    class4.MoveTo(class4.int_3 - 1, class4.int_4);
                                                                if (!(class4.int_3 - 2 == class2.Class28_0.int_0 && class4.int_4 == class2.Class28_0.int_1))
                                                                    class4.MoveTo(class4.int_3 - 2, class4.int_4);
                                                                if (!(class4.int_3 - 3 == class2.Class28_0.int_0 && class4.int_4 == class2.Class28_0.int_1))
                                                                    class4.MoveTo(class4.int_3 - 3, class4.int_4);
                                                                if (!(class4.int_3 - 4 == class2.Class28_0.int_0 && class4.int_4 == class2.Class28_0.int_1))
                                                                    class4.MoveTo(class4.int_3 - 4, class4.int_4);
                                                                if (!(class4.int_3 - 5 == class2.Class28_0.int_0 && class4.int_4 == class2.Class28_0.int_1))
                                                                    class4.MoveTo(class4.int_3 - 5, class4.int_4);
                                                            }
                                                        }
                                                        else
                                                        {
                                                            class4.MoveTo(class4.int_3 - 1, class4.int_4);
                                                            class4.MoveTo(class4.int_3 - 2, class4.int_4);
                                                            class4.MoveTo(class4.int_3 - 3, class4.int_4);
                                                            class4.MoveTo(class4.int_3 - 4, class4.int_4);
                                                            class4.MoveTo(class4.int_3 - 5, class4.int_4);
                                                        }
                                                    }
                                                }
                                                return true;
                                            }
                                            catch
                                            {
                                                return false;
                                            }
                                        default:
                                            switch (num)
                                            {
                                                case 67:
                                                    {
                                                        string text7 = "Your Commands:\r\r";
                                                        if (Session.GetHabbo().HasFuse("cmd_update_settings"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_update_settings_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_update_bans"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_update_bans_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_update_permissions"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_update_permissions_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_update_filter"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_update_filter_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_update_bots"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_update_bots_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_update_catalogue"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_update_catalogue_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_update_items"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_update_items_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_update_navigator"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_update_navigator_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_update_achievements"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_update_achievements_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_award"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_award_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_coords"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_coords_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_override"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_override_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_teleport"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_teleport_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_coins"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_coins_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_pixels"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_pixels_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_points"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_points_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_alert"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_alert_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_motd"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_motd_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_roomalert"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_roomalert_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_ha"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_ha_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_hal"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_hal_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_freeze"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_freeze_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_enable"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_enable_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_roommute"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_roommute_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_setspeed"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_setspeed_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_globalcredits"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_globalcredits_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_globalpixels"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_globalpixels_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_globalpoints"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_globalpoints_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_masscredits"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_masscredits_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_masspixels"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_masspixels_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_masspoints"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_masspoints_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_givebadge"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_givebadge_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_removebadge"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_removebadge_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_summon"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_summon_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_roombadge"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_roombadge_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_massbadge"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_massbadge_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_userinfo"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_userinfo_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_shutdown"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_shutdown_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_invisible"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_invisible_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_ban"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_ban_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_superban"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_superban_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_ipban"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_ipban_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_kick"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_kick_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_roomkick"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_roomkick_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_mute"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_mute_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_unmute"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_unmute_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_sa"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_sa_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_spull"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_spull_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_empty"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_empty_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_update_texts"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_update_texts_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_dance"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_dance_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_rave"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_rave_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_roll"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_roll_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_control"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_control_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_makesay"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_makesay_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_sitdown"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_sitdown_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_lay"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_lay_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_startquestion"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_startquestion_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_handitem"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_handitem_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_vipha"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_vipha_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_spush"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_spush_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().HasFuse("cmd_roomeffect"))
                                                        {
                                                            text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_roomeffect_desc") + "\r\r";
                                                        }
                                                        if (Session.GetHabbo().Vip)
                                                        {
                                                            if (LicenseTools.Boolean_13 || Session.GetHabbo().HasFuse("cmd_moonwalk"))
                                                            {
                                                                text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_moonwalk_desc") + "\r\r";
                                                            }
                                                            if (LicenseTools.Boolean_12 || Session.GetHabbo().HasFuse("cmd_mimi"))
                                                            {
                                                                text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_mimic_desc") + "\r\r";
                                                            }
                                                            if (LicenseTools.Boolean_9 || Session.GetHabbo().HasFuse("cmd_follow"))
                                                            {
                                                                text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_follow_desc") + "\r\r";
                                                            }
                                                            if (LicenseTools.Boolean_8 || Session.GetHabbo().HasFuse("cmd_push"))
                                                            {
                                                                text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_push_desc") + "\r\r";
                                                            }
                                                            if (LicenseTools.Boolean_10 || Session.GetHabbo().HasFuse("cmd_pull"))
                                                            {
                                                                text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_pull_desc") + "\r\r";
                                                            }
                                                            if (LicenseTools.Boolean_11 || Session.GetHabbo().HasFuse("cmd_flagme"))
                                                            {
                                                                text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_flagme_desc") + "\r\r";
                                                            }
                                                        }
                                                        string text8 = "";
                                                        if (LicenseTools.Boolean_0)
                                                        {
                                                            text8 = text8 + GoldTreeEnvironment.smethod_1("cmd_redeemcreds_desc") + "\r\r";
                                                        }
                                                        string text9 = "";
                                                        if (LicenseTools.bool_21)
                                                        {
                                                            text9 = text9 + GoldTreeEnvironment.smethod_1("cmd_redeempixel_desc") + "\r\r";
                                                        }
                                                        string redeemshell = "";
                                                        if (LicenseTools.bool_22)
                                                        {
                                                            redeemshell = redeemshell + GoldTreeEnvironment.smethod_1("cmd_redeemshell_desc") + "\r\r";
                                                        }
                                                        string text11 = text7;
                                                        text7 = string.Concat(new string[]
                                    {
                                        text11,
                                        "- - - - - - - - - - - \r\r",
                                        GoldTreeEnvironment.smethod_1("cmd_about_desc"),
                                        "\r\r",
                                        GoldTreeEnvironment.smethod_1("cmd_pickall_desc"),
                                        "\r\r",
                                        GoldTreeEnvironment.smethod_1("cmd_unload_desc"),
                                        "\r\r",
                                        GoldTreeEnvironment.smethod_1("cmd_disablediagonal_desc"),
                                        "\r\r",
                                        GoldTreeEnvironment.smethod_1("cmd_setmax_desc"),
                                        "\r\r",
                                        text8,
                                        text9,
                                        redeemshell,
                                        GoldTreeEnvironment.smethod_1("cmd_ride_desc"),
                                        "\r\r",
                                        GoldTreeEnvironment.smethod_1("cmd_buy_desc"),
                                        "\r\r",
                                        GoldTreeEnvironment.smethod_1("cmd_emptypets_desc"),
                                        "\r\r",
                                        GoldTreeEnvironment.smethod_1("cmd_emptyitems_desc")
                                    });
                                                        Session.SendNotif(text7, 2);
                                                        return true;
                                                    }
                                                case 68:
                                                    goto IL_2F05;
                                                case 69:
                                                    {
                                                        StringBuilder stringBuilder2 = new StringBuilder();
                                                        for (int i = 0; i < Session.GetHabbo().CurrentRoom.RoomUser_0.Length; i++)
                                                        {
                                                            class6 = Session.GetHabbo().CurrentRoom.RoomUser_0[i];
                                                            if (class6 != null)
                                                            {
                                                                stringBuilder2.Append(string.Concat(new object[]
                                            {
                                                "UserID: ",
                                                class6.uint_0,
                                                " RoomUID: ",
                                                class6.int_20,
                                                " VirtualID: ",
                                                class6.VirtualId,
                                                " IsBot:",
                                                class6.IsBot.ToString(),
                                                " X: ",
                                                class6.int_3,
                                                " Y: ",
                                                class6.int_4,
                                                " Z: ",
                                                class6.double_0,
                                                " \r\r"
                                            }));
                                                            }
                                                        }
                                                        Session.SendNotif(stringBuilder2.ToString());
                                                        Session.SendNotif("RoomID: " + Session.GetHabbo().CurrentRoomId);
                                                        return true;
                                                    }
                                                case 70:
                                                    {
                                                        return false;
                                                    }
                                                case 71:
                                                    if (Session.GetHabbo().isJuniori || Session.GetHabbo().HasFuse("cmd_dance"))
                                                    {
                                                        class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                                        GameClient class10 = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]);
                                                        RoomUser class3 = class2.GetRoomUserByHabbo(class10.GetHabbo().Id);
                                                        class3.DanceId = 1;
                                                        ServerMessage Message6 = new ServerMessage(480u);
                                                        Message6.AppendInt32(class3.VirtualId);
                                                        Message6.AppendInt32(1);
                                                        class2.SendMessage(Message6, null);
                                                        return true;
                                                    }
                                                    return false;
                                                case 72:
                                                    if (Session.GetHabbo().isJuniori || Session.GetHabbo().HasFuse("cmd_rave"))
                                                    {
                                                        class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                                        class2.method_54();
                                                        return true;
                                                    }
                                                    return false;
                                                case 73:
                                                    if (Session.GetHabbo().isJuniori || Session.GetHabbo().HasFuse("cmd_roll"))
                                                    {
                                                        GameClient class10 = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]);
                                                        class10.GetHabbo().int_1 = (int)Convert.ToInt16(Params[2]);
                                                        return true;
                                                    }
                                                    return false;
                                                case 74:
                                                    if (Session.GetHabbo().isJuniori || Session.GetHabbo().HasFuse("cmd_control"))
                                                    {
                                                        string text = Params[1];
                                                        try
                                                        {
                                                            TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text);
                                                            class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                                            if (Session == null || TargetClient == null)
                                                            {
                                                                return false;
                                                            }
                                                            RoomUser class4 = class2.GetRoomUserByHabbo(TargetClient.GetHabbo().Id);
                                                            class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
                                                            class6.RoomUser_0 = class4;
                                                        }
                                                        catch
                                                        {
                                                            class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                                            if (Session == null || TargetClient == null)
                                                            {
                                                                return false;
                                                            }
                                                            class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
                                                            class6.RoomUser_0 = null;
                                                        }
                                                        return true;
                                                    }
                                                    return false;
                                                case 75:
                                                    {
                                                        if (Session.GetHabbo().isJuniori || Session.GetHabbo().HasFuse("cmd_makesay"))
                                                        {
                                                            string text2 = Params[1];
                                                            TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text2);
                                                            class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                                            if (Session == null || TargetClient == null)
                                                            {
                                                                return false;
                                                            }
                                                            RoomUser roomUser = class2.GetRoomUserByHabbo(TargetClient.GetHabbo().Id);
                                                            roomUser.method_1(TargetClient, Input.Substring(9 + text2.Length), false);
                                                            return true;
                                                        }
                                                        return false;
                                                    }
                                                case 76:
                                                    if (Session.GetHabbo().isJuniori || Session.GetHabbo().HasFuse("cmd_sitdown"))
                                                    {
                                                        class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                                        class2.method_55();
                                                        return true;
                                                    }
                                                    return false;
                                                case 77:
                                                    {
                                                        return false;
                                                    }
                                                case 78:
                                                    goto IL_3F91;
                                                case 79:
                                                    {
                                                        if (!Session.GetHabbo().InRoom)
                                                        {
                                                            return false;
                                                        }
                                                        class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                                        int int_2 = class2.method_56(Session.GetHabbo().Username).CarryItemID;
                                                        if (int_2 <= 0)
                                                        {
                                                            Session.GetHabbo().method_28("You're not holding anything, pick something up first!");
                                                            return true;
                                                        }
                                                        string text = Params[1];
                                                        TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text);
                                                        class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
                                                        RoomUser class4 = class2.GetRoomUserByHabbo(TargetClient.GetHabbo().Id);
                                                        if (Session == null || TargetClient == null)
                                                        {
                                                            return false;
                                                        }
                                                        if (TargetClient.GetHabbo().Username == Session.GetHabbo().Username)
                                                        {
                                                            return true;
                                                        }
                                                        if (TargetClient.GetHabbo().CurrentRoomId == Session.GetHabbo().CurrentRoomId && Math.Abs(class6.int_3 - class4.int_3) < 3 && Math.Abs(class6.int_4 - class4.int_4) < 3)
                                                        {
                                                            try
                                                            {
                                                                class2.method_56(Params[1]).CarryItem(int_2);
                                                                class2.method_56(Session.GetHabbo().Username).CarryItem(0);
                                                            }
                                                            catch
                                                            {
                                                            }
                                                            return true;
                                                        }
                                                        Session.GetHabbo().method_28("You are too far away from " + Params[1] + ", try getting closer");
                                                        return true;
                                                    }
                                                case 80:
                                                    if (!Session.GetHabbo().InRoom)
                                                    {
                                                        return false;
                                                    }
                                                    class6 = Session.GetHabbo().CurrentRoom.method_56(Session.GetHabbo().Username);
                                                    if (class6.Statusses.ContainsKey("sit") || class6.Statusses.ContainsKey("lay") || class6.int_8 == 1 || class6.int_8 == 3 || class6.int_8 == 5 || class6.int_8 == 7)
                                                    {
                                                        return true;
                                                    }
                                                    if (class6.byte_1 > 0 || class6.class34_1 != null)
                                                    {
                                                        return true;
                                                    }
                                                    class6.AddStatus("sit", ((class6.double_0 + 1.0) / 2.0 - class6.double_0 * 0.5).ToString().Replace(",", "."));
                                                    class6.UpdateNeeded = true;
                                                    return true;
                                                case 81:
                                                case 82:
                                                    class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                                    class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
                                                    if (class6.class34_1 != null)
                                                    {
                                                        Session.GetHabbo().method_24().method_2(-1, true);
                                                        class6.class34_1.RoomUser_0 = null;
                                                        class6.class34_1 = null;
                                                        class6.double_0 -= 1.0;
                                                        class6.Statusses.Clear();
                                                        class6.UpdateNeeded = true;
                                                        int int_3 = GoldTree.smethod_5(0, class2.Class28_0.int_4);
                                                        int int_4 = GoldTree.smethod_5(0, class2.Class28_0.int_5);
                                                        class6.RoomUser_0.MoveTo(int_3, int_4);
                                                        class6.RoomUser_0 = null;
                                                        class2.method_87(class6, false, false);
                                                    }
                                                    return true;
                                                case 83:
                                                    Session.GetHabbo().method_23().method_2();
                                                    Session.SendNotif(GoldTreeEnvironment.smethod_1("cmd_emptypets_success"));
                                                    GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
                                                    return true;
                                                case 85:
                                                    if (!Session.GetHabbo().HasFuse("cmd_handitem"))
                                                    {
                                                        return false;
                                                    }
                                                    class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                                    if (class2 == null)
                                                    {
                                                        return false;
                                                    }
                                                    class2.method_56(Session.GetHabbo().Username).CarryItem(int.Parse(Params[1]));
                                                    return true;
                                                case 86:
                                                    {
                                                        if (!Session.GetHabbo().HasFuse("cmd_lay"))
                                                        {
                                                            return false;
                                                        }
                                                        Room currentRoom = Session.GetHabbo().CurrentRoom;
                                                        if (currentRoom == null)
                                                        {
                                                            return false;
                                                        }
                                                        RoomUser roomUserByHabbo2 = currentRoom.GetRoomUserByHabbo(Session.GetHabbo().Id);
                                                        if (roomUserByHabbo2 == null)
                                                        {
                                                            return false;
                                                        }
                                                        if (!roomUserByHabbo2.Statusses.ContainsKey("lay"))
                                                        {
                                                            if (roomUserByHabbo2.int_8 % 2 == 0)
                                                            {
                                                                roomUserByHabbo2.Statusses.Add("lay", Convert.ToString((double)Session.GetHabbo().CurrentRoom.Byte_0[roomUserByHabbo2.int_3, roomUserByHabbo2.int_4] + 0.55).ToString().Replace(",", "."));
                                                                roomUserByHabbo2.UpdateNeeded = true;
                                                            }
                                                            else
                                                            {
                                                                Session.GetHabbo().method_28("You cant lay if you are diagonal!");
                                                            }
                                                        }
                                                        else
                                                        {
                                                            roomUserByHabbo2.Statusses.Remove("lay");
                                                            roomUserByHabbo2.UpdateNeeded = true;
                                                        }
                                                        return true;
                                                    }
                                                /*case 93:
                                                       // V3.11.0
                                                       // R63
                                                       // OS: Any?
                                                       // PURPOSE: Run retros
                                                       // XD
                                                   return true;*/
                                                case 94:
                                                    if (Session.GetHabbo().HasFuse("cmd_startquestion"))
                                                    {
                                                        if (Params[1] != null)
                                                        {
                                                            Room Room = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                                            DataTable Data = null;
                                                            int QuestionId = int.Parse(Params[1]);
                                                            Room.CurrentPollId = QuestionId;
                                                            string Question;

                                                            using (DatabaseClient dbClient = GoldTree.GetDatabase().GetClient())
                                                            {
                                                                Question = dbClient.ReadString("SELECT question FROM infobus_questions WHERE id = '" + QuestionId + "' LIMIT 1");
                                                            }

                                                            using (DatabaseClient dbClient = GoldTree.GetDatabase().GetClient())
                                                            {
                                                                Data = dbClient.ReadDataTable("SELECT * FROM infobus_answers WHERE question_id = '" + QuestionId + "'");

                                                            }

                                                            ServerMessage InfobusQuestion = new ServerMessage(79);
                                                            InfobusQuestion.AppendStringWithBreak(Question);
                                                            InfobusQuestion.AppendInt32(Data.Rows.Count);
                                                            if (Data != null)
                                                            {
                                                                foreach (DataRow Row in Data.Rows)
                                                                {
                                                                    InfobusQuestion.AppendInt32((int)Row["id"]);
                                                                    InfobusQuestion.AppendStringWithBreak((string)Row["answer_text"]);
                                                                }
                                                            }
                                                            Room.SendMessage(InfobusQuestion, null);

                                                            Thread Infobus = new Thread(delegate() { Room.ShowResults(Room, QuestionId, Session); });
                                                            Infobus.Start();
                                                            return true;
                                                        }
                                                    }
                                                    return false;
                                                case 95:
                                                    class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                                    class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
                                                    if (class6.Boolean_3)
                                                    {
                                                        Session.GetHabbo().method_28("Command unavailable while trading!");
                                                        return true;
                                                    }
                                                    if (LicenseTools.bool_21)
                                                    {
                                                        Session.GetHabbo().method_23().RedeemPixel(Session);
                                                    }
                                                    else
                                                    {
                                                        Session.GetHabbo().method_28(GoldTree.smethod_1("cmd_error_disabled"));
                                                    }
                                                    return true;
                                                case 96:
                                                    class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                                    class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
                                                    if (class6.Boolean_3)
                                                    {
                                                        Session.GetHabbo().method_28("Command unavailable while trading!");
                                                        return true;
                                                    }
                                                    if (LicenseTools.bool_22)
                                                    {
                                                        Session.GetHabbo().method_23().RedeemShell(Session);
                                                    }
                                                    else
                                                    {
                                                        Session.GetHabbo().method_28(GoldTree.smethod_1("cmd_error_disabled"));
                                                    }
                                                    return true;
                                                default:
                                                    goto IL_3F91;
                                            }
                                    }
                                    try
                                    {
                                        if (!(LicenseTools.Boolean_8 || Session.GetHabbo().HasFuse("cmd_push")))
                                        {
                                            Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_disabled"));
                                            return true;
                                        }
                                        if (!(Session.GetHabbo().Vip || Session.GetHabbo().HasFuse("cmd_push")))
                                        {
                                            Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_permission_vip"));
                                            return true;
                                        }
                                        string a = "down";
                                        string text = Params[1];
                                        TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text);
                                        class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                        if (Session == null || TargetClient == null)
                                        {
                                            return false;
                                        }
                                        class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
                                        RoomUser class4 = class2.GetRoomUserByHabbo(TargetClient.GetHabbo().Id);
                                        if (TargetClient.GetHabbo().Username == Session.GetHabbo().Username)
                                        {
                                            Session.GetHabbo().method_28("It can't be that bad mate, no need to push yourself!");
                                            return true;
                                        }
                                        bool arg_3DD2_0;
                                        if (TargetClient.GetHabbo().CurrentRoomId == Session.GetHabbo().CurrentRoomId)
                                        {
                                            if ((class6.int_3 + 1 != class4.int_3 || class6.int_4 != class4.int_4) && (class6.int_3 - 1 != class4.int_3 || class6.int_4 != class4.int_4) && (class6.int_4 + 1 != class4.int_4 || class6.int_3 != class4.int_3))
                                            {
                                                if (class6.int_4 - 1 == class4.int_4)
                                                {
                                                    if (class6.int_3 == class4.int_3)
                                                    {
                                                        goto IL_3DA6;
                                                    }
                                                }
                                                arg_3DD2_0 = (class6.int_3 != class4.int_3 || class6.int_4 != class4.int_4);
                                                goto IL_3DD2;
                                            }
                                        IL_3DA6:
                                            arg_3DD2_0 = false;
                                        }
                                        else
                                        {
                                            arg_3DD2_0 = true;
                                        }
                                    IL_3DD2:
                                        if (!arg_3DD2_0)
                                        {
                                            class6.method_1(Session, "*pushes " + TargetClient.GetHabbo().Username + "*", false);
                                            if (class6.int_8 == 0)
                                            {
                                                a = "up";
                                            }
                                            if (class6.int_8 == 2)
                                            {
                                                a = "right";
                                            }
                                            if (class6.int_8 == 4)
                                            {
                                                a = "down";
                                            }
                                            if (class6.int_8 == 6)
                                            {
                                                a = "left";
                                            }
                                            if (a == "up")
                                            {
                                                if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor)
                                                {
                                                    if ((!(class4.int_3 == class2.Class28_0.int_0 && class4.int_4 - 1 == class2.Class28_0.int_1)) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor"))
                                                    {
                                                        class4.MoveTo(class4.int_3, class4.int_4 - 1);
                                                    }
                                                }
                                                else
                                                {
                                                    class4.MoveTo(class4.int_3, class4.int_4 - 1);
                                                }
                                            }
                                            if (a == "right")
                                            {
                                                if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor)
                                                {
                                                    if (!(class4.int_3 + 1 == class2.Class28_0.int_0 && class4.int_4 == class2.Class28_0.int_1) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor"))
                                                        class4.MoveTo(class4.int_3 + 1, class4.int_4);
                                                }
                                                else
                                                {
                                                    class4.MoveTo(class4.int_3 + 1, class4.int_4);
                                                }
                                            }
                                            if (a == "down")
                                            {
                                                if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor)
                                                {
                                                    if (!(class4.int_3 == class2.Class28_0.int_0 && class4.int_4 + 1 == class2.Class28_0.int_1) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor"))
                                                        class4.MoveTo(class4.int_3, class4.int_4 + 1);
                                                }
                                                else
                                                {
                                                    class4.MoveTo(class4.int_3, class4.int_4 + 1);
                                                }
                                            }
                                            if (a == "left")
                                            {
                                                if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor)
                                                {
                                                    if (!(class4.int_3 - 1 == class2.Class28_0.int_0 && class4.int_4 == class2.Class28_0.int_1) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor"))
                                                        class4.MoveTo(class4.int_3 - 1, class4.int_4);
                                                }
                                                else
                                                {
                                                    class4.MoveTo(class4.int_3 - 1, class4.int_4);
                                                }
                                            }
                                        }
                                        return true;
                                    }
                                    catch
                                    {
                                        return false;
                                    }
                                IL_3F03:
                                    class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                    class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
                                    if (class6.Boolean_3)
                                    {
                                        Session.GetHabbo().method_28("Command unavailable while trading");
                                        return true;
                                    }
                                    if (LicenseTools.Boolean_0)
                                    {
                                        Session.GetHabbo().method_23().method_1(Session);
                                    }
                                    else
                                    {
                                        Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_disabled"));
                                    }
                                    return true;
                                }
                        }
                    }
                IL_2F05:
                    DateTime now = DateTime.Now;
                    TimeSpan timeSpan = now - GoldTree.ServerStarted;
                    int num9 = GoldTree.GetGame().GetClientManager().ClientCount + -1;
                    int int32_ = GoldTree.GetGame().GetRoomManager().LoadedRoomsCount;
                    string text10 = "";
                    if (LicenseTools.bool_19)
                    {
                        text10 = string.Concat(new object[]
                        {
                            "\nUsers Online: ",
                            num9,
                            "\nRooms Loaded: ",
                            int32_
                        });
                    }
                    Session.method_10(string.Concat(new object[]
                    {
                        "Gold Tree Emulator 3.0\n\nThanks/Credits;\nJuniori [Project Leader] \nSojobo [Phoenix Emu]\nMatty [Phoenix Emu]\nRoy [Uber Emu]\n\n",
                        GoldTree.PrettyVersion,
                        "\nLicenced to: ",
                        GoldTree.string_6,
                        "\n\nUptime: ",
                        timeSpan.Days,
                        " days, ",
                        timeSpan.Hours,
                        " hours and ",
                        timeSpan.Minutes,
                        " minutes",
                        text10,
                    }), "");
                    return true;
                IL_3F91: ;
                }
                catch
                {
                }
                return false;
            }
        }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
     if (@class != null && @class.method_26(Session) && (LicenseTools.Boolean_1 || !(@class.Owner != Session.GetHabbo().Username)))
     {
         string text = Event.PopFixedString();
         string[] array = text.Split(new char[]
         {
             ' '
         });
         if (array[0].Contains("-"))
         {
             array[0] = array[0].Replace("-", "");
         }
         uint uint_ = 0u;
         try
         {
             uint_ = uint.Parse(array[0]);
         }
         catch
         {
             return;
         }
         UserItem class2 = Session.GetHabbo().method_23().method_10(uint_);
         if (class2 != null)
         {
             string text2 = class2.method_1().InteractionType.ToLower();
             if (text2 != null && text2 == "dimmer" && @class.method_72("dimmer") >= 1)
             {
                 Session.SendNotif("You can only have one moodlight in a room.");
             }
             else if (text2 != null && text2 == "jukebox" && @class.method_72("jukebox") >= 1)
             {
                 Session.SendNotif("You can only have one jukebox in a room.");
             }
             else
             {
                 RoomItem RoomItem_;
                 if (array[1].StartsWith(":"))
                 {
                     string text3 = @class.method_98(":" + text.Split(new char[]
                     {
                         ':'
                     })[1]);
                     if (text3 == null)
                     {
                         ServerMessage Message = new ServerMessage(516u);
                         Message.AppendInt32(11);
                         Session.SendMessage(Message);
                         return;
                     }
                     RoomItem_ = new RoomItem(class2.uint_0, @class.Id, class2.uint_1, class2.string_0, 0, 0, 0.0, 0, text3, @class);
                     if ([email protected]_82(Session, RoomItem_, true, null))
                     {
                         goto IL_32C;
                     }
                     Session.GetHabbo().method_23().method_12(uint_, 1u, false);
                     using (DatabaseClient class3 = GoldTree.GetDatabase().GetClient())
                     {
                         class3.ExecuteQuery(string.Concat(new object[]
                         {
                             "UPDATE items SET room_id = '",
                             @class.Id,
                             "' WHERE Id = '",
                             class2.uint_0,
                             "' LIMIT 1"
                         }));
                         goto IL_32C;
                     }
                 }
                 int int_ = int.Parse(array[1]);
                 int int_2 = int.Parse(array[2]);
                 int int_3 = int.Parse(array[3]);
                 RoomItem_ = new RoomItem(class2.uint_0, @class.Id, class2.uint_1, class2.string_0, 0, 0, 0.0, 0, "", @class);
                 if (@class.method_79(Session, RoomItem_, int_, int_2, int_3, true, false, false))
                 {
                     Session.GetHabbo().method_23().method_12(uint_, 1u, false);
                     using (DatabaseClient class3 = GoldTree.GetDatabase().GetClient())
                     {
                         class3.ExecuteQuery(string.Concat(new object[]
                         {
                             "UPDATE items SET room_id = '",
                             @class.Id,
                             "' WHERE Id = '",
                             class2.uint_0,
                             "' LIMIT 1"
                         }));
                     }
                 }
             IL_32C:
                 if (Session.GetHabbo().CurrentQuestId == 14u)
                 {
                     GoldTree.GetGame().GetQuestManager().ProgressUserQuest(14u, Session);
                 }
             }
         }
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
     if (@class != null && Session != null)
     {
         if (Session.GetHabbo().bool_3)
         {
             Session.SendNotif(GoldTreeEnvironment.smethod_1("error_muted"));
         }
         else
         {
             if (Session.GetHabbo().HasFuse("ignore_roommute") || [email protected]_4)
             {
                 string text = GoldTree.FilterString(Event.PopFixedString());
                 string text2 = text.Split(new char[]
                 {
                     ' '
                 })[0];
                 string text3 = text.Substring(text2.Length + 1);
                 text3 = ChatCommandHandler.smethod_4(text3);
                 RoomUser class2 = @class.GetRoomUserByHabbo(Session.GetHabbo().Id);
                 RoomUser class3 = @class.method_56(text2);
                 if (Session.GetHabbo().method_4() > 0)
                 {
                     TimeSpan timeSpan = DateTime.Now - Session.GetHabbo().dateTime_0;
                     if (timeSpan.Seconds > 4)
                     {
                         Session.GetHabbo().int_23 = 0;
                     }
                     if (timeSpan.Seconds < 4 && Session.GetHabbo().int_23 > 5 && !class2.IsBot)
                     {
                         ServerMessage Message = new ServerMessage(27u);
                         Message.AppendInt32(Session.GetHabbo().method_4());
                         Session.SendMessage(Message);
                         Session.GetHabbo().bool_3 = true;
                         Session.GetHabbo().int_4 = Session.GetHabbo().method_4();
                         return;
                     }
                     Session.GetHabbo().dateTime_0 = DateTime.Now;
                     Session.GetHabbo().int_23++;
                 }
                 ServerMessage Message2 = new ServerMessage(25u);
                 Message2.AppendInt32(class2.VirtualId);
                 Message2.AppendStringWithBreak(text3);
                 Message2.AppendBoolean(false);
                 if (class2 != null && !class2.IsBot)
                 {
                     class2.GetClient().SendMessage(Message2);
                 }
                 class2.Unidle();
                 if (class3 != null && !class3.IsBot && (class3.GetClient().GetHabbo().list_2.Count <= 0 || !class3.GetClient().GetHabbo().list_2.Contains(Session.GetHabbo().Id)))
                 {
                     class3.GetClient().SendMessage(Message2);
                     if (LicenseTools.Boolean_4 && !Session.GetHabbo().isJuniori)
                     {
                         using (DatabaseClient class4 = GoldTree.GetDatabase().GetClient())
                         {
                             class4.AddParamWithValue("message", "<Whisper to " + class3.GetClient().GetHabbo().Username + ">: " + text3);
                             class4.ExecuteQuery(string.Concat(new object[]
                             {
                                 "INSERT INTO chatlogs (user_id,room_id,hour,minute,timestamp,message,user_name,full_date) VALUES ('",
                                 Session.GetHabbo().Id,
                                 "','",
                                 @class.Id,
                                 "','",
                                 DateTime.Now.Hour,
                                 "','",
                                 DateTime.Now.Minute,
                                 "',UNIX_TIMESTAMP(),@message,'",
                                 Session.GetHabbo().Username,
                                 "','",
                                 DateTime.Now.ToLongDateString(),
                                 "')"
                             }));
                         }
                     }
                 }
             }
         }
     }
 }
 public void method_17(GameClient Session, uint uint_0, int int_0, string string_0)
 {
     GameClient @class = GoldTree.GetGame().GetClientManager().method_2(uint_0);
     if (@class != null && @class.GetHabbo().Id != Session.GetHabbo().Id)
     {
         if (@class.GetHabbo().Rank >= Session.GetHabbo().Rank)
         {
             Session.SendNotif(GoldTreeEnvironment.smethod_1("mod_error_permission_ban"));
         }
         else
         {
             double double_ = (double)int_0;
             GoldTree.GetGame().GetBanManager().method_2(@class, Session.GetHabbo().Username, double_, string_0, false);
         }
     }
 }
 public void method_16(GameClient Session, uint uint_0, string string_0, bool bool_0)
 {
     GameClient @class = GoldTree.GetGame().GetClientManager().method_2(uint_0);
     if (@class != null && @class.GetHabbo().Id != Session.GetHabbo().Id)
     {
         if (bool_0 && @class.GetHabbo().Rank >= Session.GetHabbo().Rank)
         {
             Session.SendNotif(GoldTreeEnvironment.smethod_1("mod_error_permission_caution"));
             bool_0 = false;
         }
         @class.SendNotif(string_0, 0);
         if (bool_0)
         {
             using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient())
             {
                 class2.ExecuteQuery("UPDATE user_info SET cautions = cautions + 1 WHERE user_id = '" + uint_0 + "' LIMIT 1");
             }
         }
     }
 }
 public void method_15(GameClient Session, uint uint_0, string string_0, bool bool_0)
 {
     GameClient @class = GoldTree.GetGame().GetClientManager().method_2(uint_0);
     if (@class != null && @class.GetHabbo().CurrentRoomId >= 1u && @class.GetHabbo().Id != Session.GetHabbo().Id)
     {
         if (@class.GetHabbo().Rank >= Session.GetHabbo().Rank)
         {
             Session.SendNotif(GoldTreeEnvironment.smethod_1("mod_error_permission_kick"));
         }
         else
         {
             Room class2 = GoldTree.GetGame().GetRoomManager().GetRoom(@class.GetHabbo().CurrentRoomId);
             if (class2 != null)
             {
                 class2.method_47(@class, true, false);
                 if (!bool_0)
                 {
                     @class.SendNotif(string_0);
                     using (DatabaseClient class3 = GoldTree.GetDatabase().GetClient())
                     {
                         class3.ExecuteQuery("UPDATE user_info SET cautions = cautions + 1 WHERE user_id = '" + uint_0 + "' LIMIT 1");
                     }
                 }
             }
         }
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     CatalogPage @class = GoldTree.GetGame().GetCatalog().method_5(Event.PopWiredInt32());
     if (@class != null && @class.bool_1 && @class.bool_0 && @class.uint_0 <= Session.GetHabbo().Rank)
     {
         if (@class.bool_2 && !Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club"))
         {
             Session.SendNotif("This page is for GoldTree Club members only!");
         }
         else
         {
             Session.SendMessage(@class.message5_0);
             if (@class.string_1 == "recycler")
             {
                 ServerMessage Message = new ServerMessage(507u);
                 Message.AppendBoolean(true);
                 Message.AppendBoolean(false);
                 Session.SendMessage(Message);
             }
             else
             {
                 if (@class.string_1 == "club_buy")
                 {
                     ServerMessage Message2 = new ServerMessage(625u);
                     if (Session.GetHabbo().Vip)
                     {
                         Message2.AppendInt32(2);
                         Message2.AppendInt32(4535);
                         Message2.AppendStringWithBreak("HABBO_CLUB_VIP_1_MONTH");
                         Message2.AppendInt32(25);
                         Message2.AppendInt32(0);
                         Message2.AppendInt32(1);
                         Message2.AppendInt32(1);
                         Message2.AppendInt32(101);
                         Message2.AppendInt32(DateTime.Today.AddDays(30.0).Year);
                         Message2.AppendInt32(DateTime.Today.AddDays(30.0).Month);
                         Message2.AppendInt32(DateTime.Today.AddDays(30.0).Day);
                         Message2.AppendInt32(4536);
                         Message2.AppendStringWithBreak("HABBO_CLUB_VIP_3_MONTHS");
                         Message2.AppendInt32(60);
                         Message2.AppendInt32(0);
                         Message2.AppendInt32(1);
                         Message2.AppendInt32(3);
                         Message2.AppendInt32(163);
                         Message2.AppendInt32(DateTime.Today.AddDays(90.0).Year);
                         Message2.AppendInt32(DateTime.Today.AddDays(90.0).Month);
                         Message2.AppendInt32(DateTime.Today.AddDays(90.0).Day);
                     }
                     else
                     {
                         Message2.AppendInt32(4);
                         Message2.AppendInt32(4533);
                         Message2.AppendStringWithBreak("HABBO_CLUB_BASIC_1_MONTH");
                         Message2.AppendInt32(15);
                         Message2.AppendInt32(0);
                         Message2.AppendInt32(0);
                         Message2.AppendInt32(1);
                         Message2.AppendInt32(31);
                         Message2.AppendInt32(DateTime.Today.AddDays(30.0).Year);
                         Message2.AppendInt32(DateTime.Today.AddDays(30.0).Month);
                         Message2.AppendInt32(DateTime.Today.AddDays(30.0).Day);
                         Message2.AppendInt32(4534);
                         Message2.AppendStringWithBreak("HABBO_CLUB_BASIC_3_MONTHS");
                         Message2.AppendInt32(45);
                         Message2.AppendInt32(0);
                         Message2.AppendInt32(0);
                         Message2.AppendInt32(3);
                         Message2.AppendInt32(93);
                         Message2.AppendInt32(DateTime.Today.AddDays(90.0).Year);
                         Message2.AppendInt32(DateTime.Today.AddDays(90.0).Month);
                         Message2.AppendInt32(DateTime.Today.AddDays(90.0).Day);
                         Message2.AppendInt32(4535);
                         Message2.AppendStringWithBreak("HABBO_CLUB_VIP_1_MONTH");
                         Message2.AppendInt32(25);
                         Message2.AppendInt32(0);
                         Message2.AppendInt32(1);
                         Message2.AppendInt32(1);
                         Message2.AppendInt32(101);
                         Message2.AppendInt32(DateTime.Today.AddDays(30.0).Year);
                         Message2.AppendInt32(DateTime.Today.AddDays(30.0).Month);
                         Message2.AppendInt32(DateTime.Today.AddDays(30.0).Day);
                         Message2.AppendInt32(4536);
                         Message2.AppendStringWithBreak("HABBO_CLUB_VIP_3_MONTHS");
                         Message2.AppendInt32(60);
                         Message2.AppendInt32(0);
                         Message2.AppendInt32(1);
                         Message2.AppendInt32(3);
                         Message2.AppendInt32(163);
                         Message2.AppendInt32(DateTime.Today.AddDays(90.0).Year);
                         Message2.AppendInt32(DateTime.Today.AddDays(90.0).Month);
                         Message2.AppendInt32(DateTime.Today.AddDays(90.0).Day);
                     }
                     Session.SendMessage(Message2);
                 }
             }
         }
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
     if (@class != null && @class.CheckRights(Session, true))
     {
         Event.PopWiredInt32();
         string text = GoldTree.FilterString(Event.PopFixedString());
         string text2 = GoldTree.FilterString(Event.PopFixedString());
         if (text2.Length > 255)
         {
             text2 = text2.Substring(0, 255);
         }
         int num = Event.PopWiredInt32();
         string text3 = GoldTree.FilterString(Event.PopFixedString());
         int num2 = Event.PopWiredInt32();
         int num3 = Event.PopWiredInt32();
         int num4 = Event.PopWiredInt32();
         List<string> list = new List<string>();
         StringBuilder stringBuilder = new StringBuilder();
         for (int i = 0; i < num4; i++)
         {
             if (i > 0)
             {
                 stringBuilder.Append(",");
             }
             string text4 = GoldTree.FilterString(Event.PopFixedString().ToLower());
             if (text4 == ChatCommandHandler.smethod_4(text4))
             {
                 list.Add(text4);
                 stringBuilder.Append(text4);
             }
         }
         if (stringBuilder.Length > 100)
         {
             stringBuilder.Clear();
             stringBuilder.Append("");
         }
         int num5 = 0;
         int num6 = 0;
         int num7 = 0;
         int num8 = 0;
         string a = Event.PlainReadBytes(1)[0].ToString();
         Event.AdvancePointer(1);
         string a2 = Event.PlainReadBytes(1)[0].ToString();
         Event.AdvancePointer(1);
         string a3 = Event.PlainReadBytes(1)[0].ToString();
         Event.AdvancePointer(1);
         string a4 = Event.PlainReadBytes(1)[0].ToString();
         Event.AdvancePointer(1);
         int num9 = Event.PopWiredInt32();
         int num10 = Event.PopWiredInt32();
         if (!(text != ChatCommandHandler.smethod_4(text)) && !(text2 != ChatCommandHandler.smethod_4(text2)) && text.Length >= 1 && (num9 >= -2 && num9 <= 1 && num10 >= -2 && num10 <= 1))
         {
             @class.Wallthick = num9;
             @class.Floorthick = num10;
             if (num >= 0 && num <= 2 && (num2 == 10 || num2 == 15 || num2 == 20 || num2 == 25 || num2 == 30 || num2 == 35 || num2 == 40 || num2 == 45 || num2 == 50 || num2 == 55 || num2 == 60 || num2 == 65 || num2 == 70 || num2 == 75 || num2 == 80 || num2 == 85 || num2 == 90 || num2 == 95 || num2 == 100))
             {
                 FlatCat class2 = GoldTree.GetGame().GetNavigator().method_2(num3);
                 if (class2 != null)
                 {
                     if ((long)class2.MinRank > (long)((ulong)Session.GetHabbo().Rank))
                     {
                         Session.SendNotif("You are not allowed to use this category. Your room has been moved to no category instead.");
                         num3 = 0;
                     }
                     if (num4 <= 2)
                     {
                         if (a == "65")
                         {
                             num5 = 1;
                             @class.AllowPet = true;
                         }
                         else
                         {
                             @class.AllowPet = false;
                         }
                         if (a2 == "65")
                         {
                             num6 = 1;
                             @class.AllowPetsEating = true;
                         }
                         else
                         {
                             @class.AllowPetsEating = false;
                         }
                         if (a3 == "65")
                         {
                             num7 = 1;
                             @class.AllowWalkthrough = true;
                         }
                         else
                         {
                             @class.AllowWalkthrough = false;
                         }
                         @class.method_22();
                         if (a4 == "65")
                         {
                             num8 = 1;
                             @class.Hidewall = true;
                         }
                         else
                         {
                             @class.Hidewall = false;
                         }
                         @class.Name = text;
                         @class.State = num;
                         @class.Description = text2;
                         @class.Category = num3;
                         if (text3 != "")
                         {
                             @class.Password = text3;
                         }
                         @class.Tags = list;
                         @class.UsersMax = num2;
                         string text5 = "open";
                         if (@class.State == 1)
                         {
                             text5 = "locked";
                         }
                         else
                         {
                             if (@class.State > 1)
                             {
                                 text5 = "password";
                             }
                         }
                         using (DatabaseClient class3 = GoldTree.GetDatabase().GetClient())
                         {
                             class3.AddParamWithValue("caption", @class.Name);
                             class3.AddParamWithValue("description", @class.Description);
                             class3.AddParamWithValue("password", @class.Password);
                             class3.AddParamWithValue("tags", stringBuilder.ToString());
                             class3.ExecuteQuery(string.Concat(new object[]
                             {
                                 "UPDATE rooms SET caption = @caption, description = @description, password = @password, category = '",
                                 num3,
                                 "', state = '",
                                 text5,
                                 "', tags = @tags, users_max = '",
                                 num2,
                                 "', allow_pets = '",
                                 num5,
                                 "', allow_pets_eat = '",
                                 num6,
                                 "', allow_walkthrough = '",
                                 num7,
                                 "', allow_hidewall = '",
                                 num8,
                                 "', wallthick = '",
                                 num9,
                                 "', floorthick = '",
                                 num10,
                                 "'  WHERE Id = '",
                                 @class.Id,
                                 "' LIMIT 1;"
                             }));
                         }
                         ServerMessage Message = new ServerMessage(467u);
                         Message.AppendUInt(@class.Id);
                         Session.SendMessage(Message);
                         ServerMessage Message2 = new ServerMessage(456u);
                         Message2.AppendUInt(@class.Id);
                         Session.SendMessage(Message2);
                         ServerMessage Message3 = new ServerMessage(472u);
                         Message3.AppendBoolean(@class.Hidewall);
                         Message3.AppendInt32(@class.Wallthick);
                         Message3.AppendInt32(@class.Floorthick);
                         @class.SendMessage(Message3, null);
                         ServerMessage Message4 = new ServerMessage(473u);
                         Message4.AppendBoolean(true);
                         Message4.AppendBoolean(true);
                         @class.SendMessage(Message4, null);
                         RoomData class27_ = @class.Class27_0;
                         ServerMessage Message5 = new ServerMessage(454u);
                         Message5.AppendBoolean(false);
                         class27_.method_3(Message5, false, false);
                         Session.SendMessage(Message5);
                     }
                 }
             }
         }
     }
 }
 public void RedeemShell(GameClient class16_1)
 {
     int num = 0;
     List<UserItem> list = new List<UserItem>();
     foreach (UserItem current in this.list_0)
     {
         if (current != null && (current.method_1().Name.StartsWith("PntEx_")))
         {
             string[] array = current.method_1().Name.Split(new char[]
             {
                 '_'
             });
             int num2 = int.Parse(array[1]);
             if (!this.list_1.Contains(current.uint_0))
             {
                 if (num2 > 0)
                 {
                     num += num2;
                 }
                 list.Add(current);
             }
         }
     }
     foreach (UserItem current in list)
     {
         this.method_12(current.uint_0, 0u, false);
     }
     class16_1.GetHabbo().VipPoints += num;
     class16_1.GetHabbo().method_14(false, true);
     class16_1.SendNotif("All shells in your inventory have been converted back into " + num + " shells!");
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     if (Session.GetHabbo().uint_2 > 0u && Session.GetHabbo().bool_5)
     {
         RoomData @class = GoldTree.GetGame().GetRoomManager().method_12(Session.GetHabbo().uint_2);
         if (@class != null)
         {
             if (@class.Model == null)
             {
                 Session.SendNotif("Error loading room, please try again soon! (Error Code: MdlData)");
                 Session.SendMessage(new ServerMessage(18u));
                 Session.method_1().method_7();
             }
             else
             {
                 Session.SendMessage(@class.Model.method_1());
                 Session.SendMessage(@class.Model.method_2());
                 Room class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().uint_2);
                 if (class2 != null)
                 {
                     Session.method_1().method_7();
                     ServerMessage Message = new ServerMessage(30u);
                     if (class2.Class28_0.string_2 != "")
                     {
                         Message.AppendStringWithBreak(class2.Class28_0.string_2);
                     }
                     else
                     {
                         Message.AppendInt32(0);
                     }
                     Session.SendMessage(Message);
                     if (class2.Type == "private")
                     {
                         Hashtable hashtable_ = class2.Hashtable_0;
                         Hashtable hashtable_2 = class2.Hashtable_1;
                         ServerMessage Message2 = new ServerMessage(32u);
                         Message2.AppendInt32(hashtable_.Count);
                         foreach (RoomItem class3 in hashtable_.Values)
                         {
                             class3.method_6(Message2);
                         }
                         Session.SendMessage(Message2);
                         ServerMessage Message3 = new ServerMessage(45u);
                         Message3.AppendInt32(hashtable_2.Count);
                         foreach (RoomItem class3 in hashtable_2.Values)
                         {
                             class3.method_6(Message3);
                         }
                         Session.SendMessage(Message3);
                     }
                     class2.method_46(Session, Session.GetHabbo().bool_8);
                     List<RoomUser> list = new List<RoomUser>();
                     for (int i = 0; i < class2.RoomUser_0.Length; i++)
                     {
                         RoomUser class4 = class2.RoomUser_0[i];
                         if (class4 != null && (!class4.bool_11 && class4.bool_12))
                         {
                             list.Add(class4);
                         }
                     }
                     ServerMessage Message4 = new ServerMessage(28u);
                     Message4.AppendInt32(list.Count);
                     foreach (RoomUser class4 in list)
                     {
                         class4.method_14(Message4);
                     }
                     Session.SendMessage(Message4);
                     ServerMessage Message5 = new ServerMessage(472u);
                     Message5.AppendBoolean(class2.Hidewall);
                     Message5.AppendInt32(class2.Wallthick);
                     Message5.AppendInt32(class2.Floorthick);
                     Session.SendMessage(Message5);
                     if (class2.Type == "public")
                     {
                         ServerMessage Message6 = new ServerMessage(471u);
                         Message6.AppendBoolean(false);
                         Message6.AppendStringWithBreak(class2.ModelName);
                         Message6.AppendBoolean(false);
                         Session.SendMessage(Message6);
                     }
                     else
                     {
                         if (class2.Type == "private")
                         {
                             ServerMessage Message6 = new ServerMessage(471u);
                             Message6.AppendBoolean(true);
                             Message6.AppendUInt(class2.Id);
                             if (class2.CheckRights(Session, true))
                             {
                                 Message6.AppendBoolean(true);
                             }
                             else
                             {
                                 Message6.AppendBoolean(false);
                             }
                             Session.SendMessage(Message6);
                             ServerMessage Message7 = new ServerMessage(454u);
                             Message7.AppendBoolean(false);
                             @class.method_3(Message7, false, false);
                             Session.SendMessage(Message7);
                         }
                     }
                     ServerMessage Message8 = class2.method_67(true);
                     if (Message8 != null)
                     {
                         Session.SendMessage(Message8);
                     }
                     for (int i = 0; i < class2.RoomUser_0.Length; i++)
                     {
                         RoomUser class4 = class2.RoomUser_0[i];
                         if (class4 != null && !class4.bool_11)
                         {
                             if (class4.Boolean_1)
                             {
                                 ServerMessage Message9 = new ServerMessage(480u);
                                 Message9.AppendInt32(class4.VirtualId);
                                 Message9.AppendInt32(class4.DanceId);
                                 Session.SendMessage(Message9);
                             }
                             if (class4.bool_8)
                             {
                                 ServerMessage Message10 = new ServerMessage(486u);
                                 Message10.AppendInt32(class4.VirtualId);
                                 Message10.AppendBoolean(true);
                                 Session.SendMessage(Message10);
                             }
                             if (class4.CarryItemID > 0 && class4.int_6 > 0)
                             {
                                 ServerMessage Message11 = new ServerMessage(482u);
                                 Message11.AppendInt32(class4.VirtualId);
                                 Message11.AppendInt32(class4.CarryItemID);
                                 Session.SendMessage(Message11);
                             }
                             if (!class4.IsBot)
                             {
                                 try
                                 {
                                     if (class4.GetClient().GetHabbo() != null && class4.GetClient().GetHabbo().method_24() != null && class4.GetClient().GetHabbo().method_24().int_0 >= 1)
                                     {
                                         ServerMessage Message12 = new ServerMessage(485u);
                                         Message12.AppendInt32(class4.VirtualId);
                                         Message12.AppendInt32(class4.GetClient().GetHabbo().method_24().int_0);
                                         Session.SendMessage(Message12);
                                     }
                                     goto IL_5C5;
                                 }
                                 catch
                                 {
                                     goto IL_5C5;
                                 }
                             }
                             if (!class4.isPet && class4.class34_0.EffectId != 0)
                             {
                                 ServerMessage Message12 = new ServerMessage(485u);
                                 Message12.AppendInt32(class4.VirtualId);
                                 Message12.AppendInt32(class4.class34_0.EffectId);
                                 Session.SendMessage(Message12);
                             }
                         }
                         IL_5C5:;
                     }
                     if (class2 != null && Session != null && Session.GetHabbo().CurrentRoom != null)
                     {
                         Session.GetHabbo().method_24().method_2(0, true);
                         class2.method_8(Session.GetHabbo().CurrentRoom.GetRoomUserByHabbo(Session.GetHabbo().Id));
                     }
                     if (class2.Achievement > 0u)
                     {
                         GoldTree.GetGame().GetAchievementManager().addAchievement(Session, class2.Achievement, 1);
                     }
                     if (Session.GetHabbo().bool_3 && Session.GetHabbo().int_4 > 0)
                     {
                         ServerMessage Message13 = new ServerMessage(27u);
                         Message13.AppendInt32(Session.GetHabbo().int_4);
                         Session.SendMessage(Message13);
                     }
                 }
             }
         }
     }
 }
 public RoomData method_20(GameClient Session, string string_0, string string_1)
 {
     string_0 = GoldTree.FilterString(string_0);
     RoomData result;
     if (!this.Models.ContainsKey(string_1))
     {
         Session.SendNotif("Sorry, this room model has not been added yet. Try again later.");
         result = null;
     }
     else
     {
         if (this.Models[string_1].bool_0 && !Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club") && !Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_vip"))
         {
             Session.SendNotif("You must be an GoldTree Club member to use that room layout.");
             result = null;
         }
         else
         {
             if (string_0.Length < 3)
             {
                 Session.SendNotif("Room name is too short for room creation!");
                 result = null;
             }
             else
             {
                 uint uint_ = 0u;
                 using (DatabaseClient @class = GoldTree.GetDatabase().GetClient())
                 {
                     @class.AddParamWithValue("caption", string_0);
                     @class.AddParamWithValue("model", string_1);
                     @class.AddParamWithValue("username", Session.GetHabbo().Username);
                     @class.ExecuteQuery("INSERT INTO rooms (roomtype,caption,owner,model_name) VALUES ('private',@caption,@username,@model)");
                     Session.GetHabbo().Class12_0.DataTable_10 = @class.ReadDataTable("SELECT * FROM rooms WHERE owner = @username ORDER BY Id ASC");
                     uint_ = (uint)@class.ReadDataRow("SELECT Id FROM rooms WHERE owner = @username AND caption = @caption ORDER BY Id DESC")[0];
                     Session.GetHabbo().method_1(@class);
                 }
                 result = this.method_12(uint_);
             }
         }
     }
     return result;
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     uint num = Event.PopWiredUInt();
     DataRow dataRow = null;
     using (DatabaseClient @class = GoldTree.GetDatabase().GetClient())
     {
         dataRow = @class.ReadDataRow("SELECT state, timestamp, total_price, extra_data, item_id, furni_id FROM catalog_marketplace_offers WHERE offer_id = '" + num + "' LIMIT 1");
     }
     if (dataRow == null || (string)dataRow["state"] != "1" || (double)dataRow["timestamp"] <= GoldTree.GetGame().GetCatalog().method_22().method_3())
     {
         Session.SendNotif(GoldTreeEnvironment.smethod_1("marketplace_error_expired"));
     }
     else
     {
         Item class2 = GoldTree.GetGame().GetItemManager().method_2((uint)dataRow["item_id"]);
         if (class2 != null)
         {
             if ((int)dataRow["total_price"] >= 1)
             {
                 if (Session.GetHabbo().Credits < (int)dataRow["total_price"])
                 {
                     Session.SendNotif(GoldTreeEnvironment.smethod_1("marketplace_error_credits"));
                     return;
                 }
                 Session.GetHabbo().Credits -= (int)dataRow["total_price"];
                 Session.GetHabbo().method_13(true);
             }
             GoldTree.GetGame().GetCatalog().method_9(Session, class2, 1, (string)dataRow["extra_data"], false, (uint)dataRow["furni_id"]);
             using (DatabaseClient @class = GoldTree.GetDatabase().GetClient())
             {
                 @class.ExecuteQuery("UPDATE catalog_marketplace_offers SET state = '2' WHERE offer_id = '" + num + "' LIMIT 1");
                 int num2 = 0;
                 try
                 {
                     num2 = @class.ReadInt32("SELECT Id FROM catalog_marketplace_data WHERE daysago = 0 AND sprite = " + class2.Sprite + " LIMIT 1;");
                 }
                 catch
                 {
                 }
                 if (num2 > 0)
                 {
                     @class.ExecuteQuery(string.Concat(new object[]
                     {
                         "UPDATE catalog_marketplace_data SET sold = sold + 1, avgprice = (avgprice + ",
                         (int)dataRow["total_price"],
                         ") WHERE Id = ",
                         num2,
                         " LIMIT 1;"
                     }));
                 }
                 else
                 {
                     @class.ExecuteQuery(string.Concat(new object[]
                     {
                         "INSERT INTO catalog_marketplace_data (sprite, sold, avgprice, daysago) VALUES ('",
                         class2.Sprite,
                         "', 1, ",
                         (int)dataRow["total_price"],
                         ", 0)"
                     }));
                 }
                 if (GoldTree.GetGame().GetCatalog().method_22().dictionary_0.ContainsKey(class2.Sprite) && GoldTree.GetGame().GetCatalog().method_22().dictionary_1.ContainsKey(class2.Sprite))
                 {
                     int num3 = GoldTree.GetGame().GetCatalog().method_22().dictionary_1[class2.Sprite];
                     int num4 = GoldTree.GetGame().GetCatalog().method_22().dictionary_0[class2.Sprite];
                     num4 += (int)dataRow["total_price"];
                     GoldTree.GetGame().GetCatalog().method_22().dictionary_0.Remove(class2.Sprite);
                     GoldTree.GetGame().GetCatalog().method_22().dictionary_0.Add(class2.Sprite, num4);
                     GoldTree.GetGame().GetCatalog().method_22().dictionary_1.Remove(class2.Sprite);
                     GoldTree.GetGame().GetCatalog().method_22().dictionary_1.Add(class2.Sprite, num3 + 1);
                 }
                 else
                 {
                     if (!GoldTree.GetGame().GetCatalog().method_22().dictionary_0.ContainsKey(class2.Sprite))
                     {
                         GoldTree.GetGame().GetCatalog().method_22().dictionary_0.Add(class2.Sprite, (int)dataRow["total_price"]);
                     }
                     if (!GoldTree.GetGame().GetCatalog().method_22().dictionary_1.ContainsKey(class2.Sprite))
                     {
                         GoldTree.GetGame().GetCatalog().method_22().dictionary_1.Add(class2.Sprite, 1);
                     }
                 }
             }
             ServerMessage Message = new ServerMessage(67u);
             Message.AppendUInt(class2.UInt32_0);
             Message.AppendStringWithBreak(class2.Name);
             Message.AppendInt32((int)dataRow["total_price"]);
             Message.AppendInt32(0);
             Message.AppendInt32(0);
             Message.AppendInt32(1);
             Message.AppendStringWithBreak(class2.Type.ToString());
             Message.AppendInt32(class2.Sprite);
             Message.AppendStringWithBreak("");
             Message.AppendInt32(1);
             Message.AppendInt32(-1);
             Message.AppendStringWithBreak("");
             Session.SendMessage(Message);
             Session.SendMessage(GoldTree.GetGame().GetCatalog().method_22().method_5(-1, -1, "", 1));
         }
     }
 }