public override void GenerateLoot()
        {
            if (Utility.RandomDouble() < 0.08)               //8% chance to drop only one armor at a time.
            {
                BaseArmor armor = Loot.RandomArmor(true);
                switch (Utility.Random(6))
                {
                case 0: armor = new LeatherChest(); break;

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

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

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

                case 4: armor = new LeatherGloves(); break;

                case 5: armor = new LeatherGorget(); break;
                }

                armor.Attributes.LowerManaCost = 1;
                armor.Attributes.LowerRegCost  = 1;

                PackItem(armor);
            }
        }
            public InternalBuyInfo()
            {
                Add(new GenericBuyInfo("Skinning Knife", typeof(SkinningKnife), SkinningKnife.GetSBPurchaseValue(), 50, 0xEC4, 0));

                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("Shoes", typeof(Shoes), Shoes.GetSBPurchaseValue(), 25, 0x170F, 0));
                Add(new GenericBuyInfo("Sandals", typeof(Sandals), Sandals.GetSBPurchaseValue(), 25, 0x170D, 0));
                Add(new GenericBuyInfo("Boots", typeof(Boots), Boots.GetSBPurchaseValue(), 25, 0x170B, 0));
                Add(new GenericBuyInfo("Thigh Boots", typeof(ThighBoots), ThighBoots.GetSBPurchaseValue(), 25, 0x1711, 0));
            }
            public InternalSellInfo()
            {
                Add(typeof(Hide), Hide.GetSBSellValue());

                Add(typeof(SkinningKnife), SkinningKnife.GetSBSellValue());

                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(Shoes), Shoes.GetSBSellValue());
                Add(typeof(Sandals), Sandals.GetSBSellValue());
                Add(typeof(Boots), Boots.GetSBSellValue());
                Add(typeof(ThighBoots), ThighBoots.GetSBSellValue());
            }
        /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        public static Item CreateWoodenArmor()
        {
            Item item = null;

            switch (Utility.RandomMinMax(0, 7))
            {
            case 0:         item = new LeatherArms();               item.ItemID = 0x1410;   item.Name = "arms";                     break;

            case 1:         item = new LeatherChest();              item.ItemID = 0x1415;   item.Name = "tunic";            break;

            case 2:         item = new LeatherGloves();             item.ItemID = 0x1414;   item.Name = "gauntlets";        break;

            case 3:         item = new LeatherGorget();             item.ItemID = 0x1413;   item.Name = "gorget";           break;

            case 4:         item = new LeatherLegs();               item.ItemID = 0x1411;   item.Name = "leggings";         break;

            case 5:         item = new LeatherCap();                item.ItemID = 0x1412;   item.Name = "helm";                     break;

            case 6:         item = new WoodenKiteShield();                                                  item.Name = "kite shield";      break;

            case 7:         item = new WoodenShield();                                                              item.Name = "shield";           break;
            }
            ((BaseArmor)item).Resource = CraftResource.RegularWood;

            return(item);
        }
            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());
            }
        /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        public static Item CreateLeatherArmor(string gender)
        {
            Item item  = null;
            int  nType = Utility.RandomMinMax(0, 12);

            switch (nType)
            {
            case 0:         item = new LeatherArms();                       item.Name = "leather sleeves";          break;

            case 1:         item = new LeatherChest();                      item.Name = "leather tunic";
                if (gender == "female" || Utility.RandomMinMax(0, 3) == 1)
                {
                    item = new FemaleLeatherChest();              item.Name = "leather armor";
                }
                else if (gender == "female" || Utility.RandomMinMax(0, 3) == 1)
                {
                    item = new LeatherBustierArms();              item.Name = "leather bustier";
                }
                break;

            case 2:         item = new LeatherGloves();                     item.Name = "leather gloves";           break;

            case 3:         item = new LeatherGorget();                     item.Name = "leather gorget";           break;

            case 4: item = new LeatherLegs();                               item.Name = "leather leggings";
                if (gender == "female" || Utility.RandomMinMax(0, 3) == 1)
                {
                    item = new LeatherSkirt();                            item.Name = "leather skirt";
                }
                if (Utility.RandomMinMax(0, 5) == 1)
                {
                    item = new LeatherShorts();                           item.Name = "leather shorts";
                }
                break;

            case 5:         item = new LeatherCap();                        item.Name = "leather cap";                      break;

            case 6:         item = new LeatherJingasa();            item.Name = "leather jingasa";          break;

            case 7:         item = new LeatherDo();                         item.Name = "leather do";                       break;

            case 8:         item = new LeatherHiroSode();           item.Name = "leather hiro sode";        break;

            case 9:         item = new LeatherSuneate();            item.Name = "leather suneate";          break;

            case 10:        item = new LeatherHaidate();            item.Name = "leather haidate";          break;

            case 11:        item = new LeatherNinjaPants();         item.Name = "leather ninja pants";      break;

            case 12:        item = new LeatherNinjaJacket();        item.Name = "leather ninja jacket";     break;
            }

            return(item);
        }
            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));
            }
