예제 #1
0
        public static void SetValue(BattleAxe.Test.ClassWithEnum obj, string propertyName, object value)
        {
            switch (propertyName) {
                case "ID": obj.ID = value is int ? (int)value : value != null ? Convert.ToInt32(value) : 0; break;
                case "Name": obj.Name = value is string ? (string)value : value != null ? Convert.ToString(value) : System.String.Empty; break;
                case "EnumTest": obj.EnumTest = value == null ? default(BattleAxe.Test.TestEnum) : (BattleAxe.Test.TestEnum)System.Enum.Parse(typeof(BattleAxe.Test.TestEnum), value.ToString()); break;

                default:
                    break;
            }
        }
    public void shopFilter(string filterType)
    {
        if (filterType == "AllItems")
        {
            GlassBow.SetActive(true);
            WolfBlade.SetActive(true);
            StoneBlade.SetActive(true);
            BattleAxe.SetActive(true);
            DarkBow.SetActive(true);

            KnightHelmet.SetActive(true);
            VikingHelmet.SetActive(true);
            ThiefArmor.SetActive(true);
            ThiefHood.SetActive(true);
            KnightArmor.SetActive(true);
            ThiefBoots.SetActive(true);
            CommonBoots.SetActive(true);
        }

        else if (filterType == "WeaponsOnly")
        {
            GlassBow.SetActive(true);
            WolfBlade.SetActive(true);
            StoneBlade.SetActive(true);
            BattleAxe.SetActive(true);
            DarkBow.SetActive(true);

            KnightHelmet.SetActive(false);
            VikingHelmet.SetActive(false);
            ThiefArmor.SetActive(false);
            ThiefHood.SetActive(false);
            KnightArmor.SetActive(false);
            ThiefBoots.SetActive(false);
            CommonBoots.SetActive(false);
        }

        else if (filterType == "ArmorOnly")
        {
            GlassBow.SetActive(false);
            WolfBlade.SetActive(false);
            StoneBlade.SetActive(false);
            BattleAxe.SetActive(false);
            DarkBow.SetActive(false);

            KnightHelmet.SetActive(true);
            VikingHelmet.SetActive(true);
            ThiefArmor.SetActive(true);
            ThiefHood.SetActive(true);
            KnightArmor.SetActive(true);
            ThiefBoots.SetActive(true);
            CommonBoots.SetActive(true);
        }
    }
예제 #3
0
    public Weapons[] InitWeapons()
    {
        Weapons[] wepArr = new Weapons[6];

        wepArr[0] = new Dagger();
        wepArr[1] = new CrossBow();
        wepArr[2] = new Mace();
        wepArr[3] = new MorningStar();
        wepArr[4] = new Longsword();
        wepArr[5] = new BattleAxe();

        return(wepArr);
    }
예제 #4
0
        public void CannotAddNonReagent()
        {
            ReagentPouch bag   = new ReagentPouch();
            Cloth        cloth = new Cloth();
            BattleAxe    axe   = new BattleAxe();

            bag.AddItem(cloth);
            bag.AddItem(axe);

            Assert.AreEqual(1, bag.ItemCount);

            bag.DisplayContents();
        }
        public void CannotAddBigItems()
        {
            Satchel     bag   = new Satchel();
            WoodenSword sword = new WoodenSword();
            BattleAxe   axe   = new BattleAxe();

            bag.AddItem(sword);
            bag.AddItem(axe);

            Assert.AreEqual(1, bag.ItemCount);

            bag.DisplayContents();
        }
    public void changeFilter(string filterType)
    {
        if (filterType == "AllItems")
        {
            BattleAxe.SetActive(true);
            DarkBow.SetActive(true);
            SkullAxe.SetActive(true);
            Dagger.SetActive(true);

            KnightHelmet.SetActive(true);
            VikingHelmet.SetActive(true);
            ThiefHood.SetActive(true);
            KnightArmor.SetActive(true);
            VikingArmor.SetActive(true);
            ThiefBoots.SetActive(true);
        }

        else if (filterType == "WeaponsOnly")
        {
            BattleAxe.SetActive(true);
            DarkBow.SetActive(true);
            SkullAxe.SetActive(true);
            Dagger.SetActive(true);

            KnightHelmet.SetActive(false);
            VikingHelmet.SetActive(false);
            ThiefHood.SetActive(false);
            KnightArmor.SetActive(false);
            VikingArmor.SetActive(false);
            ThiefBoots.SetActive(false);
        }

        else if (filterType == "ArmorOnly")
        {
            BattleAxe.SetActive(false);
            DarkBow.SetActive(false);
            SkullAxe.SetActive(false);
            Dagger.SetActive(false);

            KnightHelmet.SetActive(true);
            VikingHelmet.SetActive(true);
            ThiefHood.SetActive(true);
            KnightArmor.SetActive(true);
            VikingArmor.SetActive(true);
            ThiefBoots.SetActive(true);
        }
    }
        public void PutItemInBackpackSuccessfully()
        {
            //Arrange
            Backpack    bag   = new Backpack();
            Boomerang   rang  = new Boomerang();
            WoodenSword sword = new WoodenSword();
            BattleAxe   axe   = new BattleAxe();

            //Act
            bag.AddItem(rang);
            bag.AddItem(sword);
            bag.AddItem(axe);

            //Assert
            Assert.AreEqual(3, bag.ItemCount);

            bag.DisplayContents();
        }
            public InternalSellInfo()
            {
                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());

                Add(typeof(Bow), Bow.GetSBSellValue());
                Add(typeof(Crossbow), Crossbow.GetSBSellValue());
                Add(typeof(HeavyCrossbow), HeavyCrossbow.GetSBSellValue());
            }
            public InternalBuyInfo()
            {
                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));

                Add(new GenericBuyInfo("Bow", typeof(Bow), Bow.GetSBPurchaseValue(), 25, 0x13B2, 0));
                Add(new GenericBuyInfo("Crossbow", typeof(Crossbow), Crossbow.GetSBPurchaseValue(), 25, 0xF50, 0));
                Add(new GenericBuyInfo("Heavy Crossbow", typeof(HeavyCrossbow), HeavyCrossbow.GetSBPurchaseValue(), 25, 0x13FD, 0));
            }
