コード例 #1
0
        public DeathsReaper()
        {
            Name     = "Deaths Reaper ";
            Title    = "Quest Giver";
            Body     = 400;
            CantWalk = true;
            Hue      = 1102;
            Blessed  = true;

            BoneLegs bl = new BoneLegs();

            bl.Hue      = 1107;
            bl.Name     = "Death Reaper Legs";
            bl.LootType = LootType.Blessed;
            AddItem(bl);

            BoneChest bc = new BoneChest();

            bc.Hue      = 1107;
            bc.Name     = "Death Reaper Chest";
            bc.LootType = LootType.Blessed;
            AddItem(bc);

            BoneArms ba = new BoneArms();

            ba.Hue      = 1107;
            ba.Name     = "Death Reaper Arms";
            ba.LootType = LootType.Blessed;
            AddItem(ba);

            TribalMask tm = new TribalMask();

            tm.Hue      = 1107;
            tm.Name     = "Death Reaper Mask";
            tm.LootType = LootType.Blessed;
            AddItem(tm);


            //             Item Scythe = new Item( 9914 );
            //             Scythe.Name = "Deaths Scythe ";
            //             Scythe.Hue = 1157;
            //              Scythe.Layer = Layer.OneHanded;
            //             Scythe.LootType = LootType.Blessed;
            //             AddItem( Scythe );

            Container pack = new Backpack();
        }
コード例 #2
0
        public ZuluuNative() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name = "a zuluu";
            Hue  = 0x89D;

            if (this.Female = Utility.RandomBool())
            {
                Body = 0x191;
                Item cloth9 = new FemaleLeatherChest();
                cloth9.Hue  = 0xB9A;
                cloth9.Name = "Zuluu Tunic";
                AddItem(cloth9);
            }
            else
            {
                Body = 0x190;
            }

            HairHue = 0x96C;

            SetStr(216, 235);
            SetDex(206, 225);
            SetInt(71, 85);

            SetDamage(23, 27);

            SetDamageType(ResistanceType.Physical, 100);

            SetSkill(SkillName.Fencing, 70.0, 102.5);
            SetSkill(SkillName.Macing, 70.0, 102.5);
            SetSkill(SkillName.Poisoning, 70.0, 102.5);
            SetSkill(SkillName.MagicResist, 67.5, 100.0);
            SetSkill(SkillName.Swords, 70.0, 102.5);
            SetSkill(SkillName.Tactics, 70.0, 102.5);

            Fame         = 3100;
            Karma        = -3100;
            VirtualArmor = 20;

            PackItem(new Bandage(Utility.RandomMinMax(1, 15)));

            AddItem(new Spear());

            Item cloth1 = new SavageArms();

            cloth1.Hue  = 0xB9A;
            cloth1.Name = "Zuluu Guantlets";
            AddItem(cloth1);
            Item cloth2 = new SavageLegs();

            cloth2.Hue  = 0xB9A;
            cloth2.Name = "Zuluu Leggings";
            AddItem(cloth2);
            Item cloth3 = new TribalMask();

            cloth3.Hue  = 0xB9A;
            cloth3.Name = "Zuluu Tribal Mask";
            AddItem(cloth3);
            Item cloth4 = new LeatherSkirt();

            cloth4.Hue   = 0xB9A;
            cloth4.Name  = "Zuluu Skirt";
            cloth4.Layer = Layer.Waist;
            AddItem(cloth4);

            if (Utility.RandomMinMax(1, 10) == 1)
            {
                SwampDragon pet = new SwampDragon();
                pet.Hue      = 2006;
                pet.Name     = "a forest dragyn";
                pet.Rider    = this;
                ActiveSpeed  = 0.1;
                PassiveSpeed = 0.2;
            }
        }