Beispiel #8
0
        public Sparrow()
        {
            Name     = "Captian Jack Sparrow";
            Title    = "The Pirate";
            Body     = 400;
            CantWalk = true;
            Hue      = Utility.RandomSkinHue();

            LeatherArms LeatherArms = new LeatherArms();

            LeatherArms.Hue = 1157;
            AddItem(LeatherArms);

            LeatherCap LeatherCap = new LeatherCap();

            LeatherCap.Hue = 1157;
            AddItem(LeatherCap);

            LeatherGloves LeatherGloves = new LeatherGloves();

            LeatherGloves.Hue = 1157;
            AddItem(LeatherGloves);

            LeatherLegs LeatherLegs = new LeatherLegs();

            LeatherLegs.Hue = 1157;
            AddItem(LeatherLegs);

            LeatherChest LeatherChest = new LeatherChest();

            LeatherChest.Hue = 1157;
            AddItem(LeatherChest);

            LeatherGorget LeatherGorget = new LeatherGorget();

            LeatherGorget.Hue = 1157;
            AddItem(LeatherGorget);



            int hairHue = 1153;

            switch (Utility.Random(1))
            {
            case 0: AddItem(new PonyTail(hairHue)); break;

            case 1: AddItem(new Goatee(hairHue)); break;
            }

            Blessed = true;
        }
        /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        public static Item CreateStuddedArmor(string gender)
        {
            Item item  = null;
            int  nType = Utility.RandomMinMax(0, 10);

            switch (nType)
            {
            case 0:         item = new LeatherCap();                        item.Name = "leather cap";                      break;

            case 1:         item = new StuddedArms();                       item.Name = "studded sleeves";          break;

            case 2:         item = new StuddedGloves();                     item.Name = "studded gloves";           break;

            case 3:         item = new StuddedGorget();                     item.Name = "studded gorget";           break;

            case 4:         item = new StuddedLegs();                       item.Name = "studded leggings";         break;

            case 5:         item = new StuddedChest();                      item.Name = "studded tunic";
                if (gender == "female" || Utility.RandomMinMax(0, 3) == 1)
                {
                    item = new FemaleStuddedChest();      item.Name = "studded armor";
                }
                else if (gender == "female" || Utility.RandomMinMax(0, 3) == 1)
                {
                    item = new StuddedBustierArms();      item.Name = "studded bustier";
                }
                break;

            case 6:         item = new StuddedMempo();                      item.Name = "studded mempo";            break;

            case 7:         item = new StuddedDo();                         item.Name = "studded do";                       break;

            case 8:         item = new StuddedHiroSode();           item.Name = "studded hiro sode";        break;

            case 9:         item = new StuddedSuneate();            item.Name = "studded suneate";          break;

            case 10:        item = new StuddedHaidate();            item.Name = "studded haidate";          break;
            }

            return(item);
        }