예제 #10
0
        public static void LBBstart_OnCommand(CommandEventArgs e)
        {
            Map map = Map.Felucca;

            /////////////
            // MOBILES //
            /////////////

            LBBbaker baker = new LBBbaker();

            baker.Home = new Point3D(1451, 1614, 20);
            baker.MoveToWorld(baker.Home, map);

            LBBbaldur baldur = new LBBbaldur();

            baldur.Home = new Point3D(5220, 730, -20);
            baldur.MoveToWorld(baldur.Home, map);

            LBBblacksmith blacksmith = new LBBblacksmith();

            blacksmith.Home = new Point3D(1420, 1547, 30);
            blacksmith.MoveToWorld(blacksmith.Home, map);

            LBBcarpenter carpenter = new LBBcarpenter();

            carpenter.Home = new Point3D(1432, 1595, 20);
            carpenter.MoveToWorld(carpenter.Home, map);

            LBBcook cook = new LBBcook();

            cook.Home = new Point3D(1318, 1604, 50);
            cook.MoveToWorld(cook.Home, map);

            LBBdrunkJeffrey drunkJeffrey = new LBBdrunkJeffrey();

            drunkJeffrey.Home = new Point3D(1412, 1655, 10);
            drunkJeffrey.MoveToWorld(drunkJeffrey.Home, map);

            LBBeasternMageryShopVendor easternMageryShopVendor = new LBBeasternMageryShopVendor();

            easternMageryShopVendor.Home = new Point3D(1595, 1654, 10);
            easternMageryShopVendor.MoveToWorld(easternMageryShopVendor.Home, map);

            LBBfisherman fisherman = new LBBfisherman();

            fisherman.Home = new Point3D(1489, 1749, -2);
            fisherman.MoveToWorld(fisherman.Home, map);

            LBBleonard leonard = new LBBleonard();

            leonard.Home = new Point3D(1675, 1593, 7);
            leonard.MoveToWorld(leonard.Home, map);

            LBBlibrarian librarian = new LBBlibrarian();

            librarian.Home = new Point3D(1410, 1604, 30);
            librarian.MoveToWorld(librarian.Home, map);

            LBBlordBritish lordBritish = new LBBlordBritish();

            lordBritish.Home = new Point3D(1323, 1624, 55);
            lordBritish.MoveToWorld(lordBritish.Home, map);

            LBBmaid1 maid1 = new LBBmaid1();

            maid1.Home = new Point3D(1352, 1660, 72);
            maid1.MoveToWorld(maid1.Home, map);

            LBBmaid2 maid2 = new LBBmaid2();

            maid2.Home = new Point3D(1351, 1604, 72);
            maid2.MoveToWorld(maid2.Home, map);

            LBBmaid3 maid3 = new LBBmaid3();

            maid3.Home = new Point3D(1329, 1660, 72);
            maid3.MoveToWorld(maid3.Home, map);

            LBBmaid4 maid4 = new LBBmaid4();

            maid4.Home = new Point3D(1345, 1643, 50);
            maid4.MoveToWorld(maid4.Home, map);

            LBBmaid5 maid5 = new LBBmaid5();

            maid5.Home = new Point3D(1353, 1588, 50);
            maid5.MoveToWorld(maid5.Home, map);

            LBBnorthernMageryShopVendor northernMageryShopVendor = new LBBnorthernMageryShopVendor();

            northernMageryShopVendor.Home = new Point3D(1492, 1547, 35);
            northernMageryShopVendor.MoveToWorld(northernMageryShopVendor.Home, map);

            LBBoriandur oriandur = new LBBoriandur();

            oriandur.Home = new Point3D(5323, 749, -20);
            oriandur.MoveToWorld(oriandur.Home, map);

            LBBpriest priest = new LBBpriest();

            priest.Home = new Point3D(1452, 1589, 20);
            priest.MoveToWorld(priest.Home, map);

            LBBguard guard1 = new LBBguard();

            guard1.Home = new Point3D(1323, 1626, 55);
            guard1.MoveToWorld(guard1.Home, map);
            guard1.Direction = guard1.GetDirectionTo(new Point3D(1330, 1624, 50));

            LBBguard guard2 = new LBBguard();

            guard2.Home = new Point3D(1323, 1622, 55);
            guard2.MoveToWorld(guard2.Home, map);
            guard2.Direction = guard2.GetDirectionTo(new Point3D(1330, 1624, 50));

            LBBguard guard3 = new LBBguard();

            guard3.Home = new Point3D(1328, 1627, 50);
            guard3.MoveToWorld(guard3.Home, map);
            guard3.Direction = guard3.GetDirectionTo(new Point3D(1330, 1624, 50));

            LBBguard guard4 = new LBBguard();

            guard4.Home = new Point3D(1328, 1621, 50);
            guard4.MoveToWorld(guard4.Home, map);
            guard4.Direction = guard4.GetDirectionTo(new Point3D(1330, 1624, 50));

            LBBguard guard5 = new LBBguard();

            guard5.Home = new Point3D(1334, 1627, 50);
            guard5.MoveToWorld(guard5.Home, map);
            guard5.Direction = guard5.GetDirectionTo(new Point3D(1330, 1624, 50));

            LBBguard guard6 = new LBBguard();

            guard6.Home = new Point3D(1334, 1621, 50);
            guard6.MoveToWorld(guard6.Home, map);
            guard6.Direction = guard6.GetDirectionTo(new Point3D(1330, 1624, 50));

            ///////////
            // ITEMS //
            ///////////

            LBBdiary1 diary1 = new LBBdiary1();

            diary1.MoveToWorld(new Point3D(1454, 1582, 30), map);

            LargeBoat boat = new LargeBoat();

            boat.TillerMan = null;
            boat.Facing    = Direction.West;
            boat.MoveToWorld(new Point3D(1493, 1854, -5), map);

            LBBdiary2 diary2 = new LBBdiary2();

            diary2.MoveToWorld(new Point3D(1496, 1854, -2), map);

            BattleAxe axe = new BattleAxe();

            axe.MoveToWorld(new Point3D(1490, 1854, -2), map);
            axe.Movable = false;

            GlassBottle bottle = new GlassBottle();

            bottle.MoveToWorld(new Point3D(1497, 1854, -2), map);
            bottle.Movable = false;

            Backpack pack = new Backpack();

            pack.MoveToWorld(new Point3D(1494, 1854, -2), map);
            pack.Movable = false;
            pack.DropItem(new GlassBottle());
            pack.DropItem(new GlassBottle());
            pack.DropItem(new FishingPole());

            BigFish packItem1 = new BigFish();

            packItem1.Amount = 8;
            pack.DropItem(packItem1);

            SpidersSilk packItem2 = new SpidersSilk();

            packItem2.Amount = 3;
            pack.DropItem(packItem2);

            MandrakeRoot packItem3 = new MandrakeRoot();

            packItem3.Amount = 5;
            pack.DropItem(packItem3);

            Bloodmoss packItem4 = new Bloodmoss();

            packItem4.Amount = 3;
            pack.DropItem(packItem4);

            SulfurousAsh packItem5 = new SulfurousAsh();

            packItem5.Amount = 4;
            pack.DropItem(packItem5);

            e.Mobile.SendMessage("All NPCs and Items have been generated. Ready to start Lord British's Books event.");
        }