コード例 #3
0
ファイル: Jason.cs プロジェクト: zerodowned/dragonknights-uo
        public Jason() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name = "Jason";
            Body = 185;
            Hue  = 33775;

            SetStr(481, 705);
            SetDex(291, 315);
            SetInt(226, 350);

            SetHits(2000, 4000);

            SetDamage(255, 270);

            SetDamageType(ResistanceType.Physical, 100);

            SetResistance(ResistanceType.Physical, 35, 40);
            SetResistance(ResistanceType.Fire, 30, 40);
            SetResistance(ResistanceType.Cold, 30, 40);
            SetResistance(ResistanceType.Poison, 30, 40);
            SetResistance(ResistanceType.Energy, 30, 40);

            SetSkill(SkillName.EvalInt, 80.2, 100.0);
            SetSkill(SkillName.Magery, 95.1, 100.0);
            SetSkill(SkillName.Meditation, 27.5, 50.0);
            SetSkill(SkillName.MagicResist, 77.5, 100.0);
            SetSkill(SkillName.Tactics, 65.0, 87.5);
            SetSkill(SkillName.Wrestling, 20.3, 80.0);

            Fame  = 0;
            Karma = -10500;

            VirtualArmor = 90;

            TribalMask helm = new TribalMask();

            helm.Hue     = 1150;
            helm.Movable = false;
            AddItem(helm);


            FancyShirt shirt = new FancyShirt();

            shirt.Hue     = 1175;
            shirt.Movable = false;
            AddItem(shirt);


            LeatherGloves gloves = new LeatherGloves();

            gloves.Hue     = 1175;
            gloves.Movable = false;
            AddItem(gloves);

            LongPants legs = new LongPants();

            legs.Hue     = 1175;
            legs.Movable = false;
            AddItem(legs);

            BladeOfCrystalLake weapon = new BladeOfCrystalLake();

            weapon.Movable = false;
            AddItem(weapon);

            Boots boots = new Boots();

            boots.Hue     = 1175;
            boots.Movable = false;
            AddItem(boots);
        }
コード例 #4
0
        public Savage() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name = NameList.RandomName("savage");

            int dino = Utility.RandomList(0x7D1, 0x7D2, 0x7D3, 0x7D4, 0x7D5, 0x7D6);

            if (Female = Utility.RandomBool())
            {
                Body = 401;
                Item cloth9 = new FemaleLeatherChest();
                cloth9.Hue  = dino;
                cloth9.Name = "dracosaur tunic";
                AddItem(cloth9);
            }
            else
            {
                Body = 400;
            }

            Hue = 0;

            SetStr(96, 115);
            SetDex(86, 105);
            SetInt(51, 65);

            SetDamage(23, 27);

            SetDamageType(ResistanceType.Physical, 100);

            SetSkill(SkillName.Fencing, 60.0, 82.5);
            SetSkill(SkillName.Macing, 60.0, 82.5);
            SetSkill(SkillName.Poisoning, 60.0, 82.5);
            SetSkill(SkillName.MagicResist, 57.5, 80.0);
            SetSkill(SkillName.Swords, 60.0, 82.5);
            SetSkill(SkillName.Tactics, 60.0, 82.5);

            Fame  = 1000;
            Karma = -1000;

            PackItem(new Bandage(Utility.RandomMinMax(1, 15)));

            if (Female && 0.1 > Utility.RandomDouble())
            {
                PackItem(new TribalBerry());
            }
            else if (!Female && 0.1 > Utility.RandomDouble())
            {
                PackItem(new BolaBall());
            }

            AddItem(new Spear());

            Item cloth1 = new BoneArms();

            cloth1.Hue  = dino;
            cloth1.Name = "dracosaur guantlets";
            AddItem(cloth1);
            Item cloth2 = new BoneLegs();

            cloth2.Hue  = dino;
            cloth2.Name = "dracosaur leggings";
            AddItem(cloth2);
            Item cloth3 = new TribalMask();

            cloth3.Hue  = dino;
            cloth3.Name = "savage tribal mask";
            AddItem(cloth3);
            Item cloth4 = new LeatherSkirt();

            cloth4.Hue   = dino;
            cloth4.Name  = "dracosaur skirt";
            cloth4.Layer = Layer.Waist;
            AddItem(cloth4);
        }