Beispiel #10
0
        public NewArcherGuard()
            : base(AIType.AI_Archer)
        {
            SetStr(60, 120);
            SetDex(100, 150);
            SetInt(26, 50);

            SetHits(80, 110);

            SetMana(40);

            if (Utility.RandomBool())
            {
                new Horse().Rider = this;
            }

            SetResistance(ResistanceType.Physical, 20, 20);
            SetResistance(ResistanceType.Fire, 20, 25);
            SetResistance(ResistanceType.Cold, 20, 20);
            SetResistance(ResistanceType.Poison, 20, 30);

            SetSkill(SkillName.MagicResist, 50.0, 100.0);
            SetSkill(SkillName.Tactics, 80.0, 120.0);
            SetSkill(SkillName.Anatomy, 80.0, 120.0);
            SetSkill(SkillName.Healing, 50.0, 65.0);
            SetSkill(SkillName.Archery, 80.0, 120.0);
            SetSkill(SkillName.Fencing, 80.0, 120.0);

            Fame  = 1000;
            Karma = 10000;

            VirtualArmor = 16;

            AddItem(new Boots(0x2A));
            AddItem(new Cloak(0x2A));
            PackItem(new Dagger());
            StuddedChest chest = new StuddedChest();

            AddItem(chest);
            StuddedLegs legs = new StuddedLegs();

            AddItem(legs);
            LeatherCap head = new LeatherCap();

            AddItem(head);
            StuddedGloves gloves = new StuddedGloves();

            AddItem(gloves);
            StuddedGorget gorget = new StuddedGorget();

            AddItem(gorget);
            StuddedArms arms = new StuddedArms();

            AddItem(arms);
            AddItem(new Bandage(30));

            switch (Utility.Random(4))
            {
            case 0: AddItem(new Bow());
                AddItem(new Arrow(50));
                SetDamage(5, 15);
                currentweapon = 1;
                break;

            case 1: AddItem(new CompositeBow());
                AddItem(new Arrow(50));
                SetDamage(5, 20);
                currentweapon = 2;
                break;

            case 2: AddItem(new Crossbow());
                AddItem(new Bolt(50));
                SetDamage(15, 25);
                currentweapon = 3;
                break;

            case 3: AddItem(new HeavyCrossbow());
                AddItem(new Bolt(50));
                SetDamage(18, 30);
                currentweapon = 4;
                break;
            }
        }
Beispiel #11
0
        public Cracker()
            : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name  = NameList.RandomName("male");
            Title = "The vicious murderer";
            Body  = 0x190;
            Kills = 5;
            Hue   = Utility.RandomSkinHue();

            SetStr(276, 350);
            SetDex(150, 200);
            SetInt(126, 150);

            SetHits(350, 400);

            SetDamage(11, 14);

            SetResistance(ResistanceType.Physical, 5);
            SetDamageType(ResistanceType.Physical, 100);

            SetSkill(SkillName.Tactics, 80.1, 100.0);
            SetSkill(SkillName.MagicResist, 100.1, 110.0);
            SetSkill(SkillName.Anatomy, 80.1, 100.0);
            SetSkill(SkillName.Healing, 80.1, 100.0);
            SetSkill(SkillName.Fencing, 85.1, 100);

            Fame  = 9000;
            Karma = -15000;

            PackItem(new Apple(Utility.RandomMinMax(3, 5)));
            PackItem(new Bandage(Utility.RandomMinMax(15, 55)));

            CrackerDagger chd = new CrackerDagger();

            chd.Crafter = this;
            chd.Name    = this.Name + "'s Dagger";
            CrackerBuckler chb = new CrackerBuckler();

            chb.Crafter = this;
            chb.Name    = this.Name + "'s Buckler";
            if (0.5 > Utility.RandomDouble())
            {
                AddItem(chd);
            }
            else
            {
                AddItem(new Dagger());
            }

            if (0.10 > Utility.RandomDouble())
            {
                AddItem(chb);
            }
            else
            {
                AddItem(new Buckler());
            }

            //if (0.15 > Utility.RandomDouble())
            //	 AddItem(new RandomAddonTicket());

            //m_Timer = new InternalTimer( this );
            //m_Timer.Start();

            //CraftResource res = CraftResource.None;;
            //switch (Utility.Random(4))
            //{
            //	case 0: res = CraftResource.RegularLeather; break;
            //	case 1: res = CraftResource.SpinedLeather; break;
            //	case 2: res = CraftResource.HornedLeather; break;
            //	case 3: res = CraftResource.BarbedLeather; break;
            //}
            //if (0.05 > Utility.RandomDouble())
            //    AddItem(new RunicSewingKit(res, Utility.RandomMinMax(1, 5)));
            //else
            //   AddItem(new SewingKit());

            LeatherChest Tunic = new LeatherChest();

            Tunic.ItemID = 9859;
            Tunic.Name   = "Leather Hood Robe";
            Tunic.Layer  = Layer.OuterTorso;
            //Tunic.Resource = res;
            Tunic.Movable = false;
            Tunic.Quality = ArmorQuality.Exceptional;
            Tunic.Crafter = this;
            AddItem(Tunic);

            LeatherLegs Legs = new LeatherLegs();

            //Legs.Resource = res;
            Legs.Movable = false;
            AddItem(Legs);

            Boots boot = new Boots();

            //boot.Resource = res;
            boot.Movable = false;
            AddItem(boot);

            LeatherArms Arms = new LeatherArms();

            //Arms.Resource = res;
            Arms.Movable = false;
            AddItem(Arms);

            LeatherGloves Gloves = new LeatherGloves();

            //Gloves.Resource = res;
            Gloves.Movable = false;
            Gloves.Quality = ArmorQuality.Exceptional;
            Gloves.Crafter = this;
            AddItem(Gloves);

            LeatherCap Helm = new LeatherCap();

            //Helm.Resource = res;
            Helm.Movable = false;
            Helm.Quality = ArmorQuality.Exceptional;
            Helm.Crafter = this;
            AddItem(Helm);

            Head hd = new Head();

            hd.Name = "the head of " + NameList.RandomName("male");
            AddItem(hd);

            //EtherealOstard mt = new EtherealOstard();
            //mt.Hue = Utility.RandomNeutralHue();
            //mt.Movable = false;
            //mt.Rider = this;
        }
