Hébergeur de fichiers indépendant

Class3.cs

À propos du fichier

Type de fichier
Fichier CS de 24 Ko (text/plain)
Confidentialité
Fichier public, envoyé le 3 août 2013 à 22:16, depuis l'adresse IP 213.111.x.x (France)
Sécurité
Ne contient aucun Virus ou Malware connus - Dernière vérification: 3 jours
Statistiques
La présente page de téléchargement a été vue 777 fois depuis l'envoi du fichier
Page de téléchargement

Aperçu du fichier


namespace Phoenix.HabboHotel.Users
{
    using Phoenix;
    using Phoenix.HabboHotel;
    using Phoenix.HabboHotel.GameClients;
    using Phoenix.HabboHotel.Groups;
    using Phoenix.HabboHotel.Rooms;
    using Phoenix.HabboHotel.Users.Badges;
    using Phoenix.HabboHotel.Users.Inventory;
    using Phoenix.HabboHotel.Users.Messenger;
    using Phoenix.HabboHotel.Users.Subscriptions;
    using Phoenix.Messages;
    using Phoenix.Storage;
    using Phoenix.Util;
    using System;
    using System.Collections.Generic;
    using System.Data;

    internal class Class3
    {
        public bool bool_0;
        public bool bool_1;
        public bool bool_10;
        public bool bool_11;
        public bool bool_12;
        public bool bool_13;
        public bool bool_14;
        public bool bool_15;
        private bool bool_16 = false;
        public bool bool_2;
        public bool bool_3;
        internal bool bool_4 = false;
        public bool bool_5;
        public bool bool_6;
        public bool bool_7;
        public bool bool_8;
        public bool bool_9;
        private Class11 class11_0;
        private Class22 class22_0;
        private Class77 class77_0;
        private Class79 class79_0;
        private Class92 class92_0;
        private Class98 class98_0;
        private Class99 class99_0;
        public DataTable dataTable_0;
        public DateTime dateTime_0;
        public Dictionary<uint, int> dictionary_0;
        public double double_0;
        public int int_0;
        public int int_1;
        public int int_10;
        public int int_11;
        public int int_12;
        public int int_13;
        public int int_14;
        public int int_15;
        public int int_16;
        public int int_17;
        public int int_18;
        public int int_19;
        public int int_2;
        public int int_20;
        public int int_21;
        public int int_22;
        public int int_3;
        public int int_4;
        public int int_5;
        public int int_6;
        public int int_7;
        public int int_8;
        public int int_9;
        public List<uint> list_0;
        public List<uint> list_1;
        public List<string> list_2;
        public List<uint> list_3;
        public List<uint> list_4;
        internal List<Class42> list_5;
        public string string_0;
        public string string_1;
        public string string_2;
        public string string_3;
        public string string_4;
        public string string_5;
        public uint uint_0;
        public uint uint_1;
        public uint uint_2;
        public uint uint_3;
        public uint uint_4;
        public uint uint_5;
        public uint uint_6;
        public uint uint_7;

