Exemplo n.º 1
0
            public InternalSellInfo()
            {
                Add(typeof(LeatherCap), LeatherCap.GetSBSellValue());
                Add(typeof(LeatherGorget), LeatherGorget.GetSBSellValue());
                Add(typeof(LeatherArms), LeatherArms.GetSBSellValue());
                Add(typeof(LeatherGloves), LeatherGloves.GetSBSellValue());
                Add(typeof(LeatherChest), LeatherChest.GetSBSellValue());
                Add(typeof(FemaleLeatherChest), FemaleLeatherChest.GetSBSellValue());
                Add(typeof(LeatherBustier), LeatherBustier.GetSBSellValue());
                Add(typeof(LeatherLegs), LeatherLegs.GetSBSellValue());
                Add(typeof(LeatherSkirt), LeatherSkirt.GetSBSellValue());
                Add(typeof(LeatherShorts), LeatherShorts.GetSBSellValue());

                Add(typeof(StuddedCap), StuddedCap.GetSBSellValue());
                Add(typeof(StuddedGorget), StuddedGorget.GetSBSellValue());
                Add(typeof(StuddedArms), StuddedArms.GetSBSellValue());
                Add(typeof(StuddedGloves), StuddedGloves.GetSBSellValue());
                Add(typeof(StuddedChest), StuddedChest.GetSBSellValue());
                Add(typeof(FemaleStuddedChest), FemaleStuddedChest.GetSBSellValue());
                Add(typeof(StuddedBustier), StuddedBustier.GetSBSellValue());
                Add(typeof(StuddedLegs), StuddedLegs.GetSBSellValue());

                Add(typeof(RingmailHelm), RingmailHelm.GetSBSellValue());
                Add(typeof(RingmailGorget), RingmailGorget.GetSBSellValue());
                Add(typeof(RingmailArms), RingmailArms.GetSBSellValue());
                Add(typeof(RingmailGloves), RingmailGloves.GetSBSellValue());
                Add(typeof(RingmailChest), RingmailChest.GetSBSellValue());
                Add(typeof(RingmailLegs), RingmailLegs.GetSBSellValue());

                Add(typeof(ChainmailCoif), ChainmailCoif.GetSBSellValue());
                Add(typeof(ChainmailGorget), ChainmailGorget.GetSBSellValue());
                Add(typeof(ChainmailArms), ChainmailArms.GetSBSellValue());
                Add(typeof(ChainmailGloves), ChainmailGloves.GetSBSellValue());
                Add(typeof(ChainmailChest), ChainmailChest.GetSBSellValue());
                Add(typeof(ChainmailLegs), ChainmailLegs.GetSBSellValue());

                Add(typeof(PlateHelm), PlateHelm.GetSBSellValue());
                Add(typeof(PlateGorget), PlateGorget.GetSBSellValue());
                Add(typeof(PlateArms), PlateArms.GetSBSellValue());
                Add(typeof(PlateGloves), PlateGloves.GetSBSellValue());
                Add(typeof(PlateChest), PlateChest.GetSBSellValue());
                Add(typeof(FemalePlateChest), FemalePlateChest.GetSBSellValue());
                Add(typeof(PlateLegs), PlateLegs.GetSBSellValue());

                Add(typeof(Bascinet), Bascinet.GetSBSellValue());
                Add(typeof(CloseHelm), CloseHelm.GetSBSellValue());
                Add(typeof(NorseHelm), NorseHelm.GetSBSellValue());

                Add(typeof(Buckler), Buckler.GetSBSellValue());
                Add(typeof(MetalShield), MetalShield.GetSBSellValue());
                Add(typeof(BronzeShield), BronzeShield.GetSBSellValue());
                Add(typeof(MetalKiteShield), MetalKiteShield.GetSBSellValue());
                Add(typeof(HeaterShield), HeaterShield.GetSBSellValue());
            }
Exemplo n.º 2
0
            public InternalBuyInfo()
            {
                Add(new GenericBuyInfo("Leather Cap", typeof(LeatherCap), LeatherCap.GetSBPurchaseValue(), 25, 7610, 0));
                Add(new GenericBuyInfo("Leather Gorget", typeof(LeatherGorget), LeatherGorget.GetSBPurchaseValue(), 25, 5063, 0));
                Add(new GenericBuyInfo("Leather Arms", typeof(LeatherArms), LeatherArms.GetSBPurchaseValue(), 25, 5061, 0));
                Add(new GenericBuyInfo("Leather Gloves", typeof(LeatherGloves), LeatherGloves.GetSBPurchaseValue(), 25, 5070, 0));
                Add(new GenericBuyInfo("Leather Chest", typeof(LeatherChest), LeatherChest.GetSBPurchaseValue(), 25, 5075, 0));
                Add(new GenericBuyInfo("Female Leather Chest", typeof(FemaleLeatherChest), FemaleLeatherChest.GetSBPurchaseValue(), 25, 7175, 0));
                Add(new GenericBuyInfo("Leather Bustier", typeof(LeatherBustier), LeatherBustier.GetSBPurchaseValue(), 25, 7179, 0));
                Add(new GenericBuyInfo("Leather Legs", typeof(LeatherLegs), LeatherLegs.GetSBPurchaseValue(), 25, 5074, 0));
                Add(new GenericBuyInfo("Leather Skirt", typeof(LeatherSkirt), LeatherSkirt.GetSBPurchaseValue(), 25, 7177, 0));
                Add(new GenericBuyInfo("Leather Shorts", typeof(LeatherShorts), LeatherShorts.GetSBPurchaseValue(), 25, 7169, 0));

                Add(new GenericBuyInfo("Studded Cap", typeof(StuddedCap), StuddedCap.GetSBPurchaseValue(), 25, 7610, 1507));
                Add(new GenericBuyInfo("Studded Gorget", typeof(StuddedGorget), StuddedGorget.GetSBPurchaseValue(), 25, 5078, 0));
                Add(new GenericBuyInfo("Studded Arms", typeof(StuddedArms), StuddedArms.GetSBPurchaseValue(), 25, 5076, 0));
                Add(new GenericBuyInfo("Studded Gloves", typeof(StuddedGloves), StuddedGloves.GetSBPurchaseValue(), 25, 5085, 0));
                Add(new GenericBuyInfo("Studded Chest", typeof(StuddedChest), StuddedChest.GetSBPurchaseValue(), 25, 5090, 0));
                Add(new GenericBuyInfo("Female Studded Chest", typeof(FemaleStuddedChest), FemaleStuddedChest.GetSBPurchaseValue(), 25, 7170, 0));
                Add(new GenericBuyInfo("Studded Bustier", typeof(StuddedBustier), StuddedBustier.GetSBPurchaseValue(), 25, 7181, 0));
                Add(new GenericBuyInfo("Studded Legs", typeof(StuddedLegs), StuddedLegs.GetSBPurchaseValue(), 25, 5089, 0));

                Add(new GenericBuyInfo("Ringmail Helm", typeof(RingmailHelm), RingmailHelm.GetSBPurchaseValue(), 25, 5131, 0));
                Add(new GenericBuyInfo("Ringmail Gorget", typeof(RingmailGorget), RingmailGorget.GetSBPurchaseValue(), 25, 5078, 1812));
                Add(new GenericBuyInfo("Ringmail Arms", typeof(RingmailArms), RingmailArms.GetSBPurchaseValue(), 25, 0x13EE, 0));
                Add(new GenericBuyInfo("Ringmail Gloves", typeof(RingmailGloves), RingmailGloves.GetSBPurchaseValue(), 25, 0x13eb, 0));
                Add(new GenericBuyInfo("Ringmail Chest", typeof(RingmailChest), RingmailChest.GetSBPurchaseValue(), 25, 0x13ec, 0));
                Add(new GenericBuyInfo("Ringmail Legs", typeof(RingmailLegs), RingmailLegs.GetSBPurchaseValue(), 25, 0x13F0, 0));

                Add(new GenericBuyInfo("Chainmail Coif", typeof(ChainmailCoif), ChainmailCoif.GetSBPurchaseValue(), 25, 0x13BB, 0));
                Add(new GenericBuyInfo("Chainmail Gorget", typeof(ChainmailGorget), ChainmailGorget.GetSBPurchaseValue(), 25, 5063, 2500));
                Add(new GenericBuyInfo("Chainmail Arms", typeof(ChainmailArms), ChainmailArms.GetSBPurchaseValue(), 25, 5103, 2500));
                Add(new GenericBuyInfo("Chainmail Gloves", typeof(ChainmailGloves), ChainmailGloves.GetSBPurchaseValue(), 25, 5106, 2500));
                Add(new GenericBuyInfo("Chainmail Chest", typeof(ChainmailChest), ChainmailChest.GetSBPurchaseValue(), 25, 0x13BF, 0));
                Add(new GenericBuyInfo("Chainmail Legs", typeof(ChainmailLegs), ChainmailLegs.GetSBPurchaseValue(), 25, 0x13BE, 0));

                Add(new GenericBuyInfo("Platemail Helm", typeof(PlateHelm), PlateHelm.GetSBPurchaseValue(), 25, 0x1412, 0));
                Add(new GenericBuyInfo("Platemail Gorget", typeof(PlateGorget), PlateGorget.GetSBPurchaseValue(), 25, 0x1413, 0));
                Add(new GenericBuyInfo("Platemail Arms", typeof(PlateArms), PlateArms.GetSBPurchaseValue(), 25, 0x1410, 0));
                Add(new GenericBuyInfo("Platemail Gloves", typeof(PlateGloves), PlateGloves.GetSBPurchaseValue(), 25, 0x1414, 0));
                Add(new GenericBuyInfo("Platemail PlateChest", typeof(PlateChest), PlateChest.GetSBPurchaseValue(), 25, 0x1415, 0));
                Add(new GenericBuyInfo("Female Plate Chest", typeof(FemalePlateChest), FemalePlateChest.GetSBPurchaseValue(), 25, 7173, 0));
                Add(new GenericBuyInfo("Platemail Legs", typeof(PlateLegs), PlateLegs.GetSBPurchaseValue(), 25, 0x1411, 0));

                Add(new GenericBuyInfo("Bascinet", typeof(Bascinet), Bascinet.GetSBPurchaseValue(), 25, 5132, 0));
                Add(new GenericBuyInfo("Close Helm", typeof(CloseHelm), CloseHelm.GetSBPurchaseValue(), 25, 5129, 0));
                Add(new GenericBuyInfo("Norse Helm", typeof(NorseHelm), NorseHelm.GetSBPurchaseValue(), 25, 5135, 0));

                Add(new GenericBuyInfo("Buckler", typeof(Buckler), Buckler.GetSBPurchaseValue(), 25, 0x1B73, 0));
                Add(new GenericBuyInfo("Metal Shield", typeof(MetalShield), MetalShield.GetSBPurchaseValue(), 25, 0x1B7B, 0));
                Add(new GenericBuyInfo("Bronze Shield", typeof(BronzeShield), BronzeShield.GetSBPurchaseValue(), 25, 0x1B72, 0));
                Add(new GenericBuyInfo("Metal Kite Shield", typeof(MetalKiteShield), MetalKiteShield.GetSBPurchaseValue(), 25, 0x1B74, 0));
                Add(new GenericBuyInfo("Heater Shield", typeof(HeaterShield), HeaterShield.GetSBPurchaseValue(), 25, 0x1B76, 0));
            }
