protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
		{
			if ( AuctionSystem.Running )
			{
				from.SendGump( new AuctionGump( from ) );
			}
		}
Example #2
0
 protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
 {
     if (cancelType == TargetCancelType.Canceled)
     {
         from.SendGump(new AddGump(from, m_SearchString, m_Page, m_SearchResults, true));
     }
 }
Example #3
0
 protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
 {
     if (m_IdentifyAddon != null)
     {
         m_IdentifyAddon.Delete();
     }
 }
Example #4
0
 protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
 {
     if (cancelType == TargetCancelType.Canceled)
     {
         this.Failure(0);
     }
 }
Example #5
0
 protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
 {
     if (cancelType == TargetCancelType.Timeout)
     {
         from.SendLocalizedMessage(501619);                       // You have waited too long to make your inscribe selection, your inscription attempt has timed out.
     }
 }
Example #6
0
 protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
 {
     if (cancelType == TargetCancelType.Canceled)
     {
         from.SendGump(new AddGrapeVineGump(from, null, m_IVariety, GumpPage.None));
     }
 }
Example #7
0
 protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
 {
     if (cancelType == TargetCancelType.Canceled)
     {
         from.CloseGump(typeof(InteriorDecorator.InternalGump));
     }
 }
Example #8
0
 protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
 {
     if (m_Addon != null && !m_Addon.Deleted)
     {
         from.SendGump(new RepairBenchGump(from, m_Addon));
     }
 }
Example #9
0
 public void OnCancel(TargetCancelType type)
 {
     if (type == TargetCancelType.UserCancel)
     {
         Network.Send(new PTarget_Cancel(this));
     }
 }
Example #10
0
			protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
			{
				base.OnTargetCancel (from, cancelType);

				if(OnCancelled != null)
					OnCancelled();
			}
Example #11
0
        protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
        {
            base.OnTargetCancel(from, cancelType);

            m_Targeter.CloseGump(typeof(ModManagementGump));
            m_Targeter.SendGump(new ModManagementGump(0));
        }
Example #12
0
 protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
 {
     if (cancelType == TargetCancelType.Canceled)
     {
         from.SendGump(new PlayListGump(from, m_Owner.Box));
     }
 }
Example #13
0
 protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
 {
     base.OnTargetCancel(from, cancelType);
     if (m_callback != null)
     {
         m_callback(from, null);
     }
 }
Example #14
0
 public void OnCancel(TargetCancelType type)
 {
     Engine.m_MultiPreview = false;
     if (type == TargetCancelType.UserCancel)
     {
         Network.Send(new PMultiTarget_Cancel(this.m_TargetID));
     }
 }
Example #15
0
 protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
 {
     if (cancelType == TargetCancelType.Timeout)
     {
         from.SendLocalizedMessage(1150859); // You have waited too long to make your selection, your distillation attempt has timed out.
     }
     from.SendGump(new DistillationGump(from));
 }
Example #16
0
        public void Cancel(Mobile from, TargetCancelType type)
        {
            CancelTimeout();
            from.ClearTarget();

            OnTargetCancel(from, type);
            OnTargetFinish(from);
        }
        protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
        {
            base.OnTargetCancel(from, cancelType);

            from.SendMessage("You have cancelled the duel.");
            m_Duel.State = DuelState.Cancel;
            DuelCore.CancelDuel(m_Duel);
        }
Example #18
0
 public void OnCancel(TargetCancelType type)
 {
     Engine.m_MultiPreview = false;
     if (type == TargetCancelType.UserCancel)
     {
         Network.Send(new PMultiTarget_Cancel(this.m_TargetID));
     }
 }
Example #19
0
 protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
 {
     if (m_Addon != null && !m_Addon.Deleted)
     {
         from.CloseGump(typeof(DaviesLockerGump));
         from.SendGump(new DaviesLockerGump(from, m_Addon, m_Page));
     }
 }
Example #20
0
 protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
 {
     if (m_Addon != null && !m_Addon.Deleted)
     {
         m_Gump.StopTimer(from);
         from.CloseGump(typeof(RepairBenchGump));
         from.SendGump(new RepairBenchGump(from, m_Addon));
     }
 }
Example #21
0
            protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
            {
                base.OnTargetCancel(from, cancelType);

                if (OnCancelled != null)
                {
                    OnCancelled();
                }
            }
Example #22
0
            protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
            {
                if (cancelType == TargetCancelType.Canceled || cancelType == TargetCancelType.Disconnected || cancelType == TargetCancelType.Timeout || cancelType == TargetCancelType.Overriden)
                {
                    from.Frozen = false;
                }

                base.OnTargetCancel(from, cancelType);
            }
