示例#1
0
        private static void Process_RequestSubscriptionData(Habbo Sender, IncomingMessage Message)
        {
            string SubscriptionName = Message.PopPrefixedString();

            SubscriptionData Data = new SubscriptionData(Sender, SubscriptionName);

            // 86400    = 24 hours in seconds.
            // 2678400  = 31 days in seconds.
            byte RemainingFullMonths = (byte)(Data.GetRemainingSeconds() / 2678400);
            byte ExpiredFullMonths   = (byte)(Data.GetExpiredSeconds() / 2678400);
            byte ExpiredMonthDays    = (byte)((Data.GetExpiredSeconds() % 2678400) / 86400);

            Sender.GetPacketSender().Send_SubscriptionInfo(SubscriptionName, ExpiredMonthDays, ExpiredFullMonths, RemainingFullMonths, Data.IsActive());
        }