Exemplo n.º 3
0
        public override void InitOutfit()
        {
            Item item = null;

            item     = AddRandomHair();
            item.Hue = Utility.RandomHairHue();
            item     = AddRandomFacialHair(item.Hue);
            item     = new PlateChest();
            AddItem(item);
            item = new PlateLegs();
            AddItem(item);
            item = new PlateArms();
            AddItem(item);
            item = new PlateGloves();
            AddItem(item);
            switch (Utility.Random(6))
            {
            case 0: item = new PlateHelm(); break;

            case 1: item = new ChainCoif(); break;

            case 2: item = new CloseHelm(); break;

            case 3: item = new Bascinet(); break;

            case 4: item = new NorseHelm(); break;

            case 5:
            default: item = new Helmet(); break;
            }
            AddItem(item);
            item     = new Tunic();
            item.Hue = Utility.RandomNondyedHue();
            AddItem(item);
            item = new PlateGorget();
            AddItem(item);
            item = new DoubleAxe();
            AddItem(item);
            PackGold(15, 100);
        }
        public FriendlyPlayer() : base(AIType.AI_Melee, FightMode.Closest, 25, 1, 0.4, 0.3)
        {
            SpeechHue = Utility.RandomDyedHue();

            switch (Utility.Random(6))
            {
            case 0: Title = "[BEC]"; break;

            case 1: Title = "[COOL]"; break;

            case 2: Title = "[FUN]"; break;

            case 3: Title = "[PYR]"; break;

            case 4: Title = "[FRN]"; break;

            case 5: Title = "[CRA]"; break;
            }

            SetStr(100, 200);
            SetDex(100, 200);
            SetInt(125, 200);
            ActiveSpeed  = 0.2;
            PassiveSpeed = 0;

            SetHits(100, 400);

            SetDamage(10, 19);

            SetDamageType(ResistanceType.Physical, 120);

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

            SetSkill(SkillName.Swords, 79.0, 110.0);
            SetSkill(SkillName.Tactics, 79.0, 110.0);
            SetSkill(SkillName.MagicResist, 79.0, 110.0);
            SetSkill(SkillName.Tactics, 79.0, 110.0);
            SetSkill(SkillName.Parry, 79.0, 110.0);
            SetSkill(SkillName.Anatomy, 70.0, 110.0);
            SetSkill(SkillName.Healing, 70.0, 110.0);

            Fame  = 1000;
            Karma = 10000;

            VirtualArmor = 50;

            switch (Utility.Random(4))
            {
            case 0: AddItem(new Longsword()); break;

            case 1: AddItem(new Axe()); break;

            case 2: AddItem(new Bardiche()); break;

            case 3: AddItem(new Hatchet()); break;
            }


            switch (Utility.Random(5))
            {
            case 0: Item cloak = new Cloak();
                cloak.Movable = false;
                cloak.Hue     = GetRandomHue();
                AddItem(cloak);
                break;

            case 1: Item shroud = new HoodedShroudOfShadows();
                shroud.Movable = false;
                shroud.Hue     = GetRandomHue();
                AddItem(shroud);
                break;

            case 2: break;

            case 3: Item monkrobe = new MonkRobe();
                monkrobe.Movable = false;
                monkrobe.Hue     = GetRandomHue();
                AddItem(monkrobe);
                break;

            case 4: break;
            }


            switch (Utility.Random(4))
            {
            case 0: AddItem(new LongPants()); break;

            case 1: Item LegsOfBane = new LeggingsOfBane();
                LegsOfBane.Hue      = GetRandomHue();
                LegsOfBane.LootType = LootType.Newbied;
                LegsOfBane.Movable  = false;
                AddItem(LegsOfBane);
                break;

            case 2: Item ShortPantss = new ShortPants();
                ShortPantss.Hue      = GetRandomHue();
                ShortPantss.LootType = LootType.Newbied;
                ShortPantss.Movable  = false;
                AddItem(ShortPantss);
                break;

            case 3: Item PlateLegsv = new PlateLegs();
                PlateLegsv.Hue      = GetRandomHue();
                PlateLegsv.LootType = LootType.Newbied;
                PlateLegsv.Movable  = false;
                AddItem(PlateLegsv);
                break;
            }

            switch (Utility.Random(5))
            {
            case 0: AddItem(new Boots()); break;

            case 1: Item Sandals = new Sandals();
                Sandals.Hue      = GetRandomHue();
                Sandals.LootType = LootType.Blessed;
                Sandals.Movable  = false;
                AddItem(Sandals);
                break;

            case 2: Item Bootsv = new Boots();
                Bootsv.Hue      = GetRandomHue();
                Bootsv.LootType = LootType.Blessed;
                Bootsv.Movable  = false;
                AddItem(Bootsv);
                break;

            case 3: Item Shoesv = new Shoes();
                Shoesv.Hue      = GetRandomHue();
                Shoesv.LootType = LootType.Blessed;
                Shoesv.Movable  = false;
                AddItem(Shoesv);
                break;

            case 4: break;
            }

            switch (Utility.Random(6))
            {
            case 0: AddItem(new ClothNinjaHood(  )); break;

            case 1: Item SpiritOfTheTotem = new SpiritOfTheTotem();
                SpiritOfTheTotem.Hue      = GetRandomHue();
                SpiritOfTheTotem.Movable  = false;
                SpiritOfTheTotem.LootType = LootType.Blessed;
                AddItem(SpiritOfTheTotem);
                break;

            case 2: Item BoneHelmv = new BoneHelm();
                BoneHelmv.Hue      = GetRandomHue();
                BoneHelmv.Movable  = false;
                BoneHelmv.LootType = LootType.Blessed;
                AddItem(BoneHelmv);
                break;

            case 3: Item CloseHelmv = new CloseHelm();
                CloseHelmv.Hue      = GetRandomHue();
                CloseHelmv.Movable  = false;
                CloseHelmv.LootType = LootType.Blessed;
                AddItem(CloseHelmv);
                break;

            case 4: AddItem(new SkullCap( )); break;

            case 5: Item TricorneHatv = new TricorneHat();
                TricorneHatv.Hue      = GetRandomHue();
                TricorneHatv.Movable  = false;
                TricorneHatv.LootType = LootType.Blessed;
                AddItem(TricorneHatv);
                break;
            }

            switch (Utility.Random(3))
            {
            case 0: Item LeatherGlovesv = new LeatherGloves();
                LeatherGlovesv.Hue      = GetRandomHue();
                LeatherGlovesv.Movable  = false;
                LeatherGlovesv.LootType = LootType.Blessed;
                AddItem(LeatherGlovesv);
                break;

            case 1: Item PlateGlovesv = new PlateGloves();
                PlateGlovesv.Hue      = GetRandomHue();
                PlateGlovesv.Movable  = false;
                PlateGlovesv.LootType = LootType.Blessed;
                AddItem(PlateGlovesv);
                break;

            case 2: AddItem(new RingmailGloves()); break;
            }



            if (Female = Utility.RandomBool())
            {
                Body = 401;
                Name = NameList.RandomName("female");
            }
            else
            {
                Body = 400;
                Name = NameList.RandomName("male");
            }

            Utility.AssignRandomHair(this);

            for (int i = 0; i < 10; i++)
            {
                PackItem(new GreaterCurePotion());
                PackItem(new GreaterHealPotion());
                PackItem(new TotalRefreshPotion());
            }

            PackItem(new Bandage(Utility.RandomMinMax(10, 100)));

            Horse ns = new Horse();

            ns.Controlled    = true;
            ns.ControlMaster = this;
            ns.ControlOrder  = OrderType.Stay;
            ns.Rider         = this;
        }