Beispiel #12
0
        public Siegfried() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Body   = 400;
            Female = false;
            Hue    = 33779;
            Name   = "Siegfried";

            //Body = 149; // Uncomment these lines and input values
            //BaseSoundID = 0x4B0; // To use your own custom body and sound.
            SetStr(3000, 6000);
            SetDex(2000, 4000);
            SetInt(1000, 2000);
            SetHits(20000, 60000);
            SetDamage(20, 25);
            SetDamageType(ResistanceType.Cold, 10);
            SetDamageType(ResistanceType.Fire, 20);
            SetDamageType(ResistanceType.Energy, 30);
            SetDamageType(ResistanceType.Poison, 40);

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

            SetSkill(SkillName.Fencing, 10.0, 20.0);
            SetSkill(SkillName.Macing, 10.0, 20.0);
            SetSkill(SkillName.MagicResist, 10.0, 20.0);
            SetSkill(SkillName.Swords, 10.0, 20.0);
            SetSkill(SkillName.Tactics, 10.0, 20.0);
            SetSkill(SkillName.Wrestling, 10.0, 20.0);


            //m_Timer = new TeleportTimer( this );
            //m_Timer.Start();



            Fame         = 5000;
            Karma        = 10000;
            VirtualArmor = 15;

            PackGold(15120, 25130);


            LeatherChest chest = new LeatherChest();

            chest.Hue     = 598;
            chest.Movable = false;
            AddItem(chest);

            LeatherArms arms = new LeatherArms();

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

            LeatherGloves gloves = new LeatherGloves();

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

            LeatherGorget gorget = new LeatherGorget();

            gorget.Hue     = 598;
            gorget.Movable = false;
            AddItem(gorget);

            LeatherCap helm = new LeatherCap();

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

            LeatherLegs legs = new LeatherLegs();

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

            Item Shoes = new Shoes();

            Shoes.Movable = false;
            Shoes.Hue     = 598;
            AddItem(Shoes);

            Item Cloak = new Cloak();

            Cloak.Hue     = 598;
            Cloak.Movable = false;
            AddItem(Cloak);

            Item LockeDagger = new LockeDagger();

            LockeDagger.Hue     = 598;
            LockeDagger.Movable = false;
            AddItem(LockeDagger);
        }
