protected override void OnTarget(Mobile from, object o) { if (o is MilkBucket) { m_SautFromage = (MilkBucket)o; if (m_SautFromage.Laitage >= 15) { m_SautFromage.Laitage = m_SautFromage.Laitage - 15; if (m_SautFromage.m_bestiole == 1) { m_SautFromage.Name = "Milk Bucket: " + m_SautFromage.Laitage.ToString() + "/50 liters of sheep milk."; m_MouleVar.m_FromAfaire = 1; m_MouleVar.Name = "Cheese form: Sheep cheese"; m_MouleVar.m_MoulePlein = true; } else if (m_SautFromage.m_bestiole == 2) { m_SautFromage.Name = "Milk Bucket: " + m_SautFromage.Laitage.ToString() + "/50 liters of goat milk."; m_MouleVar.m_FromAfaire = 2; m_MouleVar.Name = "Cheese form: Goat cheese"; m_MouleVar.m_MoulePlein = true; } else if (m_SautFromage.m_bestiole == 3) { m_SautFromage.Name = "Milk Bucket: " + m_SautFromage.Laitage.ToString() + "/50 liters of cow milk."; m_MouleVar.m_FromAfaire = 3; m_MouleVar.Name = "Cheese form: Cow cheese"; m_MouleVar.m_MoulePlein = true; } else { from.SendMessage(0x84C, "This isn't a good milk bucket."); from.CloseGump(typeof(CheeseFormHelpGump)); from.SendGump(new CheeseFormHelpGump(from)); } } else { from.SendMessage(0x84C, "The milk bucket didn't contain enough milk."); from.CloseGump(typeof(CheeseFormHelpGump)); from.SendGump(new CheeseFormHelpGump(from)); } if (m_SautFromage.Laitage <= 0) { m_SautFromage.Laitage = 0; m_SautFromage.m_bestiole = 0; m_SautFromage.Name = "Milk Bucket: (Empty)"; } } else { from.SendMessage(0x84C, "Use a milk bucket with at least 15 liters."); from.CloseGump(typeof(CheeseFormHelpGump)); from.SendGump(new CheeseFormHelpGump(from)); } }
protected override void OnTarget(Mobile from, object o) { if (o is MilkBucket) { m_SautFromage = (MilkBucket)o; if (m_SautFromage.Laitage >= 15) { m_SautFromage.Laitage = m_SautFromage.Laitage - 15; if (m_SautFromage.m_bestiole == 1) { m_SautFromage.Name = "Milk Bucket: " + m_SautFromage.Laitage.ToString() + "/50 liters of sheep milk."; m_MouleVar.m_FromAfaire = 1; m_MouleVar.Name = "Cheese form: Sheep cheese"; m_MouleVar.m_MoulePlein = true; } else if (m_SautFromage.m_bestiole == 2) { m_SautFromage.Name = "Milk Bucket: " + m_SautFromage.Laitage.ToString() + "/50 liters of goat milk."; m_MouleVar.m_FromAfaire = 2; m_MouleVar.Name = "Cheese form: Goat cheese"; m_MouleVar.m_MoulePlein = true; } else if (m_SautFromage.m_bestiole == 3) { m_SautFromage.Name = "Milk Bucket: " + m_SautFromage.Laitage.ToString() + "/50 liters of cow milk."; m_MouleVar.m_FromAfaire = 3; m_MouleVar.Name = "Cheese form: Cow cheese"; m_MouleVar.m_MoulePlein = true; } else { from.SendMessage(0x84C, "Tohle neni spravny milk bucket."); from.CloseGump(typeof(CheeseFormHelpGump)); from.SendGump(new CheeseFormHelpGump(from)); } } else { from.SendMessage(0x84C, "Milk bucket neobsahuje dostatek mleka."); from.CloseGump(typeof(CheeseFormHelpGump)); from.SendGump(new CheeseFormHelpGump(from)); } if (m_SautFromage.Laitage <= 0) { m_SautFromage.Laitage = 0; m_SautFromage.m_bestiole = 0; m_SautFromage.Name = "Milk Bucket: (Empty)"; } } else { from.SendMessage(0x84C, "Pouzij milk bucket s nejmene 15 litry mleka."); from.CloseGump(typeof(CheeseFormHelpGump)); from.SendGump(new CheeseFormHelpGump(from)); } }
protected override void OnTarget( Mobile from, object o ) { if (o is MilkBucket ) { m_SautFromage =(MilkBucket)o; if (m_SautFromage.Laitage >= 15) { m_SautFromage.Laitage = m_SautFromage.Laitage -15; if (m_SautFromage.m_bestiole == 1 ) { m_SautFromage.Name ="Milk Bucket: " + m_SautFromage.Laitage.ToString() + "/50 liters of sheep milk."; m_MouleVar.m_FromAfaire = 1; m_MouleVar.Name="Cheese form: Sheep cheese"; m_MouleVar.m_MoulePlein = true; } else if (m_SautFromage.m_bestiole == 2 ) { m_SautFromage.Name ="Milk Bucket: " + m_SautFromage.Laitage.ToString() + "/50 liters of goat milk."; m_MouleVar.m_FromAfaire = 2; m_MouleVar.Name="Cheese form: Goat cheese"; m_MouleVar.m_MoulePlein = true; } else if (m_SautFromage.m_bestiole == 3 ) { m_SautFromage.Name ="Milk Bucket: " + m_SautFromage.Laitage.ToString() + "/50 liters of cow milk."; m_MouleVar.m_FromAfaire = 3; m_MouleVar.Name="Cheese form: Cow cheese"; m_MouleVar.m_MoulePlein = true; } else { from.SendMessage(0x84C, "This isn't a good milk bucket." ); from.CloseGump( typeof( CheeseFormHelpGump ) ); from.SendGump( new CheeseFormHelpGump ( from ) ); } } else { from.SendMessage(0x84C, "The milk bucket didn't contain enough milk." ); from.CloseGump( typeof( CheeseFormHelpGump ) ); from.SendGump( new CheeseFormHelpGump ( from ) ); } if ( m_SautFromage.Laitage <= 0 ) { m_SautFromage.Laitage = 0; m_SautFromage.m_bestiole = 0; m_SautFromage.Name = "Milk Bucket: (Empty)"; } } else { from.SendMessage(0x84C, "Use a milk bucket with at least 15 liters." ); from.CloseGump( typeof( CheeseFormHelpGump ) ); from.SendGump( new CheeseFormHelpGump ( from ) ); } }
public OnVaVoirLesVaches(MilkBucket m_saut) : base(2, false, TargetFlags.None) { m_varsaut = m_saut; }
public OnVaVoirLesVaches( MilkBucket m_saut) : base( 2, false, TargetFlags.None ) { m_varsaut = m_saut; }
protected override void OnTarget( Mobile from, object o ) { if (o is MilkBucket ) { m_SautFromage =(MilkBucket)o; if (m_SautFromage.Laitage >= 15) { m_SautFromage.Laitage = m_SautFromage.Laitage -15; if (m_SautFromage.m_bestiole == 1 ) { m_SautFromage.Name ="Milk Bucket: " + m_SautFromage.Laitage.ToString() + "/50 liters of sheep milk."; m_MouleVar.m_FromAfaire = 1; m_MouleVar.Name="Cheese form: Sheep cheese"; m_MouleVar.m_MoulePlein = true; } else if (m_SautFromage.m_bestiole == 2 ) { m_SautFromage.Name ="Milk Bucket: " + m_SautFromage.Laitage.ToString() + "/50 liters of goat milk."; m_MouleVar.m_FromAfaire = 2; m_MouleVar.Name="Cheese form: Goat cheese"; m_MouleVar.m_MoulePlein = true; } else if (m_SautFromage.m_bestiole == 3 ) { m_SautFromage.Name ="Milk Bucket: " + m_SautFromage.Laitage.ToString() + "/50 liters of cow milk."; m_MouleVar.m_FromAfaire = 3; m_MouleVar.Name="Cheese form: Cow cheese"; m_MouleVar.m_MoulePlein = true; } else { from.SendMessage(0x84C, "Tohle neni spravny milk bucket." ); from.CloseGump( typeof( CheeseFormHelpGump ) ); from.SendGump( new CheeseFormHelpGump ( from ) ); } } else { from.SendMessage(0x84C, "Milk bucket neobsahuje dostatek mleka." ); from.CloseGump( typeof( CheeseFormHelpGump ) ); from.SendGump( new CheeseFormHelpGump ( from ) ); } if ( m_SautFromage.Laitage <= 0 ) { m_SautFromage.Laitage = 0; m_SautFromage.m_bestiole = 0; m_SautFromage.Name = "Milk Bucket: (Empty)"; } } else { from.SendMessage(0x84C, "Pouzij milk bucket s nejmene 15 litry mleka." ); from.CloseGump( typeof( CheeseFormHelpGump ) ); from.SendGump( new CheeseFormHelpGump ( from ) ); } }