Exemplo n.º 5
0
        public DupresSquire() : base(AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.2, 0.4)
        {
            Name   = NameList.RandomName("male");
            Title  = "The Squire";
            Body   = 0x190;
            Hue    = Utility.RandomSkinHue();
            Female = false;

            SetStr(190, 200);
            SetDex(50, 75);
            SetInt(150, 250);
            SetHits(3900, 4100);
            SetDamage(22, 28);

            SetDamageType(ResistanceType.Physical, 100);

            SetResistance(ResistanceType.Physical, 50, 70);
            SetResistance(ResistanceType.Fire, 50, 70);
            SetResistance(ResistanceType.Cold, 50, 70);
            SetResistance(ResistanceType.Poison, 50, 70);
            SetResistance(ResistanceType.Energy, 50, 70);

            SetSkill(SkillName.EvalInt, 195.0, 220.0);
            SetSkill(SkillName.Magery, 195.0, 220.0);
            SetSkill(SkillName.Meditation, 195.0, 200.0);
            SetSkill(SkillName.MagicResist, 100.0, 120.0);
            SetSkill(SkillName.Tactics, 195.0, 220.0);
            SetSkill(SkillName.Wrestling, 195.0, 220.0);

            VirtualArmor = 70;

            Item vikingsword = new VikingSword();

            vikingsword.LootType = LootType.Blessed;
            SetWearable(vikingsword);

            Item cc = new ChainChest();

            cc.LootType = LootType.Blessed;
            SetWearable(cc);

            Item cl = new ChainLegs();

            cl.LootType = LootType.Blessed;
            SetWearable(cl);

            Item ch = new CloseHelm();

            ch.LootType = LootType.Blessed;
            SetWearable(ch);

            Item boots = new Boots(1);

            boots.LootType = LootType.Blessed;
            SetWearable(boots);

            Item pgl = new PlateGloves();

            pgl.LootType = LootType.Blessed;
            SetWearable(pgl);

            Item mks = new MetalKiteShield();

            mks.LootType = LootType.Blessed;
            mks.Hue      = 0x776;
            SetWearable(mks);

            Item bs = new BodySash(0x794); // dark purple

            bs.LootType = LootType.Blessed;
            SetWearable(bs);

            PackGold(400, 600);
        }
Exemplo n.º 6
0
        public EnsorcelledArmor(ArmoryEncounter encounter) : base(AIType.AI_Melee, FightMode.Weakest, 10, 1, 0.2, 0.4)
        {
            Encounter   = encounter;
            Name        = "ensorcelled armor";
            BaseSoundID = 412;

            Body = 0x190;
            SetStr(386, 400);
            SetDex(151, 165);
            SetInt(161, 175);

            SetDamage(15, 21);

            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);

            var helm = new CloseHelm();

            helm.Hue = 0x96D;
            AddItem(helm);

            var arms = new PlateArms();

            arms.Hue = 0x96D;
            AddItem(arms);

            var legs = new PlateLegs();

            legs.Hue = 0x96D;
            AddItem(legs);

            var tunic = new PlateChest();

            tunic.Hue = 0x96D;
            AddItem(tunic);

            var gorget = new PlateGorget();

            gorget.Hue = 0x96D;
            AddItem(gorget);

            var golves = new PlateGloves();

            golves.Hue = 0x96D;
            AddItem(golves);

            var halberd = new Halberd();

            halberd.Hue = 0x96D;
            AddItem(halberd);

            AddItem(new HalfApron(728));

            Fame  = 8500;
            Karma = -8500;
        }
