Exemple #1
0
        public override void OnLocationChanged(Mobile m, Point3D oldLocation)
        {
            if (m_Recursion)
            {
                return;
            }

            m_Recursion = true;

            if ((m_House.Public || !Core.AOS) && m_House.IsBanned(m) && m_House.IsInside(m))
            {
                m.Location = m_House.BanLocation;
                m.SendLocalizedMessage(501284);                   // You may not enter.
            }
            else if (Core.AOS && !m_House.Public && !m_House.HasAccess(m) && m_House.IsInside(m))
            {
                m.Location = m_House.BanLocation;
                m.SendLocalizedMessage(501284);                   // You may not enter.
            }

            m_Recursion = false;
        }