Exemple #1
0
        public override void GenerateLoot()
        {
            AddLoot(LootPack.FilthyRich, 3);
            AddLoot(LootPack.MedScrolls, 5);
            AddLoot(LootPack.Gems, 3);

            if (Utility.RandomDouble() < 0.10)
            {
                BaseWeapon weapon = Loot.RandomWeapon(true);
                BaseRunicTool.ApplyAttributesTo(weapon, 5, 15, 35);
                PackItem(weapon);
            }

            if (Utility.RandomDouble() < 0.10)
            {
                BaseArmor armor = Loot.RandomArmor(true);
                switch (Utility.Random(5))
                {
                case 0: armor = new EbonsilkGloves(); break;

                case 1: armor = new EbonsilkGorget(); break;

                case 2: armor = new EbonsilkLegs(); break;

                case 3: armor = new EbonsilkArms(); break;

                default: armor = new EbonsilkChest(); break;
                }

                BaseRunicTool.ApplyAttributesTo(armor, 5, 15, 35);
                PackItem(armor);
            }

            if (Utility.RandomDouble() < 0.20)
            {
                BaseClothing clothing = Loot.RandomClothing(true);
                BaseRunicTool.ApplyAttributesTo(clothing, 5, 15, 35);
                PackItem(clothing);
            }

            if (Utility.RandomDouble() < 0.10)
            {
                BaseShield shield = new BlackHeaterShield();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(shield, 5, 15, 35);
                }
                PackItem(shield);
            }

            if (Utility.RandomDouble() < 0.10)
            {
                BaseJewel bracelet = new GoldBracelet();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(bracelet, 5, 15, 35);
                }
                PackItem(bracelet);
            }

            if (Utility.RandomDouble() < 0.10)
            {
                BaseJewel earrings = new GoldEarrings();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(earrings, 5, 15, 35);
                }
                PackItem(earrings);
            }

            if (Utility.RandomDouble() < 0.10)
            {
                BaseJewel necklace = new GoldNecklace();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(necklace, 5, 15, 35);
                }
                PackItem(necklace);
            }

            if (Utility.RandomDouble() < 0.10)
            {
                BaseJewel ring = new GoldRing();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(ring, 5, 15, 35);
                }
                PackItem(ring);
            }
        }