Exemplo n.º 7
0
        public HireFighter()
        {
            Female = Utility.RandomBool();
            Body   = Female ? 401 : 400;
            Title  = "the fighter";
            Name   = NameList.RandomName(Female ? "female" : "male");
            Hue    = Utility.RandomSkinHue();
            SetStr(11, 88);
            SetDex(11, 88);
            SetInt(7, 49);
            Karma = Utility.RandomMinMax(13, -45);


            SetSkill(SkillName.Tactics, 45, 67.5);
            SetSkill(SkillName.MagicResist, 45, 67.5);
            SetSkill(SkillName.Parry, 45, 67.5);
            SetSkill(SkillName.Swords, 45, 67.5);
            SetSkill(SkillName.Macing, 45, 67.5);
            SetSkill(SkillName.Fencing, 45, 67.5);
            SetSkill(SkillName.Wrestling, 45, 67.5);
            SetSkill(SkillName.ArmsLore, 42.5, 65);


            Item item = null;

            if (!Female)
            {
                item     = AddRandomHair();
                item.Hue = Utility.RandomHairHue();
                item     = AddRandomFacialHair(item.Hue);
                item     = new StuddedChest();
                AddItem(item);
                item = new StuddedLegs();
                AddItem(item);
                item = new StuddedArms();
                AddItem(item);
                item = new StuddedGloves();
                AddItem(item);
                switch (Utility.Random(6))
                {
                case 0: item = new PlateHelm(); break;

                case 1: item = new ChainCoif(); break;

                case 2: item = new CloseHelm(); break;

                case 3: item = new Bascinet(); break;

                case 4: item = new NorseHelm(); break;

                case 5:
                default: item = new Helmet(); break;
                }
                AddItem(item);
                item = new StuddedGorget();
                AddItem(item);
                item = Loot.RandomWeapon();
                AddItem(item);
                if (item.Layer == Layer.OneHanded)
                {
                    item = new WoodenShield();
                    AddItem(item);
                }
            }
            else
            {
                item     = AddRandomHair();
                item.Hue = Utility.RandomHairHue();
                item     = new StuddedChest();
                AddItem(item);
                item = new StuddedLegs();
                AddItem(item);
                item = new StuddedArms();
                AddItem(item);
                item = new StuddedGloves();
                AddItem(item);
                switch (Utility.Random(6))
                {
                case 0: item = new PlateHelm(); break;

                case 1: item = new ChainCoif(); break;

                case 2: item = new CloseHelm(); break;

                case 3: item = new Bascinet(); break;

                case 4: item = new NorseHelm(); break;

                case 5:
                default: item = new Helmet(); break;
                }
                AddItem(item);
                item = new StuddedGorget();
                AddItem(item);
                item = Loot.RandomWeapon();
                AddItem(item);
                if (item.Layer == Layer.OneHanded)
                {
                    item = new WoodenShield();
                    AddItem(item);
                }
            }
        }
Exemplo n.º 8
0
        public Mercenary() : base(AIType.AI_Melee, FightMode.Agressor, 10, 1, 0.45, 0.8)
        {
            Female = Utility.RandomBool();
            Body   = Female ? 401 : 400;
            Title  = "the mercenary";
            Name   = NameList.RandomName(Female ? "female" : "male");
            Hue    = Utility.RandomSkinHue();
            SetStr(25, 88);
            SetDex(25, 88);
            SetInt(37, 49);
            Karma = Utility.RandomMinMax(13, -45);


            SetSkill(SkillName.Tactics, 45, 67.5);
            SetSkill(SkillName.MagicResist, 45, 67.5);
            SetSkill(SkillName.Parry, 45, 67.5);
            SetSkill(SkillName.Swords, 45, 67.5);
            SetSkill(SkillName.Macing, 45, 67.5);
            SetSkill(SkillName.Fencing, 45, 67.5);
            SetSkill(SkillName.Wrestling, 45, 67.5);
            SetSkill(SkillName.ArmsLore, 42.5, 65);


            Item item = null;

            if (!Female)
            {
                item     = AddRandomHair();
                item.Hue = Utility.RandomHairHue();
                item     = AddRandomFacialHair(item.Hue);
                switch (Utility.Random(5))
                {
                case 0: item = new PlateChest(); break;

                case 1: item = new ChainChest(); break;

                case 2: item = new StuddedChest(); break;

                case 3: item = new RingmailChest(); break;

                case 4:
                default: item = new LeatherChest(); break;
                }
                AddItem(item);
                switch (Utility.Random(5))
                {
                case 0: item = new PlateLegs(); break;

                case 1: item = new ChainLegs(); break;

                case 2: item = new StuddedLegs(); break;

                case 3: item = new RingmailLegs(); break;

                case 4:
                default: item = new LeatherLegs(); break;
                }
                AddItem(item);
                switch (Utility.Random(4))
                {
                case 0: item = new PlateArms(); break;

                case 1: item = new RingmailArms(); break;

                case 2: item = new StuddedArms(); break;

                case 3:
                default: item = new LeatherArms(); break;
                }
                AddItem(item);
                switch (Utility.Random(3))
                {
                case 0: item = new PlateGloves(); break;

                case 1: item = new StuddedGloves(); break;

                case 2:
                default: item = new LeatherGloves(); break;
                }
                AddItem(item);
                switch (Utility.Random(6))
                {
                case 0: item = new PlateHelm(); break;

                case 1: item = new ChainCoif(); break;

                case 2: item = new CloseHelm(); break;

                case 3: item = new Bascinet(); break;

                case 4: item = new NorseHelm(); break;

                case 5:
                default: item = new Helmet(); break;
                }
                AddItem(item);
                switch (Utility.Random(7))
                {
                case 0: item = new BronzeShield(); break;

                case 1: item = new Buckler(); break;

                case 2: item = new HeaterShield(); break;

                case 3: item = new MetalKiteShield(); break;

                case 4: item = new MetalShield(); break;

                case 5: item = new WoodenKiteShield(); break;

                case 6:
                default: item = new WoodenShield(); break;
                }
                AddItem(item);
                switch (Utility.Random(4))
                {
                case 0: item = new PlateGorget(); break;

                case 1: item = new StuddedGorget(); break;

                default:
                case 2: item = new LeatherGorget(); break;
                }
                AddItem(item);
                item = Loot.RandomWeapon();
                AddItem(item);
                PackGold(15, 100);
            }
            else
            {
                item     = AddRandomHair();
                item.Hue = Utility.RandomHairHue();
                switch (Utility.Random(5))
                {
                case 0: item = new PlateChest(); break;

                case 1: item = new ChainChest(); break;

                case 2: item = new StuddedChest(); break;

                case 3: item = new RingmailChest(); break;

                case 4:
                default: item = new LeatherChest(); break;
                }
                AddItem(item);
                switch (Utility.Random(5))
                {
                case 0: item = new PlateLegs(); break;

                case 1: item = new ChainLegs(); break;

                case 2: item = new StuddedLegs(); break;

                case 3: item = new RingmailLegs(); break;

                case 4:
                default: item = new LeatherLegs(); break;
                }
                AddItem(item);
                switch (Utility.Random(3))
                {
                case 0: item = new PlateGloves(); break;

                case 1: item = new StuddedGloves(); break;

                case 2:
                default: item = new LeatherGloves(); break;
                }
                AddItem(item);
                switch (Utility.Random(6))
                {
                case 0: item = new PlateHelm(); break;

                case 1: item = new ChainCoif(); break;

                case 2: item = new CloseHelm(); break;

                case 3: item = new Bascinet(); break;

                case 4: item = new NorseHelm(); break;

                case 5:
                default: item = new Helmet(); break;
                }
                AddItem(item);
                switch (Utility.Random(7))
                {
                case 0: item = new BronzeShield(); break;

                case 1: item = new Buckler(); break;

                case 2: item = new HeaterShield(); break;

                case 3: item = new MetalKiteShield(); break;

                case 4: item = new MetalShield(); break;

                case 5: item = new WoodenKiteShield(); break;

                case 6:
                default: item = new WoodenShield(); break;
                }
                AddItem(item);
                switch (Utility.Random(4))
                {
                case 0: item = new PlateGorget(); break;

                case 1: item = new StuddedGorget(); break;

                default:
                case 2: item = new LeatherGorget(); break;
                }
                AddItem(item);
                item = Loot.RandomWeapon();
                AddItem(item);
                PackGold(15, 100);
            }
        }
        public HumanPaladin() : base(AIType.AI_Melee, FightMode.Agressor, 10, 1, 0.2, 0.4)
        {
            Title     = "the Righteous";
            SpeechHue = Utility.RandomDyedHue();
            Hue       = Utility.RandomSkinHue();
            Body      = 0x190;
            Level     = 10;

            if (this.Female = Utility.RandomBool())
            {
                Body = 0x191;
                Name = NameList.RandomName("female");
                FemalePlateChest fchest = new FemalePlateChest();
                fchest.Hue     = 2122;
                fchest.Movable = false;
                AddItem(fchest);
                Kilt kilt = new Kilt();
                kilt.Movable = false;
                kilt.Hue     = 2971;
                AddItem(kilt);
            }
            else
            {
                Body = 0x190;
                Name = NameList.RandomName("male");
                PlateChest chest = new PlateChest();
                chest.Hue     = 2122;
                chest.Movable = false;
                AddItem(chest);
                Surcoat coat = new Surcoat();
                coat.Hue     = 2971;
                coat.Movable = false;
                AddItem(coat);
                CloseHelm helm = new CloseHelm();
                helm.Hue     = 2122;
                helm.Movable = false;
                AddItem(helm);
            }

            Fame  = 2000;
            Karma = 8000;

            new Nightmare().Rider = this;

            PlateArms arms = new PlateArms();

            arms.Hue     = 2122;
            arms.Movable = false;
            AddItem(arms);
            PlateLegs legs = new PlateLegs();

            legs.Hue     = 2122;
            legs.Movable = false;
            AddItem(legs);
            PlateGorget gorget = new PlateGorget();

            gorget.Hue     = 2122;
            gorget.Movable = false;
            AddItem(gorget);
            PlateGloves gloves = new PlateGloves();

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

            Cloak cloak = new Cloak();

            cloak.Hue     = 2971;
            cloak.Movable = false;
            AddItem(cloak);

            PackGold(10, 17);

            SetSkill(SkillName.MagicResist, 80.0, 90.5);
            SetSkill(SkillName.Swords, 85.0, 101.5);
            SetSkill(SkillName.Tactics, 85.0, 93.5);
            SetSkill(SkillName.Wrestling, 65.0, 72.5);
            SetSkill(SkillName.Fencing, 85.0, 100.5);
            SetSkill(SkillName.Macing, 70.3, 95.5);

            SetStr(316, 440);
            SetDex(161, 223);
            SetInt(141, 165);
            SetHits(380, 433);
            SetDamage(12, 20);

            switch (Utility.Random(8))
            {
            case 0: WarMace wmace = new WarMace();
                wmace.Movable = false;
                wmace.Hue     = 2122;
                AddItem(wmace);

                OrderShield ashield = new OrderShield();
                ashield.Movable = false;
                ashield.Hue     = 2122;
                AddItem(ashield);
                break;

            case 1: Bardiche bd = new Bardiche();
                bd.Movable = false;
                bd.Hue     = 2122;
                AddItem(bd);
                break;

            case 2: Broadsword bsword = new Broadsword();
                bsword.Movable = false;
                bsword.Hue     = 2122;
                AddItem(bsword);

                OrderShield bshield = new OrderShield();
                bshield.Movable = false;
                bshield.Hue     = 2122;
                AddItem(bshield);
                break;

            case 3: Pike pike = new Pike();
                pike.Movable = false;
                pike.Hue     = 2122;
                AddItem(pike);
                break;

            case 4: Halberd hbrd = new Halberd();
                hbrd.Movable = false;
                hbrd.Hue     = 2122;
                AddItem(hbrd);
                break;

            case 5: Maul maul = new Maul();
                maul.Movable = false;
                maul.Hue     = 2122;
                AddItem(maul);

                OrderShield cshield = new OrderShield();
                cshield.Movable = false;
                cshield.Hue     = 2122;
                AddItem(cshield);
                break;

            case 6: VikingSword vsword = new VikingSword();
                vsword.Movable = false;
                vsword.Hue     = 2122;
                AddItem(vsword);

                OrderShield dshield = new OrderShield();
                dshield.Movable = false;
                dshield.Hue     = 2122;
                AddItem(dshield);
                break;

            case 7: Lance lance = new Lance();
                lance.Movable = false;
                lance.Hue     = 2122;
                AddItem(lance);
                break;
            }

            AddItem(Server.Items.Hair.GetRandomHair(Female));
        }
