internal void method_0(UserDataFactory class12_0)
 {
     this.hashtable_0 = new Hashtable();
     DataTable dataTable_ = class12_0.DataTable_8;
     if (dataTable_ != null)
     {
         foreach (DataRow dataRow in dataTable_.Rows)
         {
             if (!this.hashtable_0.Contains((uint)dataRow["Id"]))
             {
                 this.hashtable_0.Add((uint)dataRow["Id"], new MessengerBuddy((uint)dataRow["Id"], dataRow["username"] as string, dataRow["look"] as string, dataRow["motto"] as string, dataRow["last_online"] as string));
             }
         }
         try
         {
             if (this.method_25().GetHabbo().HasFuse("receive_sa"))
             {
                 this.hashtable_0.Add(0, new MessengerBuddy(0u, "Staff Chat", this.method_25().GetHabbo().Figure, "Staff Chat Room", "0"));
             }
         }
         catch
         {
         }
     }
 }
 internal void method_1(UserDataFactory class12_0)
 {
     this.hashtable_1 = new Hashtable();
     DataTable dataTable_ = class12_0.DataTable_9;
     if (dataTable_ != null)
     {
         foreach (DataRow dataRow in dataTable_.Rows)
         {
             this.hashtable_1.Add((uint)dataRow["from_id"], new MessengerRequest((uint)dataRow["Id"], this.uint_0, (uint)dataRow["from_id"], dataRow["username"] as string));
         }
     }
 }
 public BadgeComponent(uint uint_1, UserDataFactory class12_0)
 {
     this.list_0 = new List<Badge>();
     this.uint_0 = uint_1;
     DataTable dataTable_ = class12_0.DataTable_5;
     if (dataTable_ != null)
     {
         foreach (DataRow dataRow in dataTable_.Rows)
         {
             this.list_0.Add(new Badge((string)dataRow["badge_id"], (int)dataRow["badge_slot"]));
         }
     }
 }
 public SubscriptionManager(uint uint_1, UserDataFactory class12_0)
 {
     this.uint_0 = uint_1;
     this.dictionary_0 = new Dictionary<string, Subscription>();
     DataTable dataTable_ = class12_0.DataTable_4;
     if (dataTable_ != null)
     {
         foreach (DataRow dataRow in dataTable_.Rows)
         {
             this.dictionary_0.Add((string)dataRow["subscription_id"], new Subscription((string)dataRow["subscription_id"], (int)dataRow["timestamp_activated"], (int)dataRow["timestamp_expire"]));
         }
     }
 }
        public InventoryComponent(uint uint_1, GameClient class16_1, UserDataFactory class12_0)
        {
            this.Session = class16_1;
            this.uint_0 = uint_1;
            this.list_0 = new List<UserItem>();
            this.hashtable_0 = new Hashtable();
            this.hashtable_1 = new Hashtable();
            this.discs = new Hashtable();
            this.list_1 = new List<uint>();
            this.list_0.Clear();
            DataTable dataTable_ = class12_0.DataTable_6;
            foreach (DataRow dataRow in dataTable_.Rows)
            {
                string str;
                uint id = Convert.ToUInt32(dataRow["Id"]);
                uint baseItem = Convert.ToUInt32(dataRow["base_item"]);
                if (!DBNull.Value.Equals(dataRow["extra_data"]))
                {
                    str = (string)dataRow["extra_data"];
                }
                else
                {
                    str = string.Empty;
                }

                list_0.Add(new UserItem(id, baseItem, str));
                UserItem item = new UserItem(id, baseItem, str);

                if (item.method_1().InteractionType == "musicdisc")
                {
                    this.discs.Add(item.uint_0, item);
                }
            }

            this.hashtable_0.Clear();
            DataTable dataTable_2 = class12_0.DataTable_11;
            foreach (DataRow dataRow in dataTable_2.Rows)
            {
                Pet @class = GoldTree.GetGame().GetCatalog().method_12(dataRow);
                this.hashtable_0.Add(@class.PetId, @class);
            }
        }
 private static Habbo smethod_1(DataRow habboData, string SSOTicket, GameClient Session, UserDataFactory class12_0)
 {
     uint Id = (uint)habboData["Id"];
     string Username = (string)habboData["username"];
     string Name = (string)habboData["real_name"];
     uint Rank = (uint)habboData["rank"];
     string Motto = (string)habboData["motto"];
     string ip_last = (string)habboData["ip_last"];
     string look = (string)habboData["look"];
     string gender = (string)habboData["gender"];
     int credits = (int)habboData["credits"];
     int pixels = (int)habboData["activity_points"];
     string account_created = (string)habboData["account_created"];
     double activity_points_lastupdate = (double)habboData["activity_points_lastupdate"];
     string last_loggedin = (string)habboData["last_loggedin"];
     int daily_respect_points = (int)habboData["daily_respect_points"];
     int daily_pet_respect_points = (int)habboData["daily_pet_respect_points"];
     double vipha_last = (double)habboData["vipha_last"];
     double viphal_last = (double)habboData["viphal_last"];
     return new Habbo(Id, Username, Name, SSOTicket, Rank, Motto, look, gender, credits, pixels, activity_points_lastupdate, account_created, GoldTree.smethod_3(habboData["is_muted"].ToString()), (uint)habboData["home_room"], (int)habboData["newbie_status"], GoldTree.smethod_3(habboData["block_newfriends"].ToString()), GoldTree.smethod_3(habboData["hide_inroom"].ToString()), GoldTree.smethod_3(habboData["hide_online"].ToString()), GoldTree.smethod_3(habboData["vip"].ToString()), (int)habboData["volume"], (int)habboData["vip_points"], GoldTree.smethod_3(habboData["accept_trading"].ToString()), ip_last, Session, class12_0, last_loggedin, daily_respect_points, daily_pet_respect_points, vipha_last, viphal_last, GoldTree.smethod_3(habboData["friend_stream_enabled"].ToString()));
 }
 public AvatarEffectsInventoryComponent(uint uint_1, GameClient class16_1, UserDataFactory class12_0)
 {
     this.Session = class16_1;
     this.list_0 = new List<AvatarEffect>();
     this.uint_0 = uint_1;
     this.int_0 = -1;
     this.list_0.Clear();
     DataTable dataTable_ = class12_0.DataTable_7;
     StringBuilder stringBuilder = new StringBuilder();
     foreach (DataRow dataRow in dataTable_.Rows)
     {
         AvatarEffect @class = new AvatarEffect((int)dataRow["effect_id"], (int)dataRow["total_duration"], GoldTree.smethod_3(dataRow["is_activated"].ToString()), (double)dataRow["activated_stamp"]);
         if (@class.Boolean_0)
         {
             stringBuilder.Append(string.Concat(new object[]
             {
                 "DELETE FROM user_effects WHERE user_id = '",
                 uint_1,
                 "' AND effect_id = '",
                 @class.int_0,
                 "' LIMIT 1; "
             }));
         }
         else
         {
             this.list_0.Add(@class);
         }
     }
     if (stringBuilder.Length > 0)
     {
         using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient())
         {
             class2.ExecuteQuery(stringBuilder.ToString());
         }
     }
 }