Example #23
0
            protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
            {
                if (cancelType == TargetCancelType.Canceled)
                {
                    from.SendGump(new CraftGump(from, m_CraftSystem, m_Tool, -1));
                }

                base.OnTargetCancel(from, cancelType);
            }
Example #24
0
                protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
                {
                    // Empêche le cast.
                    m_Owner.target1 = null;
                    m_Owner.target2 = null;
                    m_Owner.target3 = null;

                    base.OnTargetCancel(from, cancelType);
                }
Example #25
0
		protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
		{
			base.OnTargetCancel(from, cancelType);

			m_Duel.Broadcast("The duel was canceled.");
			DuelController.DestroyDuel(m_Duel);

			from.SendMessage("You have cancelled the duel request.");
		}
Example #26
0
            protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
            {
                if (m_ThrowableItem.m_DetonationDelay <= 0)
                {
                    EndThrowableDelay(from);
                }

                base.OnTargetCancel(from, cancelType);
            }
Example #27
0
 protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
 {
     if (m_Box != null && !m_Box.Deleted)
     {
         from.CloseGump(typeof(JewelryBoxGump));
         from.SendGump(new JewelryBoxGump(from, m_Box, m_Page));
         from.SendLocalizedMessage(1157726); // You must be carrying the item to add it to the jewelry box.
     }
 }
Example #28
0
        protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
        {
            base.OnTargetCancel(from, cancelType);

            m_Duel.Broadcast("The duel was canceled.");
            DuelController.DestroyDuel(m_Duel);

            from.SendMessage("You have cancelled the duel request.");
        }
Example #29
0
            protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
            {
                if (m_Sheet == null || from.Backpack == null || !from.Backpack.Items.Contains(m_Sheet))
                {
                    return;
                }

                m_Sheet.m_Instrument = null;
            }
Example #30
0
            protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
            {
                if (m_Context.SelectedYeast[m_Index] != null)
                {
                    m_Context.SelectedYeast[m_Index] = null;
                    from.SendLocalizedMessage(1150743); // You no longer choose this yeast.
                }

                from.SendGump(new DistillationGump(from));
            }
Example #31
0
 protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
 {
     if (TargetCancelType.Timeout == cancelType)
     {
         this.CancelTimeout();
         this.m_Remaining = 0;
         from.SendLocalizedMessage(1112822); // You fail to find the next ingredient in time. Your clockwork assembly crumbles.
         this.m_Item.Delete();
     }
 }
Example #32
0
            protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
            {
                if (this.m_Foundations.Count != 0)
                {
                    from.SendMessage("Your changes have been committed. Updating...");

                    foreach (HouseFoundation house in this.m_Foundations)
                        house.Delta(ItemDelta.Update);
                }
            }
Example #33
0
        /// <summary>
        ///     Called when this instance of GenericSelectTarget is cancelled
        /// </summary>
        /// <param name="from">Mobile owner of the current GenericSelectTarget instance</param>
        /// <param name="cancelType">CancelType</param>
        protected override sealed void OnTargetCancel(Mobile from, TargetCancelType cancelType)
        {
            base.OnTargetCancel(from, cancelType);

            Result = TargetResult.Cancelled;

            if (FailHandler != null)
            {
                FailHandler(from);
            }
        }
Example #34
0
            protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
            {
                if (m_Foundations.Count != 0)
                {
                    from.SendMessage("Your changes have been committed. Updating...");

                    foreach (HouseFoundation house in m_Foundations)
                    {
                        house.Delta(ItemDelta.Update);
                    }
                }
            }
Example #35
0
            protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
            {
                if (from is PlayerMobile)
                {
                    ((PlayerMobile)from).EndPlayerAction();
                }
                else
                {
                    from.EndAction(typeof(IAction));
                }

                base.OnTargetCancel(from, cancelType);
            }
			protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
			{
				if (from != null && cancelType == TargetCancelType.Canceled && from is PlayerMobile)
				{
					PlayerMobile pm = (PlayerMobile)from;
					DuelPoints dp = null;

					if (DuelController.PointsTable.TryGetValue(from.Serial, out dp))
					{
						from.SendGump(new DuelPlayerInfoGump(dp));
					}
					else
						from.SendMessage(53, "You have no dueling record.");
				}
			}
Example #37
0
            protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
            {
                if (from.HasGump(typeof(CommodityTargetGump)))
                {
                    from.CloseGump(typeof(CommodityTargetGump));
                }

                if (m_HasPickedCommodity)
                {
                    from.SendGump(new SetPricesAndLimitsGump(m_Broker));
                }
                else
                {
                    from.SendGump(new CommodityBrokerGump(m_Broker, from));
                }
            }