Exemplo n.º 10
0
            public InternalBuyInfo()
            {
                //Tools
                Add(new GenericBuyInfo("Tongs", typeof(Tongs), Tongs.GetSBPurchaseValue(), 50, 0xFBB, 0));
                Add(new GenericBuyInfo("Smith's Hammer", typeof(SmithHammer), SmithHammer.GetSBPurchaseValue(), 50, 0x13E3, 0));

                //Armor
                Add(new GenericBuyInfo("Ringmail Helm", typeof(RingmailHelm), RingmailHelm.GetSBPurchaseValue(), 25, 5131, 0));
                Add(new GenericBuyInfo("Ringmail Gorget", typeof(RingmailGorget), RingmailGorget.GetSBPurchaseValue(), 25, 5078, 1812));
                Add(new GenericBuyInfo("Ringmail Arms", typeof(RingmailArms), RingmailArms.GetSBPurchaseValue(), 25, 0x13EE, 0));
                Add(new GenericBuyInfo("Ringmail Gloves", typeof(RingmailGloves), RingmailGloves.GetSBPurchaseValue(), 25, 0x13eb, 0));
                Add(new GenericBuyInfo("Ringmail Chest", typeof(RingmailChest), RingmailChest.GetSBPurchaseValue(), 25, 0x13ec, 0));
                Add(new GenericBuyInfo("Ringmail Legs", typeof(RingmailLegs), RingmailLegs.GetSBPurchaseValue(), 25, 0x13F0, 0));

                Add(new GenericBuyInfo("Chainmail Coif", typeof(ChainmailCoif), ChainmailCoif.GetSBPurchaseValue(), 25, 0x13BB, 0));
                Add(new GenericBuyInfo("Chainmail Gorget", typeof(ChainmailGorget), ChainmailGorget.GetSBPurchaseValue(), 25, 5063, 2500));
                Add(new GenericBuyInfo("Chainmail Arms", typeof(ChainmailArms), ChainmailArms.GetSBPurchaseValue(), 25, 5103, 2500));
                Add(new GenericBuyInfo("Chainmail Gloves", typeof(ChainmailGloves), ChainmailGloves.GetSBPurchaseValue(), 25, 5106, 2500));
                Add(new GenericBuyInfo("Chainmail Chest", typeof(ChainmailChest), ChainmailChest.GetSBPurchaseValue(), 25, 0x13BF, 0));
                Add(new GenericBuyInfo("Chainmail Legs", typeof(ChainmailLegs), ChainmailLegs.GetSBPurchaseValue(), 25, 0x13BE, 0));

                Add(new GenericBuyInfo("Platemail Helm", typeof(PlateHelm), PlateHelm.GetSBPurchaseValue(), 25, 0x1412, 0));
                Add(new GenericBuyInfo("Platemail Gorget", typeof(PlateGorget), PlateGorget.GetSBPurchaseValue(), 25, 0x1413, 0));
                Add(new GenericBuyInfo("Platemail Arms", typeof(PlateArms), PlateArms.GetSBPurchaseValue(), 25, 0x1410, 0));
                Add(new GenericBuyInfo("Platemail Gloves", typeof(PlateGloves), PlateGloves.GetSBPurchaseValue(), 25, 0x1414, 0));
                Add(new GenericBuyInfo("Platemail PlateChest", typeof(PlateChest), PlateChest.GetSBPurchaseValue(), 25, 0x1415, 0));
                Add(new GenericBuyInfo("Female Plate Chest", typeof(FemalePlateChest), FemalePlateChest.GetSBPurchaseValue(), 25, 7173, 0));
                Add(new GenericBuyInfo("Platemail Legs", typeof(PlateLegs), PlateLegs.GetSBPurchaseValue(), 25, 0x1411, 0));

                Add(new GenericBuyInfo("Bascinet", typeof(Bascinet), Bascinet.GetSBPurchaseValue(), 25, 5132, 0));
                Add(new GenericBuyInfo("Close Helm", typeof(CloseHelm), CloseHelm.GetSBPurchaseValue(), 25, 5129, 0));
                Add(new GenericBuyInfo("Norse Helm", typeof(NorseHelm), NorseHelm.GetSBPurchaseValue(), 25, 5135, 0));

                Add(new GenericBuyInfo("Buckler", typeof(Buckler), Buckler.GetSBPurchaseValue(), 25, 0x1B73, 0));
                Add(new GenericBuyInfo("Metal Shield", typeof(MetalShield), MetalShield.GetSBPurchaseValue(), 25, 0x1B7B, 0));
                Add(new GenericBuyInfo("Bronze Shield", typeof(BronzeShield), BronzeShield.GetSBPurchaseValue(), 25, 0x1B72, 0));
                Add(new GenericBuyInfo("Metal Kite Shield", typeof(MetalKiteShield), MetalKiteShield.GetSBPurchaseValue(), 25, 0x1B74, 0));
                Add(new GenericBuyInfo("Heater Shield", typeof(HeaterShield), HeaterShield.GetSBPurchaseValue(), 25, 0x1B76, 0));

                //Weapons
                Add(new GenericBuyInfo("Dagger", typeof(Dagger), Dagger.GetSBPurchaseValue(), 25, 0xF52, 0));
                Add(new GenericBuyInfo("Kryss", typeof(Kryss), Kryss.GetSBPurchaseValue(), 25, 0x1401, 0));
                Add(new GenericBuyInfo("War Fork", typeof(WarFork), WarFork.GetSBPurchaseValue(), 25, 0x1405, 0));
                Add(new GenericBuyInfo("Short Spear", typeof(ShortSpear), ShortSpear.GetSBPurchaseValue(), 25, 0x1403, 0));
                Add(new GenericBuyInfo("Pitchfork", typeof(Pitchfork), Pitchfork.GetSBPurchaseValue(), 25, 0xE87, 0));
                Add(new GenericBuyInfo("Spear", typeof(Spear), Spear.GetSBPurchaseValue(), 25, 0xF62, 0));

                Add(new GenericBuyInfo("Hammer Pick", typeof(HammerPick), HammerPick.GetSBPurchaseValue(), 25, 0x143D, 0));
                Add(new GenericBuyInfo("War Axe", typeof(WarAxe), WarAxe.GetSBPurchaseValue(), 25, 0x13B0, 0));
                Add(new GenericBuyInfo("Mace", typeof(Mace), Mace.GetSBPurchaseValue(), 25, 0xF5C, 0));
                Add(new GenericBuyInfo("Maul", typeof(Maul), Maul.GetSBPurchaseValue(), 25, 0x143B, 0));
                Add(new GenericBuyInfo("WarHammer", typeof(WarHammer), WarHammer.GetSBPurchaseValue(), 25, 0x1439, 0));
                Add(new GenericBuyInfo("War Mace", typeof(WarMace), WarMace.GetSBPurchaseValue(), 25, 0x1407, 0));

                Add(new GenericBuyInfo("Butcher Knife", typeof(ButcherKnife), ButcherKnife.GetSBPurchaseValue(), 25, 0x13F6, 0));
                Add(new GenericBuyInfo("Skinning Knife", typeof(SkinningKnife), SkinningKnife.GetSBPurchaseValue(), 25, 0xEC4, 0));
                Add(new GenericBuyInfo("Cleaver", typeof(Cleaver), Cleaver.GetSBPurchaseValue(), 25, 0xEC3, 0));
                Add(new GenericBuyInfo("Cutlass", typeof(Cutlass), Cutlass.GetSBPurchaseValue(), 25, 0x1441, 0));
                Add(new GenericBuyInfo("Katana", typeof(Katana), Katana.GetSBPurchaseValue(), 25, 0x13FF, 0));
                Add(new GenericBuyInfo("Scimitar", typeof(Scimitar), Scimitar.GetSBPurchaseValue(), 25, 0x13B6, 0));
                Add(new GenericBuyInfo("Broadsword", typeof(Broadsword), Broadsword.GetSBPurchaseValue(), 25, 0xF5E, 0));
                Add(new GenericBuyInfo("Longsword", typeof(Longsword), Longsword.GetSBPurchaseValue(), 25, 0xF61, 0));
                Add(new GenericBuyInfo("Viking Sword", typeof(VikingSword), VikingSword.GetSBPurchaseValue(), 25, 0x13B9, 0));
                Add(new GenericBuyInfo("Axe", typeof(Axe), Axe.GetSBPurchaseValue(), 25, 0xF49, 0));
                Add(new GenericBuyInfo("Battle Axe", typeof(BattleAxe), BattleAxe.GetSBPurchaseValue(), 25, 0xF47, 0));
                Add(new GenericBuyInfo("Double Axe", typeof(DoubleAxe), DoubleAxe.GetSBPurchaseValue(), 25, 0xF4B, 0));
                Add(new GenericBuyInfo("Executioner's Axe", typeof(ExecutionersAxe), ExecutionersAxe.GetSBPurchaseValue(), 25, 0xF45, 0));
                Add(new GenericBuyInfo("Large Battle Axe", typeof(LargeBattleAxe), LargeBattleAxe.GetSBPurchaseValue(), 25, 0x13FB, 0));
                Add(new GenericBuyInfo("Two-Handed Axe", typeof(TwoHandedAxe), TwoHandedAxe.GetSBPurchaseValue(), 25, 0x1443, 0));
                Add(new GenericBuyInfo("Bardiche", typeof(Bardiche), Bardiche.GetSBPurchaseValue(), 25, 0xF4D, 0));
                Add(new GenericBuyInfo("Halberd", typeof(Halberd), Halberd.GetSBPurchaseValue(), 25, 0x143E, 0));
            }
