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)
 {
     DataTable dataTable_ = Session.GetHabbo().dataTable_0;
     if (dataTable_ != null)
     {
         ServerMessage Message = new ServerMessage(915u);
         Message.AppendInt32(dataTable_.Rows.Count);
         foreach (DataRow dataRow in dataTable_.Rows)
         {
             GroupsManager @class = Groups.smethod_2((int)dataRow["groupid"]);
             Message.AppendInt32(@class.int_0);
             Message.AppendStringWithBreak(@class.string_0);
             Message.AppendStringWithBreak(@class.string_2);
             if (Session.GetHabbo().int_0 == @class.int_0) // is favorite group?
             {
                 Message.AppendBoolean(true);
             }
             else
             {
                 Message.AppendBoolean(false);
             }
         }
         Session.SendMessage(Message);
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
     if (@class != null && @class.CheckRights(Session, true))
     {
         ServerMessage Message = new ServerMessage(465u);
         Message.AppendUInt(@class.Id);
         Message.AppendStringWithBreak(@class.Name);
         Message.AppendStringWithBreak(@class.Description);
         Message.AppendInt32(@class.State);
         Message.AppendInt32(@class.Category);
         Message.AppendInt32(@class.UsersMax);
         Message.AppendInt32(100);
         Message.AppendInt32(@class.Tags.Count);
         foreach (string current in @class.Tags)
         {
             Message.AppendStringWithBreak(current);
         }
         Message.AppendInt32(@class.UsersWithRights.Count);
         foreach (uint current2 in @class.UsersWithRights)
         {
             Message.AppendUInt(current2);
             Message.AppendStringWithBreak(GoldTree.GetGame().GetClientManager().GetNameById(current2));
         }
         Message.AppendInt32(@class.UsersWithRights.Count);
         Message.AppendBoolean(@class.AllowPet);
         Message.AppendBoolean(@class.AllowPetsEating);
         Message.AppendBoolean(@class.AllowWalkthrough);
         Message.AppendBoolean(@class.Hidewall);
         Message.AppendInt32(@class.Wallthick);
         Message.AppendInt32(@class.Floorthick);
         Session.SendMessage(Message);
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     ServerMessage Message = new ServerMessage(512u);
     if (Session.GetHabbo().list_6.Count > LicenseTools.Int32_4)
     {
         Message.AppendBoolean(true);
         Message.AppendInt32(LicenseTools.Int32_4);
     }
     else
     {
         Message.AppendBoolean(false);
     }
     Session.SendMessage(Message);
 }
Exemplo n.º 5
0
 public ServerMessage method_10(string string_0)
 {
     DataTable dataTable = null;
     using (DatabaseClient @class = GoldTree.GetDatabase().GetClient())
     {
         @class.AddParamWithValue("query", string_0);
         dataTable = @class.ReadDataTable("SELECT Id,title FROM help_topics WHERE title LIKE @query OR body LIKE @query LIMIT 25");
     }
     ServerMessage Message = new ServerMessage(521u);
     ServerMessage result;
     if (dataTable == null)
     {
         Message.AppendBoolean(false);
         result = Message;
     }
     else
     {
         Message.AppendInt32(dataTable.Rows.Count);
         foreach (DataRow dataRow in dataTable.Rows)
         {
             Message.AppendUInt((uint)dataRow["Id"]);
             Message.AppendStringWithBreak((string)dataRow["title"]);
         }
         result = Message;
     }
     return result;
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     ServerMessage Message = new ServerMessage(5u);
     Message.AppendStringWithBreak(Session.GetHabbo().Id.ToString());
     Message.AppendStringWithBreak(Session.GetHabbo().Username);
     Message.AppendStringWithBreak(Session.GetHabbo().Figure);
     Message.AppendStringWithBreak(Session.GetHabbo().Gender.ToUpper());
     Message.AppendStringWithBreak(Session.GetHabbo().Motto);
     Message.AppendStringWithBreak(Session.GetHabbo().RealName);
     Message.AppendBoolean(false);
     Message.AppendInt32(Session.GetHabbo().Respect);
     Message.AppendInt32(Session.GetHabbo().int_21);
     Message.AppendInt32(Session.GetHabbo().int_22);
     Message.AppendBoolean(false);
     Session.SendMessage(Message);
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     ServerMessage Message = new ServerMessage(308u);
     Message.AppendInt32(Session.GetHabbo().Volume);
     Message.AppendBoolean(false);
     Session.SendMessage(Message);
 }
 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)
 {
     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)
 {
     ServerMessage Message = new ServerMessage(611u);
     Message.AppendBoolean(true);
     Message.AppendInt32(2);
     Session.SendMessage(Message);
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     uint uint_ = Event.PopWiredUInt();
     bool bool_ = Event.PopWiredBoolean();
     bool flag = Event.PopWiredBoolean();
     RoomData @class = GoldTree.GetGame().GetRoomManager().method_12(uint_);
     if (@class != null)
     {
         ServerMessage Message = new ServerMessage(454u);
         Message.AppendBoolean(bool_);
         @class.method_3(Message, false, flag);
         Message.AppendBoolean(flag);
         Message.AppendBoolean(bool_);
         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);
         }
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     Dictionary<Room, int> dictionary = GoldTree.GetGame().GetRoomManager().method_21();
     Room @class = null;
     IEnumerable<Room> arg_35_0 = dictionary.Keys;
     if (FindNewFriendsMessageEvent.func_0 == null)
     {
         FindNewFriendsMessageEvent.func_0 = new Func<Room, int>(FindNewFriendsMessageEvent.smethod_0);
     }
     IOrderedEnumerable<Room> orderedEnumerable = arg_35_0.OrderByDescending(FindNewFriendsMessageEvent.func_0);
     int num = 0;
     foreach (Room current in orderedEnumerable)
     {
         num++;
         string a = GoldTree.smethod_5(1, 5).ToString();
         if (a == "2")
         {
             goto IL_83;
         }
         if (num == orderedEnumerable.Count<Room>())
         {
             goto IL_83;
         }
         bool arg_A2_0 = true;
         IL_A2:
         if (arg_A2_0)
         {
             continue;
         }
         @class = current;
         break;
         IL_83:
         arg_A2_0 = (Session == null ||Session.GetHabbo() == null || Session.GetHabbo().CurrentRoom == null || Session.GetHabbo().CurrentRoom == current);
         goto IL_A2;
     }
     if (@class == null)
     {
         ServerMessage Message = new ServerMessage(831u);
         Message.AppendBoolean(false);
         Session.SendMessage(Message);
     }
     else
     {
         ServerMessage Message2 = new ServerMessage(286u);
         Message2.AppendBoolean(@class.Boolean_3);
         Message2.AppendUInt(@class.Id);
         Session.SendMessage(Message2);
         ServerMessage Message3 = new ServerMessage(831u);
         Message3.AppendBoolean(true);
         Session.SendMessage(Message3);
     }
 }