        public Class3(uint Id, string Username, string RealName, string AuthTicket, uint Rank, string Motto, string Look, string Gender, int Credits, int ActivityPoints, double LastActivityPointsUpdate, bool Muted, uint HomeRoom, int NewbieStatus, bool BlockNewFriends, bool HideinRoom, bool HideOnlineStatus, bool vip, int volume, int shells, bool AcceptTrading, Class11 pClient, Class79 UserData)
        {
            this.uint_0 = Id;
            this.string_0 = Username;
            this.string_1 = RealName;
            this.bool_0 = false;
            this.bool_1 = true;
            this.string_2 = AuthTicket;
            this.uint_1 = Rank;
            this.string_3 = Motto;
            this.string_4 = Class4.smethod_7(Look.ToLower());
            this.string_5 = Gender.ToLower();
            this.int_2 = Credits;
            this.int_11 = shells;
            this.int_3 = ActivityPoints;
            this.double_0 = LastActivityPointsUpdate;
            this.bool_2 = AcceptTrading;
            this.bool_3 = Muted;
            this.uint_2 = 0;
            this.bool_5 = false;
            this.bool_6 = false;
            this.uint_3 = 0;
            this.uint_4 = HomeRoom;
            this.list_0 = new List<uint>();
            this.list_1 = new List<uint>();
            this.list_2 = new List<string>();
            this.dictionary_0 = new Dictionary<uint, int>();
            this.list_3 = new List<uint>();
            this.int_9 = NewbieStatus;
            this.bool_10 = false;
            this.bool_11 = BlockNewFriends;
            this.bool_12 = HideinRoom;
            this.bool_13 = HideOnlineStatus;
            this.bool_14 = vip;
            this.int_10 = volume;
            this.int_1 = 0;
            this.bool_7 = false;
            this.uint_5 = 0;
            this.class11_0 = pClient;
            this.class79_0 = UserData;
            this.list_5 = new List<Class42>();
            DataRow row = null;
            using (Class1 class2 = Class4.smethod_12().method_0())
            {
                class2.method_0("user_id", Id);
                row = class2.method_4("SELECT * FROM user_stats WHERE id = @user_id LIMIT 1");
                if (row == null)
                {
                    class2.method_1("INSERT INTO user_stats (id) VALUES ('" + Id + "')");
                    row = class2.method_4("SELECT * FROM user_stats WHERE id = @user_id LIMIT 1");
                }
                this.dataTable_0 = class2.method_3("SELECT * FROM group_memberships WHERE userid = @user_id");
                if (this.dataTable_0 != null)
                {
                    foreach (DataRow row3 in this.dataTable_0.Rows)
                    {
                        Class7 class3 = Class6.smethod_2((int) row3["groupid"]);
                        if (class3 == null)
                        {
                            foreach (DataRow row2 in class2.method_3("SELECT * FROM groups WHERE id = " + ((int) row3["groupid"]) + " LIMIT 1;").Rows)
                            {
                                if (!Class6.dictionary_0.ContainsKey((int) row2["id"]))
                                {
                                    Class6.dictionary_0.Add((int) row2["id"], new Class7((int) row2["id"], row2, class2));
                                }
                            }
                        }
                        else if (!class3.list_0.Contains((int) Id))
                        {
                            class3.method_0((int) Id);
                        }
                    }
                    this.int_0 = (int) row["groupid"];
                }
                else
                {
                    this.int_0 = 0;
                }
            }
            this.int_13 = (int) row["RoomVisits"];
            this.int_15 = (int) Class4.smethod_6();
            this.int_14 = (int) row["OnlineTime"];
            this.int_16 = (int) row["Respect"];
            this.int_17 = (int) row["RespectGiven"];
            this.int_18 = (int) row["GiftsGiven"];
            this.int_19 = (int) row["GiftsReceived"];
            this.int_20 = (int) row["DailyRespectPoints"];
            this.int_21 = (int) row["DailyPetRespectPoints"];
            this.int_12 = (int) row["AchievementScore"];
            this.list_4 = new List<uint>();
            this.uint_7 = 0;
            this.uint_6 = (uint) row["quest_id"];
            this.int_4 = (int) row["quest_progress"];
            this.int_5 = (int) row["lev_builder"];
            this.int_7 = (int) row["lev_identity"];
            this.int_6 = (int) row["lev_social"];
            this.int_8 = (int) row["lev_explore"];
            if (pClient != null)
            {
                this.class99_0 = new Class99(Id, UserData);
                this.class98_0 = new Class98(Id, UserData);
                this.class22_0 = new Class22(Id, pClient, UserData);
                this.class77_0 = new Class77(Id, pClient, UserData);
                this.bool_8 = false;
                this.bool_9 = false;
                foreach (DataRow row2 in UserData.DataTable_10.Rows)
                {
                    this.list_5.Add(Class4.smethod_15().method_9().method_17((uint) row2["id"], row2));
                }
            }
        }

        public void method_0(Class1 class1_0)
        {
            this.dataTable_0 = class1_0.method_3("SELECT * FROM group_memberships WHERE userid = @user_id");
            if (this.dataTable_0 == null)
            {
                this.int_0 = 0;
            }
            else
            {
                foreach (DataRow row2 in this.dataTable_0.Rows)
                {
                    Class7 class2 = Class6.smethod_2((int) row2["groupid"]);
                    if (class2 != null)
                    {
                        if (!class2.list_0.Contains((int) this.uint_0))
                        {
                            class2.method_0((int) this.uint_0);
                        }
                    }
                    else
                    {
                        foreach (DataRow row in class1_0.method_3("SELECT * FROM groups WHERE id = " + ((int) row2["groupid"]) + " LIMIT 1;").Rows)
                        {
                            if (!Class6.dictionary_0.ContainsKey((int) row["id"]))
                            {
                                Class6.dictionary_0.Add((int) row["id"], new Class7((int) row["id"], row, class1_0));
                            }
                        }
                    }
                }
                this.int_0 = class1_0.method_6("SELECT groupid FROM users_stats WHERE id = " + this.uint_0 + " LIMIT 1");
            }
        }