コード例 #5
0
        public void DressUpCrewMember(BaseCreature bc, Mobile captain)
        {
            if (captain is PirateDrow)
            {
                bc.AddItem(new ElvenBoots(0x6F8));
                Item armor = new LeatherChest(); armor.Hue = 0x6F8; bc.AddItem(armor);
                bc.AddItem(new FancyShirt(0));
                switch (Utility.Random(2))
                {
                case 0: bc.AddItem(new LongPants(0xBB4)); break;

                case 1: bc.AddItem(new ShortPants(0xBB4)); break;
                }
                switch (Utility.Random(2))
                {
                case 0: bc.AddItem(new Bandana(0x846)); break;

                case 1: bc.AddItem(new SkullCap(0x846)); break;
                }
            }
            else if (captain is PirateMen)
            {
                bc.AddItem(new ElvenBoots(0x83A));
                Item armor = new LeatherChest(); armor.Hue = 0x83A; bc.AddItem(armor);
                bc.AddItem(new FancyShirt(0));
                switch (Utility.Random(2))
                {
                case 0: bc.AddItem(new LongPants(0xBB4)); break;

                case 1: bc.AddItem(new ShortPants(0xBB4)); break;
                }

                switch (Utility.Random(2))
                {
                case 0: bc.AddItem(new Bandana(0x846)); break;

                case 1: bc.AddItem(new SkullCap(0x846)); break;
                }
            }
            else if (captain is PirateNatives)
            {
                bc.Hue     = 743;
                bc.HairHue = 0x96C;

                if (bc.Female)
                {
                    Item cloth9 = new FemaleLeatherChest();
                    cloth9.Hue  = 773;
                    cloth9.Name = "Native Tunic";
                    bc.AddItem(cloth9);
                }
                Item cloth1 = new SavageArms();
                cloth1.Hue  = 773;
                cloth1.Name = "Native Guantlets";
                bc.AddItem(cloth1);
                Item cloth2 = new SavageLegs();
                cloth2.Hue  = 773;
                cloth2.Name = "Native Leggings";
                bc.AddItem(cloth2);
                Item cloth3 = new TribalMask();
                cloth3.Hue  = 773;
                cloth3.Name = "Native Tribal Mask";
                bc.AddItem(cloth3);
                Item cloth4 = new LeatherSkirt();
                cloth4.Hue   = 773;
                cloth4.Name  = "Native Skirt";
                cloth4.Layer = Layer.Waist;
                bc.AddItem(cloth4);
            }
            else if (captain is PirateCult)
            {
                bc.AddItem(new Robe(0));
                switch (Utility.RandomMinMax(0, 2))
                {
                case 0: bc.AddItem(new ClothCowl()); break;

                case 1: bc.AddItem(new ClothHood()); break;

                case 2: bc.AddItem(new FancyHood()); break;
                }
                MorphingTime.ColorMyClothes(bc, captain.SpeechHue);
                bc.AddItem(new ElvenBoots(0x83A));

                if (bc.FindItemOnLayer(Layer.OneHanded) != null)
                {
                    Item hand = bc.FindItemOnLayer(Layer.OneHanded); hand.ItemID = 0x13C6; hand.Name = "gloves"; hand.MoveToWorld(captain.Location, captain.Map); bc.AddItem(hand);
                }
                if (bc.FindItemOnLayer(Layer.TwoHanded) != null)
                {
                    Item hand = bc.FindItemOnLayer(Layer.TwoHanded); hand.ItemID = 0x13C6; hand.Name = "gloves"; hand.MoveToWorld(captain.Location, captain.Map); bc.AddItem(hand);
                }
            }
            else if (captain is SailorGuards || captain is SailorElfGuards || captain is SailorOrkGuards)
            {
                DressGuards(bc, captain);
                if (captain is SailorElfGuards)
                {
                    bc.HairHue = Utility.RandomHairHue(); bc.Hue = Utility.RandomSkinColor();
                }
            }
            else if (captain is SailorMerchant || captain is SailorElf)
            {
                DressSailor(bc);
                if (captain is SailorElf)
                {
                    bc.HairHue = Utility.RandomHairHue(); bc.Hue = Utility.RandomSkinColor();
                }
                if (bc.FindItemOnLayer(Layer.OneHanded) != null)
                {
                    Item hand = bc.FindItemOnLayer(Layer.OneHanded);
                    if (hand is MonsterGloves)
                    {
                        hand.ItemID = 0x1087;
                        hand.Hue    = 0;
                        hand.Name   = "earrings";
                        hand.MoveToWorld(captain.Location, captain.Map);
                        bc.AddItem(hand);
                    }
                }
            }
        }
