public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { Habbo Habbo = NeonEnvironment.GetHabboById(Packet.PopInt()); if (Habbo == null) { return; } Random rand = new Random(); Habbo.Relationships = Habbo.Relationships.OrderBy(x => rand.Next()).ToDictionary(item => item.Key, item => item.Value); int Loves = Habbo.Relationships.Count(x => x.Value.Type == 1); int Likes = Habbo.Relationships.Count(x => x.Value.Type == 2); int Hates = Habbo.Relationships.Count(x => x.Value.Type == 3); Session.SendMessage(new GetRelationshipsComposer(Habbo, Loves, Likes, Hates)); }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { int roomID = Packet.PopInt(); if (roomID == 0) { return; } RoomData Data = NeonEnvironment.GetGame().GetRoomManager().GenerateRoomData(roomID); if (Data == null) { return; } Session.GetHabbo().HomeRoom = roomID; Session.SendMessage(new NavigatorSettingsComposer(roomID)); }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { int GroupId = Packet.PopInt(); int UserId = Packet.PopInt(); Group Group = null; if (!BiosEmuThiago.GetGame().GetGroupManager().TryGetGroup(GroupId, out Group)) { return; } if ((Session.GetHabbo().Id != Group.CreatorId && !Group.IsAdmin(Session.GetHabbo().Id)) && !Session.GetHabbo().GetPermissions().HasRight("fuse_group_accept_any")) { return; } if (!Group.HasRequest(UserId)) { return; } Habbo Habbo = BiosEmuThiago.GetHabboById(UserId); if (Habbo == null) { Session.SendNotification("Ocorreu um erro ao procurar esse usuário!"); return; } Group.HandleRequest(UserId, true); if (Group.HasChat) { var Client = BiosEmuThiago.GetGame().GetClientManager().GetClientByUserID(UserId); if (Client != null) { Client.SendMessage(new FriendListUpdateComposer(Group, 1)); } } Session.SendMessage(new GroupMemberUpdatedComposer(GroupId, Habbo, 4)); }
public void Parse(HabboHotel.GameClients.GameClient session, ClientPacket packet) { if (!session.GetHabbo().InRoom) { return; } Room Room = session.GetHabbo().CurrentRoom; if (Room == null) { return; } string Username = packet.PopString(); Habbo Player = BiosEmuThiago.GetHabboByUsername(Username); if (Player == null || Player.GetPermissions().HasRight("mod_tool")) { return; } if (session.GetHabbo().GetIgnores().TryGet(Player.Id)) { return; } if (session.GetHabbo().GetIgnores().TryAdd(Player.Id)) { using (IQueryAdapter dbClient = BiosEmuThiago.GetDatabaseManager().GetQueryReactor()) { dbClient.SetQuery("INSERT INTO `user_ignores` (`user_id`,`ignore_id`) VALUES(@uid,@ignoreId);"); dbClient.AddParameter("uid", session.GetHabbo().Id); dbClient.AddParameter("ignoreId", Player.Id); dbClient.RunQuery(); } session.SendMessage(new IgnoreStatusComposer(1, Player.Username)); BiosEmuThiago.GetGame().GetAchievementManager().ProgressAchievement(session, "ACH_SelfModIgnoreSeen", 1); } }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { if (Session == null) { return; } List <RoomData> ValidRooms = new List <RoomData>(); foreach (RoomData Data in Session.GetHabbo().UsersRooms) { if (Data.Group == null) { ValidRooms.Add(Data); } } Session.SendMessage(new GroupCreationWindowComposer(ValidRooms)); }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { Session.GetHabbo().GetStats().FavouriteGroupId = 0; if (Session.GetHabbo().InRoom) { RoomUser User = Session.GetHabbo().CurrentRoom.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id); if (User != null) { Session.GetHabbo().CurrentRoom.SendMessage(new UpdateFavouriteGroupComposer(Session.GetHabbo().Id, null, User.VirtualId)); } Session.GetHabbo().CurrentRoom.SendMessage(new RefreshFavouriteGroupComposer(Session.GetHabbo().Id)); } else { Session.SendMessage(new RefreshFavouriteGroupComposer(Session.GetHabbo().Id)); } }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { if (!Session.GetHabbo().InRoom) { return; } int BotId = Packet.PopInt(); int ActionId = Packet.PopInt(); Room Room = Session.GetHabbo().CurrentRoom; if (Room == null) { return; } RoomUser BotUser = null; if (!Room.GetRoomUserManager().TryGetBot(BotId, out BotUser)) { return; } string BotSpeech = ""; foreach (RandomSpeech Speech in BotUser.BotData.RandomSpeech.ToList()) { BotSpeech += (Speech.Message + "\n"); } BotSpeech += ";#;"; BotSpeech += BotUser.BotData.AutomaticChat; BotSpeech += ";#;"; BotSpeech += BotUser.BotData.SpeakingInterval; BotSpeech += ";#;"; BotSpeech += BotUser.BotData.MixSentences; if (ActionId == 2 || ActionId == 5) { Session.SendMessage(new OpenBotActionComposer(BotUser, ActionId, BotSpeech)); } }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { int Songs = Packet.PopInt(); List <SongData> SongData = new List <SongData>(); for (int i = 0; i < Songs; i++) { int Pint = Packet.PopInt(); SongData item = NeonEnvironment.GetGame().GetMusicManager().GetSong(Pint); if (item != null) { SongData.Add(item); } } Session.SendMessage(new GetMusicDataComposer(SongData)); }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { var response = new ServerPacket(ServerPacketHeader.FurniMaticRewardsComposer); response.WriteInteger(5); for (int i = 5; i >= 1; i--) { response.WriteInteger(i); if (i <= 1) { response.WriteInteger(1); } else if (i == 2) { response.WriteInteger(5); } else if (i == 3) { response.WriteInteger(20); } else if (i == 4) { response.WriteInteger(50); } else if (i == 5) { response.WriteInteger(100); } var rewards = BiosEmuThiago.GetGame().GetFurniMaticRewardsMnager().GetRewardsByLevel(i); response.WriteInteger(rewards.Count); foreach (var reward in rewards) { response.WriteString(reward.GetBaseItem().ItemName); response.WriteInteger(reward.DisplayId); response.WriteString(reward.GetBaseItem().Type.ToString().ToLower()); response.WriteInteger(reward.GetBaseItem().SpriteId); } } Session.SendMessage(response); }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { ServerPacket response = new ServerPacket(ServerPacketHeader.FurniMaticRewardsComposer); response.WriteInteger(5); for (int i = 5; i >= 1; i--) { response.WriteInteger(i); if (i <= 1) { response.WriteInteger(1); } else if (i == 2) { response.WriteInteger(5); } else if (i == 3) { response.WriteInteger(20); } else if (i == 4) { response.WriteInteger(50); } else if (i == 5) { response.WriteInteger(100); } System.Collections.Generic.List <HabboHotel.Catalog.FurniMatic.FurniMaticRewards> rewards = NeonEnvironment.GetGame().GetFurniMaticRewardsMnager().GetRewardsByLevel(i); response.WriteInteger(rewards.Count); foreach (HabboHotel.Catalog.FurniMatic.FurniMaticRewards reward in rewards) { response.WriteString(reward.GetBaseItem().ItemName); response.WriteInteger(reward.DisplayId); response.WriteString(reward.GetBaseItem().Type.ToString().ToLower()); response.WriteInteger(reward.GetBaseItem().SpriteId); } } Session.SendMessage(response); }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { int key = Packet.PopInt(); Poll poll = null; if (key == 500000) { string PollName = "HabboRPG Caixa"; string PollInvitation = "HabboRPG Caixa"; string PollThanks = "Obrigado por usar o Caixa HabboRPG!"; poll = new Poll(500000, 0, PollName, PollInvitation, PollThanks, "", 1, null); } else { poll = PlusEnvironment.GetGame().GetPollManager().Polls[key]; } Session.SendMessage(new PollQuestionsMessageComposer(Session, poll)); }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { if (!Session.GetHabbo().InRoom) { return; } Room Instance = Session.GetHabbo().CurrentRoom; if (Instance == null) { return; } if (!Instance.CheckRights(Session)) { return; } Session.SendMessage(new RoomRightsListComposer(Instance)); }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { var habbo = Session.GetHabbo(); if (habbo == null) { return; } if (!habbo.PassedNuxNavigator && !habbo.PassedNuxCatalog && !habbo.PassedNuxChat && !habbo.PassedNuxDuckets && !habbo.PassedNuxItems) { Session.SendMessage(new NuxAlertComposer("helpBubble/add/BOTTOM_BAR_NAVIGATOR/Dit hier noemen we de Navigator, klik erop en ga opzoek naar de leukste kamers!")); habbo.PassedNuxNavigator = true; } if (habbo.PassedNuxNavigator && !habbo.PassedNuxCatalog && !habbo.PassedNuxChat && !habbo.PassedNuxDuckets && !habbo.PassedNuxItems) { Session.SendMessage(new NuxAlertComposer("helpBubble/add/BOTTOM_BAR_CATALOG/Een kamer zonder decoratie is natuurlijk alles behalve af. Gebruik daarom deze winkel om de meest chique hotel kamers te maken!")); habbo.PassedNuxCatalog = true; } else if (habbo.PassedNuxNavigator && habbo.PassedNuxCatalog && !habbo.PassedNuxChat && !habbo.PassedNuxDuckets && !habbo.PassedNuxItems) { Session.SendMessage(new NuxAlertComposer("helpBubble/add/CHAT_INPUT/Chatten was nog nooit zo simpel, communiceer met andere Habbis in verschillende kleuren en stylen!")); habbo.PassedNuxChat = true; } else if (habbo.PassedNuxNavigator && habbo.PassedNuxCatalog && habbo.PassedNuxChat && !habbo.PassedNuxDuckets && !habbo.PassedNuxItems) { Session.SendMessage(new NuxAlertComposer("helpBubble/add/DUCKETS_BUTTON/Dit hier is je geld, de economie bestaat uit Credits, Duckets en Diamanten.")); habbo.PassedNuxDuckets = true; } else if (habbo.PassedNuxNavigator && habbo.PassedNuxCatalog && habbo.PassedNuxChat && habbo.PassedNuxDuckets && !habbo.PassedNuxItems) { Session.SendMessage(new NuxAlertComposer("helpBubble/add/BOTTOM_BAR_INVENTORY/Alles wat er gekocht of geruild wordt komt in je inventaris terecht, van uit hier is het ook weer mogelijk om items in je kamer te plaatsen.")); habbo.PassedNuxItems = true; } if (habbo.PassedNuxNavigator && habbo.PassedNuxCatalog && habbo.PassedNuxChat && habbo.PassedNuxDuckets && habbo.PassedNuxItems) { // Session.SendMessage(new NuxAlertComposer("nux/lobbyoffer/show")); habbo._NUX = false; using (var dbClient = QuasarEnvironment.GetDatabaseManager().GetQueryReactor()) dbClient.runFastQuery("UPDATE users SET nux_user = '******' WHERE id = " + Session.GetHabbo().Id + ";"); QuasarEnvironment.GetGame().GetAchievementManager().ProgressAchievement(Session, "ACH_NuxSucceeded", 1); QuasarEnvironment.GetGame().GetAchievementManager().ProgressAchievement(Session, "ACH_Login", 1); //QuasarEnvironment.GetGame().GetAchievementManager().ProgressAchievement(Session, "ACH_RegistrationDuration", 1); var nuxStatus = new ServerPacket(ServerPacketHeader.NuxUserStatus); nuxStatus.WriteInteger(0); Session.SendMessage(nuxStatus); } }
public void Parse(HabboHotel.GameClients.GameClient session, ClientPacket packet) { if (!session.GetHabbo().InRoom) { return; } Room Room = session.GetHabbo().CurrentRoom; if (Room == null) { return; } string Username = packet.PopString(); Habbo Player = CloudServer.GetHabboByUsername(Username); if (Player == null) { return; } if (!session.GetHabbo().GetIgnores().TryGet(Player.Id)) { return; } if (session.GetHabbo().GetIgnores().TryRemove(Player.Id)) { using (IQueryAdapter dbClient = CloudServer.GetDatabaseManager().GetQueryReactor()) { dbClient.SetQuery("DELETE FROM `user_ignores` WHERE `user_id` = @uid AND `ignore_id` = @ignoreId"); dbClient.AddParameter("uid", session.GetHabbo().Id); dbClient.AddParameter("ignoreId", Player.Id); dbClient.RunQuery(); } session.SendMessage(new IgnoreStatusComposer(3, Player.Username)); } }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { using (IQueryAdapter commitableQueryReactor = PlusEnvironment.GetDatabaseManager().GetQueryReactor()) { commitableQueryReactor.SetQuery("SELECT * FROM `cms_stories_photos_preview` WHERE `user_id` = '" + Session.GetHabbo().Id + "' AND `type` = 'PHOTO' ORDER BY `id` DESC LIMIT 1"); DataTable table = commitableQueryReactor.getTable(); foreach (DataRow dataRow in table.Rows) { object date = dataRow["date"]; object room = dataRow["room_id"]; object photo = dataRow["id"]; object image = dataRow["image_url"]; using (IQueryAdapter commitableQueryReactor2 = PlusEnvironment.GetDatabaseManager().GetQueryReactor()) { commitableQueryReactor2.SetQuery("INSERT INTO cms_stories_photos (`user_id`,`user_name`,`room_id`,`image_preview_url`,`image_url`,`type`,`date`,`tags`) VALUES (@user_id,@user_name,@room_id,@image_url,@image_url,@type,@date,@tags)"); commitableQueryReactor2.AddParameter("user_id", Session.GetHabbo().Id); commitableQueryReactor2.AddParameter("user_name", Session.GetHabbo().Username); commitableQueryReactor2.AddParameter("room_id", room); commitableQueryReactor2.AddParameter("image_url", image); commitableQueryReactor2.AddParameter("type", "PHOTO"); commitableQueryReactor2.AddParameter("date", date); commitableQueryReactor2.AddParameter("tags", ""); commitableQueryReactor2.RunQuery(); string newPhotoData = "{\"t\":" + date + ",\"u\":\"" + photo + "\",\"m\":\"\",\"s\":" + room + ",\"w\":\"" + image + "\"}"; // 5235 = large photo size, 7480 = small photo size Item item = Session.GetHabbo().GetInventoryComponent().AddNewItem(0, Convert.ToInt32(RoleplayData.GetData("camera", "small")), newPhotoData, 0, true, false, 0, 0); Session.GetHabbo().GetInventoryComponent().UpdateItems(false); Session.GetHabbo().Credits -= 2; Session.GetHabbo().UpdateCreditsBalance(); Session.GetHabbo().GetInventoryComponent().SendNewItems(item.Id); } } } Session.SendMessage(new CameraPurchaseOkComposer()); }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { int GroupId = Packet.PopInt(); int UserId = Packet.PopInt(); if (!NeonEnvironment.GetGame().GetGroupManager().TryGetGroup(GroupId, out Group Group)) { return; } if ((Session.GetHabbo().Id != Group.CreatorId && !Group.IsAdmin(Session.GetHabbo().Id)) && !Session.GetHabbo().GetPermissions().HasRight("fuse_group_accept_any")) { return; } if (!Group.HasRequest(UserId)) { return; } Habbo Habbo = NeonEnvironment.GetHabboById(UserId); if (Habbo == null) { Session.SendNotification("Oops, ha recibido un error mientras recibe la busqueda de este usuario."); return; } Group.HandleRequest(UserId, true); if (Group.HasChat) { HabboHotel.GameClients.GameClient Client = NeonEnvironment.GetGame().GetClientManager().GetClientByUserID(UserId); if (Client != null) { Client.SendMessage(new FriendListUpdateComposer(Group, 1)); } } Session.SendMessage(new GroupMemberUpdatedComposer(GroupId, Habbo, 4)); }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { if (Session == null || Session.GetHabbo() == null) { return; } string HabboType = Packet.PopString(); if (HabboType != "HabboWay1") { return; } int HabboQuestions = Packet.PopInt(); List <int> errors = new List <int>(5); ServerPacket answer = new ServerPacket(ServerPacketHeader.PostQuizAnswersMessageComposer); answer.WriteString(HabboType); for (int i = 0; i < HabboQuestions; i++) { int QuestionId = Session.GetHabbo()._HabboQuizQuestions[i]; int respuesta = Packet.PopInt(); if (!Quiz.CorrectAnswer(QuestionId, respuesta)) { errors.Add(QuestionId); } } answer.WriteInteger(errors.Count); foreach (int error in errors) { answer.WriteInteger(error); } Session.SendMessage(answer); if (errors.Count == 0) { NeonEnvironment.GetGame().GetAchievementManager().ProgressAchievement(Session, "ACH_HabboWayGraduate", 1); } }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { if (Session == null || Session.GetHabbo() == null || !Session.GetHabbo().InRoom) { return; } int PetId = Packet.PopInt(); RoomUser Pet = null; if (!Session.GetHabbo().CurrentRoom.GetRoomUserManager().TryGetPet(PetId, out Pet)) { //Okay so, we've established we have no pets in this room by this virtual Id, let us check out users, maybe they're creeping as a pet?! RoomUser User = Session.GetHabbo().CurrentRoom.GetRoomUserManager().GetRoomUserByHabbo(PetId); if (User == null) { return; } //Check some values first, please! if (User.GetClient() == null || User.GetClient().GetHabbo() == null) { return; } //And boom! Let us send the training panel composer 8-). Session.SendWhisper("Talvez um dia, boo boo."); return; } //Continue as a regular pet.. if (Pet.RoomId != Session.GetHabbo().CurrentRoomId || Pet.PetData == null) { return; } Session.SendMessage(new PetTrainingPanelComposer(Pet.PetData.PetId, Pet.PetData.Level)); }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { ICollection <Item> FloorItems = Session.GetHabbo().GetInventoryComponent().GetFloorItems(); ICollection <Item> WallItems = Session.GetHabbo().GetInventoryComponent().GetWallItems(); if (Session.GetHabbo().InventoryAlert == false) { Session.GetHabbo().InventoryAlert = true; int TotalCount = FloorItems.Count + WallItems.Count; if (TotalCount >= 5000) { Session.SendNotification("Hey! Our system has detected that you have a very large inventory!\n\n" + "The maximum an inventory can load is 8000 items, you have " + TotalCount + " items loaded now.\n\n" + "If you have 8000 loaded now then you're probably over the limit and some items will be hidden until you free up space.\n\n" + "Please note that we are not responsible for you crashing because of too large inventorys!"); } } Session.SendMessage(new FurniListComposer(FloorItems.ToList(), WallItems)); }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { try { int count = Packet.PopInt(); byte[] bytes = Packet.ReadBytes(count); string outData = Deflate(bytes); string url = WebManager.HttpPostJson("http://habborpg.com.br/swfs/servercamera/servercamera.php?run", outData); JavaScriptSerializer serializer = new JavaScriptSerializer(); dynamic jsonArray = serializer.Deserialize(outData, typeof(object));; string encodedurl = "http://habborpg.com.br/swfs/servercamera/" + url; encodedurl = encodedurl.Replace("\n", string.Empty); int roomId = jsonArray["roomid"]; long timeStamp = jsonArray["timestamp"]; using (IQueryAdapter commitableQueryReactor = PlusEnvironment.GetDatabaseManager().GetQueryReactor()) { commitableQueryReactor.SetQuery("INSERT INTO `cms_stories_photos_preview` (`user_id`,`user_name`,`room_id`,`image_preview_url`,`image_url`,`type`,`date`,`tags`) VALUES (@userid,@username,@roomid,@imagepreviewurl,@imageurl,@types,@dates,@tag)"); commitableQueryReactor.AddParameter("userid", Session.GetHabbo().Id); commitableQueryReactor.AddParameter("username", Session.GetHabbo().Username); commitableQueryReactor.AddParameter("roomid", roomId); commitableQueryReactor.AddParameter("imagepreviewurl", encodedurl); commitableQueryReactor.AddParameter("imageurl", encodedurl); commitableQueryReactor.AddParameter("types", "PHOTO"); commitableQueryReactor.AddParameter("dates", timeStamp); commitableQueryReactor.AddParameter("tag", ""); commitableQueryReactor.RunQuery(); } Session.SendMessage(new CameraStorageUrlMessageComposer(url)); } catch { Session.SendNotification("Esta imagem tem muito pixel, pegue a foto em uma área com menos tamanho!"); return; } }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { if (Session == null || Session.GetHabbo() == null) { return; } string HabboType = Packet.PopString(); if (HabboType == "HabboWay1") { Session.GetHabbo()._HabboQuizQuestions = new List <int>(5); var quiz = new ServerPacket(ServerPacketHeader.QuizDataMessageComposer); quiz.WriteString(HabboType); quiz.WriteInteger(5); // longitud. for (int i = 0; i < 5; i++) { int rndNumber = new Random().Next(10); if (Session.GetHabbo()._HabboQuizQuestions.Contains(rndNumber)) { for (int ii = 0; ii < 10; ii++) { if (!Session.GetHabbo()._HabboQuizQuestions.Contains(ii)) { rndNumber = ii; break; } } } Session.GetHabbo()._HabboQuizQuestions.Add(rndNumber); quiz.WriteInteger(rndNumber); } Session.SendMessage(quiz); } else if (HabboType == "SafetyQuiz1") { RavenEnvironment.GetGame().GetAchievementManager().ProgressAchievement(Session, "ACH_SafetyQuizGraduate", 1); } }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { ICollection <Item> FloorItems = Session.GetHabbo().GetInventoryComponent().GetFloorItems(); ICollection <Item> WallItems = Session.GetHabbo().GetInventoryComponent().GetWallItems(); if (Session.GetHabbo().InventoryAlert == false) { Session.GetHabbo().InventoryAlert = true; int TotalCount = FloorItems.Count + WallItems.Count; if (TotalCount >= 5000) { Session.SendNotification("Hey! Nosso sistema detectou que você possui um inventário muito grande!\n\n" + "O máximo que um inventário pode carregar é de 5000 itens, você tem " + TotalCount + " items agora.\n\n" + "Se você tiver 5000 carregados agora, provavelmente você está acima do limite e alguns itens serão escondidos até libertar espaço.\n\n" + "Por favor, note que não somos responsáveis por você falhar por causa de inventários muito grandes!"); } } bool CraftingCheck = Session.GetRoleplay().CraftingCheck; Session.SendMessage(new FurniListComposer(FloorItems.ToList(), WallItems, CraftingCheck)); }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { CatalogPage page = QuasarEnvironment.GetGame().GetCatalog().TryGetPageByTemplate("vip_buy"); if (page == null) { return; } ServerPacket Message = new ServerPacket(ServerPacketHeader.GetClubComposer); Message.WriteInteger(page.Items.Values.Count); foreach (CatalogItem catalogItem in page.Items.Values) { catalogItem.SerializeClub(Message, Session); } Message.WriteInteger(Packet.PopInt()); Session.SendMessage(Message); }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { if (!Session.GetHabbo().InRoom) { return; } if (!NeonEnvironment.GetGame().GetRoomManager().TryGetRoom(Session.GetHabbo().CurrentRoomId, out Room Room)) { return; } Item Item = Room.GetRoomItemHandler().GetItem(Packet.PopInt()); if (Item == null || Item.GetBaseItem().InteractionType != InteractionType.POSTIT) { return; } Session.SendMessage(new StickyNoteComposer(Item.Id.ToString(), Item.ExtraData)); }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { if (!Session.GetHabbo().InRoom) { return; } Room Instance = Session.GetHabbo().CurrentRoom; if (Instance == null) { return; } if (!Instance.CheckRights(Session)) { return; } Session.SendMessage(new GetRoomFilterListComposer(Instance)); PlusEnvironment.GetGame().GetAchievementManager().ProgressAchievement(Session, "ACH_SelfModRoomFilterSeen", 1); }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { if (Session == null || Session.GetHabbo() == null || !Session.GetHabbo().GetPermissions().HasRight("mod_tickets")) { return; } SupportTicket Ticket = QuasarEnvironment.GetGame().GetModerationTool().GetTicket(Packet.PopInt()); if (Ticket == null) { return; } RoomData Data = QuasarEnvironment.GetGame().GetRoomManager().GenerateRoomData(Ticket.RoomId); if (Data == null) { return; } Session.SendMessage(new ModeratorTicketChatlogComposer(Ticket, Data, Ticket.Timestamp)); }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { if (!Session.GetHabbo().InRoom) { return; } Room Instance = Session.GetHabbo().CurrentRoom; if (Instance == null || !Instance.CheckRights(Session, true)) { return; } int UserId = Packet.PopInt(); int RoomId = Packet.PopInt(); if (Instance.GetBans().IsBanned(UserId)) { Instance.GetBans().Unban(UserId); Session.SendMessage(new UnbanUserFromRoomComposer(RoomId, UserId)); } }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { int GroupId = Packet.PopInt(); int UserId = Packet.PopInt(); if (!NeonEnvironment.GetGame().GetGroupManager().TryGetGroup(GroupId, out Group Group)) { return; } if (Session.GetHabbo().Id != Group.CreatorId && !Group.IsAdmin(Session.GetHabbo().Id)) { return; } if (!Group.HasRequest(UserId)) { return; } Group.HandleRequest(UserId, false); Session.SendMessage(new UnknownGroupComposer(Group.Id, UserId)); }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { if (Session == null || Session.GetHabbo() == null || !Session.GetHabbo().GetPermissions().HasRight("mod_tickets")) { return; } int TicketId = Packet.PopInt(); if (!NeonEnvironment.GetGame().GetModerationManager().TryGetTicket(TicketId, out ModerationTicket Ticket) || Ticket.Room == null) { return; } RoomData Data = NeonEnvironment.GetGame().GetRoomManager().GenerateRoomData(Ticket.Room.Id); if (Data == null) { return; } Session.SendMessage(new ModeratorTicketChatlogComposer(Ticket, Data, Ticket.Timestamp)); }
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { if (Session == null || Session.GetHabbo() == null || !Session.GetHabbo().GetPermissions().HasRight("mod_tickets")) { return; } int ticketId = Packet.PopInt(); ModerationTicket ticket = null; if (!BiosEmuThiago.GetGame().GetModerationManager().TryGetTicket(ticketId, out ticket) || ticket.Room == null) { return; } if (ticket.Room == null) { return; } Session.SendMessage(new ModeratorTicketChatlogComposer(ticket, ticket.Room, ticket.Timestamp)); }