Example #1
0
        public static void EventSink_ChangeProfileRequest(ChangeProfileRequestEventArgs e)
        {
            Mobile from = e.Beholder;

            if (from.ProfileLocked)
                from.SendMessage("Your profile is locked. You may not change it.");
            else
                from.Profile = e.Text;
        }
Example #2
0
        public static void EventSink_ChangeProfileRequest(ChangeProfileRequestEventArgs e)
        {
            Mobile from = e.Beholder;

            if (from.ProfileLocked)
            {
                from.SendMessage("Your profile is locked. You may not change it.");
            }
            else
            {
                from.Profile = e.Text;
            }
        }
Example #3
0
        public static void EventSink_ChangeProfileRequest(ChangeProfileRequestEventArgs e)
        {
            if (e.Beholder != e.Beheld && e.Beholder.AccessLevel <= e.Beheld.AccessLevel)
            {
                e.Beholder.SendMessage("You do not have permission to do that.");
                return;
            }

            Mobile from = e.Beholder;

            if (from.ProfileLocked)
            {
                from.SendMessage("Your profile is locked. You may not change it.");
            }
            else
            {
                from.Profile = e.Text;
            }
        }
Example #4
0
 public void InvokeChangeProfileRequest( ChangeProfileRequestEventArgs e )
 {
     if ( ChangeProfileRequest != null )
         ChangeProfileRequest( e );
 }