Example #8
0
 public void method_8(UserDataFactory class12_1)
 {
     DataTable dataTable = class12_1.DataTable_0;
     if (dataTable != null)
     {
         foreach (DataRow dataRow in dataTable.Rows)
         {
             if (!this.dictionary_0.ContainsKey((uint)dataRow["achievement_id"]))
             {
                 this.dictionary_0.Add((uint)dataRow["achievement_id"], (int)dataRow["achievement_level"]);
             }
         }
     }
 }
Example #9
0
 public void method_7(UserDataFactory class12_1)
 {
     this.list_3.Clear();
     DataTable dataTable_ = class12_1.DataTable_3;
     foreach (DataRow dataRow in dataTable_.Rows)
     {
         this.list_3.Add((string)dataRow["tag"]);
     }
     if (this.list_3.Count >= 5 && this.method_19() != null)
     {
         this.TagAchievementsCompleted();
     }
 }
Example #10
0
 public void method_6(UserDataFactory class12_1)
 {
     DataTable dataTable_ = class12_1.DataTable_2;
     foreach (DataRow dataRow in dataTable_.Rows)
     {
         this.list_2.Add((uint)dataRow["ignore_id"]);
     }
 }
Example #11
0
 public void method_5(UserDataFactory class12_1)
 {
     this.list_1.Clear();
     DataTable dataTable_ = class12_1.DataTable_1;
     foreach (DataRow dataRow in dataTable_.Rows)
     {
         this.list_1.Add((uint)dataRow["room_id"]);
     }
 }