예제 #11
0
파일: Tool.cs 프로젝트: JMounier/Aegina
 public BattleAxe(BattleAxe battleAxe)
     : base(battleAxe)
 {
 }
예제 #12
0
        /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

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

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

            switch (nType)
            {
            case 1:         item = new Cutlass();                   item.Name = "cutlass";                  break;

            case 2:         item = new Katana();                    item.Name = "katana";                   break;

            case 3:         item = new Kryss();                             item.Name = "kryss";                    break;

            case 4:         item = new Broadsword();                item.Name = "broadsword";               break;

            case 5:         item = new Longsword();                 item.Name = "longsword";                break;

            case 6:         item = new ThinLongsword();             item.Name = "longsword";                break;

            case 7:         item = new VikingSword();               item.Name = "barbarian sword";  break;

            case 8:         item = new Scimitar();                  item.Name = "scimitar";                 break;

            case 9:         item = new BoneHarvester();             item.Name = "sickle";                   break;

            case 10:        item = new CrescentBlade();             item.Name = "crescent blade";   break;

            case 11:        item = new DoubleBladedStaff(); item.Name = "bladed staff";             break;

            case 12:        item = new Lance();                             item.Name = "lance";                    break;

            case 13:        item = new Pike();                              item.Name = "pike";                             break;

            case 14:        item = new Scythe();                    item.Name = "scythe";                   break;

            case 15:        item = new Dagger();                    item.Name = "dagger";                   break;

            case 16:        item = new HammerPick();                item.Name = "hammer pick";              break;

            case 17:        item = new Mace();                              item.Name = "mace";                             break;

            case 18:        item = new Maul();                              item.Name = "maul";                             break;

            case 19:        item = new WarHammer();                 item.Name = "war hammer";               break;

            case 20:        item = new WarMace();                   item.Name = "war mace";                 break;

            case 21:        item = new ExecutionersAxe();   item.Name = "great axe";                break;

            case 22:        item = new BattleAxe();                 item.Name = "battle axe";               break;

            case 23:        item = new TwoHandedAxe();              item.Name = "two-handed axe";   break;

            case 24:        item = new Axe();                               item.Name = "axe";                              break;

            case 25:        item = new DoubleAxe();                 item.Name = "double axe";               break;

            case 26:        item = new RoyalSword();                item.Name = "royal sword";              break;

            case 27:        item = new LargeBattleAxe();    item.Name = "large battle axe"; break;

            case 28:        item = new WarAxe();                    item.Name = "war axe";                  break;

            case 29:        item = new Bardiche();                  item.Name = "bardiche";                 break;

            case 30:        item = new Halberd();                   item.Name = "halberd";                  break;

            case 31:        item = new Pitchfork();                 item.Name = "trident";                  break;

            case 32:        item = new ShortSpear();                item.Name = "short spear";              break;

            case 33:        item = new Spear();                             item.Name = "spear";                    break;

            case 34:        item = new NoDachi();                   item.Name = "no dachi";                 break;

            case 35:        item = new Wakizashi();                 item.Name = "wakizashi";                break;

            case 36:        item = new Tetsubo();                   item.Name = "tetsubo";                  break;

            case 37:        item = new Lajatang();                  item.Name = "lajatang";                 break;

            case 38:        item = new Daisho();                    item.Name = "daisho";                   break;

            case 39:        item = new Tekagi();                    item.Name = "tekagi";                   break;

            case 40:        item = new Kama();                              item.Name = "kama";                             break;

            case 41:        item = new Sai();                               item.Name = "sai";                              break;
            }

            return(item);
        }
