/// <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; } ArrayList list = BaseHouse.GetHouses(m); for (int j = 0; j < list.Count; ++j) { BaseHouse house = list[j] as BaseHouse; ArrayList toDelete = new ArrayList(); foreach (Item item in World.Items) { if (HousingHelper.FindHouseAt(item) == house && !(item is BaseHouse)) { toDelete.Add(item); } } for (int k = 0; k < toDelete.Count; k++) { ((Item)toDelete[k]).Delete(); } house.Delete(); } m.Delete(); m.Account = null; m_Mobiles[i] = null; } Accounts.RemoveAccount(m_Username); }