context: using System;
  using System.Collections;
  using Server.Misc;
  using Server.Items;
  using Server.Mobiles;
  
  namespace Server.Mobiles
  {
      public class BloodOstardGuardian : BaseCreature
      {
          [Constructable]
          public BloodOstardGuardian()
              : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
          {
              InitStats(100, 125, 25);
  
              int cor = 0x799;
  
              SpeechHue = Utility.RandomDyedHue();
  
              Hue = Utility.RandomSkinHue();
  
              int randN = new Random().Next(1, 4);
  
              genero();
              
              if (randN == 1)
              {
                  Title = "the blood ostard guardian";
  
                  SetStr(450, 480);
                  SetDex(200, 250);
                  SetInt(200, 250);
                  SetHits(1200);
                  SetDamage(40, 60);
  
                  SetDamageType(ResistanceType.Physical, 100);
  
                  SetResistance(ResistanceType.Physical, 50, 60);
                  SetResistance(ResistanceType.Fire, 25, 30);
                  SetResistance(ResistanceType.Cold, 25, 30);
                  SetResistance(ResistanceType.Poison, 10, 20);
                  SetResistance(ResistanceType.Energy, 10, 20);
  
                  SetSkill(SkillName.Anatomy, 125.0);
                  SetSkill(SkillName.Fencing, 46.0, 77.5);
                  SetSkill(SkillName.Macing, 35.0, 57.5);
                  SetSkill(SkillName.Poisoning, 60.0, 82.5);
                  SetSkill(SkillName.MagicResist, 83.5, 92.5);
                  SetSkill(SkillName.Swords, 125.0);
                  SetSkill(SkillName.Tactics, 125.0);
                  SetSkill(SkillName.Lumberjacking, 125.0);
  
                  Fame = 30000;
                  Karma = -30000;
  
                  propriedadesEspeciais(cor);
              }
              else
              {
                  Title = "the ostard guardian";
  
                  SetStr(386, 400);
                  SetDex(151, 165);
                  SetInt(161, 175);
                  SetHits(350);
                  SetDamage(5, 15);
  
                  SetDamageType(ResistanceType.Physical, 100);
  
                  SetResistance(ResistanceType.Physical, 35, 45);
                  SetResistance(ResistanceType.Fire, 25, 30);
                  SetResistance(ResistanceType.Cold, 25, 30);
                  SetResistance(ResistanceType.Poison, 10, 20);
                  SetResistance(ResistanceType.Energy, 10, 20);
  
                  SetSkill(SkillName.Anatomy, 125.0);
                  SetSkill(SkillName.Fencing, 46.0, 77.5);
                  SetSkill(SkillName.Macing, 35.0, 57.5);
                  SetSkill(SkillName.Poisoning, 60.0, 82.5);
                  SetSkill(SkillName.MagicResist, 83.5, 92.5);
                  SetSkill(SkillName.Swords, 125.0);
                  SetSkill(SkillName.Tactics, 125.0);
                  SetSkill(SkillName.Lumberjacking, 125.0);
  
                  Fame = 7000;
                  Karma = -7000;
  
                  propriedadesNormais();
              }
  
                         
          }
  
          private void propriedadesNormais()
          {
  
              new ForestOstard().Rider = this;
  
              PlateChest chest = new PlateChest();
              chest.Hue = 0x966;
              AddItem(chest);
  
              PlateArms arms = new PlateArms();
              arms.Hue = 0x966;
              AddItem(arms);
  
              PlateGloves gloves = new PlateGloves();
              gloves.Hue = 0x966;
              AddItem(gloves);
  
              PlateGorget gorget = new PlateGorget();
              gorget.Hue = 0x966;
              AddItem(gorget);
  
              PlateLegs legs = new PlateLegs();
              legs.Hue = 0x966;
              AddItem(legs);
  
              PlateHelm helm = new PlateHelm();
              helm.Hue = 0x966;
              AddItem(helm);
  
              Daisho daisho = new Daisho();
              daisho.Movable = false;
              daisho.Crafter = this;
              daisho.Quality = WeaponQuality.Exceptional;
  
              AddItem(daisho);
              PackGold(250, 500);
          }
  
          private void propriedadesEspeciais(int cor)
          {
  
              //cor 0x4AA
  
              new BloodOstard().Rider = this;
  
              PlateChest chest = new PlateChest();
              chest.Hue = cor;
              AddItem(chest);
  
              PlateArms arms = new PlateArms();
              arms.Hue = cor;
              AddItem(arms);
  
              PlateGloves gloves = new PlateGloves();
              gloves.Hue = cor;
              AddItem(gloves);
  
              PlateGorget gorget = new PlateGorget();
              gorget.Hue = cor;
              AddItem(gorget);
  
              PlateLegs legs = new PlateLegs();
              legs.Hue = cor;
              AddItem(legs);
  
              PlateHelm helm = new PlateHelm();
              helm.Hue = cor;
              AddItem(helm);
  
              Daisho daisho = new Daisho();
              daisho.Movable = false;
              daisho.Crafter = this;
              daisho.Quality = WeaponQuality.Exceptional;
  
              AddItem(daisho);
              PackGold(250, 500);
          }
  
  
  
          public override bool AlwaysMurderer { get { return true; } }
  
          public BloodOstardGuardian(Serial serial)
              : base(serial)
          {
          }
  
          public override void Serialize(GenericWriter writer)
          {
              base.Serialize(writer);
  
              writer.Write((int)0); // version 
          }
  
          public override void Deserialize(GenericReader reader)
          {
              base.Deserialize(reader);
  
              int version = reader.ReadInt();
          }
  
          private void genero()
          {
              if (Female = Utility.RandomBool())
              {
                  Body = 0x191;
  
gt:                 Name = NameList.RandomName("female");