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); } } } } } }
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) { int num = Event.PopWiredInt32(); ServerMessage Message = new ServerMessage(300u); Message.AppendInt32(num); if (num > 0) { for (int i = 0; i < num; i++) { int num2 = Event.PopWiredInt32(); if (num2 > 0) { /*Soundtrack @class = GoldTree.GetGame().GetItemManager().method_4(num2); Message.AppendInt32(@class.Id); Message.AppendStringWithBreak(@class.Name); Message.AppendStringWithBreak(@class.Track); Message.AppendInt32(@class.Length); Message.AppendStringWithBreak(@class.Author);*/ Message.AppendInt32(SongManager.GetSong(num2).Id); Message.AppendStringWithBreak(SongManager.GetSong(num2).Name); Message.AppendStringWithBreak(SongManager.GetSong(num2).Track); Message.AppendInt32(SongManager.GetSong(num2).Length); Message.AppendStringWithBreak(SongManager.GetSong(num2).Author); } } } Session.SendMessage(Message); }
public void Handle(GameClient Session, ClientMessage Event) { if (Session != null && Session.GetHabbo() != null) { Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (@class != null) { RoomUser class2 = @class.GetRoomUserByHabbo(Session.GetHabbo().Id); if (class2 != null) { class2.Unidle(); int num = Event.PopWiredInt32(); int num2 = Event.PopWiredInt32(); if (num != class2.int_3 || num2 != class2.int_4) { int int_ = Class107.smethod_0(class2.int_3, class2.int_4, num, num2); class2.method_9(int_); if (class2.class34_1 != null && class2.RoomUser_0 != null) { class2.RoomUser_0.method_9(int_); } } } } } }
public void Handle(GameClient Session, ClientMessage Event) { if (Session.GetHabbo().HasFuse("acc_supporttool")) { int int_ = Event.PopWiredInt32(); Event.PopWiredInt32(); uint uint_ = Event.PopWiredUInt(); GoldTree.GetGame().GetModerationTool().method_8(Session, uint_, int_); } }
public void Handle(GameClient Session, ClientMessage Event) { if (Session != null && Session.GetHabbo() != null) { Room class14_ = Session.GetHabbo().CurrentRoom; if (class14_ != null) { RoomUser @class = class14_.GetRoomUserByHabbo(Session.GetHabbo().Id); if (@class != null && @class.bool_0) { int num = Event.PopWiredInt32(); int num2 = Event.PopWiredInt32(); if (num != @class.int_3 || num2 != @class.int_4) { if (@class.RoomUser_0 != null) { try { if (@class.RoomUser_0.IsBot) { @class.Unidle(); } @class.RoomUser_0.MoveTo(num, num2); return; } catch { @class.RoomUser_0 = null; @class.class34_1 = null; @class.MoveTo(num, num2); Session.GetHabbo().method_24().method_2(-1, true); return; } } if (@class.TeleportMode) { @class.int_3 = num; @class.int_4 = num2; @class.UpdateNeeded = true; } else { @class.MoveTo(num, num2); } } } } } }
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) { int num = Event.PopWiredInt32(); int num2 = Event.PopWiredInt32(); int num3 = Event.PopWiredInt32(); Event.PopWiredInt32(); if (GoldTree.GetGame().GetQuestManager().GetQuestAction(Session.GetHabbo().CurrentQuestId) == "MOVE_ITEM" && (num != class2.Int32_0 || num2 != class2.Int32_1)) { GoldTree.GetGame().GetQuestManager().ProgressUserQuest(Session.GetHabbo().CurrentQuestId, Session); } else { if (GoldTree.GetGame().GetQuestManager().GetQuestAction(Session.GetHabbo().CurrentQuestId) == "ROTATE_ITEM" && num3 != class2.int_3) { GoldTree.GetGame().GetQuestManager().ProgressUserQuest(Session.GetHabbo().CurrentQuestId, Session); } else { if (GoldTree.GetGame().GetQuestManager().GetQuestAction(Session.GetHabbo().CurrentQuestId) == "STACKITEM" && class2.Double_0 > 0.0) { GoldTree.GetGame().GetQuestManager().ProgressUserQuest(Session.GetHabbo().CurrentQuestId, Session); } } } bool flag = false; string text = class2.GetBaseItem().InteractionType.ToLower(); if (text != null && text == "teleport") { flag = true; } if (text != null && text == "hopper") { flag = true; } @class.method_79(Session, class2, num, num2, num3, false, false, false); if (flag) { @class.method_64(); } } } }
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) { if (((Session != null) && (Session.GetHabbo() != null)) && (Session.GetHabbo().CurrentRoom != null)) { Room currentRoom = Session.GetHabbo().CurrentRoom; if (currentRoom.CheckRights(Session, true)) { RoomMusicController roomMusicController = currentRoom.GetRoomMusicController(); if (roomMusicController.PlaylistSize < roomMusicController.PlaylistCapacity) { int num = Event.PopWiredInt32(); UserItem item = Session.GetHabbo().method_23().method_10((uint)num); if ((item != null) && (item.method_1().InteractionType == "musicdisc")) { SongItem diskItem = new SongItem(item); if (roomMusicController.AddDisk(diskItem) >= 0) { //diskItem.SaveToDatabase((int)currentRoom.Id); // <-- old diskItem.SaveToDatabase((int)roomMusicController.LinkedItemId); // <-- new Session.GetHabbo().method_23().method_12((uint)num, 0u, true); Session.GetHabbo().method_23().method_9(true); Session.SendMessage(JukeboxDiscksComposer.Compose(roomMusicController.PlaylistCapacity, roomMusicController.Playlist.Values.ToList<SongInstance>())); } } } } } }
public void Handle(GameClient Session, ClientMessage Event) { Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (@class != null && !Session.GetHabbo().list_4.Contains(@class.Id) && [email protected](Session, true)) { switch (Event.PopWiredInt32()) { case -1: @class.Score--; break; case 0: return; case 1: @class.Score++; break; default: return; } using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient()) { class2.ExecuteQuery(string.Concat(new object[] { "UPDATE rooms SET score = '", @class.Score, "' WHERE Id = '", @class.Id, "' LIMIT 1" })); } Session.GetHabbo().list_4.Add(@class.Id); ServerMessage Message = new ServerMessage(345u); Message.AppendInt32(@class.Score); Session.SendMessage(Message); } }
public void Handle(GameClient Session, ClientMessage Event) { Room room = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (room != null) { RoomUser roomUserByHabbo = room.GetRoomUserByHabbo(Session.GetHabbo().Id); if (roomUserByHabbo != null) { roomUserByHabbo.Unidle(); int num = Event.PopWiredInt32(); if (num < 0 || num > 4 || (!Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club") && num > 1)) { num = 0; } if (num > 0 && roomUserByHabbo.CarryItemID > 0) { roomUserByHabbo.CarryItem(0); } roomUserByHabbo.DanceId = num; ServerMessage serverMessage = new ServerMessage(480u); serverMessage.AppendInt32(roomUserByHabbo.VirtualId); serverMessage.AppendInt32(num); room.SendMessage(serverMessage, null); if (Session.GetHabbo().CurrentQuestId > 0 && GoldTree.GetGame().GetQuestManager().GetQuestAction(Session.GetHabbo().CurrentQuestId) == "DANCE") { GoldTree.GetGame().GetQuestManager().ProgressUserQuest(Session.GetHabbo().CurrentQuestId, Session); } } } }
public void Handle(GameClient Session, ClientMessage Event) { if (Session != null && Session.GetHabbo() != null) { Event.PopWiredInt32(); Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (@class != null && @class.CheckRights(Session, true)) { RoomItem class2 = @class.method_28(Event.PopWiredUInt()); if (class2 != null) { string text = class2.GetBaseItem().InteractionType.ToLower(); if (text == null || !(text == "postit")) { @class.method_29(Session, class2.uint_0, false, true); Session.GetHabbo().method_23().method_11(class2.uint_0, class2.uint_2, class2.ExtraData, false); Session.GetHabbo().method_23().method_9(true); if (Session.GetHabbo().CurrentQuestId > 0 && GoldTree.GetGame().GetQuestManager().GetQuestAction(Session.GetHabbo().CurrentQuestId) == "PICKUPITEM") { GoldTree.GetGame().GetQuestManager().ProgressUserQuest(Session.GetHabbo().CurrentQuestId, Session); } } } } } }
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) { 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) { 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) { 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) { 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) { Room Room = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); int AnswerId = Event.PopWiredInt32(); int QuestionId = Room.CurrentPollId; using (DatabaseClient dbClient = GoldTree.GetDatabase().GetClient()) { dbClient.ExecuteQuery("INSERT INTO `infobus_results` (`question_id`, `answer_id`) VALUES ('" + QuestionId + "', '" + AnswerId + "')"); } }
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) { int num = Event.PopWiredInt32(); for (int i = 0; i < num; i++) { Session.GetHabbo().GetMessenger().method_13(Event.PopWiredUInt()); } } }
public void Handle(GameClient Session, ClientMessage Event) { if (Session.GetHabbo().GetMessenger() != null) { int num = Event.PopWiredInt32(); int num2 = Event.PopWiredInt32(); if (num == 0 && num2 == 1) { uint uint_ = Event.PopWiredUInt(); Session.GetHabbo().GetMessenger().method_11(uint_); } else { if (num == 1) { Session.GetHabbo().GetMessenger().method_10(); } } } }
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) { if (Session.GetHabbo().HasFuse("acc_chatlogs")) { Event.PopWiredInt32(); uint uint_ = Event.PopWiredUInt(); if (GoldTree.GetGame().GetRoomManager().GetRoom(uint_) != null) { Session.SendMessage(GoldTree.GetGame().GetModerationTool().method_22(uint_)); } } }
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 && @class.CheckRights(Session, true)) { RoomUser class2 = @class.method_52(Event.PopWiredInt32()); if (class2 != null && class2.IsBot) { @class.method_6(class2.VirtualId, true); } } }
public void Handle(GameClient Session, ClientMessage Event) { int int_ = Event.PopWiredInt32(); int num = Event.PopWiredInt32(); ServerMessage Message = new ServerMessage(617u); Message.AppendInt32(1); Message.AppendInt32(GoldTree.GetGame().GetCatalog().method_22().method_7(num)); Dictionary<int, DataRow> dictionary = new Dictionary<int, DataRow>(); DataTable dataTable = null; using (DatabaseClient @class = GoldTree.GetDatabase().GetClient()) { dataTable = @class.ReadDataTable("SELECT * FROM catalog_marketplace_data WHERE daysago > -30 AND sprite = " + num + " LIMIT 30;"); } if (dataTable != null) { foreach (DataRow dataRow in dataTable.Rows) { dictionary.Add(Convert.ToInt32(dataRow["daysago"]), dataRow); } } Message.AppendInt32(30); Message.AppendInt32(29); for (int i = -29; i < 0; i++) { Message.AppendInt32(i); if (dictionary.ContainsKey(i + 1)) { Message.AppendInt32(Convert.ToInt32(dictionary[i + 1]["avgprice"]) / Convert.ToInt32(dictionary[i + 1]["sold"])); Message.AppendInt32(Convert.ToInt32(dictionary[i + 1]["sold"])); } else { Message.AppendInt32(0); Message.AppendInt32(0); } } Message.AppendInt32(int_); Message.AppendInt32(num); Session.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) { if (Session.GetHabbo().method_23() != null) { if (Session.GetHabbo().InRoom) { Room class14_ = Session.GetHabbo().CurrentRoom; RoomUser @class = class14_.GetRoomUserByHabbo(Session.GetHabbo().Id); if (@class.Boolean_3) { return; } } int int_ = Event.PopWiredInt32(); Event.PopWiredInt32(); uint uint_ = Event.PopWiredUInt(); UserItem class2 = Session.GetHabbo().method_23().method_10(uint_); if (class2 != null && class2.method_1().AllowTrade) { GoldTree.GetGame().GetCatalog().method_22().method_1(Session, class2.uint_0, int_); } } }
public void Handle(GameClient Session, ClientMessage Event) { if (Session.GetHabbo().InRoom) { int num = Event.PopWiredInt32(); if (num == 5) { for (int i = 0; i < num; i++) { UserItem @class = Session.GetHabbo().method_23().method_10(Event.PopWiredUInt()); if (@class == null || [email protected]_1().AllowRecycle) { return; } Session.GetHabbo().method_23().method_12(@class.uint_0, 0u, false); } uint num2 = GoldTree.GetGame().GetCatalog().method_14(); EcotronReward class2 = GoldTree.GetGame().GetCatalog().method_15(); using (DatabaseClient class3 = GoldTree.GetDatabase().GetClient()) { class3.ExecuteQuery(string.Concat(new object[] { "INSERT INTO items (Id,user_id,base_item,extra_data,wall_pos) VALUES ('", num2, "','", Session.GetHabbo().Id, "','1478','", DateTime.Now.ToLongDateString(), "', '')" })); class3.ExecuteQuery(string.Concat(new object[] { "INSERT INTO user_presents (item_id,base_id,amount,extra_data) VALUES ('", num2, "','", class2.uint_2, "','1','')" })); } Session.GetHabbo().method_23().method_9(true); ServerMessage Message = new ServerMessage(508u); Message.AppendBoolean(true); Message.AppendUInt(num2); Session.SendMessage(Message); } } }
public void Handle(GameClient Session, ClientMessage Event) { int num = Event.PopWiredInt32(); if (num > 0 && (Session != null && Session.GetHabbo() != null)) { Session.GetHabbo().int_0 = 0; if (Session.GetHabbo().InRoom) { Room class14_ = Session.GetHabbo().CurrentRoom; RoomUser @class = class14_.GetRoomUserByHabbo(Session.GetHabbo().Id); ServerMessage Message = new ServerMessage(28u); Message.AppendInt32(1); @class.method_14(Message); class14_.SendMessage(Message, null); } using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient()) { class2.ExecuteQuery("UPDATE user_stats SET groupid = 0 WHERE Id = " + Session.GetHabbo().Id + " LIMIT 1;"); } DataTable dataTable_ = Session.GetHabbo().dataTable_0; if (dataTable_ != null) { ServerMessage Message2 = new ServerMessage(915u); Message2.AppendInt32(dataTable_.Rows.Count); foreach (DataRow dataRow in dataTable_.Rows) { GroupsManager class3 = Groups.smethod_2((int)dataRow["groupid"]); Message2.AppendInt32(class3.int_0); Message2.AppendStringWithBreak(class3.string_0); Message2.AppendStringWithBreak(class3.string_2); if (Session.GetHabbo().int_0 == class3.int_0) { Message2.AppendBoolean(true); } else { Message2.AppendBoolean(false); } } Session.SendMessage(Message2); } } }