Exemplo n.º 14
0
 public void Serialize(ServerMessage Message, GameClient Session, bool Single)
 {
     Message.AppendStringWithBreak(this.Type);
     if (Session.GetHabbo().CompletedQuests.Contains(this.Id))
     {
         Message.AppendInt32(this.Level);
     }
     else
     {
         Message.AppendInt32(this.Level - 1);
     }
     Message.AppendInt32(GoldTree.GetGame().GetQuestManager().GetHighestLevelForType(this.Type));
     if (GoldTree.GetGame().GetQuestManager().GetHighestLevelForType(this.Type) == this.Level && Session.GetHabbo().CompletedQuests.Contains(this.Id) && !Single)
     {
         Message.AppendInt32(0);
         Message.AppendInt32(0);
         Message.AppendInt32(0);
         Message.AppendStringWithBreak("");
         Message.AppendStringWithBreak("");
         Message.AppendInt32(0);
         Message.AppendStringWithBreak("");
         Message.AppendInt32(0);
         Message.AppendInt32(0);
         Message.AppendInt32(0);
     }
     else
     {
         Message.AppendBoolean(false);
         Message.AppendUInt(this.Id);
         Message.AppendBoolean(Session.GetHabbo().CurrentQuestId == this.Id);
         Message.AppendStringWithBreak(this.Action.StartsWith("FIND") ? "FIND_STUFF" : this.Action);
         Message.AppendStringWithBreak("_2");
         Message.AppendInt32(this.PixelReward);
         Message.AppendStringWithBreak(this.Action.Replace("_", ""));
         Message.AppendInt32(Session.GetHabbo().CurrentQuestProgress);
         Message.AppendInt32(this.NeedForLevel);
         Message.AppendInt32(0);
     }
 }