Example #38
0
 protected virtual void OnTargetCancel( Mobile from, TargetCancelType cancelType )
 {
 }
			protected override void OnTargetCancel( Mobile from, TargetCancelType cancelType )
			{
				if ( cancelType == TargetCancelType.Canceled )
					Failure( 0 );
			}
Example #40
0
 protected override void OnTargetCancel( Mobile from, TargetCancelType cancelType )
 {
     from.SendLocalizedMessage( 1062336 ); // You decide not to place the contract at this time.
 }
Example #41
0
        public void Cancel( Mobile from, TargetCancelType type )
        {
            CancelTimeout();
            from.ClearTarget();

            OnTargetCancel( from, type );
            OnTargetFinish( from );
        }
 protected override void OnTargetCancel( Mobile from, TargetCancelType cancelType )
 {
     if ( cancelType == TargetCancelType.Canceled )
         from.SendGump( new AddGrapeVineGump( from, null, m_IVariety, GumpPage.None ) );
 }
			protected override void OnTargetCancel( Mobile from, TargetCancelType cancelType )
			{
				//from.SendGump( new DaviesLockerGump( from, m_Table ) );
			}
Example #44
0
 protected override void OnTargetCancel( Mobile from, TargetCancelType cancelType )
 {
     from.SendLocalizedMessage( 1042021, "", 0x59 ); // Cancelled.
 }
 protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
 {
     from.SendLocalizedMessage(1062380); // You decide against offering the contract to anyone.
 }
		protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
		{
			base.OnTargetCancel(from, cancelType);
			m_Request.SendResponse(null);
		}
			protected override void OnTargetCancel( Mobile m, TargetCancelType cancelType )
			{
				c_Gump.NewGump();
			}
Example #48
0
 protected override void OnTargetCancel( Mobile from, TargetCancelType cancelType )
 {
     from.SendGump( new TargetInvolvedPlayersGump( text, m_Type, first, second, third ) );
 }
Example #49
0
            protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
            {
                if (from is PlayerMobile)
                    ((PlayerMobile)from).EndPlayerAction();
                else
                    from.EndAction(typeof(IAction));

                base.OnTargetCancel(from, cancelType);
            }
Example #50
0
 protected override void OnTargetCancel( Mobile from, TargetCancelType type )
 {
     ((PlayerMobile)from).SentRequest = false;
 }
 public void OnCancel(TargetCancelType type)
 {
     Engine.AddTextMessage("Hue picker request canceled.");
 }
Example #52
0
 public void OnCancel(TargetCancelType type)
 {
 }
Example #53
0
 protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
 {
     if (TargetCancelType.Timeout == cancelType)
     {
         this.CancelTimeout();
         this.m_Remaining = 0;
         from.SendLocalizedMessage(1112822); // You fail to find the next ingredient in time. Your clockwork assembly crumbles.
         this.m_Item.Delete();
     }
 }
			protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
        	{
				from.SendMessage("You cancelled the throw.");
				Timer.DelayCall( TimeSpan.FromSeconds( 0 ), new TimerStateCallback( ReleaseExploderLock ), from );
        	}
Example #55
0
 protected override void OnTargetCancel( Mobile from, TargetCancelType cancelType )
 {
     from.EndAction( typeof( CraftSystem ) );
     from.SendGump( new CraftGump( from, m_CraftSystem, m_Tool, null ) );
 }
Example #56
0
			protected override void OnTargetCancel( Mobile from, TargetCancelType cancelType )
			{
				from.SendGump( new PBGMGump( m_PBGI ) );
			}
Example #57
0
			protected override void OnTargetCancel( Mobile from, TargetCancelType cancelType )
			{
				if ( cancelType == TargetCancelType.Timeout )
					from.SendLocalizedMessage( 501619 ); // You have waited too long to make your inscribe selection, your inscription attempt has timed out.
			}
Example #58
0
 protected override void OnTargetCancel( Mobile from, TargetCancelType cancelType )
 {
     if ( cancelType == TargetCancelType.Canceled )
         from.CloseGump( typeof( InteriorDecorator.InternalGump ) );
 }
            protected override void OnTargetCancel( Mobile from, TargetCancelType cancelType )
            {
                if ( m_Foundation != null )
                {
                    from.SendMessage( "Your changes have been committed. Updating..." );

                    m_Foundation.Delta( ItemDelta.Update );
                }
            }
Example #60
0
 protected override void OnTargetCancel(Mobile from, TargetCancelType cancelType)
 {
     from.SendGump(new SearchImageGump(m_Search));
     base.OnTargetCancel(from, cancelType);
 }