コード例 #1
0
ファイル: RatCamp.cs プロジェクト: Godkong/Origins
            public override void AddComponents()
            {
                BaseCreature bc;

                DecayDelay = TimeSpan.FromMinutes(5.0);

                AddItem(new Static(4012), 0, 7, 0);
                AddItem(new Static(3555), 0, 7, 0);
                AddItem(new Static(2420), 0, 7, 0);

                AddMobile(Ratmen, 6, 4, 4, 0);
                AddMobile(Ratmen, 6, 4, -4, 0);
                AddMobile(Ratmen, 6, -4, 4, 0);
                AddMobile(Ratmen, 6, -4, -4, 0);

                if (Utility.RandomBool())
                    Prisoner = new EscortableNoble(this);
                else
                    Prisoner = new SeekerOfAdventure(this);

                bc = (BaseCreature)Prisoner;
                bc.IsPrisoner = true;
                bc.CantWalk = true;

                AddMobile(Prisoner, 0, 1, 1, 0);

                AddItem(new Static(1055), 5, 5, 0);
                AddItem(new Static(1065), 5, -4, 0);
                AddItem(new Static(1056), -4, 5, 0);
                AddItem(new Static(1064), -4, -4, 0);

                AddItem(new TreasureLevel1(), 2, 2, 0);
                AddItem(new TreasureLevel2(), -2, -2, 0);
            }
コード例 #2
0
            public override void AddComponents()
            {
                BaseCreature bc;

                DecayDelay = TimeSpan.FromMinutes(5.0);

                AddItem(new Static(4012), 0, 7, 0);
                AddItem(new Static(3555), 0, 7, 0);
                AddItem(new Static(2420), 0, 7, 0);

                AddMobile(Gypsys, 6, 4, 4, 0);
                AddMobile(Gypsys, 6, 4, -4, 0);
                AddMobile(Gypsys, 6, -4, 4, 0);
                AddMobile(Gypsys, 6, -4, -4, 0);

                if (Utility.RandomBool())
                {
                    Prisoner = new EscortableNoble(this);
                }
                else
                {
                    Prisoner = new SeekerOfAdventure(this);
                }

                bc            = (BaseCreature)Prisoner;
                bc.IsPrisoner = true;
                bc.CantWalk   = true;

                AddMobile(Prisoner, 0, 1, 1, 0);

                AddItem(new TreasureLevel1(), 2, 2, 0);
                AddItem(new TreasureLevel2(), -2, -2, 0);
            }
コード例 #3
0
ファイル: RatCamp.cs プロジェクト: zmazza/ServUO
        public override void AddComponents()
        {
            Visible = false;
            AddItem(new Static(0x10ee), 0, 0, 0);
            AddItem(new Static(0xfac), 0, 6, 0);

            switch (Utility.Random(3))
            {
            case 0:
            {
                AddItem(new Item(0xDE3), 0, 6, 0);         // Campfire
                AddItem(new Item(0x974), 0, 6, 1);         // Cauldron
                break;
            }

            case 1:
            {
                AddItem(new Item(0x1E95), 0, 6, 1);         // Rabbit on a spit
                break;
            }

            default:
            {
                AddItem(new Item(0x1E94), 0, 6, 1);         // Chicken on a spit
                break;
            }
            }

            AddItem(new Item(0x41F), 5, 5, 0); // Gruesome Standart South

            AddCampChests();

            for (int i = 0; i < 4; i++)
            {
                AddMobile(Ratmen, Utility.RandomMinMax(-7, 7), Utility.RandomMinMax(-7, 7), 0);
            }

            switch (Utility.Random(2))
            {
            case 0:
                Prisoner = new EscortableNoble();
                break;

            default:
                Prisoner = new EscortableSeekerOfAdventure();
                break;
            }

            Prisoner.IsPrisoner = true;
            Prisoner.CantWalk   = true;

            Prisoner.YellHue = Utility.RandomList(0x57, 0x67, 0x77, 0x87, 0x117);
            AddMobile(Prisoner, Utility.RandomMinMax(-2, 2), Utility.RandomMinMax(-2, 2), 0);
        }
