Example #1
0
        /// <summary>
        /// Deletes the account, all characters of the account, and all houses of those characters
        /// </summary>
        public void Delete()
        {
            for (int i = 0; i < this.Length; ++i)
            {
                Mobile m = this[i];

                if (m == null)
                {
                    continue;
                }

                List <BaseHouse> list = BaseHouse.GetHouses(m);

                for (int j = 0; j < list.Count; ++j)
                {
                    list[j].Delete();
                }

                m.Delete();

                m.Account    = null;
                m_Mobiles[i] = null;
            }

            if (m_LoginIPs.Length != 0 && AccountHandler.IPTable.ContainsKey(m_LoginIPs[0]))
            {
                --AccountHandler.IPTable[m_LoginIPs[0]];
            }

            Accounts.Remove(m_Username);
        }
Example #2
0
        /// <summary>
        /// Deletes the account, all characters of the account, and all houses of those characters
        /// </summary>
        public void Delete()
        {
            for (int i = 0; i < this.Length; ++i)
            {
                Mobile m = this[i];

                if (m == null)
                {
                    continue;
                }

                List <BaseHouse> list = BaseHouse.GetHouses(m);

                for (int j = 0; j < list.Count; ++j)
                {
                    list[j].Delete();
                }

                m.Delete();

                m.Account    = null;
                m_Mobiles[i] = null;
            }

            Accounts.Remove(m_Username);
        }
Example #3
0
        /// <summary>
        ///     Deletes the account, all characters of the account, and all houses of those characters
        /// </summary>
        public void Delete()
        {
            for (int i = 0; i < Length; ++i)
            {
                Mobile m = this[i];

                if (m == null)
                {
                    continue;
                }

                foreach (BaseHouse h in BaseHouse.GetHouses(m))
                {
                    h.Delete();
                }

                m.Delete();

                m.Account  = null;
                Mobiles[i] = null;
            }

            if (LoginIPs.Count != 0 && AccountHandler.IPTable.ContainsKey(LoginIPs[0]))
            {
                --AccountHandler.IPTable[LoginIPs[0]];
            }

            Accounts.Remove(Username);
        }
Example #4
0
        /// <summary>
        /// Deletes the account, all characters of the account
        /// </summary>
        public void Delete()
        {
            for (int i = 0; i < this.Length; ++i)
            {
                Mobile m = this[i];

                if (m == null)
                {
                    continue;
                }

                m.Delete();

                m.Account    = null;
                m_Mobiles[i] = null;
            }

            if (m_LoginIPs.Length != 0 && AccountHandler.IPTable.ContainsKey(m_LoginIPs[0]))
            {
                --AccountHandler.IPTable[m_LoginIPs[0]];
            }

            Accounts.Remove(m_Username);
        }