public static void InvokePaperdollRequest(PaperdollRequestEventArgs e)
 {
     if (PaperdollRequest != null)
     {
         PaperdollRequest(e);
     }
 }
        static void OnPaperdollRequest(PaperdollRequestEventArgs e)
        {
            if (e.Beholder.Equals(e.Beheld))
                return;

            e.Beholder.CloseGump(typeof(LookGump));
            e.Beholder.SendGump(new LookGump(e.Beheld));
        }
Exemple #3
0
        public static void EventSink_PaperdollRequest( PaperdollRequestEventArgs e )
        {
            Mobile beholder = e.Beholder;
            Mobile beheld = e.Beheld;

            beholder.Send( new DisplayPaperdoll( beheld, Titles.ComputeTitle( beholder, beheld ), beheld.AllowEquipFrom( beholder ) ) );

            if ( ObjectPropertyList.Enabled )
            {
                List<Item> items = beheld.Items;

                for ( int i = 0; i < items.Count; ++i )
                    beholder.Send( items[i].OPLPacket );

                // NOTE: OSI sends MobileUpdate when opening your own paperdoll.
                // It has a very bad rubber-banding affect. What positive affects does it have?
            }
        }
Exemple #4
0
 public static void InvokePaperdollRequest( PaperdollRequestEventArgs e )
 {
     if ( PaperdollRequest != null )
         PaperdollRequest( e );
 }
 public static void EventSink_PaperdollRequest( PaperdollRequestEventArgs e )
 {
     e.Beholder.Send( new DisplayPaperdoll( e.Beheld, Titles.ComputeTitle( e.Beholder, e.Beheld ), e.Beheld.AllowEquipFrom( e.Beholder ) ) );
 }
Exemple #6
0
		public static void InvokePaperdollRequest(PaperdollRequestEventArgs e)
		{
			if (PaperdollRequest != null)
			{
				foreach (PaperdollRequestEventHandler currentDelegate in PaperdollRequest.GetInvocationList())
				{
					try
					{
						currentDelegate.Invoke(e);
					}
					catch (Exception ex)
					{
						// Log an exception
						EventSink.InvokeLogException(new LogExceptionEventArgs(ex));
					}
				}
			}
		}
Exemple #7
0
 public static void InvokePaperdollRequest(PaperdollRequestEventArgs e)
 {
     PaperdollRequest?.Invoke(e);
 }