Exemple #1
0
            /*this is my problem's how to give the items properties to the target ?*/
            /*reponse faut tous refaire ou presque ,c'est simple il parait....    ?*/

            public InternalInTarget(Mobile from, FermentationBarrel t)
                : base(10, false, TargetFlags.None)
            {
                this.from           = from;
                this.barrel         = t;
                Quantity            = t.quantity;
                QuantityMax         = t.quantitymax;
                IdIngredient        = t.idingredient;
                FermentationEnCours = t.fermentationencours;
            }
            public Rename(Mobile m, FermentationBarrel barrel)
                : base(1157233, 2) // Rename Vintage
            {
                m_Mobile = m;
                _Barrel  = barrel;

                if (_Barrel.Fermenting)
                {
                    Flags |= CMEFlags.Disabled;
                }
            }
            public BeginFermentation(Mobile m, FermentationBarrel barrel)
                : base(1157231, 2) // Begin Fermentation
            {
                m_Mobile = m;
                _Barrel  = barrel;

                if (_Barrel.Fermenting)
                {
                    Flags |= CMEFlags.Disabled;
                }
            }
Exemple #4
0
 public InternalOutTarget(Mobile from, FermentationBarrel t)
     : base(5, false, TargetFlags.None)
 {
     this.from           = from;
     this.barrel         = t;
     Quantity            = t.quantity;
     QuantityMax         = t.quantitymax;
     IdIngredient        = t.idingredient;
     FermentationEnCours = t.fermentationencours;
     FermentationSuccess = t.fermentationsuccess;
     FermentationDone    = t.fermentationdone;
 }
            public RenameGump(FermentationBarrel barrel)
                : base(0, 0)
            {
                _Barrel = barrel;

                AddBackground(50, 50, 400, 200, 0xA28);

                AddPage(0);

                AddHtmlLocalized(125, 70, 400, 20, 1157242, 0x0, false, false); // What do you wish to call this vintage?
                AddButton(125, 200, 0x81A, 0x81B, 1, GumpButtonType.Reply, 0);
                AddButton(320, 200, 0x819, 0x818, 0, GumpButtonType.Reply, 0);
                AddImageTiled(75, 125, 350, 40, 0xDB0);
                AddImageTiled(76, 125, 350, 2, 0x23C5);
                AddImageTiled(75, 125, 2, 40, 0x23C3);
                AddImageTiled(75, 165, 350, 2, 0x23C5);
                AddImageTiled(425, 125, 2, 42, 0x23C3);
                AddTextEntry(78, 126, 343, 37, 0x47D, 15, "", 20);
            }
 public EmptyBarrel(Mobile m, FermentationBarrel barrel)
     : base(1157232, 2) // Empty Barrel
 {
     m_Mobile = m;
     _Barrel  = barrel;
 }
Exemple #7
0
 public InternalOutTarget(Mobile from, FermentationBarrel t)
     : base(5, false, TargetFlags.None)
 {
     this.from = from;
     this.barrel = t;
     Quantity = t.quantity;
     QuantityMax = t.quantitymax;
     IdIngredient = t.idingredient;
     FermentationEnCours = t.fermentationencours;
     FermentationSuccess = t.fermentationsuccess;
     FermentationDone = t.fermentationdone;
 }
Exemple #8
0
            /*this is my problem's how to give the items properties to the target ?*/
            /*reponse faut tous refaire ou presque ,c'est simple il parait....    ?*/

            public InternalInTarget(Mobile from, FermentationBarrel t)
                : base(10, false, TargetFlags.None)
            {
                this.from = from;
                this.barrel = t;
                Quantity = t.quantity;
                QuantityMax = t.quantitymax;
                IdIngredient = t.idingredient;
                FermentationEnCours = t.fermentationencours;

            }
        public timerDistillerie(FermentationBarrel m_TimerDistillerie)  : base(TimeSpan.FromSeconds(1), TimeSpan.FromSeconds(10), 100)
            //base( TimeSpan.FromSeconds(delai avant premier tick),TimeSpan.FromSeconds(durée du tick),nombre de répétition)
		{
			Priority = TimerPriority. FiftyMS ;
            barrelDistiTimer = m_TimerDistillerie;
		}
 public timerDistillerie(FermentationBarrel m_TimerDistillerie)  : base(TimeSpan.FromSeconds(1), TimeSpan.FromSeconds(10), 100)
     //base( TimeSpan.FromSeconds(delai avant premier tick),TimeSpan.FromSeconds(durée du tick),nombre de répétition)
 {
     Priority         = TimerPriority.FiftyMS;
     barrelDistiTimer = m_TimerDistillerie;
 }