コード例 #6
0
            public static void SavageBeg(Mobile m, object targeted, double chance)
            {
                Mobile t          = (Mobile)targeted;
                Item   reward     = null;
                string rewardName = "";


                if (chance > .99 && m.Skills.Begging.Base >= 100)
                {
                    int rand = Utility.Random(9);
                    if (rand == 0)
                    {
                        reward     = new TribalBedroll();
                        rewardName = "a Tribal Bedroll";
                    }
                    else if (rand == 2)
                    {
                        reward     = new BeggerCoins(50);                     //Special Coins!
                        rewardName = "50 dull silver coins.";
                    }
                    else if (rand == 4)
                    {
                        reward     = new FurCape();                     //fur Cape!
                        rewardName = "a Fur Cape";
                    }
                    else if (rand == 6)
                    {
                        reward     = new HornedTribalMask();
                        rewardName = "a horned tribal mask";
                    }
                }
                if (chance > .95 && m.Skills.Begging.Base >= 90 && reward == null)
                {
                    int rand = Utility.Random(9);

                    if (rand == 0)
                    {
                        reward     = new LambLeg();
                        rewardName = "a leg of lamb";
                    }
                    else if (rand == 1)
                    {
                        reward     = new OrcishKinMask();
                        rewardName = "an orc mask";
                    }
                    else if (rand == 3)
                    {
                        reward     = new TribalBerry(2);
                        rewardName = "tribal berries";
                    }
                    else if (rand == 4)
                    {
                        reward     = new TribalMask();
                        rewardName = "a tribal mask";
                    }
                    else if (rand == 6)
                    {
                        reward     = new BeggerCoins(25);
                        rewardName = "25 dull silver coins.";
                    }
                    else if (rand == 7)
                    {
                        reward     = new Beads();
                        rewardName = "beads";
                    }
                }
                if (reward == null)
                {
                    JunkBeg(m, t, chance);
                }
                else
                {
                    Reward(m, t, reward, rewardName);
                }
            }
コード例 #7
0
        public NativeArcher() : base(AIType.AI_Archer, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name = "a tribesman";
            Hue  = 743;

            if (this.Female = Utility.RandomBool())
            {
                Body = 0x191;
                Item cloth9 = new FemaleLeatherChest();
                cloth9.Hue  = 773;
                cloth9.Name = "Native Tunic";
                AddItem(cloth9);
            }
            else
            {
                Body = 0x190;
            }

            HairHue = 0x96C;

            SetStr(116, 135);
            SetDex(106, 125);
            SetInt(71, 85);

            SetDamage(23, 27);

            SetDamageType(ResistanceType.Physical, 100);

            SetSkill(SkillName.Archery, 60.0, 82.5);
            SetSkill(SkillName.Macing, 60.0, 82.5);
            SetSkill(SkillName.Poisoning, 60.0, 82.5);
            SetSkill(SkillName.MagicResist, 57.5, 80.0);
            SetSkill(SkillName.Swords, 60.0, 82.5);
            SetSkill(SkillName.Tactics, 60.0, 82.5);

            Fame         = 1100;
            Karma        = -1100;
            VirtualArmor = 20;

            PackItem(new Bandage(Utility.RandomMinMax(1, 15)));

            Item cloth1 = new BoneArms();

            cloth1.Hue  = 773;
            cloth1.Name = "Native Guantlets";
            AddItem(cloth1);
            Item cloth2 = new BoneLegs();

            cloth2.Hue  = 773;
            cloth2.Name = "Native Leggings";
            AddItem(cloth2);
            Item cloth3 = new TribalMask();

            cloth3.Hue  = 773;
            cloth3.Name = "Native Tribal Mask";
            AddItem(cloth3);
            Item cloth4 = new LeatherSkirt();

            cloth4.Hue   = 773;
            cloth4.Name  = "Native Skirt";
            cloth4.Layer = Layer.Waist;
            AddItem(cloth4);

            AddItem(new Bow());
            PackItem(new Arrow(Utility.RandomMinMax(5, 15)));
        }