Exemplo n.º 11
0
            public InternalSellInfo()
            {
                //Tools
                Add(typeof(Tongs), Tongs.GetSBSellValue());
                Add(typeof(SmithHammer), SmithHammer.GetSBSellValue());

                //Armor
                Add(typeof(RingmailHelm), RingmailHelm.GetSBSellValue());
                Add(typeof(RingmailGorget), RingmailGorget.GetSBSellValue());
                Add(typeof(RingmailArms), RingmailArms.GetSBSellValue());
                Add(typeof(RingmailGloves), RingmailGloves.GetSBSellValue());
                Add(typeof(RingmailChest), RingmailChest.GetSBSellValue());
                Add(typeof(RingmailLegs), RingmailLegs.GetSBSellValue());

                Add(typeof(ChainmailCoif), ChainmailCoif.GetSBSellValue());
                Add(typeof(ChainmailGorget), ChainmailGorget.GetSBSellValue());
                Add(typeof(ChainmailArms), ChainmailArms.GetSBSellValue());
                Add(typeof(ChainmailGloves), ChainmailGloves.GetSBSellValue());
                Add(typeof(ChainmailChest), ChainmailChest.GetSBSellValue());
                Add(typeof(ChainmailLegs), ChainmailLegs.GetSBSellValue());

                Add(typeof(PlateHelm), PlateHelm.GetSBSellValue());
                Add(typeof(PlateGorget), PlateGorget.GetSBSellValue());
                Add(typeof(PlateArms), PlateArms.GetSBSellValue());
                Add(typeof(PlateGloves), PlateGloves.GetSBSellValue());
                Add(typeof(PlateChest), PlateChest.GetSBSellValue());
                Add(typeof(FemalePlateChest), FemalePlateChest.GetSBSellValue());
                Add(typeof(PlateLegs), PlateLegs.GetSBSellValue());

                Add(typeof(Bascinet), Bascinet.GetSBSellValue());
                Add(typeof(CloseHelm), CloseHelm.GetSBSellValue());
                Add(typeof(NorseHelm), NorseHelm.GetSBSellValue());

                Add(typeof(Buckler), Buckler.GetSBSellValue());
                Add(typeof(MetalShield), MetalShield.GetSBSellValue());
                Add(typeof(BronzeShield), BronzeShield.GetSBSellValue());
                Add(typeof(MetalKiteShield), MetalKiteShield.GetSBSellValue());
                Add(typeof(HeaterShield), HeaterShield.GetSBSellValue());

                //Weapons
                Add(typeof(Dagger), Dagger.GetSBSellValue());
                Add(typeof(Kryss), Kryss.GetSBSellValue());
                Add(typeof(WarFork), WarFork.GetSBSellValue());
                Add(typeof(ShortSpear), ShortSpear.GetSBSellValue());
                Add(typeof(Pitchfork), Pitchfork.GetSBSellValue());
                Add(typeof(Spear), Spear.GetSBSellValue());

                Add(typeof(HammerPick), HammerPick.GetSBSellValue());
                Add(typeof(WarAxe), WarAxe.GetSBSellValue());
                Add(typeof(Mace), Mace.GetSBSellValue());
                Add(typeof(Maul), Maul.GetSBSellValue());
                Add(typeof(WarHammer), WarHammer.GetSBSellValue());
                Add(typeof(WarMace), WarMace.GetSBSellValue());

                Add(typeof(ButcherKnife), ButcherKnife.GetSBSellValue());
                Add(typeof(SkinningKnife), SkinningKnife.GetSBSellValue());
                Add(typeof(Cleaver), Cleaver.GetSBSellValue());
                Add(typeof(Cutlass), Cutlass.GetSBSellValue());
                Add(typeof(Katana), Katana.GetSBSellValue());
                Add(typeof(Scimitar), Scimitar.GetSBSellValue());
                Add(typeof(Broadsword), Broadsword.GetSBSellValue());
                Add(typeof(Longsword), Longsword.GetSBSellValue());
                Add(typeof(VikingSword), VikingSword.GetSBSellValue());
                Add(typeof(Axe), Axe.GetSBSellValue());
                Add(typeof(BattleAxe), BattleAxe.GetSBSellValue());
                Add(typeof(DoubleAxe), DoubleAxe.GetSBSellValue());
                Add(typeof(ExecutionersAxe), ExecutionersAxe.GetSBSellValue());
                Add(typeof(LargeBattleAxe), LargeBattleAxe.GetSBSellValue());
                Add(typeof(TwoHandedAxe), TwoHandedAxe.GetSBSellValue());
                Add(typeof(Bardiche), Bardiche.GetSBSellValue());
                Add(typeof(Halberd), Halberd.GetSBSellValue());
            }
