public int CalculateHCSubscription(Users.Habbo Habbo) { if (Habbo.GetSubscriptionManager().HasSubscription("habbo_club")) { return ((int)GoldTree.GetUnixTimestamp() - Habbo.GetSubscriptionManager().method_1("habbo_club").Int32_1) / 2678400; } else { if (Habbo.GetSubscriptionManager().method_1(Habbo.Id.ToString()) != null) return (Habbo.GetSubscriptionManager().method_1("habbo_club").Int32_0 - Habbo.GetSubscriptionManager().method_1("habbo_club").Int32_1) / 2678400; return 0; } }
internal static int GetHave(uint AchievementId, Users.Habbo Habbo) { switch (AchievementId) { case 4: return Habbo.RespectGiven; case 6: return Habbo.Respect; case 7: return Habbo.list_3.Count; case 8: return Habbo.RoomVisits; case 10: return Habbo.GiftsGiven; case 11: return Habbo.GiftsReceived; case 13: return Habbo.FireworkPixelLoadedCount; case 14: return Habbo.PetBuyed; case 15: return Habbo.OnlineTime / 60; case 16: return Habbo.GetSubscriptionManager().CalculateHCSubscription(Habbo); case 17: return Habbo.RegistrationDuration; case 18: return Habbo.RegularVisitor; case 19: return Habbo.FootballGoalScorer; case 20: return Habbo.FootballGoalHost; case 21: return Habbo.TilesLocked; case 22: return Habbo.StaffPicks; case 24: return Habbo.GetMessenger().hashtable_0.Count; } return 0; }