예제 #13
0
        public static void Weapon()
        {
            string prefixName;
            int    prefixValue;
            string prefixStat;

            (prefixName, prefixStat, prefixValue) = Prefix.Generate("Weapon");

            string suffixName;
            string suffixStat;
            int    suffixValue;

            (suffixName, suffixStat, suffixValue) = Suffix.Generate("Weapon");


            int _weaponType = random.Next(1, 27); //26 weapons

            switch (_weaponType)
            {
            case 1:
                Axe axe = new Axe(prefixName, prefixStat, prefixValue, suffixName, suffixStat, suffixValue);
                // Console.WriteLine("prefixName: " + prefixName + ", prefixStat: " + prefixStat + ", prefixValue: " + prefixValue + ", suffixName: " + suffixName + ", suffixStat: " + suffixStat + ", suffixVallue: " + suffixValue);
                axe.WeaponAddToInventory();
                break;

            case 2:
                BastardSword bastardSword = new BastardSword(prefixName, prefixStat, prefixValue, suffixName, suffixStat, suffixValue);
                bastardSword.WeaponAddToInventory();
                break;

            case 3:
                BattleAxe battleAxe = new BattleAxe(prefixName, prefixStat, prefixValue, suffixName, suffixStat, suffixValue);
                battleAxe.WeaponAddToInventory();
                break;

            case 4:
                Blade blade = new Blade(prefixName, prefixStat, prefixValue, suffixName, suffixStat, suffixValue);
                blade.WeaponAddToInventory();
                break;

            case 5:
                BroadAxe broadAxe = new BroadAxe(prefixName, prefixStat, prefixValue, suffixName, suffixStat, suffixValue);
                broadAxe.WeaponAddToInventory();
                break;

            case 6:
                BroadSword broadSword = new BroadSword(prefixName, prefixStat, prefixValue, suffixName, suffixStat, suffixValue);
                broadSword.WeaponAddToInventory();
                break;

            case 7:
                Claymore claymore = new Claymore(prefixName, prefixStat, prefixValue, suffixName, suffixStat, suffixValue);
                claymore.WeaponAddToInventory();
                break;

            case 8:
                Club club = new Club(prefixName, prefixStat, prefixValue, suffixName, suffixStat, suffixValue);
                club.WeaponAddToInventory();
                break;

            case 9:
                Dagger dagger = new Dagger(prefixName, prefixStat, prefixValue, suffixName, suffixStat, suffixValue);
                dagger.WeaponAddToInventory();
                break;

            case 10:
                Falchion falchion = new Falchion(prefixName, prefixStat, prefixValue, suffixName, suffixStat, suffixValue);
                falchion.WeaponAddToInventory();
                break;

            case 11:
                Flail flail = new Flail(prefixName, prefixStat, prefixValue, suffixName, suffixStat, suffixValue);
                flail.WeaponAddToInventory();
                break;

            case 12:
                GreatAxe greatAxe = new GreatAxe(prefixName, prefixStat, prefixValue, suffixName, suffixStat, suffixValue);
                greatAxe.WeaponAddToInventory();
                break;

            case 13:
                GreatSword greatSword = new GreatSword(prefixName, prefixStat, prefixValue, suffixName, suffixStat, suffixValue);
                greatSword.WeaponAddToInventory();
                break;

            case 14:
                LargeAxe largeAxe = new LargeAxe(prefixName, prefixStat, prefixValue, suffixName, suffixStat, suffixValue);
                largeAxe.WeaponAddToInventory();
                break;

            case 15:
                LongSword longSword = new LongSword(prefixName, prefixStat, prefixValue, suffixName, suffixStat, suffixValue);
                longSword.WeaponAddToInventory();
                break;

            case 16:
                Mace mace = new Mace(prefixName, prefixStat, prefixValue, suffixName, suffixStat, suffixValue);
                mace.WeaponAddToInventory();
                break;

            case 17:
                Maul maul = new Maul(prefixName, prefixStat, prefixValue, suffixName, suffixStat, suffixValue);
                maul.WeaponAddToInventory();
                break;

            case 19:
                MorningStar morningStar = new MorningStar(prefixName, prefixStat, prefixValue, suffixName, suffixStat, suffixValue);
                morningStar.WeaponAddToInventory();
                break;

            case 20:
                Sabre sabre = new Sabre(prefixName, prefixStat, prefixValue, suffixName, suffixStat, suffixValue);
                sabre.WeaponAddToInventory();
                break;

            case 21:
                Scimitar scimitar = new Scimitar(prefixName, prefixStat, prefixValue, suffixName, suffixStat, suffixValue);
                scimitar.WeaponAddToInventory();
                break;

            case 22:
                ShortSword shortSword = new ShortSword(prefixName, prefixStat, prefixValue, suffixName, suffixStat, suffixValue);
                shortSword.WeaponAddToInventory();
                break;

            case 23:
                SmallAxe smallAxe = new SmallAxe(prefixName, prefixStat, prefixValue, suffixName, suffixStat, suffixValue);
                smallAxe.WeaponAddToInventory();
                break;

            case 24:
                SpikedClub spikedClub = new SpikedClub(prefixName, prefixStat, prefixValue, suffixName, suffixStat, suffixValue);
                spikedClub.WeaponAddToInventory();
                break;

            case 25:
                TwoHandedSword twoHandedSword = new TwoHandedSword(prefixName, prefixStat, prefixValue, suffixName, suffixStat, suffixValue);
                twoHandedSword.WeaponAddToInventory();
                break;

            case 26:
                WarHammer warHammer = new WarHammer(prefixName, prefixStat, prefixValue, suffixName, suffixStat, suffixValue);
                warHammer.WeaponAddToInventory();
                break;
            }
        }