        internal void method_1(Class1 class1_0)
        {
            this.list_5.Clear();
            class1_0.method_0("name", this.string_0);
            foreach (DataRow row in class1_0.method_3("SELECT * FROM rooms WHERE owner = @name ORDER BY id ASC").Rows)
            {
                this.list_5.Add(Class4.smethod_15().method_9().method_17((uint) row["id"], row));
            }
        }

        internal void method_10(uint uint_8)
        {
            if (Class19.Boolean_6)
            {
                using (Class1 class2 = Class4.smethod_12().method_0())
                {
                    class2.method_1(string.Concat(new object[] { "INSERT INTO user_roomvisits (user_id,room_id,entry_timestamp,exit_timestamp,hour,minute) VALUES ('", this.uint_0, "','", uint_8, "',UNIX_TIMESTAMP(),'0','", DateTime.Now.Hour, "','", DateTime.Now.Minute, "')" }));
                }
            }
            this.uint_3 = uint_8;
            if ((this.Class34_0.string_3 != this.string_0) && (this.uint_6 == 15))
            {
                Class4.smethod_15().method_16().method_1(15, this.method_19());
            }
            this.class92_0.method_5(false);
        }

        public void method_11()
        {
            try
            {
                if (Class19.Boolean_6)
                {
                    using (Class1 class2 = Class4.smethod_12().method_0())
                    {
                        class2.method_1(string.Concat(new object[] { "UPDATE user_roomvisits SET exit_timestamp = UNIX_TIMESTAMP() WHERE room_id = '", this.uint_3, "' AND user_id = '", this.uint_0, "' ORDER BY entry_timestamp DESC LIMIT 1" }));
                    }
                }
            }
            catch
            {
            }
            this.uint_3 = 0;
            if (this.class92_0 != null)
            {
                this.class92_0.method_5(false);
            }
        }

        public void method_12()
        {
            if (this.method_21() == null)
            {
                this.class92_0 = new Class92(this.uint_0);
                this.class92_0.method_0(this.class79_0);
                this.class92_0.method_1(this.class79_0);
                Class11 class2 = this.method_19();
                if (class2 != null)
                {
                    class2.method_14(this.class92_0.method_21());
                    class2.method_14(this.class92_0.method_23());
                    this.class92_0.method_5(true);
                }
            }
        }

        public void method_13(bool bool_17)
        {
            GClass4 class2 = new GClass4(6);
            class2.method_7(this.int_2 + ".0");
            this.class11_0.method_14(class2);
            if (bool_17)
            {
                using (Class1 class3 = Class4.smethod_12().method_0())
                {
                    class3.method_1(string.Concat(new object[] { "UPDATE users SET credits = '", this.int_2, "' WHERE id = '", this.uint_0, "' LIMIT 1;" }));
                }
            }
        }

        public void method_14(bool bool_17, bool bool_18)
        {
            Class1 class2;
            if (bool_17)
            {
                using (class2 = Class4.smethod_12().method_0())
                {
                    this.int_11 = class2.method_6("SELECT vip_points FROM users WHERE id = '" + this.uint_0 + "' LIMIT 1;");
                }
            }
            if (bool_18)
            {
                using (class2 = Class4.smethod_12().method_0())
                {
                    class2.method_1(string.Concat(new object[] { "UPDATE users SET vip_points = '", this.int_11, "' WHERE id = '", this.uint_0, "' LIMIT 1;" }));
                }
            }
            this.method_16(0);
        }

        public void method_15(bool bool_17)
        {
            this.method_16(0);
            if (bool_17)
            {
                using (Class1 class2 = Class4.smethod_12().method_0())
                {
                    class2.method_1(string.Concat(new object[] { "UPDATE users SET activity_points = '", this.int_3, "' WHERE id = '", this.uint_0, "' LIMIT 1;" }));
                }
            }
        }

        public void method_16(int int_23)
        {
            GClass4 class2 = new GClass4(0x1b6);
            class2.method_9(this.int_3);
            class2.method_9(int_23);
            class2.method_9(0);
            GClass4 class3 = new GClass4(0x1b6);
            class3.method_9(this.int_11);
            class3.method_9(0);
            class3.method_9(1);
            GClass4 class4 = new GClass4(0x1b6);
            class4.method_9(this.int_11);
            class4.method_9(0);
            class4.method_9(2);
            GClass4 class5 = new GClass4(0x1b6);
            class5.method_9(this.int_11);
            class5.method_9(0);
            class5.method_9(3);
            GClass4 class6 = new GClass4(0x1b6);
            class6.method_9(this.int_11);
            class6.method_9(0);
            class6.method_9(4);
            this.class11_0.method_14(class2);
            this.class11_0.method_14(class3);
            this.class11_0.method_14(class4);
            this.class11_0.method_14(class5);
            this.class11_0.method_14(class6);
        }

