public void Handle(GameClient Session, ClientMessage Event) { uint num = Event.PopWiredUInt(); Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (@class != null && [email protected]_3) { RoomUser class2 = @class.method_48(num); if (class2 == null || class2.PetData == null) { DataRow dataRow = null; using (DatabaseClient class3 = GoldTree.GetDatabase().GetClient()) { class3.AddParamWithValue("petid", num); dataRow = class3.ReadDataRow("SELECT Id, user_id, room_id, name, type, race, color, expirience, energy, nutrition, respect, createstamp, x, y, z FROM user_pets WHERE Id = @petid LIMIT 1"); } if (dataRow != null) { Session.SendMessage(GoldTree.GetGame().GetCatalog().method_12(dataRow).SerializeInfo()); } } else { Session.SendMessage(class2.PetData.SerializeInfo()); } } }
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(); Room room = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (room != null) { RoomUser roomUserByHabbo = room.GetRoomUserByHabbo(num); if (room != null && room.CheckRights(Session, true) && roomUserByHabbo != null && !roomUserByHabbo.IsBot && !room.UsersWithRights.Contains(num)) { room.UsersWithRights.Add(num); using (DatabaseClient client = GoldTree.GetDatabase().GetClient()) { client.ExecuteQuery(string.Concat(new object[] { "INSERT INTO room_rights (room_id,user_id) VALUES (", room.Id, ",", num, ")" })); } ServerMessage serverMessage = new ServerMessage(510u); serverMessage.AppendUInt(room.Id); serverMessage.AppendUInt(num); serverMessage.AppendStringWithBreak(roomUserByHabbo.GetClient().GetHabbo().Username); Session.SendMessage(serverMessage); roomUserByHabbo.AddStatus("flatctrl", ""); roomUserByHabbo.UpdateNeeded = true; roomUserByHabbo.GetClient().SendMessage(new ServerMessage(42u)); } } }
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) { 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) { if (Session.GetHabbo().HasFuse("acc_supporttool")) { uint uint_ = Event.PopWiredUInt(); bool flag = Event.PopWiredBoolean(); bool flag2 = Event.PopWiredBoolean(); bool flag3 = Event.PopWiredBoolean(); string text = ""; if (flag) { text += "Apply Doorbell"; } if (flag2) { text += " Change Name"; } if (flag3) { text += " Kick Users"; } GoldTree.GetGame().GetClientManager().method_31(Session, "ModTool - Room Action", text); GoldTree.GetGame().GetModerationTool().method_12(Session, uint_, flag3, flag, flag2); } }
public void Handle(GameClient Session, ClientMessage Event) { uint num = Event.PopWiredUInt(); RoomData @class = GoldTree.GetGame().GetRoomManager().method_12(num); if (@class == null || Session.GetHabbo().list_1.Count >= 30 || Session.GetHabbo().list_1.Contains(num) || @class.Type == "public") { ServerMessage Message = new ServerMessage(33u); Message.AppendInt32(-9001); Session.SendMessage(Message); } else { ServerMessage Message2 = new ServerMessage(459u); Message2.AppendUInt(num); Message2.AppendBoolean(true); Session.SendMessage(Message2); Session.GetHabbo().list_1.Add(num); using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient()) { class2.ExecuteQuery(string.Concat(new object[] { "INSERT INTO user_favorites (user_id,room_id) VALUES ('", Session.GetHabbo().Id, "','", num, "')" })); } } }
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) { 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 @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) { 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) { 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) { if (Session.GetHabbo().HasFuse("acc_chatlogs")) { Session.SendMessage(GoldTree.GetGame().GetModerationTool().method_20(Event.PopWiredUInt())); } }
public void Handle(GameClient Session, ClientMessage Event) { Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (@class != null && Session.GetHabbo().int_21 > 0) { RoomUser class2 = @class.GetRoomUserByHabbo(Event.PopWiredUInt()); if (class2 != null && class2.GetClient().GetHabbo().Id != Session.GetHabbo().Id && !class2.IsBot) { Session.GetHabbo().int_21--; Session.GetHabbo().RespectGiven++; class2.GetClient().GetHabbo().Respect++; using (DatabaseClient class3 = GoldTree.GetDatabase().GetClient()) { class3.ExecuteQuery("UPDATE user_stats SET Respect = respect + 1 WHERE Id = '" + class2.GetClient().GetHabbo().Id + "' LIMIT 1"); class3.ExecuteQuery("UPDATE user_stats SET RespectGiven = RespectGiven + 1 WHERE Id = '" + Session.GetHabbo().Id + "' LIMIT 1"); class3.ExecuteQuery("UPDATE user_stats SET dailyrespectpoints = dailyrespectpoints - 1 WHERE Id = '" + Session.GetHabbo().Id + "' LIMIT 1"); } ServerMessage Message = new ServerMessage(440u); Message.AppendUInt(class2.GetClient().GetHabbo().Id); Message.AppendInt32(class2.GetClient().GetHabbo().Respect); @class.SendMessage(Message, null); Session.GetHabbo().CheckRespectGivedAchievements(); class2.GetClient().GetHabbo().CheckRespectReceivedAchievements(); if (Session.GetHabbo().CurrentQuestId == 5u) { GoldTree.GetGame().GetQuestManager().ProgressUserQuest(5u, Session); } } } }
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(Event.PopWiredUInt()); if (class2 != null && !class2.IsBot && class2.GetClient() != null) { ServerMessage Message = new ServerMessage(228u); Message.AppendUInt(class2.GetClient().GetHabbo().Id); Message.AppendInt32(class2.GetClient().GetHabbo().method_22().Int32_1); using (TimedLock.Lock(class2.GetClient().GetHabbo().method_22().List_0)) { foreach (Badge current in class2.GetClient().GetHabbo().method_22().List_0) { if (current.Slot > 0) { Message.AppendInt32(current.Slot); Message.AppendStringWithBreak(current.Code); } } } 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) { 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) { uint uint_ = Event.PopWiredUInt(); HelpTopic @class = GoldTree.GetGame().GetHelpTool().method_4(uint_); if (@class != null) { Session.SendMessage(GoldTree.GetGame().GetHelpTool().method_9(@class)); } }
public void Handle(GameClient Session, ClientMessage Event) { if (Session.GetHabbo().HasFuse("acc_supporttool")) { Event.PopWiredInt32(); uint uint_ = Event.PopWiredUInt(); GoldTree.GetGame().GetModerationTool().method_6(Session, uint_); } }
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) { if (Session.GetHabbo().HasFuse("acc_supporttool")) { uint uint_ = Event.PopWiredUInt(); RoomData class27_ = GoldTree.GetGame().GetRoomManager().method_11(uint_); Session.SendMessage(GoldTree.GetGame().GetModerationTool().method_14(class27_)); } }
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) { 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().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().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)) { RoomItem class2 = @class.method_28(Event.PopWiredUInt()); if (class2 != null && !(class2.GetBaseItem().InteractionType.ToLower() != "postit")) { @class.method_29(Session, class2.uint_0, true, true); } } }
public void Handle(GameClient Session, ClientMessage Event) { Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (@class != null && @class.Boolean_2) { Trade class2 = @class.method_76(Session.GetHabbo().Id); UserItem class3 = Session.GetHabbo().method_23().method_10(Event.PopWiredUInt()); if (class2 != null && class3 != null) { class2.method_3(Session.GetHabbo().Id, class3); } } }
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) { Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (@class != null && @class.method_26(Session)) { uint uint_ = Event.PopWiredUInt(); RoomUser class2 = @class.GetRoomUserByHabbo(uint_); if (class2 != null && !class2.IsBot && ([email protected](class2.GetClient(), true) && !class2.GetClient().GetHabbo().HasFuse("acc_unkickable"))) { @class.method_78(Session.GetHabbo().Id); @class.method_47(class2.GetClient(), true, true); } } }
public void Handle(GameClient Session, ClientMessage Event) { if (Session.GetHabbo().HasFuse("acc_supporttool")) { SupportTicket @class = GoldTree.GetGame().GetModerationTool().method_5(Event.PopWiredUInt()); if (@class != null) { RoomData class2 = GoldTree.GetGame().GetRoomManager().method_11(@class.RoomId); if (class2 != null) { Session.SendMessage(GoldTree.GetGame().GetModerationTool().method_21(@class, class2, @class.Timestamp)); } } } }