Beispiel #13
0
        public void ChooseArmor(ArmorClass ac, CraftResource res, ArmorQuality qual)
        {
            BaseArmor tete   = null;
            BaseArmor gorget = null;
            BaseArmor bras   = null;
            BaseArmor mains  = null;
            BaseArmor torse  = null;
            BaseArmor jambes = null;

            switch (ac)
            {
            case ArmorClass.Cuir:
                tete   = new LeatherCap();
                gorget = new LeatherGorget();
                bras   = new LeatherArms();
                mains  = new LeatherGloves();
                torse  = new LeatherChest();
                jambes = new LeatherLegs();
                break;

            case ArmorClass.Cloute:
                tete   = new LeatherCap();
                gorget = new StuddedGorget();
                bras   = new StuddedArms();
                mains  = new StuddedGloves();
                torse  = new StuddedChest();
                jambes = new StuddedLegs();
                break;

            case ArmorClass.Os:
                tete   = new BoneHelm();
                gorget = new StuddedGorget();
                bras   = new BoneArms();
                mains  = new BoneGloves();
                torse  = new BoneChest();
                jambes = new BoneLegs();
                break;

            case ArmorClass.Plaque:
                tete   = new PlateHelm();
                gorget = new PlateGorget();
                bras   = new PlateArms();
                mains  = new PlateGloves();
                torse  = new PlateChest();
                jambes = new PlateLegs();
                break;

            case ArmorClass.PlaqueLourde:
                tete   = new ArmureDaedricHelm();
                gorget = new ArmureDaedricGorget();
                bras   = new ArmureDaedricGreaves();
                mains  = new ArmureDaedricGloves();
                torse  = new ArmureDaedricTunic();
                jambes = new ArmureDaedricLeggings();
                break;
            }

            if (tete != null)
            {
                tete.Resource = res;
                tete.Quality  = qual;
                AddItem(tete);
            }
            if (gorget != null)
            {
                gorget.Resource = res;
                gorget.Quality  = qual;
                AddItem(gorget);
            }
            if (bras != null)
            {
                bras.Resource = res;
                bras.Quality  = qual;
                AddItem(bras);
            }
            if (mains != null)
            {
                mains.Resource = res;
                mains.Quality  = qual;
                AddItem(mains);
            }
            if (torse != null)
            {
                torse.Resource = res;
                torse.Quality  = qual;
                AddItem(torse);
            }
            if (jambes != null)
            {
                jambes.Resource = res;
                jambes.Quality  = qual;
                AddItem(jambes);
            }
        }
Beispiel #14
0
        public PegLeg() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name = "Peg Leg";
            Body = 159;

            SetStr(60, 110);
            SetDex(60, 100);
            SetInt(60, 100);

            SetHits(200);

            SetDamage(5, 25);

            SetDamageType(ResistanceType.Physical, 50);
            SetDamageType(ResistanceType.Fire, 60);
            SetDamageType(ResistanceType.Energy, 10);

            SetResistance(ResistanceType.Physical, 30, 80);
            SetResistance(ResistanceType.Fire, 20, 100);
            SetResistance(ResistanceType.Cold, 10, 15);
            SetResistance(ResistanceType.Poison, 20);
            SetResistance(ResistanceType.Energy, 0, 20);

            SetSkill(SkillName.Anatomy, 120);
            SetSkill(SkillName.EvalInt, 90, 95.0);
            SetSkill(SkillName.Magery, 50.5, 100.0);
            SetSkill(SkillName.Meditation, 60);
            SetSkill(SkillName.MagicResist, 10.1, 50.0);
            SetSkill(SkillName.Tactics, 115, 125);
            SetSkill(SkillName.Swords, 115, 125);

            Fame  = 8000;
            Karma = -8000;

            Kills = 10;

            Hue = 1271;

            VirtualArmor = 50;

            LeatherArms LeatherArms = new LeatherArms();

            LeatherArms.Hue = 1175;
            AddItem(LeatherArms);

            LeatherCap LeatherCap = new LeatherCap();

            LeatherCap.Hue = 1157;
            AddItem(LeatherCap);

            LeatherGloves LeatherGloves = new LeatherGloves();

            LeatherGloves.Hue = 1175;
            AddItem(LeatherGloves);

            LeatherLegs LeatherLegs = new LeatherLegs();

            LeatherLegs.Hue = 1157;
            AddItem(LeatherLegs);

            LeatherChest LeatherChest = new LeatherChest();

            LeatherChest.Hue = 1175;
            AddItem(LeatherChest);

            LeatherGorget LeatherGorget = new LeatherGorget();

            LeatherGorget.Hue = 1157;
            AddItem(LeatherGorget);

            //AddItem( new SparrowBlade() );
            PackItem(new PegLeghook());
            PackItem(new PegLegHead());
        }