public static void InvokeProfileRequest(ProfileRequestEventArgs e) { if (ProfileRequest != null) { ProfileRequest(e); } }
public static void EventSink_ProfileRequest( ProfileRequestEventArgs e ) { Mobile beholder = e.Beholder; Mobile beheld = e.Beheld; if ( !beheld.Player ) return; if ( beholder.Map != beheld.Map || !beholder.InRange( beheld, 12 ) || !beholder.CanSee( beheld ) ) return; string header = Titles.ComputeTitle( beholder, beheld ); string footer = ""; if ( beheld.ProfileLocked ) { if ( beholder == beheld ) footer = "Your profile has been locked."; else if ( beholder.AccessLevel >= AccessLevel.Counselor ) footer = "This profile has been locked."; } if ( footer == "" && beholder == beheld ) footer = GetAccountDuration( beheld ); string body = beheld.Profile; if ( body == null || body.Length <= 0 ) body = ""; beholder.Send( new DisplayProfile( beholder != beheld || !beheld.ProfileLocked, beheld, header, body, footer ) ); }
public static void InvokeProfileRequest(ProfileRequestEventArgs e) { if (EventSink.ProfileRequest != null) { EventSink.ProfileRequest.Invoke(e); } }
public static void EventSink_ProfileRequest( ProfileRequestEventArgs e ) { Mobile beholder = e.Beholder; Mobile beheld = e.Beheld; if( !beheld.Player ) return; if( beholder.Map != beheld.Map || !beholder.InRange( beheld, 12 ) || !beholder.CanSee( beheld ) ) return; if( beheld.ProfileLocked ) { beholder.SendMessage( "This person\'s profile has been locked and may not be viewed." ); return; } beholder.SendGump( new Server.Gumps.CharacterProfileGump( beholder, beheld ) ); //string header = Titles.ComputeTitle( beholder, beheld ); //string footer = ""; //if( beheld.ProfileLocked ) { // if( beholder == beheld ) // footer = "Your profile has been locked."; // else if( beholder.AccessLevel >= AccessLevel.Counselor ) // footer = "This profile has been locked."; //} //if( footer.Length == 0 && beholder == beheld ) // footer = GetAccountDuration( beheld ); //string body = beheld.Profile; //if( body == null || body.Length <= 0 ) // body = ""; //beholder.Send( new DisplayProfile( beholder != beheld || !beheld.ProfileLocked, beheld, header, body, footer ) ); }
public static void InvokeProfileRequest( ProfileRequestEventArgs e ) { if ( ProfileRequest != null ) ProfileRequest( e ); }
public static void InvokeProfileRequest(ProfileRequestEventArgs e) { if (ProfileRequest != null) { foreach (ProfileRequestEventHandler currentDelegate in ProfileRequest.GetInvocationList()) { try { currentDelegate.Invoke(e); } catch (Exception ex) { // Log an exception EventSink.InvokeLogException(new LogExceptionEventArgs(ex)); } } } }
public static void InvokeProfileRequest(ProfileRequestEventArgs e) { ProfileRequest?.Invoke(e); }