Example #12
0
        public Habbo(uint UserId, string Username, string Name, string SSO, uint Rank, string Motto, string Look, string Gender, int Credits, int Pixels, double Activity_Points_LastUpdate, string DataCadastro, bool Muted, uint HomeRoom, int NewbieStatus, bool BlockNewFriends, bool HideInRoom, bool HideOnline, bool Vip, int Volume, int Points, bool AcceptTrading, string LastIp, GameClient Session, UserDataFactory userDataFactory, string last_online, int daily_respect_points, int daily_pet_respect_points, double vipha_last, double viphal_last, bool FriendStream)
        {
            if (Session != null)
            {
                GoldTree.GetGame().GetClientManager().method_0(UserId, Username, Session);
            }
            this.Id = UserId;
            this.Username = Username;
            this.RealName = Name;
            this.isJuniori = false;
            this.isVisible = true;
            this.SSO = SSO;
            this.Rank = Rank;
            this.Motto = Motto;
            this.Figure = GoldTree.FilterString(Look.ToLower());
            this.Gender = Gender.ToLower();
            this.Credits = Credits;
            this.VipPoints = Points;
            this.ActivityPoints = Pixels;
            this.LastActivityPointsUpdate = Activity_Points_LastUpdate;
            this.bool_2 = AcceptTrading;
            this.bool_3 = Muted;
            this.uint_2 = 0u;
            this.bool_5 = false;
            this.bool_6 = false;
            this.CurrentRoomId = 0u;
            this.uint_4 = HomeRoom;
            this.list_1 = new List<uint>();
            this.list_2 = new List<uint>();
            this.list_3 = new List<string>();
            this.dictionary_0 = new Dictionary<uint, int>();
            this.list_4 = new List<uint>();
            this.NewbieStatus = NewbieStatus;
            this.bool_10 = false;
            this.BlockNewFriends = BlockNewFriends;
            this.HideInRom = HideInRoom;
            this.HideOnline = HideOnline;
            this.Vip = Vip;
            this.Volume = Volume;
            this.int_1 = 0;
            this.int_24 = 1;
            this.LastIp = LastIp;
            this.bool_7 = false;
            this.uint_5 = 0u;
            this.Session = Session;
            this.UserDataFactory = userDataFactory;
            this.list_6 = new List<RoomData>();
            this.list_0 = new List<int>();
            this.DataCadastro = DataCadastro;
            this.last_loggedin = last_online;
            this.Online = true;
            this.daily_respect_points = daily_respect_points;
            this.daily_pet_respect_points = daily_pet_respect_points;
            this.vipha_last = vipha_last;
            this.viphal_last = viphal_last;
            this.FriendStreamEnabled = FriendStream;

            DataRow dataRow = null;
            using (DatabaseClient @class = GoldTree.GetDatabase().GetClient())
            {
                @class.AddParamWithValue("user_id", UserId);
                dataRow = @class.ReadDataRow("SELECT * FROM user_stats WHERE Id = @user_id LIMIT 1");
                if (dataRow == null)
                {
                    @class.ExecuteQuery("INSERT INTO user_stats (Id) VALUES ('" + UserId + "')");
                    dataRow = @class.ReadDataRow("SELECT * FROM user_stats WHERE Id = @user_id LIMIT 1");
                }
                this.dataTable_0 = @class.ReadDataTable("SELECT * FROM group_memberships WHERE userid = @user_id");
                IEnumerator enumerator;
                if (this.dataTable_0 != null)
                {
                    enumerator = this.dataTable_0.Rows.GetEnumerator();
                    try
                    {
                        while (enumerator.MoveNext())
                        {
                            DataRow dataRow2 = (DataRow)enumerator.Current;
                            GroupsManager class2 = Groups.smethod_2((int)dataRow2["groupid"]);
                            if (class2 == null)
                            {
                                DataTable dataTable = @class.ReadDataTable("SELECT * FROM groups WHERE Id = " + (int)dataRow2["groupid"] + " LIMIT 1;");
                                IEnumerator enumerator2 = dataTable.Rows.GetEnumerator();
                                try
                                {
                                    while (enumerator2.MoveNext())
                                    {
                                        DataRow dataRow3 = (DataRow)enumerator2.Current;
                                        if (!Groups.GroupsManager.ContainsKey((int)dataRow3["Id"]))
                                        {
                                            Groups.GroupsManager.Add((int)dataRow3["Id"], new GroupsManager((int)dataRow3["Id"], dataRow3, @class));
                                        }
                                    }
                                    continue;
                                }
                                finally
                                {
                                    IDisposable disposable = enumerator2 as IDisposable;
                                    if (disposable != null)
                                    {
                                        disposable.Dispose();
                                    }
                                }
                            }
                            if (!class2.list_0.Contains((int)UserId))
                            {
                                class2.method_0((int)UserId);
                            }
                        }
                    }
                    finally
                    {
                        IDisposable disposable = enumerator as IDisposable;
                        if (disposable != null)
                        {
                            disposable.Dispose();
                        }
                    }
                    int num = (int)dataRow["groupid"];
                    GroupsManager class3 = Groups.smethod_2(num);
                    if (class3 != null)
                    {
                        this.int_0 = num;
                    }
                    else
                    {
                        this.int_0 = 0;
                    }
                }
                else
                {
                    this.int_0 = 0;
                }
                DataTable dataTable2 = @class.ReadDataTable("SELECT groupid FROM group_requests WHERE userid = '" + UserId + "';");
                enumerator = dataTable2.Rows.GetEnumerator();
                try
                {
                    while (enumerator.MoveNext())
                    {
                        DataRow dataRow2 = (DataRow)enumerator.Current;
                        this.list_0.Add((int)dataRow2["groupid"]);
                    }
                }
                finally
                {
                    IDisposable disposable = enumerator as IDisposable;
                    if (disposable != null)
                    {
                        disposable.Dispose();
                    }
                }
            }
            this.RoomVisits = (int)dataRow["RoomVisits"];
            this.int_16 = (int)GoldTree.GetUnixTimestamp();
            this.int_15 = (int)dataRow["OnlineTime"];
            this.Respect = (int)dataRow["Respect"];
            this.RespectGiven = (int)dataRow["RespectGiven"];
            this.GiftsGiven = (int)dataRow["GiftsGiven"];
            this.FireworkPixelLoadedCount = (int)dataRow["fireworks"];
            this.GiftsReceived = (int)dataRow["GiftsReceived"];
            this.int_21 = (int)dataRow["DailyRespectPoints"];
            this.int_22 = (int)dataRow["DailyPetRespectPoints"];
            this.AchievementScore = (int)dataRow["AchievementScore"];
            this.CompletedQuests = new List<uint>();
            this.uint_7 = 0u;
            this.CurrentQuestId = (uint)dataRow["quest_id"];
            this.CurrentQuestProgress = (int)dataRow["quest_progress"];
            this.int_6 = (int)dataRow["lev_builder"];
            this.int_8 = (int)dataRow["lev_identity"];
            this.int_7 = (int)dataRow["lev_social"];
            this.int_9 = (int)dataRow["lev_explore"];
            this.RegularVisitor = (int)dataRow["RegularVisitor"];
            this.FootballGoalScorer = (int)dataRow["FootballGoalScorer"];
            this.FootballGoalHost = (int)dataRow["FootballGoalHost"];
            this.TilesLocked = (int)dataRow["TilesLocked"];
            this.StaffPicks = (int)dataRow["staff_picks"];
            if (Session != null)
            {
                this.class53_0 = new SubscriptionManager(UserId, userDataFactory);
                this.class56_0 = new BadgeComponent(UserId, userDataFactory);
                this.InventoryComponent = new InventoryComponent(UserId, Session, userDataFactory);
                this.class50_0 = new AvatarEffectsInventoryComponent(UserId, Session, userDataFactory);
                this.bool_8 = false;
                this.bool_9 = false;
                foreach (DataRow dataRow3 in userDataFactory.DataTable_10.Rows)
                {
                    this.list_6.Add(GoldTree.GetGame().GetRoomManager().method_17((uint)dataRow3["Id"], dataRow3));
                }
            }
        }
Example #13
0
 public void method_2(UserDataFactory class12_1)
 {
     this.method_8(class12_1);
     this.method_5(class12_1);
     this.method_6(class12_1);
     this.method_7(class12_1);
     this.method_25();
 }
        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"
                        }));
                    }
                }
            }
        }
 internal static Habbo smethod_2(string string_0)
 {
     UserDataFactory @class = new UserDataFactory(string_0, false);
     return Authenticator.smethod_1(@class.DataRow_0, "", null, @class);
 }
 internal static Habbo smethod_0(string string_0, GameClient Session, UserDataFactory class12_0, UserDataFactory class12_1)
 {
     return Authenticator.smethod_1(class12_0.DataRow_0, string_0, Session, class12_1);
 }