예제 #14
0
        public Urk() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            BaseSoundID      = 0x45A;
            Hue              = 0x430;
            Body             = 0x190;
            Name             = NameList.RandomName("urk");
            HairItemID       = 0;
            FacialHairItemID = 0;

            Item helm = new WornHumanDeco();

            helm.Name   = "urkish face";
            helm.ItemID = 0x141B;
            helm.Hue    = 0x430;
            helm.Layer  = Layer.Helm;
            AddItem(helm);

            if (Utility.RandomMinMax(1, 2) == 1)
            {
                LeatherArms ratarms = new LeatherArms();
                ratarms.Name        = "urkish rat skin arms";
                ratarms.PoisonBonus = 6;
                ratarms.Hue         = 0x972;
                AddItem(ratarms);

                LeatherChest ratchest = new LeatherChest();
                ratchest.Name        = "urkish rat skin tunic";
                ratchest.PoisonBonus = 8;
                ratchest.Hue         = 0x972;
                AddItem(ratchest);

                LeatherGloves ratgloves = new LeatherGloves();
                ratgloves.Name        = "urkish rat skin gloves";
                ratgloves.PoisonBonus = 5;
                ratgloves.Hue         = 0x972;
                AddItem(ratgloves);

                LeatherGorget ratgorget = new LeatherGorget();
                ratgorget.Name        = "urkish rat skin gorget";
                ratgorget.PoisonBonus = 4;
                ratgorget.Hue         = 0x972;
                AddItem(ratgorget);

                LeatherLegs ratlegs = new LeatherLegs();
                ratlegs.Name        = "urkish rat skin leggings";
                ratlegs.PoisonBonus = 7;
                ratlegs.Hue         = 0x972;
                AddItem(ratlegs);
            }
            else
            {
                BoneChest bonechest = new BoneChest();
                bonechest.Name        = "urkish chest piece";
                bonechest.PoisonBonus = 8;
                bonechest.Hue         = 0x972;
                AddItem(bonechest);

                BoneArms bonearms = new BoneArms();
                bonearms.Name        = "urkish bracers";
                bonearms.PoisonBonus = 6;
                bonearms.Hue         = 0x972;
                AddItem(bonearms);

                BoneLegs bonelegs = new BoneLegs();
                bonelegs.Name        = "urkish leggings";
                bonelegs.PoisonBonus = 7;
                bonelegs.Hue         = 0x972;
                AddItem(bonelegs);

                BoneGloves bonegloves = new BoneGloves();
                bonegloves.Name        = "urkish gauntlets";
                bonegloves.PoisonBonus = 5;
                bonegloves.Hue         = 0x972;
                AddItem(bonegloves);
            }

            Item weapon = new BattleAxe();

            switch (Utility.Random(28))
            {
            case 0: weapon = new BattleAxe(); weapon.Name = "battle axe"; break;

            case 1: weapon = new VikingSword(); weapon.Name = "great sword"; break;

            case 2: weapon = new Halberd(); weapon.Name = "halberd"; break;

            case 3: weapon = new DoubleAxe(); weapon.Name = "double axe"; break;

            case 4: weapon = new ExecutionersAxe(); weapon.Name = "great axe"; break;

            case 5: weapon = new WarAxe(); weapon.Name = "war axe"; break;

            case 6: weapon = new TwoHandedAxe(); weapon.Name = "two handed axe"; break;

            case 7: weapon = new Cutlass(); weapon.Name = "cutlass"; break;

            case 8: weapon = new Katana(); weapon.Name = "katana"; break;

            case 9: weapon = new Kryss(); weapon.Name = "kryss"; break;

            case 10: weapon = new Broadsword(); weapon.Name = "broadsword"; break;

            case 11: weapon = new Longsword(); weapon.Name = "longsword"; break;

            case 12: weapon = new ThinLongsword(); weapon.Name = "longsword"; break;

            case 13: weapon = new Scimitar(); weapon.Name = "scimitar"; break;

            case 14: weapon = new BoneHarvester(); weapon.Name = "sickle"; break;

            case 15: weapon = new CrescentBlade(); weapon.Name = "crescent blade"; break;

            case 16: weapon = new DoubleBladedStaff(); weapon.Name = "double bladed staff"; break;

            case 17: weapon = new Pike(); weapon.Name = "pike"; break;

            case 18: weapon = new Scythe(); weapon.Name = "scythe"; break;

            case 19: weapon = new Pitchfork(); weapon.Name = "trident"; break;

            case 20: weapon = new ShortSpear(); weapon.Name = "short spear"; break;

            case 21: weapon = new Spear(); weapon.Name = "spear"; break;

            case 22: weapon = new Club(); weapon.Name = "club"; break;

            case 23: weapon = new HammerPick(); weapon.Name = "hammer pick"; break;

            case 24: weapon = new Mace(); weapon.Name = "mace"; break;

            case 25: weapon = new Maul(); weapon.Name = "maul"; break;

            case 26: weapon = new WarHammer(); weapon.Name = "war hammer"; break;

            case 27: weapon = new WarMace(); weapon.Name = "war mace"; break;
            }

            weapon.Name = "urkish " + weapon.Name;
            weapon.Hue  = 0x7D1;
            ((BaseWeapon)weapon).AosElementDamages.Physical = 60;
            ((BaseWeapon)weapon).AosElementDamages.Poison   = 40;
            AddItem(weapon);

            switch (Utility.RandomMinMax(0, 5))
            {
            case 0: Title = "the urk warrior"; break;

            case 1: Title = "the urk savage"; break;

            case 2: Title = "the urk barbarian"; break;

            case 3: Title = "the urk fighter"; break;

            case 4: Title = "the urk gladiator"; break;

            case 5: Title = "the urk berserker"; break;
            }

            SetStr(196, 250);
            SetDex(76, 95);
            SetInt(36, 60);

            SetHits(118, 150);

            SetDamage(8, 18);

            SetDamageType(ResistanceType.Physical, 60);
            SetDamageType(ResistanceType.Poison, 40);

            SetResistance(ResistanceType.Physical, 35, 45);
            SetResistance(ResistanceType.Fire, 20, 30);
            SetResistance(ResistanceType.Cold, 50, 60);
            SetResistance(ResistanceType.Poison, 60, 80);
            SetResistance(ResistanceType.Energy, 30, 40);

            SetSkill(SkillName.MagicResist, 65.1, 80.0);
            SetSkill(SkillName.Tactics, 85.1, 100.0);
            SetSkill(SkillName.Macing, 85.1, 95.0);
            SetSkill(SkillName.Swords, 85.1, 95.0);
            SetSkill(SkillName.Fencing, 85.1, 95.0);
            SetSkill(SkillName.Wrestling, 85.1, 95.0);

            Fame  = 3000;
            Karma = -3000;

            VirtualArmor = 40;
        }
예제 #15
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());
            }
예제 #16
0
        private static Item[] Range()
        {
            var items = new List <Item>();

            switch (Dungeon.Depth)
            {
            case 6:
                Item item;
                if (Random.Int(2) == 0)
                {
                    item = new Quarterstaff();
                }
                else
                {
                    item = new Spear();
                }
                items.Add(item.Identify());
                items.Add(new LeatherArmor().Identify());
                items.Add(new SeedPouch());
                items.Add(new Weightstone());
                break;

            case 11:
                Item item1;
                if (Random.Int(2) == 0)
                {
                    item1 = new Sword();
                }
                else
                {
                    item1 = new Mace();
                }
                items.Add(item1.Identify());
                items.Add(new MailArmor().Identify());
                items.Add(new ScrollHolder());
                items.Add(new Weightstone());
                break;

            case 16:
                Item item3;
                if (Random.Int(2) == 0)
                {
                    item3 = new Longsword();
                }
                else
                {
                    item3 = new BattleAxe();
                }
                items.Add(item3.Identify());
                items.Add(new ScaleArmor().Identify());
                items.Add(new WandHolster());
                items.Add(new Weightstone());
                break;

            case 21:
                switch (Random.Int(3))
                {
                case 0:
                    items.Add(new Glaive().Identify());
                    break;

                case 1:
                    items.Add(new WarHammer().Identify());
                    break;

                case 2:
                    items.Add(new PlateArmor().Identify());
                    break;
                }
                items.Add(new Torch());
                items.Add(new Torch());
                break;
            }

            items.Add(new PotionOfHealing());
            for (var i = 0; i < 3; i++)
            {
                items.Add(Generator.Random(Generator.Category.POTION));
            }

            items.Add(new ScrollOfIdentify());
            items.Add(new ScrollOfRemoveCurse());
            items.Add(new ScrollOfMagicMapping());
            items.Add(Generator.Random(Generator.Category.SCROLL));

            items.Add(new OverpricedRation());
            items.Add(new OverpricedRation());

            items.Add(new Ankh());

            var range = items.ToArray();

            Random.Shuffle(range);

            return(range);
        }
