public void method_9() { if (!this.bool_9) { this.bool_9 = true; GoldTree.GetGame().GetClientManager().method_1(this.Id, this.Username); if (!this.bool_16) { this.bool_16 = true; this.Online = false; using (DatabaseClient @class = GoldTree.GetDatabase().GetClient()) { @class.ExecuteQuery(string.Concat(new object[] { "UPDATE users SET last_online = UNIX_TIMESTAMP(), users.online = '0', activity_points = '", this.ActivityPoints, "', activity_points_lastupdate = '", this.LastActivityPointsUpdate, "', credits = '", this.Credits, "' WHERE Id = '", this.Id, "' LIMIT 1;" })); int num = (int)GoldTree.GetUnixTimestamp() - this.int_16; @class.ExecuteQuery(string.Concat(new object[] { "UPDATE user_stats SET RoomVisits = '", this.RoomVisits, "', OnlineTime = OnlineTime + ", num, ", Respect = '", this.Respect, "', RespectGiven = '", this.RespectGiven, "', GiftsGiven = '", this.GiftsGiven, "', GiftsReceived = '", this.GiftsReceived, "', FootballGoalScorer = '", this.FootballGoalScorer, "', FootballGoalHost = '", this.FootballGoalHost, "', TilesLocked = '", this.TilesLocked, "', staff_picks = '", this.StaffPicks, "' WHERE Id = '", this.Id, "' LIMIT 1; " })); } } if (this.InRoom && this.CurrentRoom != null) { this.CurrentRoom.method_47(this.Session, false, false); } if (this.class105_0 != null) { this.class105_0.bool_0 = true; this.class105_0.method_5(true); this.class105_0 = null; } if (this.class53_0 != null) { this.class53_0.method_0(); this.class53_0 = null; } this.InventoryComponent.method_18(); } }
public void method_12() { if (this.GetMessenger() == null) { this.class105_0 = new HabboMessenger(this.Id); this.class105_0.method_0(this.UserDataFactory); this.class105_0.method_1(this.UserDataFactory); GameClient @class = this.method_19(); if (@class != null) { @class.SendMessage(this.class105_0.method_21()); @class.SendMessage(this.class105_0.method_23()); this.class105_0.method_5(true); } } }