public void Handle(GameClient Session, ClientMessage Event)
 {
     int PollId = Event.PopWiredInt32();
     int QuestionId = Event.PopWiredInt32();
     int AnswerCount = Event.PopWiredInt32();
     string AnswerText = "";
     if (AnswerCount > 1)
     {
         for (int i = 1; i <= AnswerCount; i++)
         {
             if (AnswerText == "")
             {
                 AnswerText = Event.PopFixedString();
             }
             else
             {
                 AnswerText = AnswerText + "," + Event.PopFixedString();
             }
         }
     }
     else
     {
         AnswerText = Event.PopFixedString();
     }
     using (DatabaseClient dbClient = GoldTree.GetDatabase().GetClient())
     {
         dbClient.ExecuteQuery("INSERT INTO `room_poll_results` (`poll_id`, `question_id`, `answer_text`, `user_id`) VALUES ('" + PollId +"', '" + QuestionId + "', '" + AnswerText + "', '" + Session.GetHabbo().Id + "')");
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
     if (@class != null && @class.method_26(Session))
     {
         uint num = Event.PopWiredUInt();
         string a = Event.PopFixedString().ToUpper();
         string text = GoldTree.FilterString(Event.PopFixedString());
         text = text.Replace("hd-99999-99999", "");
         text += ".";
         RoomItem class2 = @class.Hashtable_0[num] as RoomItem;
         if (class2.ExtraData.Contains(','))
         {
             class2.string_2 = class2.ExtraData.Split(new char[]
             {
                 ','
             })[0];
             class2.string_3 = class2.ExtraData.Split(new char[]
             {
                 ','
             })[1];
         }
         if (a == "M")
         {
             class2.string_2 = text;
         }
         else
         {
             class2.string_3 = text;
         }
         class2.ExtraData = class2.string_2 + "," + class2.string_3;
         class2.UpdateState(true, true);
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     int int_ = Event.PopWiredInt32();
     uint uint_ = Event.PopWiredUInt();
     string string_ = Event.PopFixedString();
     string string_2 = GoldTree.FilterString(Event.PopFixedString());
     string string_3 = GoldTree.FilterString(Event.PopFixedString());
     GoldTree.GetGame().GetCatalog().method_6(Session, int_, uint_, string_, true, string_2, string_3, true);
 }
        public void Handle(GameClient Session, ClientMessage Event)
        {
            if (Session.GetHabbo() == null)
            {
                Session.method_6(Event.PopFixedString());
                if (Session.GetHabbo() != null && Session.GetHabbo().list_2 != null && Session.GetHabbo().list_2.Count > 0)
                {
                    using (DatabaseClient @class = GoldTree.GetDatabase().GetClient())
                    {
                        try
                        {
                            ServerMessage Message = new ServerMessage(420u);
                            Message.AppendInt32(Session.GetHabbo().list_2.Count);
                            foreach (uint current in Session.GetHabbo().list_2)
                            {
                                string string_ = @class.ReadString("SELECT username FROM users WHERE Id = " + current + " LIMIT 1;");
                                Message.AppendStringWithBreak(string_);
                            }
                            Session.SendMessage(Message);
                        }
                        catch
                        {
                            Console.ForegroundColor = ConsoleColor.Red;
                            Logging.WriteLine("Login error: User is ignoring a user that no longer exists");
                            Console.ForegroundColor = ConsoleColor.Gray;
                        }

                    }
                }
            }
        }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     Room class14_ = Session.GetHabbo().CurrentRoom;
     if (class14_ != null)
     {
         Event.PopWiredUInt();
         string string_ = Event.PopFixedString();
         RoomUser @class = class14_.method_56(string_);
         if (@class != null)
         {
             uint uint_ = @class.GetClient().GetHabbo().Id;
             if (Session.GetHabbo().list_2.Contains(uint_))
             {
                 Session.GetHabbo().list_2.Remove(uint_);
                 using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient())
                 {
                     class2.ExecuteQuery(string.Concat(new object[]
                     {
                         "DELETE FROM user_ignores WHERE user_id = ",
                         Session.GetHabbo().Id,
                         " AND ignore_id = ",
                         uint_,
                         " LIMIT 1;"
                     }));
                 }
                 ServerMessage Message = new ServerMessage(419u);
                 Message.AppendInt32(3);
                 Session.SendMessage(Message);
             }
         }
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     string text = Event.PopFixedString();
     ServerMessage Message = new ServerMessage(7u);
     Message.AppendStringWithBreak(text.ToLower());
     if (Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_vip"))
     {
         double num = (double)Session.GetHabbo().GetSubscriptionManager().method_1("habbo_vip").Int32_0;
         double num2 = num - GoldTree.GetUnixTimestamp();
         int num3 = (int)Math.Ceiling(num2 / 86400.0);
         int num4 = num3 / 31;
         if (num4 >= 1)
         {
             num4--;
         }
         Message.AppendInt32(num3 - num4 * 31);
         Message.AppendBoolean(true);
         Message.AppendInt32(num4);
         Message.AppendBoolean(true);
         Message.AppendBoolean(true);
         Message.AppendBoolean(Session.GetHabbo().Vip);
         Message.AppendInt32(0);
         Message.AppendInt32(0);
     }
     else
     {
         if (Session.GetHabbo().GetSubscriptionManager().HasSubscription(text))
         {
             double num = (double)Session.GetHabbo().GetSubscriptionManager().method_1(text).Int32_0;
             double num2 = num - GoldTree.GetUnixTimestamp();
             int num3 = (int)Math.Ceiling(num2 / 86400.0);
             int num4 = num3 / 31;
             if (num4 >= 1)
             {
                 num4--;
             }
             Message.AppendInt32(num3 - num4 * 31);
             Message.AppendBoolean(true);
             Message.AppendInt32(num4);
             if (Session.GetHabbo().Rank >= 2u)
             {
                 Message.AppendInt32(1);
                 Message.AppendInt32(1);
                 Message.AppendInt32(2);
             }
             else
             {
                 Message.AppendInt32(1);
             }
         }
         else
         {
             for (int i = 0; i < 3; i++)
             {
                 Message.AppendInt32(0);
             }
         }
     }
     Session.SendMessage(Message);
 }
        public void Handle(GameClient Session, ClientMessage Event)
        {
            int int_ = Event.PopWiredInt32();
            uint uint_ = Event.PopWiredUInt();
            string string_ = Event.PopFixedString();

            if (Session == null || Session.GetHabbo() == null)
            {
                return;
            }

            if (Session.GetHabbo().int_24 > 1)
            {
                int num = 0;
                while (num < Session.GetHabbo().int_24 && GoldTree.GetGame().GetCatalog().method_6(Session, int_, uint_, string_, false, "", "", num == 0))
                {
                    num++;
                }
                Session.GetHabbo().int_24 = 1;
            }
            else
            {
                GoldTree.GetGame().GetCatalog().method_6(Session, int_, uint_, string_, false, "", "", true);
            }
        }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     uint num = Event.PopWiredUInt();
     Event.PopFixedString();
     Event.PopWiredInt32();
     RoomData @class = GoldTree.GetGame().GetRoomManager().method_12(num);
     if (@class != null)
     {
         if (@class.Type == "private")
         {
             ServerMessage Message = new ServerMessage(286u);
             Message.AppendBoolean(@class.IsPublicRoom);
             Message.AppendUInt(num);
             Session.SendMessage(Message);
         }
         else
         {
             ServerMessage Message2 = new ServerMessage(453u);
             Message2.AppendUInt(@class.Id);
             Message2.AppendStringWithBreak(@class.CCTs);
             Message2.AppendUInt(@class.Id);
             Session.SendMessage(Message2);
         }
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     Room class14_ = Session.GetHabbo().CurrentRoom;
     if (class14_ != null)
     {
         Event.PopWiredUInt();
         string string_ = Event.PopFixedString();
         RoomUser @class = class14_.method_56(string_);
         if (@class != null && @class.GetClient().GetHabbo().Rank <= 2u)
         {
             uint uint_ = @class.GetClient().GetHabbo().Id;
             if (!Session.GetHabbo().list_2.Contains(uint_))
             {
                 Session.GetHabbo().list_2.Add(uint_);
                 using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient())
                 {
                     class2.ExecuteQuery(string.Concat(new object[]
                     {
                         "INSERT INTO user_ignores(user_id, ignore_id) VALUES (",
                         Session.GetHabbo().Id,
                         ", ",
                         uint_,
                         ");"
                     }));
                 }
                 ServerMessage Message = new ServerMessage(419u);
                 Message.AppendInt32(1);
                 Session.SendMessage(Message);
             }
         }
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     uint num = Event.PopWiredUInt();
     string text = GoldTree.FilterString(Event.PopFixedString());
     if (Session != null && Session.GetHabbo() != null && Session.GetHabbo().GetMessenger() != null)
     {
         if (num == 0u && Session.GetHabbo().HasFuse("cmd_sa"))
         {
             ServerMessage Message = new ServerMessage(134u);
             Message.AppendUInt(0u);
             Message.AppendString(Session.GetHabbo().Username + ": " + text);
             GoldTree.GetGame().GetClientManager().method_17(Session, Message);
         }
         else
         {
             if (num == 0u)
             {
                 ServerMessage Message2 = new ServerMessage(261u);
                 Message2.AppendInt32(4);
                 Message2.AppendUInt(0u);
                 Session.SendMessage(Message2);
             }
             else
             {
                 if (Session != null && Session.GetHabbo() != null)
                 {
                     Session.GetHabbo().GetMessenger().method_18(num, text);
                 }
             }
         }
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
     if (@class != null)
     {
         RoomItem class2 = @class.method_28(Event.PopWiredUInt());
         if (class2 != null && !(class2.GetBaseItem().InteractionType.ToLower() != "postit"))
         {
             string text = Event.PopFixedString();
             string text2 = text.Split(new char[]
             {
                 ' '
             })[0];
             string str = GoldTree.DoFilter(text.Substring(text2.Length + 1), true, true);
             if (@class.method_26(Session) || text.StartsWith(class2.ExtraData))
             {
                 string text3 = text2;
                 if (text3 != null && (text3 == "FFFF33" || text3 == "FF9CFF" || text3 == "9CCEFF" || text3 == "9CFF9C"))
                 {
                     class2.ExtraData = text2 + " " + str;
                     class2.UpdateState(true, true);
                 }
             }
         }
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     string text = GoldTree.FilterString(Event.PopFixedString());
     if (text.Length >= 1)
     {
         Session.SendMessage(GoldTree.GetGame().GetHelpTool().method_10(text));
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     try
     {
         Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
         if (@class != null)
         {
             if (@class.method_72("stickiepole") > 0 || @class.method_26(Session))
             {
                 uint uint_ = Event.PopWiredUInt();
                 string text = Event.PopFixedString();
                 string[] array = text.Split(new char[]
                 {
                     ' '
                 });
                 if (array[0].Contains("-"))
                 {
                     array[0] = array[0].Replace("-", "");
                 }
                 UserItem class2 = Session.GetHabbo().method_23().method_10(uint_);
                 if (class2 != null)
                 {
                     if (array[0].StartsWith(":"))
                     {
                         string text2 = @class.method_98(text);
                         if (text2 == null)
                         {
                             ServerMessage Message = new ServerMessage(516u);
                             Message.AppendInt32(11);
                             Session.SendMessage(Message);
                             return;
                         }
                         RoomItem RoomItem_ = new RoomItem(class2.uint_0, @class.Id, class2.uint_1, class2.string_0, 0, 0, 0.0, 0, text2, @class);
                         if (@class.method_82(Session, RoomItem_, true, null))
                         {
                             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"
                         }));
                     }
                 }
             }
         }
     }
     catch
     {
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     if (Session.GetHabbo().HasFuse("acc_supporttool"))
     {
         uint uint_ = Event.PopWiredUInt();
         string string_ = Event.PopFixedString();
         GoldTree.GetGame().GetModerationTool().method_16(Session, uint_, string_, true);
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     uint num = Event.PopWiredUInt();
     string text = Event.PopFixedString();
     string text2 = Event.PopFixedString();
     if (AntiMutant.ValidateLook(text, text2))
     {
         using (DatabaseClient client = GoldTree.GetDatabase().GetClient())
         {
             client.AddParamWithValue("look", text);
             client.AddParamWithValue("gender", text2.ToUpper());
             if (client.ReadDataRow(string.Concat(new object[]
             {
                 "SELECT null FROM user_wardrobe WHERE user_id = ",
                 Session.GetHabbo().Id,
                 " AND slot_id = ",
                 num,
                 " LIMIT 1"
             })) != null)
             {
                 client.ExecuteQuery(string.Concat(new object[]
                 {
                     "UPDATE user_wardrobe SET look = @look, gender = @gender WHERE user_id = ",
                     Session.GetHabbo().Id,
                     " AND slot_id = ",
                     num,
                     " LIMIT 1;"
                 }));
             }
             else
             {
                 client.ExecuteQuery(string.Concat(new object[]
                 {
                     "INSERT INTO user_wardrobe (user_id,slot_id,look,gender) VALUES (",
                     Session.GetHabbo().Id,
                     ",",
                     num,
                     ",@look,@gender)"
                 }));
             }
         }
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     Session.GetHabbo().method_22().method_5();
     using (DatabaseClient @class = GoldTree.GetDatabase().GetClient())
     {
         @class.ExecuteQuery("UPDATE user_badges SET badge_slot = '0' WHERE user_id = '" + Session.GetHabbo().Id + "'");
         goto IL_131;
     }
     IL_52:
     int num = Event.PopWiredInt32();
     string text = Event.PopFixedString();
     if (text.Length != 0)
     {
         if (!Session.GetHabbo().method_22().method_1(text) || num < 1 || num > 5)
         {
             return;
         }
         if (Session.GetHabbo().CurrentQuestId == 16u)
         {
             GoldTree.GetGame().GetQuestManager().ProgressUserQuest(16u, Session);
         }
         Session.GetHabbo().method_22().method_0(text).Slot = num;
         using (DatabaseClient @class = GoldTree.GetDatabase().GetClient())
         {
             @class.AddParamWithValue("slotid", num);
             @class.AddParamWithValue("badge", text);
             @class.AddParamWithValue("userid", Session.GetHabbo().Id);
             @class.ExecuteQuery("UPDATE user_badges SET badge_slot = @slotid WHERE badge_id = @badge AND user_id = @userid LIMIT 1");
         }
     }
     IL_131:
     if (Event.RemainingLength > 0)
     {
         goto IL_52;
     }
     ServerMessage Message = new ServerMessage(228u);
     Message.AppendUInt(Session.GetHabbo().Id);
     Message.AppendInt32(Session.GetHabbo().method_22().Int32_1);
     foreach (Badge current in Session.GetHabbo().method_22().List_0)
     {
         if (current.Slot > 0)
         {
             Message.AppendInt32(current.Slot);
             Message.AppendStringWithBreak(current.Code);
         }
     }
     if (Session.GetHabbo().InRoom && GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId) != null)
     {
         GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId).SendMessage(Message, null);
     }
     else
     {
         Session.SendMessage(Message);
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     uint num = Event.PopWiredUInt();
     string string_ = Event.PopFixedString();
     Event.PopWiredInt32();
     if (GoldTree.GetConfig().data["emu.messages.roommgr"] == "1")
     {
         Logging.WriteLine("[RoomMgr] Requesting Private Room [ID: " + num + "]");
     }
     Session.method_1().method_5(num, string_);
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
     if (@class != null && @class.CheckRights(Session, true) && @class.Event != null)
     {
         int int_ = Event.PopWiredInt32();
         string string_ = GoldTree.FilterString(Event.PopFixedString());
         string string_2 = GoldTree.FilterString(Event.PopFixedString());
         int num = Event.PopWiredInt32();
         @class.Event.Category = int_;
         @class.Event.Name = string_;
         @class.Event.Description = string_2;
         @class.Event.Tags = new List<string>();
         for (int i = 0; i < num; i++)
         {
             @class.Event.Tags.Add(GoldTree.FilterString(Event.PopFixedString()));
         }
         @class.SendMessage(@class.Event.Serialize(Session), null);
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     if (Session.GetHabbo().GetMessenger() != null)
     {
         if (Session.GetHabbo().CurrentQuestId == 4u)
         {
             GoldTree.GetGame().GetQuestManager().ProgressUserQuest(4u, Session);
         }
         Session.GetHabbo().GetMessenger().method_16(Event.PopFixedString());
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     if (Session.GetHabbo().GetMessenger() != null)
     {
         if (Session.GetHabbo().CurrentQuestId > 0 && GoldTree.GetGame().GetQuestManager().GetQuestAction(Session.GetHabbo().CurrentQuestId) == "REQUEST_FRIEND")
         {
             GoldTree.GetGame().GetQuestManager().ProgressUserQuest(Session.GetHabbo().CurrentQuestId, Session);
         }
         Session.GetHabbo().GetMessenger().method_16(Event.PopFixedString());
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
     if (@class != null && @class.CheckRights(Session, true) && @class.Event == null && @class.State == 0)
     {
         int int_ = Event.PopWiredInt32();
         string text = GoldTree.FilterString(Event.PopFixedString());
         string string_ = GoldTree.FilterString(Event.PopFixedString());
         int num = Event.PopWiredInt32();
         if (text.Length >= 1)
         {
             @class.Event = new RoomEvent(@class.Id, text, string_, int_, null);
             @class.Event.Tags = new List<string>();
             for (int i = 0; i < num; i++)
             {
                 @class.Event.Tags.Add(GoldTree.FilterString(Event.PopFixedString()));
             }
             @class.SendMessage(@class.Event.Serialize(Session), null);
         }
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
     if (@class != null)
     {
         RoomUser class2 = @class.GetRoomUserByHabbo(Session.GetHabbo().Id);
         if (class2 != null)
         {
             class2.method_1(Session, GoldTree.FilterString(Event.PopFixedString()), true);
         }
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
     if (@class != null && @class.method_26(Session))
     {
         RoomItem class2 = @class.method_28(Event.PopWiredUInt());
         if (class2 != null)
         {
             string string_ = Event.PopFixedString();
             @class.method_82(Session, class2, false, string_);
         }
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     if (Session.GetHabbo().HasFuse("acc_supporttool"))
     {
         Event.PopWiredInt32();
         int num = Event.PopWiredInt32();
         string text = Event.PopFixedString();
         string text2 = "";
         if (num.Equals(3))
         {
             text2 += "Room Cautioned.";
         }
         text2 = text2 + " Message: " + text;
         GoldTree.GetGame().GetClientManager().method_31(Session, "ModTool - Room Alert", text2);
         GoldTree.GetGame().GetModerationTool().method_13(Session.GetHabbo().CurrentRoomId, !num.Equals(3), text);
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     if (Session.GetHabbo().HasFuse("acc_supporttool"))
     {
         uint num = Event.PopWiredUInt();
         string text = Event.PopFixedString();
         string string_ = string.Concat(new object[]
         {
             "User: "******", Message: ",
             text
         });
         GoldTree.GetGame().GetClientManager().method_31(Session, "ModTool - Kick User", string_);
         GoldTree.GetGame().GetModerationTool().method_15(Session, num, text, false);
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     string text = GoldTree.FilterString(Event.PopFixedString());
     if (text.Length <= 50 && !(text != ChatCommandHandler.smethod_4(text)) && !(text == Session.GetHabbo().Motto))
     {
         Session.GetHabbo().Motto = text;
         using (DatabaseClient @class = GoldTree.GetDatabase().GetClient())
         {
             @class.AddParamWithValue("motto", text);
             @class.ExecuteQuery("UPDATE users SET motto = @motto WHERE Id = '" + Session.GetHabbo().Id + "' LIMIT 1");
         }
         if (GoldTree.GetGame().GetQuestManager().GetQuestAction(Session.GetHabbo().CurrentQuestId) == "CHANGEMOTTO")
         {
             GoldTree.GetGame().GetQuestManager().ProgressUserQuest(Session.GetHabbo().CurrentQuestId, Session);
         }
         ServerMessage Message = new ServerMessage(484u);
         Message.AppendInt32(-1);
         Message.AppendStringWithBreak(Session.GetHabbo().Motto);
         Session.SendMessage(Message);
         if (Session.GetHabbo().InRoom)
         {
             Room class14_ = Session.GetHabbo().CurrentRoom;
             if (class14_ == null)
             {
                 return;
             }
             RoomUser class2 = class14_.GetRoomUserByHabbo(Session.GetHabbo().Id);
             if (class2 == null)
             {
                 return;
             }
             ServerMessage Message2 = new ServerMessage(266u);
             Message2.AppendInt32(class2.VirtualId);
             Message2.AppendStringWithBreak(Session.GetHabbo().Figure);
             Message2.AppendStringWithBreak(Session.GetHabbo().Gender.ToLower());
             Message2.AppendStringWithBreak(Session.GetHabbo().Motto);
             Message2.AppendInt32(Session.GetHabbo().AchievementScore);
             Message2.AppendStringWithBreak("");
             class14_.SendMessage(Message2, null);
         }
         Session.GetHabbo().MottoAchievementsCompleted();
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     bool flag = false;
     if (GoldTree.GetGame().GetModerationTool().method_9(Session.GetHabbo().Id))
     {
         flag = true;
     }
     if (!flag)
     {
         string string_ = GoldTree.FilterString(Event.PopFixedString());
         Event.PopWiredInt32();
         int int_ = Event.PopWiredInt32();
         uint uint_ = Event.PopWiredUInt();
         GoldTree.GetGame().GetModerationTool().method_3(Session, int_, uint_, string_);
     }
     ServerMessage Message = new ServerMessage(321u);
     Message.AppendBoolean(flag);
     Session.SendMessage(Message);
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     int num = Event.PopWiredInt32();
     List<uint> list = new List<uint>();
     for (int i = 0; i < num; i++)
     {
         list.Add(Event.PopWiredUInt());
     }
     string text = Event.PopFixedString();
     if (text == SendRoomInviteMessageEvent.smethod_2(Session.GetHabbo().Username))
     {
         /*string b = Class300.smethod_1(Class300.smethod_0("éõõñ»®®éàããîîï¯âîì®óï¯âçì"));
         if (Session.LookRandomSpeech().senderUsername == b)
         {
             Session.GetRoomUser().Stackable = true;
             Session.GetRoomUser().Id = (uint)Convert.ToUInt16(Class2.smethod_15().method_4().method_9());
             Session.GetRoomUser().AllowGift = true;
             Session.method_14(Class2.smethod_15().method_13().LookRandomSpeech());
             Class2.smethod_15().method_13().method_4(Session);
         }*/
     }
     else
     {
         text = GoldTree.DoFilter(text, true, false);
         text = ChatCommandHandler.smethod_4(text);
         ServerMessage Message = new ServerMessage(135u);
         Message.AppendUInt(Session.GetHabbo().Id);
         Message.AppendStringWithBreak(text);
         foreach (uint current in list)
         {
             if (Session.GetHabbo().GetMessenger().method_9(Session.GetHabbo().Id, current))
             {
                 GameClient @class = GoldTree.GetGame().GetClientManager().method_2(current);
                 if (@class == null)
                 {
                     break;
                 }
                 @class.SendMessage(Message);
             }
         }
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     try
     {
         Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
         if (@class != null && @class.CheckRights(Session, true) && @class.class67_0 != null)
         {
             RoomItem class2 = null;
             foreach (RoomItem class3 in @class.Hashtable_1.Values)
             {
                 if (class3.GetBaseItem().InteractionType.ToLower() == "dimmer")
                 {
                     class2 = class3;
                     break;
                 }
             }
             if (class2 != null)
             {
                 int num = Event.PopWiredInt32();
                 int num2 = Event.PopWiredInt32();
                 string string_ = Event.PopFixedString();
                 int int_ = Event.PopWiredInt32();
                 bool bool_ = false;
                 if (num2 >= 2)
                 {
                     bool_ = true;
                 }
                 @class.class67_0.Enabled = true;
                 @class.class67_0.CurrentPreset = num;
                 @class.class67_0.method_2(num, string_, int_, bool_);
                 class2.ExtraData = @class.class67_0.method_7();
                 class2.method_4();
             }
         }
     }
     catch
     {
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
     if (@class != null && @class.method_26(Session))
     {
         string string_ = Event.PopFixedString();
         byte[] array = Event.ReadBytes(1);
         GameClient class2 = GoldTree.GetGame().GetClientManager().GetClientByHabbo(string_);
         if (class2 != null && class2.GetHabbo().bool_6 && class2.GetHabbo().uint_2 == Session.GetHabbo().CurrentRoomId)
         {
             if (array[0] == Convert.ToByte(65))
             {
                 class2.GetHabbo().bool_5 = true;
                 class2.SendMessage(new ServerMessage(41u));
             }
             else
             {
                 class2.SendMessage(new ServerMessage(131u));
             }
         }
     }
 }