Exemplo n.º 12
0
        /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        public static Item CreateMetalArmor(string gender)
        {
            Item item = null;

            int nType = Utility.RandomMinMax(0, 26);

            switch (nType)
            {
            case 0:         item = new ChainCoif();                 item.Name = "chainmail coif";           break;

            case 1:         item = new ChainChest();                item.Name = "chainmail tunic";          break;

            case 2:         item = new ChainLegs();                 item.Name = "chainmail leggings";       break;

            case 3:         item = new RingmailChest();             item.Name = "ringmail tunic";           break;

            case 4:         item = new RingmailLegs();              item.Name = "ringmail leggings";        break;

            case 5:         item = new RingmailArms();              item.Name = "ringmail sleeves";         break;

            case 6:         item = new RingmailGloves();    item.Name = "ringmail gloves";          break;

            case 7:         item = new PlateGorget();               item.Name = "platemail gorget";         break;

            case 8:         item = new PlateLegs();                 item.Name = "platemail leggings";       break;

            case 9:         item = new PlateArms();                 item.Name = "platemail arms";           break;

            case 10:        item = new PlateGloves();               item.Name = "platemail gauntlets";      break;

            case 11:        item = new PlateChest();                item.Name = "platemail tunic";
                if (gender == "female" || Utility.RandomMinMax(0, 3) == 1)
                {
                    item = new FemalePlateChest(); item.Name = "platemail tunic";
                }
                break;

            case 12:
            case 13:
                switch (Utility.RandomMinMax(0, 4))
                {
                case 0:         item = new PlateHelm();         item.Name = "platemail helm";   break;

                case 1:         item = new CloseHelm();         item.Name = "close helm";               break;

                case 2:         item = new Helmet();            item.Name = "helmet";                   break;

                case 3:         item = new NorseHelm();         item.Name = "norse helm";               break;

                case 4:         item = new Bascinet();          item.Name = "bascinet";                 break;
                }
                break;

            case 14: item = new ChainHatsuburi();                   item.Name = "chainmail hatsuburi";      break;

            case 15: item = new PlateHatsuburi();                   item.Name = "platemail hatsuburi";      break;

            case 16: item = new LightPlateJingasa();                item.Name = "platemail jingasa";        break;

            case 17: item = new HeavyPlateJingasa();                item.Name = "platemail jingasa";        break;

            case 18: item = new SmallPlateJingasa();                item.Name = "platemail jingasa";        break;

            case 19: item = new DecorativePlateKabuto();    item.Name = "platemail kabuto";         break;

            case 20: item = new PlateBattleKabuto();                item.Name = "platemail kabuto";         break;

            case 21: item = new StandardPlateKabuto();              item.Name = "platemail kabuto";         break;

            case 22: item = new PlateDo();                                  item.Name = "platemail do";                     break;

            case 23: item = new PlateHiroSode();                    item.Name = "platemail hiro sade";      break;

            case 24: item = new PlateSuneate();                             item.Name = "platemail suneate";        break;

            case 25: item = new PlateHaidate();                             item.Name = "platemail haidate";        break;

            case 26: item = new ChainHatsuburi();                   item.Name = "chainmail hatsuburi";      break;
            }

            return(item);
        }
