////////////////////// //Created By KyleMan// ////////////////////// using System; using Server.Mobiles; namespace Server.Mobiles { [CorpseName( "a training cow corpse" )] public class TrainingCow : BaseCreature { [Constructable] public TrainingCow() : base( AIType.AI_Animal, FightMode.Agressor, 10, 1, 0.2, 0.4 ) { Name = "an uber training cow"; Body = Utility.RandomList( 0xD8, 0xE7 ); BaseSoundID = 0x78; Hue = 1152; CantWalk = true; SetStr( 30 ); SetDex( 15 ); SetInt( 5 ); SetHits( 5000000 ); SetMana( 0 ); SetDamage( 0, 0 ); SetDamageType( ResistanceType.Physical, 100 ); SetResistance( ResistanceType.Physical, 5, 15 ); PackGold( 10000, 15000 ); SetSkill( SkillName.MagicResist, 5.5 ); SetSkill( SkillName.Tactics, 5.5 ); SetSkill( SkillName.Wrestling, 5.5 ); Fame = 30000; Karma = -30000; VirtualArmor = 10; Tamable = false; ControlSlots = 1; MinTameSkill = 11.1; if ( Core.AOS && Utility.Random( 1000 ) == 0 ) // 0.1% chance to have mad cows FightMode = FightMode.Closest; } public override int Meat{ get{ return 8; } } public override int Hides{ get{ return 12; } } public override FoodType FavoriteFood{ get{ return FoodType.FruitsAndVegies | FoodType.GrainsAndHay; } } public override void OnDoubleClick( Mobile from ) { base.OnDoubleClick( from ); int random = Utility.Random( 100 ); if ( random < 5 ) Tip(); else if ( random < 20 ) PlaySound( 120 ); else if ( random < 40 ) PlaySound( 121 ); } public void Tip() { PlaySound( 121 ); Animate( 8, 0, 3, true, false, 0 ); } public TrainingCow(Serial serial) : base(serial) { } public override void Serialize(GenericWriter writer) { base.Serialize(writer); writer.Write((int) 0); } public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); } } }