public MaginciaBazaarPlot(GenericReader reader)
        {
            int version = reader.ReadInt();

            m_Definition = new PlotDef(reader);

            m_Owner     = reader.ReadMobile();
            m_ShopName  = reader.ReadString();
            m_Merchant  = reader.ReadMobile() as BaseBazaarBroker;
            m_Sign      = reader.ReadItem() as PlotSign;
            m_PlotMulti = reader.ReadItem() as BaseBazaarMulti;

            if (reader.ReadBool())
            {
                m_Auction = new MaginciaPlotAuction(reader, this);
            }

            if (m_Merchant != null)
            {
                m_Merchant.Plot = this;
            }

            if (m_Sign != null)
            {
                m_Sign.Plot = this;
            }
        }
 public MaginciaBazaarPlot(PlotDef definition)
 {
     m_Definition = definition;
     m_Owner      = null;
     m_PlotMulti  = null;
     m_Merchant   = null;
     m_ShopName   = null;
 }
        private void DeleteMulti_Callback()
        {
            if (m_PlotMulti != null)
            {
                m_PlotMulti.Delete();
            }

            m_PlotMulti = null;
        }
        public void RemoveTempPlot()
        {
            EndTempMultiTimer();

            if (m_PlotMulti != null)
            {
                m_PlotMulti.Delete();
                m_PlotMulti = null;
            }
        }
        public void FireBroker()
        {
            if (m_Merchant != null)
            {
                m_Merchant.Delete();
                m_Merchant = null;

                if (m_PlotMulti != null)
                {
                    m_PlotMulti.Delete();
                    m_PlotMulti = null;
                }
            }
        }
        public void AddTempMulti(int idx1, int idx2)
        {
            if (m_PlotMulti != null)
            {
                m_PlotMulti.Delete();
                m_PlotMulti = null;
            }

            BaseBazaarMulti multi = null;

            if (idx1 == 0)
            {
                switch (idx2)
                {
                case 0: multi = new CommodityStyle1(); break;

                case 1: multi = new CommodityStyle2(); break;

                case 2: multi = new CommodityStyle3(); break;
                }
            }
            else
            {
                switch (idx2)
                {
                case 0: multi = new PetStyle1(); break;

                case 1: multi = new PetStyle2(); break;

                case 2: multi = new PetStyle3(); break;
                }
            }

            if (multi != null)
            {
                PlotMulti = multi;
                BeginTempMultiTimer();
            }
        }
Beispiel #7
0
		public MaginciaBazaarPlot(GenericReader reader)
		{
			int version = reader.ReadInt();

            m_Definition = new PlotDef(reader);

			m_Owner = reader.ReadMobile();
			m_ShopName = reader.ReadString();
			m_Merchant = reader.ReadMobile() as BaseBazaarBroker;
			m_Sign = reader.ReadItem() as PlotSign;
			m_PlotMulti = reader.ReadItem() as BaseBazaarMulti;
			
			if(reader.ReadBool())
				m_Auction = new MaginciaPlotAuction(reader, this);
				
			if(m_Merchant != null)
				m_Merchant.Plot = this;

            if (m_Sign != null)
                m_Sign.Plot = this;
		}
Beispiel #8
0
		public void FireBroker()
		{
			if(m_Merchant != null)
			{
				m_Merchant.Delete();
				m_Merchant = null;

                if (m_PlotMulti != null)
                {
                    m_PlotMulti.Delete();
                    m_PlotMulti = null;
                }
			}
		}
Beispiel #9
0
		public void RemoveTempPlot()
		{
			EndTempMultiTimer();

            if (m_PlotMulti != null)
            {
                m_PlotMulti.Delete();
                m_PlotMulti = null;
            }
		}
Beispiel #10
0
		public void AddTempMulti(int idx1, int idx2)
		{
            if (m_PlotMulti != null)
            {
                m_PlotMulti.Delete();
                m_PlotMulti = null;
            }

            BaseBazaarMulti multi = null;

            if (idx1 == 0)
            {
                switch (idx2)
                {
                    case 0: multi = new CommodityStyle1(); break;
                    case 1: multi = new CommodityStyle2(); break;
                    case 2: multi = new CommodityStyle3(); break;
                }
            }
            else
            {
                switch (idx2)
                {
                    case 0: multi = new PetStyle1(); break;
                    case 1: multi = new PetStyle2(); break;
                    case 2: multi = new PetStyle3(); break;
                }
            }

            if (multi != null)
            {
                PlotMulti = multi;
                BeginTempMultiTimer();
            }
		}
Beispiel #11
0
        private void DeleteMulti_Callback()
        {
            if (m_PlotMulti != null)
                m_PlotMulti.Delete();

            m_PlotMulti = null;
        }
Beispiel #12
0
		public MaginciaBazaarPlot(PlotDef definition)
		{
			m_Definition = definition;
			m_Owner = null;
			m_PlotMulti = null;
			m_Merchant = null;
			m_ShopName = null;
		}