예제 #17
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));
            }
예제 #18
0
        public SpawnHelperMage() : base(AIType.AI_Mage, FightMode.Closest, 25, 1, 0.4, 0.3)
        {
            Title = "[BEC-Mage]";
            if (Female = Utility.RandomBool())
            {
                Body = 401;
                Name = NameList.RandomName("female");
            }
            else
            {
                Body = 400;
                Name = NameList.RandomName("male");
            }
//			Name.Hue = 2002;
//			Title.Hue = 2002;


            SetStr(100, 150);
            SetDex(100, 150);
            SetInt(250, 500);
            ActiveSpeed  = 0.2;
            PassiveSpeed = 0;

            SetHits(200, 300);

//            SetDamage(12, 19);

            SetDamageType(ResistanceType.Physical, 120);

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

            SetSkill(SkillName.Swords, 89.0, 120.0);
            SetSkill(SkillName.Tactics, 89.0, 120.0);
            SetSkill(SkillName.MagicResist, 89.0, 120.0);
            SetSkill(SkillName.Tactics, 89.0, 120.0);
            SetSkill(SkillName.Parry, 89.0, 120.0);
            SetSkill(SkillName.Anatomy, 85.0, 120.0);
            SetSkill(SkillName.Healing, 85.0, 120.0);
            SetSkill(SkillName.Magery, 99.0, 120.0);
            SetSkill(SkillName.EvalInt, 99.0, 120.0);
            SetSkill(SkillName.Poisoning, 85.0, 100.0);

            Fame  = 18000;
            Karma = 10000;

            VirtualArmor = 50;

            switch (Utility.Random(4))
            {
            case 0: BattleAxe weapona = new BattleAxe();
                weapona.Hue      = 2063;
                weapona.LootType = LootType.Newbied;
                weapona.Attributes.SpellChanneling    = 1;
                weapona.WeaponAttributes.HitLeechMana = 60;
                weapona.Movable = false;
                AddItem(weapona);
                break;

            case 1: Axe weaponb = new Axe();
                weaponb.Hue      = 2063;
                weaponb.LootType = LootType.Newbied;
                weaponb.Attributes.SpellChanneling    = 1;
                weaponb.WeaponAttributes.HitLeechMana = 60;
                weaponb.Movable = false;
                AddItem(weaponb);
                break;

            case 2: Bardiche weaponc = new Bardiche();
                weaponc.Hue      = 2063;
                weaponc.LootType = LootType.Newbied;
                weaponc.Attributes.SpellChanneling    = 1;
                weaponc.WeaponAttributes.HitLeechMana = 60;
                weaponc.Movable = false;
                AddItem(weaponc);
                break;

            case 3: Hatchet weapond = new Hatchet();
                weapond.Hue      = 2063;
                weapond.LootType = LootType.Newbied;
                weapond.Attributes.SpellChanneling    = 1;
                weapond.WeaponAttributes.HitLeechMana = 60;
                weapond.Movable = false;
                AddItem(weapond);
                break;
            }



            Item Robe = new Robe( );

            Robe.Name    = "Britania Electric Co.";
            Robe.Movable = false;
            Robe.Hue     = 1109;
            AddItem(Robe);



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

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

            case 2: break;
            }

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

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

            case 2: break;
            }


            Item PlateHelm = new PlateHelm();

            PlateHelm.Hue      = 2063;
            PlateHelm.LootType = LootType.Newbied;
            PlateHelm.Movable  = false;
            AddItem(PlateHelm);


            switch (Utility.Random(3))
            {
            case 0: AddItem(new LeatherGloves()); break;

            case 1: break;

            case 2: break;
            }


            AddItem(new Shirt(743));



            Utility.AssignRandomHair(this);

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

            PackItem(new Bandage(Utility.RandomMinMax(80, 200)));

            Horse ns = new Horse();

            ns.Controlled    = true;
            ns.Hue           = 2063;
            ns.ControlMaster = this;
            ns.ControlOrder  = OrderType.Stay;
            ns.Rider         = this;
        }
예제 #19
0
        private MeleeWeapon ChangeWeapon(MeleeWeapon w)
        {
            MeleeWeapon n = null;

            if (w is Knuckles)
            {
                n = new Dagger();
            }
            else if (w is Dagger)
            {
                n = new Knuckles();
            }
            else if (w is Spear)
            {
                n = new Quarterstaff();
            }
            else if (w is Quarterstaff)
            {
                n = new Spear();
            }
            else if (w is Sword)
            {
                n = new Mace();
            }
            else if (w is Mace)
            {
                n = new Sword();
            }
            else if (w is Longsword)
            {
                n = new BattleAxe();
            }
            else if (w is BattleAxe)
            {
                n = new Longsword();
            }
            else if (w is Glaive)
            {
                n = new WarHammer();
            }
            else if (w is WarHammer)
            {
                n = new Glaive();
            }

            if (n == null)
            {
                return(null);
            }

            var level = w.level;

            if (level > 0)
            {
                n.Upgrade(level);
            }
            else if (level < 0)
            {
                n.Degrade(-level);
            }

            if (w.IsEnchanted)
            {
                n.Enchant(Weapon.Enchantment.Random());
            }

            n.levelKnown  = w.levelKnown;
            n.cursedKnown = w.cursedKnown;
            n.cursed      = w.cursed;

            Journal.Remove(Journal.Feature.WELL_OF_TRANSMUTATION);

            return(n);
        }