        public void method_17()
        {
            if (!this.bool_3)
            {
                this.method_19().method_8("You have been muted by a moderator.");
                this.bool_3 = true;
            }
        }

        public void method_18()
        {
            if (this.bool_3)
            {
                this.bool_3 = false;
            }
        }

        private Class11 method_19()
        {
            return Class4.smethod_15().method_2().method_9(this.uint_0);
        }

        public void method_2(Class79 class79_1)
        {
            this.method_8(class79_1);
            this.method_5(class79_1);
            this.method_6(class79_1);
            this.method_7(class79_1);
            this.method_25();
        }

        public Class99 method_20()
        {
            return this.class99_0;
        }

        public Class92 method_21()
        {
            return this.class92_0;
        }

        public Class98 method_22()
        {
            return this.class98_0;
        }

        public Class22 method_23()
        {
            return this.class22_0;
        }

        public Class77 method_24()
        {
            return this.class77_0;
        }

        public void method_25()
        {
            this.list_4.Clear();
            DataTable table = null;
            using (Class1 class2 = Class4.smethod_12().method_0())
            {
                table = class2.method_3("SELECT quest_id FROM user_quests WHERE user_id = '" + this.uint_0 + "' LIMIT 1;");
            }
            if (table != null)
            {
                foreach (DataRow row in table.Rows)
                {
                    this.list_4.Add((uint) row["quest_Id"]);
                }
            }
        }

        public void method_26(bool bool_17, Class11 class11_1)
        {
            GClass4 class2 = new GClass4(0x10a);
            class2.method_9(-1);
            class2.method_7(class11_1.method_2().string_4);
            class2.method_7(class11_1.method_2().string_5.ToLower());
            class2.method_7(class11_1.method_2().string_3);
            class2.method_9(class11_1.method_2().int_12);
            class2.method_7("");
            class11_1.method_14(class2);
            if (class11_1.method_2().Boolean_0)
            {
                Class34 class5 = class11_1.method_2().Class34_0;
                if (class5 != null)
                {
                    Class35 class4 = class5.method_48(class11_1.method_2().uint_0);
                    if (class4 != null)
                    {
                        if (bool_17)
                        {
                            DataRow row = null;
                            using (Class1 class6 = Class4.smethod_12().method_0())
                            {
                                class6.method_0("userid", class11_1.method_2().uint_0);
                                row = class6.method_4("SELECT * FROM users WHERE id = @userid LIMIT 1");
                            }
                            class11_1.method_2().string_3 = Class4.smethod_7((string) row["motto"]);
                            class11_1.method_2().string_4 = Class4.smethod_7((string) row["look"]);
                        }
                        GClass4 class3 = new GClass4(0x10a);
                        class3.method_9(class4.int_0);
                        class3.method_7(class11_1.method_2().string_4);
                        class3.method_7(class11_1.method_2().string_5.ToLower());
                        class3.method_7(class11_1.method_2().string_3);
                        class3.method_9(class11_1.method_2().int_12);
                        class3.method_7("");
                        class5.method_53(class3, null);
                    }
                }
            }
        }

        public void method_27()
        {
            DataRow row;
            using (Class1 class2 = Class4.smethod_12().method_0())
            {
                row = class2.method_4("SELECT vip FROM users WHERE id = '" + this.uint_0 + "' LIMIT 1;");
            }
            this.bool_14 = Class4.smethod_3(row["vip"].ToString());
        }

        public void method_28(string string_6)
        {
            Class35 class3 = Class4.smethod_15().method_9().method_19(this.uint_3).method_48(this.uint_0);
            GClass4 class4 = new GClass4(0x19);
            class4.method_9(class3.int_0);
            class4.method_7(string_6);
            class4.method_13(false);
            this.method_19().method_14(class4);
        }

        public bool method_3(string string_6)
        {
            if (!Class4.smethod_15().method_4().method_3(this.uint_0))
            {
                if (!Class4.smethod_15().method_4().method_1(this.uint_1, string_6))
                {
                    if (!this.bool_0)
                    {
                        return false;
                    }
                    return true;
                }
                return true;
            }
            return Class4.smethod_15().method_4().method_4(this.uint_0, string_6);
        }