コード例 #8
0
        public SavageAlien() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name = "an alien savage";

            Hue = Utility.RandomList(0x6F6, 0x97F, 0x99B, 0x6E4, 0x5E0, 0xB38, 0xB2B);

            string metal = Server.Misc.MorphingTime.GetSpaceAceMetalName();
            string cloth = Server.Misc.MorphingTime.GetSpaceAceClothName();
            string bone  = Server.Misc.MorphingTime.GetSpaceAceBoneName();
            string wood  = Server.Misc.MorphingTime.GetSpaceAceWoodName();

            if (Female = Utility.RandomBool())
            {
                Body = 401;
            }
            else
            {
                Body = 400;
            }

            SetStr(336, 385);
            SetDex(281, 305);
            SetInt(96, 115);

            SetHits(202, 231);
            SetMana(0);

            SetDamage(7, 23);

            SetDamageType(ResistanceType.Physical, 100);

            SetResistance(ResistanceType.Physical, 45, 55);
            SetResistance(ResistanceType.Fire, 30, 40);
            SetResistance(ResistanceType.Cold, 30, 40);
            SetResistance(ResistanceType.Poison, 40, 50);
            SetResistance(ResistanceType.Energy, 40, 50);

            SetSkill(SkillName.MagicResist, 125.1, 140.0);
            SetSkill(SkillName.Tactics, 90.1, 100.0);
            SetSkill(SkillName.Wrestling, 90.1, 100.0);

            SetSkill(SkillName.Fencing, 125.1, 140.0);
            SetSkill(SkillName.Macing, 125.1, 140.0);
            SetSkill(SkillName.Wrestling, 125.1, 140.0);
            SetSkill(SkillName.MagicResist, 67.5, 100.0);
            SetSkill(SkillName.Swords, 125.1, 140.0);
            SetSkill(SkillName.Tactics, 125.1, 140.0);

            Fame  = 10000;
            Karma = -10000;

            VirtualArmor = 50;

            Item cloth1 = new SavageArms();

            MorphingTime.MakeSpaceAceBoneArmor(cloth1, bone, false);
            AddItem(cloth1);
            Item cloth2 = new SavageLegs();

            MorphingTime.MakeSpaceAceBoneArmor(cloth2, bone, false);
            AddItem(cloth2);
            Item cloth3 = new LeatherSkirt();

            cloth3.Name = "skin skirt";
            MorphingTime.MakeSpaceAceBoneArmor(cloth3, bone, true);
            cloth3.Layer = Layer.Waist;
            AddItem(cloth3);

            switch (Utility.RandomMinMax(0, 3))
            {
            case 0: Item cloth4 = new OrcHelm(); MorphingTime.MakeSpaceAceBoneArmor(cloth4, bone, false); AddItem(cloth4); break;

            case 1: Item cloth5 = new SavageHelm(); MorphingTime.MakeSpaceAceBoneArmor(cloth5, bone, false); AddItem(cloth5); break;

            case 2: Item cloth6 = new TribalMask(); cloth6.Name = "skin mask"; MorphingTime.MakeSpaceAceBoneArmor(cloth6, bone, true); AddItem(cloth6); break;
            }

            if (Utility.RandomMinMax(1, 10) == 1)
            {
                Item cloth7 = new SavageChest();
                MorphingTime.MakeSpaceAceBoneArmor(cloth7, bone, false);
                AddItem(cloth7);
            }
            else if (Female)
            {
                Item cloth8 = new FemaleLeatherChest();
                cloth8.Name = "skin tunic";
                MorphingTime.MakeSpaceAceBoneArmor(cloth8, bone, true);
                AddItem(cloth8);
            }

            IntelligentAction.GiveBasicWepShld(this);

            if (this.FindItemOnLayer(Layer.OneHanded) != null)
            {
                if (MaterialInfo.IsAnyKindOfMetalItem(this.FindItemOnLayer(Layer.OneHanded)))
                {
                    MorphingTime.MakeSpaceAceMetalArmorWeapon(this.FindItemOnLayer(Layer.OneHanded), metal);
                }
                else if (MaterialInfo.IsAnyKindOfClothItem(this.FindItemOnLayer(Layer.OneHanded)))
                {
                    MorphingTime.MakeSpaceAceClothArmorWeapon(this.FindItemOnLayer(Layer.OneHanded), cloth);
                }
                else if (MaterialInfo.IsAnyKindOfWoodItem(this.FindItemOnLayer(Layer.OneHanded)))
                {
                    MorphingTime.MakeSpaceAceWoodArmorWeapon(this.FindItemOnLayer(Layer.OneHanded), wood);
                }
            }

            if (this.FindItemOnLayer(Layer.TwoHanded) != null)
            {
                Item hand = this.FindItemOnLayer(Layer.TwoHanded);

                if (hand is BaseShield)
                {
                    switch (Utility.RandomMinMax(1, 4))
                    {
                    case 1: hand.ItemID = 0x1B76; hand.Name = "hull plate";         break;

                    case 2: hand.ItemID = 0x1B76; hand.Name = "deck plate";         break;

                    case 3: hand.ItemID = 0x1B72; hand.Name = "hatch door";         break;

                    case 4: hand.ItemID = 0x1B7B; hand.Name = "hatch cover";        break;
                    }
                    MorphingTime.MakeSpaceAceMetalArmorWeapon(hand, metal);
                }
                else if (MaterialInfo.IsAnyKindOfMetalItem(hand))
                {
                    MorphingTime.MakeSpaceAceMetalArmorWeapon(hand, metal);
                }
                else if (MaterialInfo.IsAnyKindOfClothItem(hand))
                {
                    MorphingTime.MakeSpaceAceClothArmorWeapon(hand, cloth);
                }
                else if (MaterialInfo.IsAnyKindOfWoodItem(hand))
                {
                    MorphingTime.MakeSpaceAceWoodArmorWeapon(hand, wood);
                }
            }
        }