コード例 #4
0
        public override void AddComponents()
        {
            BaseCreature bc;

            DecayDelay = TimeSpan.FromMinutes(5.0);

            AddItem(new Static(4628), 2, 3, 0);
            AddItem(new Static(4629), 2, 2, 0);
            AddItem(new Static(4622), 2, 1, 0);
            AddItem(new Static(4627), 3, 3, 0);
            AddItem(new Static(4630), 3, 2, 0);
            AddItem(new Static(4623), 3, 1, 0);
            AddItem(new Static(4626), 4, 3, 0);
            AddItem(new Static(4625), 4, 2, 0);
            AddItem(new Static(4624), 4, 1, 0);
            AddMobile(Mages, 6, 3, 2, 0);
            AddItem(new Static(6665), -1, -4, 0);
            AddItem(new Static(6661), -1, -6, 0);
            AddItem(new Static(6658), 3, -6, 1);
            AddItem(new Static(6659), 6, -6, 1);
            AddItem(new Static(5645), 2, 5, 0);
            AddItem(new Static(5645), 2, 3, 0);
            AddItem(new Static(5645), 2, 2, 0);
            AddItem(new Static(5645), 2, 1, 0);
            AddItem(new Static(5645), 2, 0, 0);
            AddItem(new Static(5645), 2, -1, 0);
            AddItem(new Static(5645), 2, -2, 0);
            AddItem(new Static(5645), 2, -3, 0);
            AddItem(new Static(5645), 2, -4, 0);
            AddItem(new Static(5645), 2, -5, 0);
            AddItem(new Static(5645), 2, -6, 0);
            AddItem(new Static(5646), 2, -6, 0);
            AddItem(new Static(5646), 3, -6, 0);
            AddItem(new Static(5646), 4, -6, 0);
            AddItem(new Static(5646), 5, -6, 0);
            AddItem(new Static(5646), 6, -6, 0);
            AddItem(new Static(5646), 7, -6, 0);
            AddItem(new Static(7576), 4, -1, 0);
            AddItem(new Static(7575), 4, 0, 0);
            AddItem(new Static(7420), 5, -1, 0);
            AddItem(new Static(7418), 5, 0, 0);
            AddMobile(Mages, 6, 3, 2, 0);
            AddItem(new Static(4609), 5, 0, 0);
            AddItem(new Static(4611), 5, -1, 0);
            AddItem(new Static(4611), 5, -2, 0);
            AddItem(new Static(4610), 5, -3, 0);
            AddItem(new Static(7400), 5, -2, 6);
            AddItem(new Static(7399), 5, -1, 6);
            AddMobile(Mages, 6, 3, 2, 0);
            AddItem(new Static(4073), 1, 1, 0);
            AddItem(new Static(4070), 1, 0, 0);
            AddItem(new Static(4071), 1, -1, 0);
            AddItem(new Static(4076), 2, 1, 0);
            AddItem(new Static(4074), 2, 0, 0);
            AddItem(new Static(4072), 2, -1, 0);
            AddItem(new Static(4077), 3, 1, 0);
            AddItem(new Static(4078), 3, 0, 0);
            AddItem(new Static(4075), 3, -1, 0);

            if (Utility.RandomBool())
            {
                Prisoner = new EscortableNoble(this);
            }
            else
            {
                Prisoner = new SeekerOfAdventure(this);
            }

            bc            = (BaseCreature)Prisoner;
            bc.IsPrisoner = true;
            bc.CantWalk   = true;

            AddMobile(Prisoner, 0, 2, 0, 0);

            AddMobile(Mages, 6, 2, 3, 0);
            AddMobile(Mages, 6, 3, 2, 0);
        }
コード例 #5
0
ファイル: PrisonerCamp.cs プロジェクト: zmazza/ServUO
        public override void AddComponents()
        {
            IronGate gate = new IronGate(DoorFacing.EastCCW);

            m_Gate = gate;

            gate.KeyValue = Key.RandomValue();
            gate.Locked   = true;

            AddItem(gate, -2, 1, 0);
            AddCampChests();

            switch (Utility.Random(4))
            {
            case 0:
            {
                AddMobile(new Orc(), 0, -2, 0);
                AddMobile(new OrcishMage(), 0, 1, 0);
                AddMobile(new OrcishLord(), 0, -2, 0);
                AddMobile(new OrcCaptain(), 0, 1, 0);
                AddMobile(new Orc(), 0, -1, 0);
                AddMobile(new OrcChopper(), 0, -2, 0);
            }
            break;

            case 1:
            {
                AddMobile(new Ratman(), 0, -2, 0);
                AddMobile(new Ratman(), 0, 1, 0);
                AddMobile(new RatmanMage(), 0, -2, 0);
                AddMobile(new Ratman(), 0, 1, 0);
                AddMobile(new RatmanArcher(), 0, -1, 0);
                AddMobile(new Ratman(), 0, -2, 0);
            }
            break;

            case 2:
            {
                AddMobile(new Lizardman(), 0, -2, 0);
                AddMobile(new Lizardman(), 0, 1, 0);
                AddMobile(new Lizardman(), 0, -2, 0);
                AddMobile(new Lizardman(), 0, 1, 0);
                AddMobile(new Lizardman(), 0, -1, 0);
                AddMobile(new Lizardman(), 0, -2, 0);
            }
            break;

            case 3:
            {
                AddMobile(new Brigand(), 0, -2, 0);
                AddMobile(new Brigand(), 0, 1, 0);
                AddMobile(new Brigand(), 0, -2, 0);
                AddMobile(new Brigand(), 0, 1, 0);
                AddMobile(new Brigand(), 0, -1, 0);
                AddMobile(new Brigand(), 0, -2, 0);
            }
            break;
            }

            switch (Utility.Random(2))
            {
            case 0: Prisoner = new EscortableNoble(); break;

            case 1: Prisoner = new EscortableSeekerOfAdventure(); break;
            }

            Prisoner.IsPrisoner = true;
            Prisoner.CantWalk   = true;

            Prisoner.YellHue = Utility.RandomList(0x57, 0x67, 0x77, 0x87, 0x117);
            AddMobile(Prisoner, -2, 0, 0);
        }