        public int method_4()
        {
            if (!this.bool_0)
            {
                return Class4.smethod_15().method_4().method_2(this.uint_1);
            }
            return 0;
        }

        public void method_5(Class79 class79_1)
        {
            this.list_0.Clear();
            foreach (DataRow row in class79_1.DataTable_1.Rows)
            {
                this.list_0.Add((uint) row["room_id"]);
            }
        }

        public void method_6(Class79 class79_1)
        {
            foreach (DataRow row in class79_1.DataTable_2.Rows)
            {
                this.list_1.Add((uint) row["ignore_id"]);
            }
        }

        public void method_7(Class79 class79_1)
        {
            this.list_2.Clear();
            foreach (DataRow row in class79_1.DataTable_3.Rows)
            {
                this.list_2.Add((string) row["tag"]);
            }
            if (!((this.list_2.Count >= 5) ? (this.method_19() == null) : true))
            {
                Class4.smethod_15().method_12().method_1(this.method_19(), 7, 1);
            }
        }

        public void method_8(Class79 class79_1)
        {
            DataTable table = class79_1.DataTable_0;
            if (table != null)
            {
                foreach (DataRow row in table.Rows)
                {
                    this.dictionary_0.Add((uint) row["achievement_id"], (int) row["achievement_level"]);
                }
            }
        }

        public void method_9()
        {
            if (!this.bool_9)
            {
                this.bool_9 = true;
                if (!this.bool_16)
                {
                    this.bool_16 = true;
                    using (Class1 class2 = Class4.smethod_12().method_0())
                    {
                        class2.method_1(string.Concat(new object[] { "UPDATE users SET last_online = UNIX_TIMESTAMP(), users.online = '0', activity_points = '", this.int_3, "', activity_points_lastupdate = '", this.double_0, "', credits = '", this.int_2, "' WHERE id = '", this.uint_0, "' LIMIT 1;" }));
                        int num = ((int) Class4.smethod_6()) - this.int_15;
                        class2.method_1(string.Concat(new object[] { "UPDATE user_stats SET RoomVisits = '", this.int_13, "', OnlineTime = OnlineTime + ", num, ", Respect = '", this.int_16, "', RespectGiven = '", this.int_17, "', GiftsGiven = '", this.int_18, "', GiftsReceived = '", this.int_19, "' WHERE id = '", this.uint_0, "' LIMIT 1; " }));
                    }
                }
                if (!(this.Boolean_0 ? (this.Class34_0 == null) : true))
                {
                    this.Class34_0.method_42(this.class11_0, false, false);
                }
                if (this.class92_0 != null)
                {
                    this.class92_0.bool_0 = true;
                    this.class92_0.method_5(true);
                    this.class92_0 = null;
                }
                if (this.class99_0 != null)
                {
                    this.class99_0.method_0();
                    this.class99_0 = null;
                }
                this.class22_0.method_18();
            }
        }

        public bool Boolean_0
        {
            get
            {
                if (this.uint_3 < 1)
                {
                    return false;
                }
                return true;
            }
        }

        public Class34 Class34_0
        {
            get
            {
                if (this.uint_3 > 0)
                {
                    return Class4.smethod_15().method_9().method_19(this.uint_3);
                }
                return null;
            }
        }

        internal Class79 Class79_0
        {
            get
            {
                return this.class79_0;
            }
        }

        internal string String_0
        {
            get
            {
                this.bool_16 = true;
                int num = ((int) Class4.smethod_6()) - this.int_15;
                object obj2 = string.Concat(new object[] { "UPDATE users SET last_online = UNIX_TIMESTAMP(), online = '0', activity_points_lastupdate = '", this.double_0, "' WHERE id = '", this.uint_0, "' LIMIT 1; " });
                return string.Concat(new object[] { obj2, "UPDATE user_stats SET RoomVisits = '", this.int_13, "', OnlineTime = OnlineTime + ", num, ", Respect = '", this.int_16, "', RespectGiven = '", this.int_17, "', GiftsGiven = '", this.int_18, "', GiftsReceived = '", this.int_19, "' WHERE id = '", this.uint_0, "' LIMIT 1; " });
            }
        }
    }
}



Partager le fichier Class3.cs sur le Web et les réseaux sociaux:


Télécharger le fichier Class3.cs


Télécharger Class3.cs