public void method_47(GameClient Session, bool bool_13, bool bool_14) { int num = 1; if (Session != null && Session.GetHabbo() != null) { RoomUser @class = this.GetRoomUserByHabbo(Session.GetHabbo().Id); if (@class != null) { this.GetRoomTeamManager().OnUserLeave(@class); } } if (!bool_14 || !Session.GetHabbo().isJuniori) { if (this.bool_12) { if (bool_13 && Session != null) { if (bool_14) { ServerMessage Message = new ServerMessage(33u); Message.AppendInt32(4008); Session.SendMessage(Message); } ServerMessage Message5_ = new ServerMessage(18u); Session.SendMessage(Message5_); } } else { try { if (Session != null && Session.GetHabbo() != null) { num = 2; RoomUser @class = this.GetRoomUserByHabbo(Session.GetHabbo().Id); if (@class != null) { this.RoomUser_0[@class.int_20] = null; @class.int_20 = -1; this.byte_0[@class.int_3, @class.int_4] = @class.byte_0; } num = 3; if (bool_13) { if (bool_14) { ServerMessage Message = new ServerMessage(33u); Message.AppendInt32(4008); Session.SendMessage(Message); } ServerMessage Message5_ = new ServerMessage(18u); Session.SendMessage(Message5_); } num = 4; if (@class != null && [email protected]_11) { if (@class.byte_1 > 0 && @class.GetClient() != null) { @class.GetClient().GetHabbo().method_24().int_0 = -1; } this.byte_0[@class.int_3, @class.int_4] = @class.byte_0; if (!this.Boolean_3) { ServerMessage Message2 = new ServerMessage(700u); Message2.AppendBoolean(false); Session.SendMessage(Message2); } ServerMessage Message3 = new ServerMessage(29u); Message3.AppendRawInt32(@class.VirtualId); this.SendMessage(Message3, null); if (this.method_74(Session.GetHabbo().Id)) { this.method_78(Session.GetHabbo().Id); } num = 5; if (Session.GetHabbo().Username.ToLower() == this.Owner.ToLower() && this.Boolean_0) { this.Event = null; ServerMessage Logging = new ServerMessage(370u); Logging.AppendStringWithBreak("-1"); this.SendMessage(Logging, null); } num = 6; if (@class.class34_1 != null) { @class.class34_1.RoomUser_0 = null; @class.class34_1 = null; Session.GetHabbo().method_24().int_0 = -1; } Session.GetHabbo().method_11(); this.bool_10 = true; this.method_51(); List<RoomUser> list = new List<RoomUser>(); for (int i = 0; i < this.RoomUser_0.Length; i++) { RoomUser class2 = this.RoomUser_0[i]; if (class2 != null && class2.IsBot) { list.Add(class2); } } num = 7; foreach (RoomUser current in list) { current.BotAI.OnUserLeaveRoom(Session); } } } } catch (Exception ex) { Logging.LogCriticalException(string.Concat(new object[] { "Error during removing user from room [Part: ", num, "]: ", ex.ToString() })); } } } }
public Room(uint uint_2, string string_10, string string_11, string string_12, string string_13, int int_17, int int_18, int int_19, string string_14, string string_15, int int_20, List<string> list_18, bool bool_13, bool bool_14, bool bool_15, bool bool_16, RoomIcon class29_1, string string_16, string string_17, string string_18, string string_19, RoomData class27_1, bool bool_17, int int_21, int int_22, uint uint_3) { if (!(LicenseTools.String_0 == "")) { this.bool_12 = false; this.uint_0 = uint_2; this.Name = string_10; this.Description = string_11; this.Owner = string_13; this.Category = int_17; this.Type = string_12; this.State = int_18; this.UsersNow = 0; this.UsersMax = int_19; this.ModelName = string_14; this.CCTs = string_15; this.Score = int_20; this.Tags = list_18; this.AllowPet = bool_13; this.AllowPetsEating = bool_14; this.AllowWalkthrough = bool_15; this.Hidewall = bool_16; this.Wallthick = int_21; this.Floorthick = int_22; this.int_7 = 0; this.RoomUser_0 = new RoomUser[500]; this.class29_0 = class29_1; this.Password = string_16; this.dictionary_0 = new Dictionary<uint, double>(); this.Event = null; this.Wallpaper = string_17; this.Floor = string_18; this.Landscape = string_19; this.hashtable_4 = new Hashtable(); this.hashtable_0 = new Hashtable(); this.list_2 = new List<Trade>(); this.class28_0 = GoldTree.GetGame().GetRoomManager().GetModel(this.ModelName, this.uint_0); this.bool_6 = false; this.bool_7 = false; this.bool_5 = true; this.class27_0 = class27_1; this.bool_8 = bool_17; this.list_17 = new List<GroupsManager>(); this.list_4 = new List<uint>(); this.list_5 = new List<RoomItem>(); this.list_9 = new List<RoomItem>(); this.list_7 = new List<RoomItem>(); this.list_6 = new List<RoomItem>(); this.list_8 = new List<RoomItem>(); this.list_10 = new List<RoomItem>(); this.list_11 = new List<RoomItem>(); this.list_12 = new List<RoomItem>(); this.list_13 = new List<RoomItem>(); this.int_10 = 0; this.int_11 = 0; this.int_9 = 0; this.int_12 = 0; this.int_13 = 0; this.list_3 = new List<RoomItem>(); this.list_14 = new List<RoomItem>(); this.list_15 = new List<RoomItem>(); this.list_16 = new List<RoomItem>(); this.byte_0 = new byte[this.Class28_0.int_4, this.Class28_0.int_5]; this.double_1 = new double[this.Class28_0.int_4, this.Class28_0.int_5]; this.double_2 = new double[this.Class28_0.int_4, this.Class28_0.int_5]; this.timer_0 = new Timer(new TimerCallback(this.method_32), null, 480, 480); this.int_8 = 0; this.bool_4 = false; this.bool_9 = true; this.bool_11 = false; this.int_16 = 0; this.int_15 = 4; this.Achievement = uint_3; this.bool_10 = false; this.hashtable_1 = new Hashtable(); this.hashtable_2 = new Hashtable(); this.hashtable_3 = new Hashtable(); this.method_23(); this.method_25(); this.method_22(); this.LoadMusic(); } }