Exemple #2
0
        public DragonSanctuaryElfRanger() : base(AIType.AI_Archer, FightMode.Closest, 15, 1, 0.1, 0.2)
        {
            SetStr(755, 788);
            SetDex(300, 500);
            SetInt(100, 200);

            SetHits(500, 600);

            SetDamage(12, 15);

            SetSkill(SkillName.Anatomy, 100.0);
            SetSkill(SkillName.Archery, 100.0);
            SetSkill(SkillName.Chivalry, 100.0);
            SetSkill(SkillName.MagicResist, 70.0);
            SetSkill(SkillName.Tactics, 100.0);

            Karma = 10000;

            m_Timer = new MoveTimer(this);
            ChangeLocation();

            PackItem(new Bandage(Utility.RandomMinMax(15, 20)));
            PackItem(new Arrow(Utility.RandomMinMax(80, 90)));

            if (Female = Utility.RandomBool())
            {
                Name       = NameList.RandomName("elven female");
                Title      = "Ljosalfar Ranger of Dragon Sanctuary";
                Body       = 606;
                Hue        = Utility.RandomList(1002, 1003, 1009, 1010, 1011, 1016, 1017, 1023, 1030);
                HairHue    = Utility.RandomList(1502, 1507, 1513, 2213, 2216, 2218);
                HairItemID = Utility.RandomList(12224, 12225, 12236, 12237, 12238, 12239);

                BaseWeapon weapon = Loot.RandomWeapon(true);
                switch (Utility.Random(3))
                {
                case 0: weapon = new ElvenCompositeLongbow(); break;

                case 1: weapon = new MagicalShortbow(); break;

                case 2: weapon = new SkeletalWarBow(); break;
                }

                BaseRunicTool.ApplyAttributesTo(weapon, 5, 25, 35);
                weapon.Slayer = SlayerName.ReptilianDeath;
                weapon.WeaponAttributes.HitLightning = 25;
                weapon.Hue     = 0x4D5;
                weapon.Movable = true;
                AddItem(weapon);

                EbonsilkTiara helm = new EbonsilkTiara();
                BaseRunicTool.ApplyAttributesTo(helm, 5, 25, 35);
                helm.Hue     = 0x4D5;
                helm.Movable = true;
                AddItem(helm);

                LeafGorget gorget = new LeafGorget();
                BaseRunicTool.ApplyAttributesTo(gorget, 5, 25, 35);
                gorget.Hue     = 0x4D5;
                gorget.Movable = true;
                AddItem(gorget);

                LeafArms arms = new LeafArms();
                BaseRunicTool.ApplyAttributesTo(arms, 5, 25, 35);
                arms.Hue     = 0x4D5;
                arms.Movable = true;
                AddItem(arms);

                LeafChest chest = new LeafChest();
                BaseRunicTool.ApplyAttributesTo(chest, 5, 25, 35);
                chest.Hue     = 0x4D5;
                chest.Movable = true;
                AddItem(chest);

                LeafTonlet legs = new LeafTonlet();
                BaseRunicTool.ApplyAttributesTo(legs, 5, 25, 35);
                legs.Hue     = 0x4D5;
                legs.Movable = true;
                AddItem(legs);

                LightBoots boots = new LightBoots();
                BaseRunicTool.ApplyAttributesTo(boots, 5, 25, 35);
                boots.Hue     = 0x4D5;
                boots.Movable = true;
                AddItem(boots);

                new Nightmare().Rider = this;
            }
            else
            {
                Name       = NameList.RandomName("elven male");
                Title      = "Svartalfar Ranger of Dragon Sanctuary";
                Body       = 605;
                Hue        = Utility.RandomList(897, 898, 899, 900, 901, 905, 990, 995, 996, 997, 998, 999, 2401, 2402, 2403, 2404, 2405, 2406, 2407, 2408, 2409, 2410, 2411);
                HairHue    = 2405;
                HairItemID = Utility.RandomList(12224, 12225, 12236, 12237, 12238, 12239);

                BaseWeapon weapon = Loot.RandomWeapon(true);
                switch (Utility.Random(3))
                {
                case 0: weapon = new EbonyGreatBow(); break;

                case 1: weapon = new EbonyWarBow(); break;

                case 2: weapon = new SkeletalWarBow(); break;
                }

                BaseRunicTool.ApplyAttributesTo(weapon, 5, 25, 35);
                weapon.Slayer = SlayerName.ReptilianDeath;
                weapon.WeaponAttributes.HitLightning = 25;
                weapon.Hue     = 0x4D5;
                weapon.Movable = true;
                AddItem(weapon);

                EbonsilkTiara helm = new EbonsilkTiara();
                BaseRunicTool.ApplyAttributesTo(helm, 5, 25, 35);
                helm.Hue     = 0x4D5;
                helm.Movable = true;
                AddItem(helm);

                EbonsilkGorget gorget = new EbonsilkGorget();
                BaseRunicTool.ApplyAttributesTo(gorget, 5, 25, 35);
                gorget.Hue     = 0x4D5;
                gorget.Movable = true;
                AddItem(gorget);

                EbonsilkArms arms = new EbonsilkArms();
                BaseRunicTool.ApplyAttributesTo(arms, 5, 25, 35);
                arms.Hue     = 0x4D5;
                arms.Movable = true;
                AddItem(arms);

                EbonsilkChest chest = new EbonsilkChest();
                BaseRunicTool.ApplyAttributesTo(chest, 5, 25, 35);
                chest.Hue     = 0x4D5;
                chest.Movable = true;
                AddItem(chest);

                EbonsilkLegs legs = new EbonsilkLegs();
                BaseRunicTool.ApplyAttributesTo(legs, 5, 25, 35);
                legs.Hue     = 0x4D5;
                legs.Movable = true;
                AddItem(legs);

                HighBoots boots = new HighBoots();
                BaseRunicTool.ApplyAttributesTo(boots, 5, 25, 35);
                boots.Hue     = 0x4D5;
                boots.Movable = true;
                AddItem(boots);

                new FireSteed().Rider = this;
            }
        }