using System; using Server.Items; using Server.Misc; namespace Server.Mobiles { [CorpseName("a ratman archer corpse")] public class RatmanArcher : BaseCreature { [Constructable] public RatmanArcher() : base(AIType.AI_Archer, FightMode.Closest, 10, 1, 0.2, 0.4) { this.Name = NameList.RandomName("ratman"); this.Body = 0x8E; this.BaseSoundID = 437; this.SetStr(146, 180); this.SetDex(101, 130); this.SetInt(116, 140); this.SetHits(88, 108); this.SetDamage(4, 10); this.SetDamageType(ResistanceType.Physical, 100); this.SetResistance(ResistanceType.Physical, 40, 55); this.SetResistance(ResistanceType.Fire, 10, 20); this.SetResistance(ResistanceType.Cold, 10, 20); this.SetResistance(ResistanceType.Poison, 10, 20); this.SetResistance(ResistanceType.Energy, 10, 20); this.SetSkill(SkillName.Anatomy, 60.2, 100.0); this.SetSkill(SkillName.Archery, 80.1, 90.0); this.SetSkill(SkillName.MagicResist, 65.1, 90.0); this.SetSkill(SkillName.Tactics, 50.1, 75.0); this.SetSkill(SkillName.Wrestling, 50.1, 75.0); this.Fame = 6500; this.Karma = -6500; this.VirtualArmor = 56; this.AddItem(new Bow()); this.PackItem(new Arrow(Utility.RandomMinMax(50, 70))); } public RatmanArcher(Serial serial) : base(serial) { } public override InhumanSpeech SpeechType { get { return InhumanSpeech.Ratman; } } public override bool CanRummageCorpses { get { return true; } } public override int Hides { get { return 8; } } public override HideType HideType { get { return HideType.Spined; } } public override void GenerateLoot() { this.AddLoot(LootPack.Rich); } 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(); } } }