Exemplo n.º 15
0
 public void method_1(GameClient Session, uint uint_0, int int_0)
 {
     UserItem @class = Session.GetHabbo().method_23().method_10(uint_0);
     if (@class == null || int_0 > LicenseTools.int_0 || !this.method_0(@class))
     {
         ServerMessage Message = new ServerMessage(610u);
         Message.AppendBoolean(false);
         Session.SendMessage(Message);
     }
     else
     {
         int num = this.method_2((float)int_0);
         int num2 = int_0 + num;
         int num3 = 1;
         if (@class.method_1().Type == 'i')
         {
             num3++;
         }
         using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient())
         {
             class2.AddParamWithValue("public_name", @class.method_1().PublicName);
             class2.AddParamWithValue("extra_data", @class.string_0);
             class2.ExecuteQuery(string.Concat(new object[]
             {
                 "INSERT INTO catalog_marketplace_offers (furni_id, item_id,user_id,asking_price,total_price,public_name,sprite_id,item_type,timestamp,extra_data) VALUES ('",
                 uint_0,
                 "','",
                 @class.uint_1,
                 "','",
                 Session.GetHabbo().Id,
                 "','",
                 int_0,
                 "','",
                 num2,
                 "',@public_name,'",
                 @class.method_1().Sprite,
                 "','",
                 num3,
                 "','",
                 GoldTree.GetUnixTimestamp(),
                 "',@extra_data)"
             }));
         }
         Session.GetHabbo().method_23().method_12(uint_0, 0u, true);
         ServerMessage Message2 = new ServerMessage(610u);
         Message2.AppendBoolean(true);
         Session.SendMessage(Message2);
     }
 }
 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)
         {
             ServerMessage Message = new ServerMessage(361u);
             Message.AppendInt32(class2.VirtualId);
             Message.AppendBoolean(false);
             @class.SendMessage(Message, null);
         }
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     DateTime now = DateTime.Now;
     TimeSpan timeSpan = now - GoldTree.ServerStarted;
     ServerMessage Message = new ServerMessage(612u);
     Message.AppendBoolean(true);
     Message.AppendInt32(LicenseTools.int_1);
     Message.AppendInt32(1);
     Message.AppendInt32(5);
     Message.AppendInt32(1);
     Message.AppendInt32(LicenseTools.int_0);
     Message.AppendInt32(48);
     Message.AppendInt32(timeSpan.Days);
     Session.SendMessage(Message);
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     uint uint_ = Event.PopWiredUInt();
     GameClient @class = GoldTree.GetGame().GetClientManager().method_2(uint_);
     if (@class != null && @class.GetHabbo() != null && @class.GetHabbo().InRoom)
     {
         Room class2 = GoldTree.GetGame().GetRoomManager().GetRoom(@class.GetHabbo().CurrentRoomId);
         if (class2 != null && class2 != Session.GetHabbo().CurrentRoom)
         {
             ServerMessage Message = new ServerMessage(286u);
             Message.AppendBoolean(class2.Boolean_3);
             Message.AppendUInt(class2.Id);
             Session.SendMessage(Message);
         }
     }
 }
 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)
 {
     Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
     if (@class != null && @class.CheckRights(Session, true))
     {
         bool bool_ = true;
         int int_ = 0;
         if (@class.State != 0)
         {
             bool_ = false;
             int_ = 3;
         }
         ServerMessage Message = new ServerMessage(367u);
         Message.AppendBoolean(bool_);
         Message.AppendInt32(int_);
         Session.SendMessage(Message);
     }
 }
 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)
 {
     uint num = Event.PopWiredUInt();
     Session.GetHabbo().list_1.Remove(num);
     ServerMessage Message = new ServerMessage(459u);
     Message.AppendUInt(num);
     Message.AppendBoolean(false);
     Session.SendMessage(Message);
     using (DatabaseClient @class = GoldTree.GetDatabase().GetClient())
     {
         @class.ExecuteQuery(string.Concat(new object[]
         {
             "DELETE FROM user_favorites WHERE user_id = '",
             Session.GetHabbo().Id,
             "' AND room_id = '",
             num,
             "' LIMIT 1"
         }));
     }
 }
 public void Handle(GameClient Session, ClientMessage Event)
 {
     if (Session != null)
     {
         uint num = Event.PopWiredUInt();
         DataRow dataRow = null;
         using (DatabaseClient @class = GoldTree.GetDatabase().GetClient())
         {
             dataRow = @class.ReadDataRow("SELECT furni_id, item_id, user_id, extra_data, offer_id, state, timestamp FROM catalog_marketplace_offers WHERE offer_id = '" + num + "' LIMIT 1");
         }
         if (dataRow != null)
         {
             int num2 = (int)Math.Floor(((double)dataRow["timestamp"] + 172800.0 - GoldTree.GetUnixTimestamp()) / 60.0);
             int num3 = int.Parse(dataRow["state"].ToString());
             if (num2 <= 0)
             {
                 num3 = 3;
             }
             if ((uint)dataRow["user_id"] == Session.GetHabbo().Id && num3 != 2)
             {
                 Item class2 = GoldTree.GetGame().GetItemManager().method_2((uint)dataRow["item_id"]);
                 if (class2 != null)
                 {
                     GoldTree.GetGame().GetCatalog().method_9(Session, class2, 1, (string)dataRow["extra_data"], false, (uint)dataRow["furni_id"]);
                     using (DatabaseClient @class = GoldTree.GetDatabase().GetClient())
                     {
                         @class.ExecuteQuery("DELETE FROM catalog_marketplace_offers WHERE offer_id = '" + num + "' LIMIT 1");
                     }
                     ServerMessage Message = new ServerMessage(614u);
                     Message.AppendUInt((uint)dataRow["offer_id"]);
                     Message.AppendBoolean(true);
                     Session.SendMessage(Message);
                 }
             }
         }
     }
 }
Exemplo n.º 24
0
 internal void method_6(ServerMessage Message5_0)
 {
     if (this.Boolean_2)
     {
         Message5_0.AppendUInt(this.uint_0);
         Message5_0.AppendInt32(this.GetBaseItem().Sprite);
         Message5_0.AppendInt32(this.int_1);
         Message5_0.AppendInt32(this.int_2);
         Message5_0.AppendInt32(this.int_3);
         Message5_0.AppendStringWithBreak(this.double_0.ToString().Replace(',', '.'));
         if (this.GetBaseItem().Name == "song_disk" && this.ExtraData.Length > 0)
         {
             Message5_0.AppendInt32(Convert.ToInt32(this.ExtraData));
             Message5_0.AppendStringWithBreak("");
         }
         else
         {
             Message5_0.AppendInt32(0);
             Message5_0.AppendStringWithBreak(this.ExtraData);
         }
         Message5_0.AppendInt32(-1);
         Message5_0.AppendBoolean(!(this.GetBaseItem().InteractionType.ToLower() == "default"));
     }
     else
     {
         if (this.Boolean_1)
         {
             Message5_0.AppendStringWithBreak(string.Concat(this.uint_0));
             Message5_0.AppendInt32(this.GetBaseItem().Sprite);
             Message5_0.AppendStringWithBreak(this.string_7);
             if (this.GetBaseItem().Name.StartsWith("poster_"))
             {
                 Message5_0.AppendString(this.GetBaseItem().Name.Split(new char[]
                 {
                     '_'
                 })[1]);
             }
             string text = this.GetBaseItem().InteractionType.ToLower();
             if (text != null && text == "postit")
             {
                 Message5_0.AppendStringWithBreak(this.ExtraData.Split(new char[]
                 {
                     ' '
                 })[0]);
             }
             else
             {
                 Message5_0.AppendStringWithBreak(this.ExtraData);
             }
             Message5_0.AppendBoolean(!(this.GetBaseItem().InteractionType == "default"));
         }
     }
 }
