Пример #1
0
        private void generatGiftList(Mobile acct)
        {
            string       username = acct.Account.Username;
            DonationGift giftInfo = null;
            int          offset   = 40;

            ArrayList giftList = DonationStore.GetDonationGiftList(username);

            if (giftList.Count == 0)
            {
                AddHtml(62, 162, 325, 60, @"Thank you for playing! You have no donation gift to claim now. Consider donating to this shard to keep this shard running.", (bool)true, (bool)true);
                return;
            }

            for (int i = 1; (i < 6 && i <= giftList.Count); i++)
            {
                giftInfo         = (DonationGift)giftList[i - 1];
                m_GiftIDs[i - 1] = giftInfo.Id;
                AddGiftOption(giftInfo.Name, i, offset);
            }
        }
Пример #2
0
        private void generatGiftList(Mobile acct)
        {
            string       username = acct.Account.Username;
            DonationGift giftInfo = null;
            int          offset   = 40;

            ArrayList giftList = DonationStore.GetDonationGiftList(username);

            if (giftList.Count == 0)
            {
                AddHtml(62, 162, 325, 60, @"You currently have no coins. Please consider donating to keep our server running.", (bool)true, (bool)true);
                return;
            }

            for (int i = 1; (i < 6 && i <= giftList.Count); i++)
            {
                giftInfo         = (DonationGift)giftList[i - 1];
                m_GiftIDs[i - 1] = giftInfo.Id;
                AddGiftOption(giftInfo.Name, i, offset);
            }
        }