コード例 #1
0
ファイル: Bosses.cs プロジェクト: tflynt91/TrueUO
        public Ozymandias() : base(AIType.AI_Melee)
        {
            Name  = "Ozymandias";
            Title = "the Lord of Castle Barataria";

            Hue              = Race.RandomSkinHue();
            Body             = 0x190;
            FacialHairItemID = 0x2040;

            SetInt(225, 250);
            SetDex(225);

            SetDamage(25, 32);

            SetDamageType(ResistanceType.Physical, 100);

            SetSkill(SkillName.Wrestling, 150.0);
            SetSkill(SkillName.Archery, 150.0);
            SetSkill(SkillName.Anatomy, 100.0);
            SetSkill(SkillName.Tactics, 125.0);
            SetSkill(SkillName.MagicResist, 110.0);

            SetResistance(ResistanceType.Physical, 60, 70);
            SetResistance(ResistanceType.Fire, 20, 30);
            SetResistance(ResistanceType.Cold, 60, 70);
            SetResistance(ResistanceType.Poison, 60, 70);
            SetResistance(ResistanceType.Energy, 60, 70);

            SetWearable(new LeatherDo());
            SetWearable(new LeatherSuneate());
            SetWearable(new Yumi());
            SetWearable(new Waraji());
            SetWearable(new BoneArms());

            Scimitar scimitar = new Scimitar
            {
                Movable = false
            };

            PackItem(scimitar);

            _ = new LesserHiryu
            {
                Rider = this
            };

            SetWeaponAbility(WeaponAbility.Dismount);
        }
コード例 #2
0
        public Ozymandias() : base(AIType.AI_Melee)
        {
            Name  = "ozymandias";
            Title = "the lord of castle barataria";

            Hue              = Race.RandomSkinHue();
            Body             = 0x190;
            FacialHairItemID = 0x2040;

            SetInt(225, 250);
            SetDex(225);

            SetDamage(25, 32);

            SetDamageType(ResistanceType.Physical, 100);

            SetSkill(SkillName.Wrestling, 150.0);
            SetSkill(SkillName.Archery, 150.0);
            SetSkill(SkillName.Anatomy, 100.0);
            SetSkill(SkillName.Tactics, 125.0);
            SetSkill(SkillName.MagicResist, 110.0);

            SetResistance(ResistanceType.Physical, 60, 70);
            SetResistance(ResistanceType.Fire, 20, 30);
            SetResistance(ResistanceType.Cold, 60, 70);
            SetResistance(ResistanceType.Poison, 60, 70);
            SetResistance(ResistanceType.Energy, 60, 70);

            SetWearable(new LeatherDo());
            SetWearable(new LeatherSuneate());
            SetWearable(new Yumi());
            SetWearable(new Waraji());
            SetWearable(new BoneArms());

            var scimitar = new Scimitar();

            scimitar.Movable = false;

            PackItem(scimitar);
            PackItem(new Arrow(25));

            var hiryu = new LesserHiryu();

            hiryu.Rider = this;
        }
コード例 #3
0
 protected override void OnTarget(Mobile from, object targ)
 {
     if (targ is BaseCreature)
     {
         BaseCreature bc = (BaseCreature)targ;
         if (from.InRange(bc, 1))
         {
             if (bc.ControlMaster != from)
             {
                 from.SendMessage("You can only put a bridle on your own animal!");
             }
             else
             {
                 if (targ is WildHorse)
                 {
                     Horse h = new Horse();
                     h.Body = bc.Body;
                     ConvertAnimal(bc, h);
                     br.Consume();
                 }
                 else if (targ is Llama)
                 {
                     RidableLlama rl = new RidableLlama();
                     ConvertAnimal(bc, rl);
                     br.Consume();
                 }
                 else if (targ is WildDesertOstard)
                 {
                     DesertOstard dost = new DesertOstard();
                     ConvertAnimal(bc, dost);
                     br.Consume();
                 }
                 else if (targ is WildFireSteed)
                 {
                     FireSteed fs = new FireSteed();
                     ConvertAnimal(bc, fs);
                     br.Consume();
                 }
                 else if (targ is WildForestOstard)
                 {
                     ForestOstard fost = new ForestOstard();
                     ConvertAnimal(bc, fost);
                     br.Consume();
                 }
                 else if (targ is WildFrenziedOstard)
                 {
                     FrenziedOstard fzost = new FrenziedOstard();
                     ConvertAnimal(bc, fzost);
                     br.Consume();
                 }
                 else if (targ is WildHiryu)
                 {
                     Hiryu hi = new Hiryu();
                     ConvertAnimal(bc, hi);
                     br.Consume();
                 }
                 else if (targ is WildLesserHiryu)
                 {
                     LesserHiryu lh = new LesserHiryu();
                     ConvertAnimal(bc, lh);
                     br.Consume();
                 }
                 else if (targ is WildNightmare)
                 {
                     Nightmare nm = new Nightmare();
                     ConvertAnimal(bc, nm);
                     br.Consume();
                 }
                 else if (targ is WildRidgeback)
                 {
                     Ridgeback rb = new Ridgeback();
                     ConvertAnimal(bc, rb);
                     br.Consume();
                 }
                 else if (targ is WildSavageRidgeback)
                 {
                     SavageRidgeback sr = new SavageRidgeback();
                     ConvertAnimal(bc, sr);
                     br.Consume();
                 }
                 else if (targ is WildSilverSteed)
                 {
                     SilverSteed ss = new SilverSteed();
                     ConvertAnimal(bc, ss);
                     br.Consume();
                 }
                 else if (targ is WildSwampDragon)
                 {
                     SwampDragon sd = new SwampDragon();
                     ConvertAnimal(bc, sd);
                     br.Consume();
                 }
                 else
                 {
                     from.SendMessage("You can't put a bridle on that.");
                 }
             }
         }
         else
         {
             from.SendMessage("That's too far away");
         }
     }
     else
     {
         from.SendMessage("You can't put a bridle on that.");
     }
 }