using System; using Server; using Server.Items; namespace Server.Mobiles { [CorpseName( "a Black wyrm corpse" )] public class BlackWyrm : BaseCreature { [Constructable] public BlackWyrm () : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 ) { Body = 49; Name = "a Black wyrm"; BaseSoundID = 362; Hue = 0x453; SetStr( 721, 760 ); SetDex( 101, 130 ); SetInt( 386, 425 ); SetHits( 433, 456 ); SetDamage( 17, 25 ); SetDamageType( ResistanceType.Physical, 50 ); SetDamageType( ResistanceType.Cold, 50 ); SetResistance( ResistanceType.Physical, 170, 160 ); SetResistance( ResistanceType.Fire, 15, 25 ); SetResistance( ResistanceType.Cold, 25, 35 ); SetResistance( ResistanceType.Poison, 40, 50 ); SetResistance( ResistanceType.Energy, 40, 50 ); SetSkill( SkillName.EvalInt, 99.1, 100.0 ); SetSkill( SkillName.Magery, 99.1, 100.0 ); SetSkill( SkillName.MagicResist, 99.1, 100.0 ); SetSkill( SkillName.Tactics, 97.6, 100.0 ); SetSkill( SkillName.Wrestling, 90.1, 100.0 ); Fame = 18000; Karma = -18000; VirtualArmor = 64; Tamable = true; ControlSlots = 3; MinTameSkill = 96.3; int gems = Utility.RandomMinMax( 1, 5 ); for ( int i = 0; i < gems; ++i ) PackGem(); PackGold( 550, 750 ); PackMagicItems( 1, 5, 0.70, 0.55 ); PackMagicItems( 1, 5, 0.50, 0.45 ); PackMagicItems( 1, 5 ); // TODO: Bandage self } public override void OnDamage( int amount, Mobile from, bool willKill ) { if ( from != null && !willKill && amount > 5 && from.Player && 5 > Utility.Random( 100 ) ) { string[] toSay = new string[] { "{0}!! You will have to do better than that!", "{0}!! Prepare to meet your doom!", "{0}!! My armies will crush you!", "{0}!! You will pay for that!" }; this.Say( true, String.Format( toSay[Utility.Random( toSay.Length )], from.Name ) ); } base.OnDamage( amount, from, willKill ); } public override int TreasureMapLevel{ get{ return 4; } } public override int Meat{ get{ return 19; } } public override int Hides{ get{ return 20; } } public override HideType HideType{ get{ return HideType.Barbed; } } public override int Scales{ get{ return 12; } } public override ScaleType ScaleType{ get{ return ScaleType.Black; } } public override FoodType FavoriteFood{ get{ return FoodType.Meat | FoodType.Gold; } } public BlackWyrm( 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(); } } }