Exemplo n.º 13
0
        public Paladin() : base(AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.36, 0.56)
        {
            Female = Utility.RandomBool();
            Body   = Female ? 401 : 400;
            Title  = "the paladin";
            Name   = NameList.RandomName(Female ? "female" : "male");
            Hue    = Utility.RandomSkinHue();
            SetStr(64, 92);
            SetDex(46, 88);
            SetInt(37, 49);
            Karma = Utility.RandomMinMax(33, -25);


            SetSkill(SkillName.Tactics, 55, 77.5);
            SetSkill(SkillName.MagicResist, 55, 77.5);
            SetSkill(SkillName.Parry, 55, 77.5);
            SetSkill(SkillName.Swords, 55, 77.5);
            SetSkill(SkillName.Macing, 55, 77.5);
            SetSkill(SkillName.Fencing, 55, 77.5);
            SetSkill(SkillName.Wrestling, 55, 77.5);
            SetSkill(SkillName.ArmsLore, 52.5, 75);


            Item item = null;

            if (!Female)
            {
                int hairHue = Utility.RandomHairHue();
                Utility.AssignRandomHair(this, hairHue);
                Utility.AssignRandomFacialHair(this, hairHue);
                item = new PlateChest();
                AddItem(item);
                item = new PlateLegs();
                AddItem(item);
                item = new PlateArms();
                AddItem(item);
                item = new PlateGloves();
                AddItem(item);
                item = new PlateGorget();
                AddItem(item);
                switch (Utility.Random(5))
                {
                case 0: item = new PlateHelm(); break;

                case 1: item = new Helmet(); break;

                case 2: item = new CloseHelm(); break;

                case 3: item = new Bascinet(); break;

                case 4:
                default: item = new NorseHelm(); break;
                }
                AddItem(item);
                item     = new Tunic();
                item.Hue = Utility.RandomNondyedHue();
                AddItem(item);
                item     = new HeaterShield();
                item.Hue = Utility.RandomNondyedHue();
                AddItem(item);
                item = new VikingSword();
                AddItem(item);
                item = Utility.RandomBool() ? (Item) new Boots() : (Item) new ThighBoots();
                AddItem(item);
                PackGold(15, 100);
            }
            else
            {
                int hairHue = Utility.RandomHairHue();
                Utility.AssignRandomHair(this, hairHue);
                item = new PlateChest();
                AddItem(item);
                item = new PlateLegs();
                AddItem(item);
                item = new PlateArms();
                AddItem(item);
                item = new PlateGloves();
                AddItem(item);
                item = new PlateGorget();
                AddItem(item);
                switch (Utility.Random(5))
                {
                case 0: item = new PlateHelm(); break;

                case 1: item = new Helmet(); break;

                case 2: item = new CloseHelm(); break;

                case 3: item = new Bascinet(); break;

                case 4:
                default: item = new NorseHelm(); break;
                }
                AddItem(item);
                item     = new Tunic();
                item.Hue = Utility.RandomNondyedHue();
                AddItem(item);
                item     = new HeaterShield();
                item.Hue = Utility.RandomNondyedHue();
                AddItem(item);
                item = new VikingSword();
                AddItem(item);
                item = Utility.RandomBool() ? (Item) new Boots() : (Item) new ThighBoots();
                AddItem(item);
                PackGold(15, 100);
            }
        }
        public BlizzardKnight() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name        = "a blizzard knight";
            Body        = 0x190;
            BaseSoundID = 263;

            SetStr(326, 355);
            SetDex(166, 185);
            SetInt(71, 95);

            SetHits(438, 511);

            SetDamage(12, 18);

            SetDamageType(ResistanceType.Physical, 30);
            SetDamageType(ResistanceType.Cold, 70);

            SetResistance(ResistanceType.Physical, 50);
            SetResistance(ResistanceType.Fire, 0);
            SetResistance(ResistanceType.Cold, 100);
            SetResistance(ResistanceType.Poison, 25);
            SetResistance(ResistanceType.Energy, 25);

            SetSkill(SkillName.Anatomy, 35.0, 55.5);
            SetSkill(SkillName.Swords, 70.2, 80.0);
            SetSkill(SkillName.Tactics, 80.1, 100.0);
            SetSkill(SkillName.Wrestling, 80.1, 100.0);

            Fame  = 18000;
            Karma = -18000;

            AddItem(new LightSource());

            Lance weapon = new Lance();

            weapon.Hue     = 1152;
            weapon.Movable = false;
            AddItem(weapon);

            BronzeShield shield = new BronzeShield();

            shield.Hue     = 1152;
            shield.Movable = false;
            AddItem(shield);

            CloseHelm helm = new CloseHelm();

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

            PlateArms arms = new PlateArms();

            arms.Hue     = 1152;
            arms.Movable = false;
            AddItem(arms);

            PlateGloves gloves = new PlateGloves();

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

            PlateChest tunic = new PlateChest();

            tunic.Hue     = 1152;
            tunic.Movable = false;
            AddItem(tunic);

            PlateLegs legs = new PlateLegs();

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

            new IceBeetle().Rider = this;

            Container pack = new Backpack();

            pack.DropItem(new Gold(Utility.RandomMinMax(13, 28)));
            pack.DropItem(Loot.RandomArmor());
            pack.DropItem(Loot.RandomArmor());

            if (Utility.RandomDouble() < 0.05)
            {
                BaseArmor armor = Loot.RandomArmor(true);
                BaseRunicTool.ApplyAttributesTo(armor, 5, 15, 30);

                pack.DropItem(armor);
            }

            Container bag = new Bag();

            bag.DropItem(new Gold(Utility.RandomMinMax(35, 75)));
            bag.DropItem(new TurquoiseCustom(Utility.RandomMinMax(2, 4)));
            bag.DropItem(new DiamondDust(Utility.RandomMinMax(9, 18)));
            bag.DropItem(Loot.RandomPotion());
            bag.DropItem(Loot.RandomGem());
            bag.DropItem(Loot.RandomGem());

            if (Utility.RandomDouble() < 0.05)
            {
                BaseArmor armor = Loot.RandomArmor(true);
                BaseRunicTool.ApplyAttributesTo(armor, 5, 15, 20);

                armor.Attributes.WeaponDamage = 5;

                bag.DropItem(armor);
            }

            if (Utility.RandomDouble() < 0.05)
            {
                BaseJewel jewel = new GoldRing();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(jewel, 4, 15, 20);
                }

                jewel.Hue = 1152;
                jewel.Attributes.WeaponDamage = 7;
                jewel.Resistances.Cold        = 10;

                bag.DropItem(jewel);
            }

            pack.DropItem(bag);

            PackItem(pack);
        }
Exemplo n.º 15
0
        public Spartan(Mobile owner) : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            m_Owner      = owner;
            m_ExpireTime = DateTime.UtcNow + TimeSpan.FromMinutes(1.0);

            Name = "Spartan";
            Body = 400;

            SetStr(2010, 3000);
            SetDex(710, 900);
            SetInt(2000, 2500);

            SetHits(1210, 1800);

            SetDamage(20, 30);



            SetSkill(SkillName.Anatomy, 100, 100);
            SetSkill(SkillName.EvalInt, 100, 100.0);
            SetSkill(SkillName.Magery, 100, 100.0);
            SetSkill(SkillName.Meditation, 100, 100.0);
            SetSkill(SkillName.MagicResist, 140.1, 150.0);
            SetSkill(SkillName.Tactics, 100, 100);
            SetSkill(SkillName.Wrestling, 100, 100);

            Spear weapon = new Spear();

            weapon.Hue     = 0x835;
            weapon.Movable = false;
            AddItem(weapon);

            CloseHelm helm = new CloseHelm();

            helm.Hue = 0x835;
            AddItem(helm);

            StuddedArms arms = new StuddedArms();

            arms.Hue = 0x835;
            AddItem(arms);

            StuddedGloves gloves = new StuddedGloves();

            gloves.Hue = 0x835;
            AddItem(gloves);

            StuddedGorget gorget = new StuddedGorget();

            gorget.Hue = 0x835;
            AddItem(gorget);

            StuddedChest tunic = new StuddedChest();

            tunic.Hue = 0x835;
            AddItem(tunic);

            StuddedLegs legs = new StuddedLegs();

            legs.Hue = 0x835;
            AddItem(legs);

            AddItem(new Boots());

            Fame  = 0;
            Karma = 0;

            VirtualArmor = 50;
        }