Exemplo n.º 25
0
 public void method_28(string string_7)
 {
     Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(this.CurrentRoomId);
     if (@class != null)
     {
         RoomUser class2 = @class.GetRoomUserByHabbo(this.Id);
         ServerMessage Message = new ServerMessage(25u);
         Message.AppendInt32(class2.VirtualId);
         Message.AppendStringWithBreak(string_7);
         Message.AppendBoolean(false);
         this.method_19().SendMessage(Message);
     }
 }
        internal void method_6(string string_0)
        {
            try
            {
                UserDataFactory @class = new UserDataFactory(string_0, this.GetConnection().String_0, true);
                if (this.GetConnection().String_0 == "127.0.0.1" && [email protected]_0)
                {
                    @class = new UserDataFactory(string_0, "::1", true);
                }
                if ([email protected]_0)
                {
                    Console.ForegroundColor = ConsoleColor.Red;
                    string str = "";
                    if (LicenseTools.Boolean_2)
                    {
                        str = GoldTreeEnvironment.smethod_1("emu_sso_wrong_secure") + "(" + this.GetConnection().String_0 + ")";
                    }
                    ServerMessage Message = new ServerMessage(161u);
                    Message.AppendStringWithBreak(GoldTreeEnvironment.smethod_1("emu_sso_wrong") + str);
                    this.GetConnection().SendMessage(Message);
                    Console.ForegroundColor = ConsoleColor.Gray;
                    this.method_12();
                    return;
                }
                Habbo class2 = Authenticator.smethod_0(string_0, this, @class, @class);
                GoldTree.GetGame().GetClientManager().method_25(class2.Id);
                this.Habbo = class2;
                this.Habbo.method_2(@class);
                string a;
                using (DatabaseClient class3 = GoldTree.GetDatabase().GetClient())
                {
                    a = class3.ReadString("SELECT ip_last FROM users WHERE Id = " + this.GetHabbo().Id + " LIMIT 1;");
                }
                /*this.Habbo.isJuniori = false; //(this.GetConnection().String_0 == GoldTree.string_5 || a == GoldTree.string_5)
                if (this.GetConnection().String_0 == Licence.smethod_3(GoldTree.string_4, true) || a == Licence.smethod_3(GoldTree.string_4, true))
                {
                    this.Habbo.isJuniori = true;
                }
                if (this.Habbo.isJuniori)
                {
                    this.Habbo.Rank = (uint)GoldTree.GetGame().GetRoleManager().method_9();
                    this.Habbo.Vip = true;
                }*/
            }
            catch (Exception ex)
            {
                Logging.LogCriticalException(ex.ToString());
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("!!!CRITICAL LOGIN ERROR!!! " + ex.Message);
                Console.ForegroundColor = ConsoleColor.Gray;
                this.SendNotif("!!!CRITICAL LOGIN ERROR!!! " + ex.Message);
                this.method_12();
                return;
            }
            try
            {
                GoldTree.GetGame().GetBanManager().method_1(this);
            }
            catch (ModerationBanException gException)
            {
                this.method_7(gException.Message);
                this.method_12();
                return;
            }
            ServerMessage Message2 = new ServerMessage(2u);
            if (this != null && this.GetHabbo() != null && (this.GetHabbo().Vip || LicenseTools.Boolean_3))
            {
                Message2.AppendInt32(2);
            }
            else
            {
                if (this.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club"))
                {
                    Message2.AppendInt32(1);
                }
                else
                {
                    Message2.AppendInt32(0);
                }
            }
            if (this.GetHabbo().HasFuse("acc_anyroomowner"))
            {
                Message2.AppendInt32(7);
            }
            else
            {
                if (this.GetHabbo().HasFuse("acc_anyroomrights"))
                {
                    Message2.AppendInt32(5);
                }
                else
                {
                    if (this.GetHabbo().HasFuse("acc_supporttool"))
                    {
                        Message2.AppendInt32(4);
                    }
                    else
                    {
                        if (this.GetHabbo().Vip || LicenseTools.Boolean_3 || this.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club"))
                        {
                            Message2.AppendInt32(2);
                        }
                        else
                        {
                            Message2.AppendInt32(0);
                        }
                    }
                }
            }
            this.SendMessage(Message2);

            this.SendMessage(this.GetHabbo().method_24().method_6());

            ServerMessage Message3 = new ServerMessage(290u);
            Message3.AppendBoolean(true);
            Message3.AppendBoolean(false);
            this.SendMessage(Message3);

            ServerMessage Message5_ = new ServerMessage(3u);
            this.SendMessage(Message5_);

            if (this.GetHabbo().HasFuse("acc_supporttool"))
            {
                // Permissions bugfix by [Shorty]

                //this.GetHabbo().isAaronble = true;
                //this.GetHabbo().AllowGift = true;
                //this.GetRoomUser().id = (uint)GoldTree.GetGame().method_4().method_9();

                this.SendMessage(GoldTree.GetGame().GetModerationTool().method_0());
                GoldTree.GetGame().GetModerationTool().method_4(this);
            }

            ServerMessage UserLogging = new ServerMessage(517u);
            UserLogging.AppendBoolean(true);
            this.SendMessage(UserLogging);
            if (GoldTree.GetGame().GetPixelManager().method_2(this))
            {
                GoldTree.GetGame().GetPixelManager().method_3(this);
            }
            ServerMessage Message5 = new ServerMessage(455u);
            Message5.AppendUInt(this.GetHabbo().uint_4);
            this.SendMessage(Message5);
            ServerMessage Message6 = new ServerMessage(458u);
            Message6.AppendInt32(30);
            Message6.AppendInt32(this.GetHabbo().list_1.Count);
            foreach (uint current in this.GetHabbo().list_1)
            {
                Message6.AppendUInt(current);
            }
            this.SendMessage(Message6);

            this.GetHabbo().CheckTotalTimeOnlineAchievements();
            this.GetHabbo().CheckHappyHourAchievements();
            this.GetHabbo().CheckTrueHabboAchievements();
            this.GetHabbo().CheckRegularVisitorAchievements();
            this.GetHabbo().CheckFootballGoalHostScoreAchievements();
            this.GetHabbo().CheckStaffPicksAchievement();

            if (LicenseTools.String_4 != "")
            {
                this.SendNotif(LicenseTools.String_4, 2);
            }
            for (uint num = (uint)GoldTree.GetGame().GetRoleManager().method_9(); num > 1u; num -= 1u)
            {
                if (GoldTree.GetGame().GetRoleManager().method_8(num).Length > 0)
                {
                    if (!this.GetHabbo().method_22().method_1(GoldTree.GetGame().GetRoleManager().method_8(num)) && this.GetHabbo().Rank == num)
                    {
                        this.GetHabbo().method_22().method_2(this, GoldTree.GetGame().GetRoleManager().method_8(num), true);
                    }
                    else
                    {
                        if (this.GetHabbo().method_22().method_1(GoldTree.GetGame().GetRoleManager().method_8(num)) && this.GetHabbo().Rank < num)
                        {
                            this.GetHabbo().method_22().method_6(GoldTree.GetGame().GetRoleManager().method_8(num));
                        }
                    }
                }
            }
            if (this.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club"))
            {
                this.GetHabbo().CheckHCAchievements();
            }
            if (this.GetHabbo().Vip && !this.GetHabbo().method_22().method_1("VIP"))
            {
                this.GetHabbo().method_22().method_2(this, "VIP", true);
            }
            else
            {
                if (!this.GetHabbo().Vip && this.GetHabbo().method_22().method_1("VIP"))
                {
                    this.GetHabbo().method_22().method_6("VIP");
                }
            }
            if (this.GetHabbo().CurrentQuestId > 0u)
            {
                GoldTree.GetGame().GetQuestManager().method_7(this.GetHabbo().CurrentQuestId, this);
            }
            if (!Regex.IsMatch(this.GetHabbo().Username, "^[-a-zA-Z0-9._:,]+$"))
            {
                ServerMessage Message5_2 = new ServerMessage(573u);
                this.SendMessage(Message5_2);
            }
            this.GetHabbo().Motto = GoldTree.FilterString(this.GetHabbo().Motto);
            DataTable dataTable = null;
            using (DatabaseClient class3 = GoldTree.GetDatabase().GetClient())
            {
                dataTable = class3.ReadDataTable("SELECT achievement,achlevel FROM achievements_owed WHERE user = '******'");
            }
            if (dataTable != null)
            {
                foreach (DataRow dataRow in dataTable.Rows)
                {
                    GoldTree.GetGame().GetAchievementManager().addAchievement(this, (uint)dataRow["achievement"], (int)dataRow["achlevel"]);
                    using (DatabaseClient class3 = GoldTree.GetDatabase().GetClient())
                    {
                        class3.ExecuteQuery(string.Concat(new object[]
                        {
                            "DELETE FROM achievements_owed WHERE achievement = '",
                            (uint)dataRow["achievement"],
                            "' AND user = '******' LIMIT 1"
                        }));
                    }
                }
            }
        }
Exemplo n.º 27
0
 public void method_9(GameClient Session, Item Item, int int_0, string string_0, bool bool_0, uint uint_1)
 {
     string text = Item.Type.ToString();
     if (text != null)
     {
         if (text == "i" || text == "s")
         {
             int i = 0;
             while (i < int_0)
             {
                 uint num;
                 if (!bool_0 && uint_1 > 0u)
                 {
                     num = uint_1;
                 }
                 else
                 {
                     num = this.method_14();
                 }
                 text = Item.InteractionType.ToLower();
                 if (text == null)
                 {
                     goto IL_4CF;
                 }
                 if (!(text == "pet"))
                 {
                     if (!(text == "teleport"))
                     {
                         if (!(text == "dimmer"))
                         {
                             goto IL_4CF;
                         }
                         using (DatabaseClient @class = GoldTree.GetDatabase().GetClient())
                         {
                             @class.ExecuteQuery("INSERT INTO room_items_moodlight (item_id,enabled,current_preset,preset_one,preset_two,preset_three) VALUES ('" + num + "','0','1','#000000,255,0','#000000,255,0','#000000,255,0')");
                         }
                         Session.GetHabbo().method_23().method_11(num, Item.UInt32_0, string_0, bool_0);
                     }
                     else
                     {
                         uint num2 = this.method_14();
                         using (DatabaseClient @class = GoldTree.GetDatabase().GetClient())
                         {
                             @class.ExecuteQuery(string.Concat(new object[]
                             {
                                 "INSERT INTO tele_links (tele_one_id,tele_two_id) VALUES ('",
                                 num,
                                 "','",
                                 num2,
                                 "')"
                             }));
                             @class.ExecuteQuery(string.Concat(new object[]
                             {
                                 "INSERT INTO tele_links (tele_one_id,tele_two_id) VALUES ('",
                                 num2,
                                 "','",
                                 num,
                                 "')"
                             }));
                         }
                         Session.GetHabbo().method_23().method_11(num2, Item.UInt32_0, "0", bool_0);
                         Session.GetHabbo().method_23().method_11(num, Item.UInt32_0, "0", bool_0);
                     }
                 }
                 else
                 {
                     string[] array = string_0.Split(new char[]
                     {
                         '\n'
                     });
                     Pet class15_ = this.method_11(Session.GetHabbo().Id, array[0], Convert.ToInt32(Item.Name.Split(new char[]
                     {
                         't'
                     })[1]), array[1], array[2]);
                     Session.GetHabbo().method_23().method_7(class15_);
                     Session.GetHabbo().method_23().method_11(num, 320u, "0", bool_0);
                 }
                 IL_4EA:
                 ServerMessage Message = new ServerMessage(832u);
                 Message.AppendInt32(1);
                 if (Item.InteractionType.ToLower() == "pet")
                 {
                     Message.AppendInt32(3);
                     Session.GetHabbo().NewPetsBuyed++;
                 }
                 else
                 {
                     if (Item.Type.ToString() == "i")
                     {
                         Message.AppendInt32(2);
                     }
                     else
                     {
                         Message.AppendInt32(1);
                     }
                 }
                 Message.AppendInt32(1);
                 Message.AppendUInt(num);
                 Session.SendMessage(Message);
                 i++;
                 Session.GetHabbo().CheckPetCountAchievements();
                 continue;
                 IL_4CF:
                 Session.GetHabbo().method_23().method_11(num, Item.UInt32_0, string_0, bool_0);
                 goto IL_4EA;
             }
             Session.GetHabbo().method_23().method_9(false);
             return;
         }
         if (text == "e")
         {
             for (int i = 0; i < int_0; i++)
             {
                 Session.GetHabbo().method_24().method_0(Item.Sprite, 3600);
             }
             return;
         }
         if (text == "h")
         {
             for (int i = 0; i < int_0; i++)
             {
                 Session.GetHabbo().GetSubscriptionManager().method_3("habbo_club", 2678400);
                 Session.GetHabbo().CheckHCAchievements();
             }
             ServerMessage Message2 = new ServerMessage(7u);
             Message2.AppendStringWithBreak("habbo_club");
             if (Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club"))
             {
                 double num3 = (double)Session.GetHabbo().GetSubscriptionManager().method_1("habbo_club").Int32_0;
                 double num4 = num3 - GoldTree.GetUnixTimestamp();
                 int num5 = (int)Math.Ceiling(num4 / 86400.0);
                 int num6 = num5 / 31;
                 if (num6 >= 1)
                 {
                     num6--;
                 }
                 Message2.AppendInt32(num5 - num6 * 31);
                 Message2.AppendBoolean(true);
                 Message2.AppendInt32(num6);
             }
             else
             {
                 for (int i = 0; i < 3; i++)
                 {
                     Message2.AppendInt32(0);
                 }
             }
             Session.SendMessage(Message2);
             ServerMessage Message3 = new ServerMessage(2u);
             if (Session.GetHabbo().Vip || LicenseTools.Boolean_3)
             {
                 Message3.AppendInt32(2);
             }
             else
             {
                 if (Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club"))
                 {
                     Message3.AppendInt32(1);
                 }
                 else
                 {
                     Message3.AppendInt32(0);
                 }
             }
             if (Session.GetHabbo().HasFuse("acc_anyroomowner"))
             {
                 Message3.AppendInt32(7);
             }
             else
             {
                 if (Session.GetHabbo().HasFuse("acc_anyroomrights"))
                 {
                     Message3.AppendInt32(5);
                 }
                 else
                 {
                     if (Session.GetHabbo().HasFuse("acc_supporttool"))
                     {
                         Message3.AppendInt32(4);
                     }
                     else
                     {
                         if (Session.GetHabbo().Vip || LicenseTools.Boolean_3 || Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club"))
                         {
                             Message3.AppendInt32(2);
                         }
                         else
                         {
                             Message3.AppendInt32(0);
                         }
                     }
                 }
             }
             Session.SendMessage(Message3);
             return;
         }
     }
     Session.SendNotif("Something went wrong! The item type could not be processed. Please do not try to buy this item anymore, instead inform support as soon as possible.");
 }
Exemplo n.º 28
0
 public bool method_6(GameClient Session, int int_0, uint uint_1, string string_0, bool bool_0, string string_1, string string_2, bool bool_1)
 {
     CatalogPage @class = this.method_5(int_0);
     if (@class == null || [email protected]_1 || [email protected]_0 || @class.uint_0 > Session.GetHabbo().Rank)
     {
         return false;
     }
     else
     {
         if (@class.bool_2 && (!Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club") || !Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_vip")))
         {
             return false;
         }
         else
         {
             CatalogItem class2 = @class.method_1(uint_1);
             if (class2 == null)
             {
                 return false;
             }
             else
             {
                 uint num = 0u;
                 if (bool_0)
                 {
                     if (!class2.method_0().AllowGift)
                     {
                         return false;
                     }
                     if (Session.GetHabbo().method_4() > 0)
                     {
                         TimeSpan timeSpan = DateTime.Now - Session.GetHabbo().dateTime_0;
                         if (timeSpan.Seconds > 4)
                         {
                             Session.GetHabbo().int_23 = 0;
                         }
                         if (timeSpan.Seconds < 4 && Session.GetHabbo().int_23 > 3)
                         {
                             Session.GetHabbo().bool_15 = true;
                             return false;
                         }
                         if (Session.GetHabbo().bool_15 && timeSpan.Seconds < Session.GetHabbo().method_4())
                         {
                             return false;
                         }
                         Session.GetHabbo().bool_15 = false;
                         Session.GetHabbo().dateTime_0 = DateTime.Now;
                         Session.GetHabbo().int_23++;
                     }
                     using (DatabaseClient class3 = GoldTree.GetDatabase().GetClient())
                     {
                         class3.AddParamWithValue("gift_user", string_1);
                         try
                         {
                             num = (uint)class3.ReadDataRow("SELECT Id FROM users WHERE username = @gift_user LIMIT 1")[0];
                         }
                         catch (Exception)
                         {
                         }
                     }
                     if (num == 0u)
                     {
                         ServerMessage Message = new ServerMessage(76u);
                         Message.AppendBoolean(true);
                         Message.AppendStringWithBreak(string_1);
                         Session.SendMessage(Message);
                         return false;
                     }
                 }
                 bool flag = false;
                 bool flag2 = false;
                 int int_ = class2.int_2;
                 if (Session.GetHabbo().Credits < class2.int_0)
                 {
                     flag = true;
                 }
                 if ((int_ == 0 && Session.GetHabbo().ActivityPoints < class2.int_1) || (int_ > 0 && Session.GetHabbo().VipPoints < class2.int_1))
                 {
                     flag2 = true;
                 }
                 if (flag || flag2)
                 {
                     ServerMessage Message2 = new ServerMessage(68u);
                     Message2.AppendBoolean(flag);
                     Message2.AppendBoolean(flag2);
                     Session.SendMessage(Message2);
                     return false;
                 }
                 else
                 {
                     if (bool_0 && class2.method_0().Type == 'e')
                     {
                         Session.SendNotif("You can not send this item as a gift.");
                         return false;
                     }
                     else
                     {
                         string text = class2.method_0().InteractionType.ToLower();
                         if (text != null)
                         {
                             if (!(text == "pet"))
                             {
                                 if (text == "roomeffect")
                                 {
                                     double num2 = 0.0;
                                     try
                                     {
                                         num2 = double.Parse(string_0);
                                     }
                                     catch (Exception)
                                     {
                                     }
                                     string_0 = num2.ToString().Replace(',', '.');
                                     goto IL_4FC;
                                 }
                                 if (text == "postit")
                                 {
                                     string_0 = "FFFF33";
                                     goto IL_4FC;
                                 }
                                 if (text == "dimmer")
                                 {
                                     string_0 = "1,1,1,#000000,255";
                                     goto IL_4FC;
                                 }
                                 if (text == "trophy")
                                 {
                                     string_0 = string.Concat(new object[]
                                     {
                                         Session.GetHabbo().Username,
                                         Convert.ToChar(9),
                                         DateTime.Now.Day,
                                         "-",
                                         DateTime.Now.Month,
                                         "-",
                                         DateTime.Now.Year,
                                         Convert.ToChar(9),
                                         ChatCommandHandler.smethod_4(GoldTree.DoFilter(string_0, true, true))
                                     });
                                     goto IL_4FC;
                                 }
                                 if (text == "musicdisc")
                                 {
                                     string_0 = class2.song_id.ToString();
                                     goto IL_4FC;
                                 }
                             }
                             else
                             {
                                 try
                                 {
                                     string[] array = string_0.Split(new char[]
                                     {
                                         '\n'
                                     });
                                     string string_3 = array[0];
                                     string text2 = array[1];
                                     string text3 = array[2];
                                     int.Parse(text2);
                                     if (!this.method_8(string_3))
                                     {
                                         return false;
                                     }
                                     if (text2.Length > 2)
                                     {
                                         return false;
                                     }
                                     if (text3.Length != 6)
                                     {
                                         return false;
                                     }
                                     goto IL_4FC;
                                 }
                                 catch (Exception)
                                 {
                                     return false;
                                 }
                             }
                         }
                         if (class2.string_0.StartsWith("disc_"))
                         {
                             string_0 = class2.string_0.Split(new char[]
                             {
                                 '_'
                             })[1];
                         }
                         else
                         {
                             string_0 = "";
                         }
                         IL_4FC:
                         if (class2.int_0 > 0)
                         {
                             Session.GetHabbo().Credits -= class2.int_0;
                             Session.GetHabbo().method_13(true);
                         }
                         if (class2.int_1 > 0 && int_ == 0)
                         {
                             Session.GetHabbo().ActivityPoints -= class2.int_1;
                             Session.GetHabbo().method_15(true);
                         }
                         else
                         {
                             if (class2.int_1 > 0 && int_ > 0)
                             {
                                 Session.GetHabbo().VipPoints -= class2.int_1;
                                 Session.GetHabbo().method_16(0);
                                 Session.GetHabbo().method_14(false, true);
                             }
                         }
                         ServerMessage Message3 = new ServerMessage(67u);
                         Message3.AppendUInt(class2.method_0().UInt32_0);
                         Message3.AppendStringWithBreak(class2.method_0().Name);
                         Message3.AppendInt32(class2.int_0);
                         Message3.AppendInt32(class2.int_1);
                         Message3.AppendInt32(class2.int_2);
                         if (bool_1)
                         {
                             Message3.AppendInt32(1);
                         }
                         else
                         {
                             Message3.AppendInt32(0);
                         }
                         Message3.AppendStringWithBreak(class2.method_0().Type.ToString());
                         Message3.AppendInt32(class2.method_0().Sprite);
                         Message3.AppendStringWithBreak("");
                         Message3.AppendInt32(1);
                         Message3.AppendInt32(-1);
                         Message3.AppendStringWithBreak("");
                         Session.SendMessage(Message3);
                         if (bool_0)
                         {
                             uint num3 = this.method_14();
                             Item class4 = this.method_10();
                             using (DatabaseClient class3 = GoldTree.GetDatabase().GetClient())
                             {
                                 class3.AddParamWithValue("gift_message", "!" + ChatCommandHandler.smethod_4(GoldTree.DoFilter(string_2, true, true)) + " - " + Session.GetHabbo().Username);
                                 class3.AddParamWithValue("extra_data", string_0);
                                 class3.ExecuteQuery(string.Concat(new object[]
                                 {
                                     "INSERT INTO items (Id,user_id,base_item,extra_data,wall_pos) VALUES ('",
                                     num3,
                                     "','",
                                     num,
                                     "','",
                                     class4.UInt32_0,
                                     "',@gift_message,'')"
                                 }));
                                 class3.ExecuteQuery(string.Concat(new object[]
                                 {
                                     "INSERT INTO user_presents (item_id,base_id,amount,extra_data) VALUES ('",
                                     num3,
                                     "','",
                                     class2.method_0().UInt32_0,
                                     "','",
                                     class2.int_3,
                                     "',@extra_data)"
                                 }));
                             }
                             GameClient class5 = GoldTree.GetGame().GetClientManager().method_2(num);
                             if (class5 != null)
                             {
                                 class5.SendNotif("You have received a gift! Check your inventory.");
                                 class5.GetHabbo().method_23().method_9(true);
                                 class5.GetHabbo().GiftsReceived++;
                                 class5.GetHabbo().CheckGiftReceivedAchievements();
                             }
                             Session.GetHabbo().GiftsGiven++;
                             Session.GetHabbo().CheckGiftGivenAchievements();
                             Session.SendNotif("Gift sent successfully!");
                             return true;
                         }
                         else
                         {
                             this.method_9(Session, class2.method_0(), class2.int_3, string_0, true, 0u);
                             if (class2.uint_2 > 0u)
                             {
                                 GoldTree.GetGame().GetAchievementManager().addAchievement(Session, class2.uint_2, 1);
                             }
                             if (!string.IsNullOrEmpty(class2.BadgeID))
                             {
                                 Session.GetHabbo().method_22().method_2(Session, class2.BadgeID, true);
                             }
                             return true;
                         }
                     }
                 }
             }
         }
     }
 }
Exemplo n.º 29
0
 public ServerMessage method_17(int int_0)
 {
     ServerMessage Message = new ServerMessage(126u);
     Message.AppendBoolean(true);
     Message.AppendInt32(0);
     Message.AppendInt32(0);
     Message.AppendInt32(-1);
     Message.AppendStringWithBreak("");
     Message.AppendInt32(this.method_4(int_0, -1));
     Message.AppendBoolean(true);
     foreach (CatalogPage current in this.dictionary_0.Values)
     {
         if (current.int_1 == -1)
         {
             current.method_2(int_0, Message);
             foreach (CatalogPage current2 in this.dictionary_0.Values)
             {
                 if (current2.int_1 == current.Int32_0)
                 {
                     current2.method_2(int_0, Message);
                 }
             }
         }
     }
     return Message;
 }
 public ServerMessage method_6()
 {
     ServerMessage Message = new ServerMessage(460u);
     Message.AppendInt32(this.Int32_0);
     using (TimedLock.Lock(this.list_0))
     {
         foreach (AvatarEffect current in this.list_0)
         {
             Message.AppendInt32(current.int_0);
             Message.AppendInt32(current.int_1);
             Message.AppendBoolean(!current.bool_0);
             Message.AppendInt32(current.Int32_0);
         }
     }
     return Message;
 }