Ejemplo n.º 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");
            }
        }
Ejemplo n.º 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" );
			}
		}
Ejemplo n.º 3
0
        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());
            }
        }
Ejemplo n.º 4
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();
        }
Ejemplo n.º 5
0
		/// <summary>
		/// Disables the system until the next reboot
		/// </summary>
		public static void Disable()
		{
			m_ControlStone = null;
			AuctionScheduler.Stop();
		}
Ejemplo n.º 6
0
		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() );
			}
		}
Ejemplo n.º 7
0
 /// <summary>
 /// Disables the system until the next reboot
 /// </summary>
 public static void Disable()
 {
     m_ControlStone = null;
     AuctionScheduler.Stop();
 }
Ejemplo n.º 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 ();
		}