예제 #20
0
        public override void GenerateLoot()
        {
            AddLoot(LootPack.FilthyRich, 5);
            AddLoot(LootPack.HighScrolls, 3);
            AddLoot(LootPack.MedScrolls, 4);
            AddLoot(LootPack.LowScrolls, 6);
            AddLoot(LootPack.Gems, 5);

            if (Utility.RandomDouble() < 0.20)
            {
                BaseWeapon weapon = Loot.RandomWeapon(true);
                switch (Utility.Random(33))
                {
                case 0: weapon = new BattleAxe(); break;

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

                case 2: weapon = new LargeBattleAxe(); break;

                case 3: weapon = new WarAxe(); break;

                case 4: weapon = new Bow(); break;

                case 5: weapon = new Crossbow(); break;

                case 6: weapon = new HeavyCrossbow(); break;

                case 7: weapon = new WarHammer(); break;

                case 8: weapon = new WarMace(); break;

                case 9: weapon = new Bardiche(); break;

                case 10: weapon = new Halberd(); break;

                case 11: weapon = new Spear(); break;

                case 12: weapon = new QuarterStaff(); break;

                case 13: weapon = new Katana(); break;

                case 14: weapon = new Longsword(); break;

                case 15: weapon = new VikingSword(); break;

                case 16: weapon = new CompositeBow(); break;

                case 17: weapon = new CrescentBlade(); break;

                case 18: weapon = new DoubleBladedStaff(); break;

                case 19: weapon = new Lance(); break;

                case 20: weapon = new PaladinSword(); break;

                case 21: weapon = new Scythe(); break;

                case 22: weapon = new Daisho(); break;

                case 23: weapon = new Lajatang(); break;

                case 24: weapon = new NoDachi(); break;

                case 25: weapon = new Tetsubo(); break;

                case 26: weapon = new Yumi(); break;

                case 27: weapon = new ElvenCompositeLongbow(); break;

                case 28: weapon = new OrnateAxe(); break;

                case 29: weapon = new RadiantScimitar(); break;

                case 30: weapon = new WarCleaver(); break;

                case 31: weapon = new WildStaff(); break;

                default: weapon = new DiamondMace(); break;
                }

                BaseRunicTool.ApplyAttributesTo(weapon, 5, 35, 50);
                weapon.Hue = 1461;

                PackItem(weapon);
            }

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

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

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

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

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

                BaseRunicTool.ApplyAttributesTo(armor, 5, 35, 50);
                armor.Hue = 1461;

                PackItem(armor);
            }

            if (Utility.RandomDouble() < 0.20)
            {
                BaseClothing clothing = Loot.RandomClothing(true);
                BaseRunicTool.ApplyAttributesTo(clothing, 5, 35, 50);
                clothing.Hue = 1461;

                PackItem(clothing);
            }

            if (Utility.RandomDouble() < 0.10)
            {
                BaseShield shield = new MetalKiteShield();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(shield, 5, 35, 50);
                }
                shield.Hue = 1461;

                PackItem(shield);
            }

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

                PackItem(bracelet);
            }

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

                PackItem(earrings);
            }

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

                PackItem(necklace);
            }

            if (Utility.RandomDouble() < 0.10)
            {
                BaseJewel ring = new GoldRing();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(ring, 5, 35, 50);
                }
                ring.Hue = 1461;

                PackItem(ring);
            }
        }
