Пример #1
0
 public static void InvokeQuestGumpRequest(QuestGumpRequestArgs e)
 {
     if (QuestGumpRequest != null)
     {
         QuestGumpRequest(e);
     }
 }
Пример #2
0
		private static void EventSink_QuestGumpRequest( QuestGumpRequestArgs args )
		{
			PlayerMobile pm = args.Mobile as PlayerMobile;

			if( pm == null )
				return;

			QuestSystem qs = pm.Quest;

			if( qs != null )
				qs.ShowQuestLog();
		}
Пример #3
0
		public static void QuestButton(QuestGumpRequestArgs e)
		{
			if (e == null || e.Mobile == null) return;
			Mobile from = e.Mobile;

            from.CloseGump(typeof(XMLQuestLogGump));
			// bring up the quest status gump
            from.SendGump(new XMLQuestLogGump(from));

			// bring up the normal quest objectives gump
			//NormalQuestButton(from as PlayerMobile);
		}
Пример #4
0
 public static void InvokeQuestGumpRequest( QuestGumpRequestArgs e )
 {
     if( QuestGumpRequest != null )
         QuestGumpRequest( e );
 }
Пример #5
0
		public static void EventSink_QuestGumpRequest( QuestGumpRequestArgs args )
		{
			PlayerMobile pm = args.Mobile as PlayerMobile;

			if ( !Enabled || pm == null )
				return;

			pm.SendGump( new QuestLogGump( pm ) );
		}
Пример #6
0
 public static void InvokeQuestGumpRequest(QuestGumpRequestArgs e)
 {
     QuestGumpRequest?.Invoke(e);
 }
Пример #7
0
		public static void InvokeQuestGumpRequest(QuestGumpRequestArgs e)
		{
			if (QuestGumpRequest != null)
			{
				foreach (QuestGumpRequestHandler currentDelegate in QuestGumpRequest.GetInvocationList())
				{
					try
					{
						currentDelegate.Invoke(e);
					}
					catch (Exception ex)
					{
						// Log an exception
						EventSink.InvokeLogException(new LogExceptionEventArgs(ex));
					}
				}
			}
		}