Example #1
0
        private static void PlaceStoneCallback(Mobile from, object targeted)
        {
            IPoint3D location = targeted as IPoint3D;

            if (location != null)
            {
                AuctionControl stone = new AuctionControl();

                stone.MoveToWorld(new Point3D(location), from.Map);
                AuctionSystem.ControlStone = stone;
            }
            else
            {
                from.SendMessage(AuctionConfig.MessageHue, "Invalid location");
            }
        }
Example #2
0
		private static void PlaceStoneCallback( Mobile from, object targeted )
		{
			IPoint3D location = targeted as IPoint3D;

			if ( location != null )
			{
				AuctionControl stone = new AuctionControl();

				stone.MoveToWorld( new Point3D( location ), from.Map );
				AuctionSystem.ControlStone = stone;
			}
			else
			{
				from.SendMessage( AuctionConfig.MessageHue, "Invalid location" );
			}
		}
        public static void Initialize()
        {
            try
            {
                if (Running)
                {
                    VerifyIntegrity();
                    VerifyAuctions();
                    VerifyPendencies();
                }
            }
            catch (Exception err)
            {
                m_ControlStone = null;

                Console.WriteLine("An error occurred when initializing the Auction System. The system has been temporarily disabled.");
                Console.WriteLine("Error details: {0}", err.ToString());
            }
        }
        public override void OnDelete()
        {
            // Don't allow users to delete this item unless it's done through the control gump
            if (!m_Delete)
            {
                AuctionControl newStone = new AuctionControl();
                newStone.m_Auctions.AddRange(this.m_Auctions);
                newStone.MoveToWorld(this.Location, this.Map);

                newStone.Items.AddRange(Items);
                Items.Clear();
                foreach (Item item in newStone.Items)
                {
                    item.Parent = newStone;
                }

                newStone.PublicOverheadMessage(Server.Network.MessageType.Regular, 0x40, false, AuctionSystem.ST[121]);
            }

            base.OnDelete();
        }
		/// <summary>
		/// Disables the system until the next reboot
		/// </summary>
		public static void Disable()
		{
			m_ControlStone = null;
			AuctionScheduler.Stop();
		}
		public static void Initialize()
		{
			try
			{
				if ( Running )
				{
					VerifyIntegrity();
					VerifyAuctions();
					VerifyPendencies();
				}
			}
			catch ( Exception err )
			{
				m_ControlStone = null;

				Console.WriteLine( "An error occurred when initializing the Auction System. The system has been temporarily disabled." );
				Console.WriteLine( "Error details: {0}", err.ToString() );
			}
		}
 /// <summary>
 /// Disables the system until the next reboot
 /// </summary>
 public static void Disable()
 {
     m_ControlStone = null;
     AuctionScheduler.Stop();
 }
Example #8
0
		public override void OnDelete()
		{
			// Don't allow users to delete this item unless it's done through the control gump
			if ( !m_Delete )
			{
				AuctionControl newStone = new AuctionControl();
				newStone.m_Auctions.AddRange( this.m_Auctions );
				newStone.MoveToWorld( this.Location, this.Map );
				
				newStone.Items.AddRange( Items );
				Items.Clear();
				foreach( Item item in newStone.Items )
				{
					item.Parent = newStone;
				}

				newStone.PublicOverheadMessage( Server.Network.MessageType.Regular, 0x40, false, AuctionSystem.ST[ 121 ] );
			}

			base.OnDelete ();
		}