예제 #21
0
        public override void OnDoubleClick(Mobile from)
        {
            if (from.AccessLevel < AccessLevel.GameMaster)
            {
                from.SendMessage("You have initiated server shutdown.");
                from.SendMessage("The server is going down shortly.");
                this.Delete();
                return;
            }

            if (eventMobiles.Count != 0)
            {
                foreach (Item i in eventItems)
                {
                    i.Delete();
                }

                eventItems.Clear();

                foreach (Mobile m in eventMobiles)
                {
                    m.Delete();
                }

                eventMobiles.Clear();

                foreach (NetState state in NetState.Instances)
                {
                    if (state.Mobile != null && state.Mobile.AccessLevel > AccessLevel.Player)
                    {
                        state.Mobile.SendMessage(66, "All NPCs and Items from Lord British's Books event have been removed.");
                    }
                }
            }
            else
            {
                Map map = Map.Felucca;

                /////////////
                // MOBILES //
                /////////////

                LBBbaker baker = new LBBbaker();
                baker.Home = new Point3D(1451, 1614, 20);
                baker.MoveToWorld(baker.Home, map);
                eventMobiles.Add(baker);

                LBBbaldur baldur = new LBBbaldur();
                baldur.Home = new Point3D(5220, 730, -20);
                baldur.MoveToWorld(baldur.Home, map);
                eventMobiles.Add(baldur);

                LBBblacksmith blacksmith = new LBBblacksmith();
                blacksmith.Home = new Point3D(1420, 1547, 30);
                blacksmith.MoveToWorld(blacksmith.Home, map);
                eventMobiles.Add(blacksmith);

                LBBcarpenter carpenter = new LBBcarpenter();
                carpenter.Home = new Point3D(1432, 1595, 20);
                carpenter.MoveToWorld(carpenter.Home, map);
                eventMobiles.Add(carpenter);

                LBBcook cook = new LBBcook();
                cook.Home = new Point3D(1318, 1604, 50);
                cook.MoveToWorld(cook.Home, map);
                eventMobiles.Add(cook);

                LBBdrunkJeffrey drunkJeffrey = new LBBdrunkJeffrey();
                drunkJeffrey.Home = new Point3D(1412, 1655, 10);
                drunkJeffrey.MoveToWorld(drunkJeffrey.Home, map);
                eventMobiles.Add(drunkJeffrey);

                LBBeasternMageryShopVendor easternMageryShopVendor = new LBBeasternMageryShopVendor();
                easternMageryShopVendor.Home = new Point3D(1595, 1654, 10);
                easternMageryShopVendor.MoveToWorld(easternMageryShopVendor.Home, map);
                eventMobiles.Add(easternMageryShopVendor);

                LBBfisherman fisherman = new LBBfisherman();
                fisherman.Home = new Point3D(1489, 1749, -2);
                fisherman.MoveToWorld(fisherman.Home, map);
                eventMobiles.Add(fisherman);

                LBBleonard leonard = new LBBleonard();
                leonard.Home = new Point3D(1675, 1593, 7);
                leonard.MoveToWorld(leonard.Home, map);
                eventMobiles.Add(leonard);

                LBBlibrarian librarian = new LBBlibrarian();
                librarian.Home = new Point3D(1410, 1604, 30);
                librarian.MoveToWorld(librarian.Home, map);
                eventMobiles.Add(librarian);

                LBBlordBritish lordBritish = new LBBlordBritish();
                lordBritish.Home = new Point3D(1323, 1624, 55);
                lordBritish.MoveToWorld(lordBritish.Home, map);
                eventMobiles.Add(lordBritish);

                LBBmaid1 maid1 = new LBBmaid1();
                maid1.Home = new Point3D(1352, 1660, 72);
                maid1.MoveToWorld(maid1.Home, map);
                eventMobiles.Add(maid1);

                LBBmaid2 maid2 = new LBBmaid2();
                maid2.Home = new Point3D(1351, 1604, 72);
                maid2.MoveToWorld(maid2.Home, map);
                eventMobiles.Add(maid2);

                LBBmaid3 maid3 = new LBBmaid3();
                maid3.Home = new Point3D(1329, 1660, 72);
                maid3.MoveToWorld(maid3.Home, map);
                eventMobiles.Add(maid3);

                LBBmaid4 maid4 = new LBBmaid4();
                maid4.Home = new Point3D(1345, 1643, 50);
                maid4.MoveToWorld(maid4.Home, map);
                eventMobiles.Add(maid4);

                LBBmaid5 maid5 = new LBBmaid5();
                maid5.Home = new Point3D(1353, 1588, 50);
                maid5.MoveToWorld(maid5.Home, map);
                eventMobiles.Add(maid5);

                LBBnorthernMageryShopVendor northernMageryShopVendor = new LBBnorthernMageryShopVendor();
                northernMageryShopVendor.Home = new Point3D(1492, 1547, 35);
                northernMageryShopVendor.MoveToWorld(northernMageryShopVendor.Home, map);
                eventMobiles.Add(northernMageryShopVendor);

                LBBoriandur oriandur = new LBBoriandur();
                oriandur.Home = new Point3D(5323, 749, -20);
                oriandur.MoveToWorld(oriandur.Home, map);
                eventMobiles.Add(oriandur);

                LBBpriest priest = new LBBpriest();
                priest.Home = new Point3D(1452, 1589, 20);
                priest.MoveToWorld(priest.Home, map);
                eventMobiles.Add(priest);

                LBBguard guard1 = new LBBguard();
                guard1.Home = new Point3D(1323, 1626, 55);
                guard1.MoveToWorld(guard1.Home, map);
                guard1.Direction = guard1.GetDirectionTo(new Point3D(1328, 1624, 50));
                eventMobiles.Add(guard1);

                LBBguard guard2 = new LBBguard();
                guard2.Home = new Point3D(1323, 1622, 55);
                guard2.MoveToWorld(guard2.Home, map);
                guard2.Direction = guard2.GetDirectionTo(new Point3D(1328, 1624, 50));
                eventMobiles.Add(guard2);

                LBBguard guard3 = new LBBguard();
                guard3.Home = new Point3D(1328, 1627, 50);
                guard3.MoveToWorld(guard3.Home, map);
                guard3.Direction = guard3.GetDirectionTo(new Point3D(1328, 1624, 50));
                eventMobiles.Add(guard3);

                LBBguard guard4 = new LBBguard();
                guard4.Home = new Point3D(1328, 1621, 50);
                guard4.MoveToWorld(guard4.Home, map);
                guard4.Direction = guard4.GetDirectionTo(new Point3D(1328, 1624, 50));
                eventMobiles.Add(guard4);

                LBBguard guard5 = new LBBguard();
                guard5.Home = new Point3D(1334, 1627, 50);
                guard5.MoveToWorld(guard5.Home, map);
                guard5.Direction = guard5.GetDirectionTo(new Point3D(1328, 1624, 50));
                eventMobiles.Add(guard5);

                LBBguard guard6 = new LBBguard();
                guard6.Home = new Point3D(1334, 1621, 50);
                guard6.MoveToWorld(guard6.Home, map);
                guard6.Direction = guard6.GetDirectionTo(new Point3D(1328, 1624, 50));
                eventMobiles.Add(guard6);

                ///////////
                // ITEMS //
                ///////////

                LBBdiary1 diary1 = new LBBdiary1();
                diary1.MoveToWorld(new Point3D(1454, 1582, 30), map);
                eventItems.Add(diary1);

                LargeBoat boat = new LargeBoat();
                boat.TillerMan = null;
                boat.Facing    = Direction.West;
                boat.MoveToWorld(new Point3D(1493, 1854, -5), map);
                eventItems.Add(boat);

                LBBdiary2 diary2 = new LBBdiary2();
                diary2.MoveToWorld(new Point3D(1496, 1854, -2), map);
                eventItems.Add(diary2);

                BattleAxe axe = new BattleAxe();
                axe.MoveToWorld(new Point3D(1490, 1854, -2), map);
                axe.Movable = false;
                eventItems.Add(axe);

                GlassBottle bottle = new GlassBottle();
                bottle.MoveToWorld(new Point3D(1497, 1854, -2), map);
                bottle.Movable = false;
                eventItems.Add(bottle);

                Backpack pack = new Backpack();
                pack.MoveToWorld(new Point3D(1494, 1854, -2), map);
                pack.Movable = false;
                eventItems.Add(pack);

                pack.DropItem(new GlassBottle());
                pack.DropItem(new GlassBottle());
                pack.DropItem(new FishingPole());
                pack.DropItem(new BigFish());

                SpidersSilk packItem2 = new SpidersSilk();
                packItem2.Amount = 3;
                pack.DropItem(packItem2);

                MandrakeRoot packItem3 = new MandrakeRoot();
                packItem3.Amount = 5;
                pack.DropItem(packItem3);

                Bloodmoss packItem4 = new Bloodmoss();
                packItem4.Amount = 3;
                pack.DropItem(packItem4);

                SulfurousAsh packItem5 = new SulfurousAsh();
                packItem5.Amount = 4;
                pack.DropItem(packItem5);

                foreach (NetState state in NetState.Instances)
                {
                    if (state.Mobile != null && state.Mobile.AccessLevel > AccessLevel.Player)
                    {
                        state.Mobile.SendMessage(66, "All NPCs and Items have been generated. Ready to start Lord British's Books event.");
                    }
                }
            }
        }