Exemple #1
0
        public override void OnSingleClick(Mobile from)
        {
            string wineType;

            if (this.Name == null)
            {
                if (m_Crafter != null)
                {
                    this.LabelTo(from, "{0} Vinyards", m_Crafter.Name);
                }
                else
                {
                    this.LabelTo(from, "Cheap Table Wine");
                }
            }
            else
            {
                this.LabelTo(from, "{0}", this.Name);
            }

            wineType = WinemakingResources.GetName(m_Variety);

            if (m_Quality == WineQuality.Exceptional)
            {
                this.LabelTo(from, "Special Reserve {0}", wineType);
            }
            else
            {
                this.LabelTo(from, "{0}", wineType);
            }
        }
 public override void OnSingleClick(Mobile from)
 {
     if (this.Amount > 1)
     {
         this.LabelTo(from, "{0} Grape Bunches : {1}", WinemakingResources.GetName(m_Variety), Amount);
     }
     else
     {
         this.LabelTo(from, "{0} Grape Bunch", WinemakingResources.GetName(m_Variety));
     }
 }
 public override void AddNameProperty(ObjectPropertyList list)
 {
     if (Amount > 1)
     {
         list.Add(1050039, "{0}\t{1}", Amount, "Bunches of " + WinemakingResources.GetName(m_Variety) + " Grapes");
     }
     else
     {
         list.Add("Bunch of " + WinemakingResources.GetName(m_Variety) + " Grapes");
     }
 }
Exemple #4
0
		public override void AddNameProperties( ObjectPropertyList list )
 		{
 			base.AddNameProperties( list );

			string wineType;
			wineType = WinemakingResources.GetName( m_Variety );

			if ( m_Quality == WineQuality.Exceptional )
			{
 				list.Add( 1060847, "Special Reserve\t{0}", wineType );
 			}
 			else
 			{
 				list.Add( 1060847, "\t{0}", wineType );
 			}
 		}
Exemple #5
0
        public override void OnSingleClick(Mobile from)
        {
            base.OnSingleClick(from);

            int    number;
            string wineType;

            if (this.Name == null)
            {
                if (m_Crafter != null)
                {
                    this.LabelTo(from, "{0} Vinyards", m_Crafter.Name);
                }
                else
                {
                    this.LabelTo(from, "Cheap Table Wine");
                }
            }
            else
            {
                this.LabelTo(from, "{0}", this.Name);
            }

            wineType = WinemakingResources.GetName(m_Variety);

            if (m_Quality == WineQuality.Exceptional)
            {
                this.LabelTo(from, "Special Reserve {0}", wineType);
            }
            else
            {
                this.LabelTo(from, "{0}", wineType);
            }

            if (m_Held <= 0)
            {
                number = 502246;
            }
            else if (m_Held < 5)
            {
                number = 502248;
            }
            else if (m_Held < 10)
            {
                number = 502249;
            }
            else if (m_Held < 18)
            {
                number = 502250;
            }
            else if (m_Held < 25)
            {
                number = 502251;
            }
            else if (m_Held < 32)
            {
                number = 502252;
            }
            else if (m_Held < 38)
            {
                number = 502254;
            }
            else if (m_Held < 45)
            {
                number = 502253;
            }
            else if (m_Held < 56)
            {
                number = 502255;
            }
            else if (m_Held < 64)
            {
                number = 502256;
            }
            else if (m_Held < 75)
            {
                number = 502257;
            }
            else
            {
                number = 502258;
            }

            this.LabelTo(from, number);
        }
Exemple #6
0
        public override void OnSingleClick(Mobile from)
        {
            base.OnSingleClick(from);

            int    number;
            string wineType;

            if (this.Name == null)
            {
                if (m_Crafter != null)
                {
                    this.LabelTo(from, "{0} Vinyards", m_Crafter.Name);
                }
                else
                {
                    this.LabelTo(from, "Cheap Table Wine");
                }
            }
            else
            {
                this.LabelTo(from, "{0}", this.Name);
            }

            wineType = WinemakingResources.GetName(m_Variety);

            if (m_Quality == WineQuality.Exceptional)
            {
                this.LabelTo(from, "Special Reserve {0}", wineType);
            }
            else
            {
                this.LabelTo(from, "{0}", wineType);
            }

            if (m_Held <= 0)
            {
                number = 502246;                 // The keg is empty.
            }
            else if (m_Held < 5)
            {
                number = 502248;                 // The keg is nearly empty.
            }
            else if (m_Held < 10)
            {
                number = 502249;                 // The keg is not very full.
            }
            else if (m_Held < 18)
            {
                number = 502250;                 // The keg is about one quarter full.
            }
            else if (m_Held < 25)
            {
                number = 502251;                 // The keg is about one third full.
            }
            else if (m_Held < 32)
            {
                number = 502252;                 // The keg is almost half full.
            }
            else if (m_Held < 38)
            {
                number = 502254;                 // The keg is approximately half full.
            }
            else if (m_Held < 45)
            {
                number = 502253;                 // The keg is more than half full.
            }
            else if (m_Held < 56)
            {
                number = 502255;                 // The keg is about three quarters full.
            }
            else if (m_Held < 64)
            {
                number = 502256;                 // The keg is very full.
            }
            else if (m_Held < 75)
            {
                number = 502257;                 // The liquid is almost to the top of the keg.
            }
            else
            {
                number = 502258;                 // The keg is completely full.
            }
            this.LabelTo(from, number);
        }