Esempio n. 1
0
        public static void TryPackOpen(BaseCreature squire, Mobile from)
        {
            if (squire.IsDeadPet)
            {
                return;
            }

            Item QuiverCheck = squire.FindItemOnLayer(Layer.Cloak);

            if (QuiverCheck is BaseQuiver)
            {
                Container item = (Container)QuiverCheck;

                if (CheckAccess(squire, from))
                {
                    if (item != null)
                    {
                        from.Use(item);
                        if (((Squire)squire).m_SquireBeQuiet == false)
                        {
                            SquireDialog.DoSquireDialog(from, ((Squire)squire), SquireDialogTree.OpenQuiver, null, null);
                        }
                    }
                }
            }
            else
            {
                if (((Squire)squire).m_SquireBeQuiet == false)
                {
                    SquireDialog.DoSquireDialog(from, ((Squire)squire), SquireDialogTree.NotAQuiver, null, null);
                }
            }
        }
Esempio n. 2
0
        private void EquipItems(BaseCreature bc)
        {
            bc.AddItem(new RingmailChest());
            bc.AddItem(new RingmailLegs());
            bc.AddItem(new RingmailArms());
            bc.AddItem(new RingmailGloves());
            bc.AddItem(new PlateGorget());
            bc.AddItem(new LeatherCap());

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

            case 1: bc.AddItem(new Longsword()); break;

            case 2: bc.AddItem(new VikingSword()); break;

            case 3: bc.AddItem(new Broadsword()); break;
            }

            if (bc.FindItemOnLayer(Layer.TwoHanded) == null)
            {
                switch (Utility.Random(4))
                {
                case 0: bc.AddItem(new BronzeShield()); break;

                case 1: bc.AddItem(new MetalKiteShield()); break;

                case 2: bc.AddItem(new HeaterShield()); break;

                case 3: bc.AddItem(new WoodenKiteShield()); break;
                }
            }

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

            case 2: bc.AddItem(new ThighBoots()); break;
            }

            if (Utility.RandomBool())
            {
                bc.AddItem(new Cloak(Utility.RandomDyedHue()));
            }
        }
Esempio n. 3
0
        public void DressUpCrewMember(BaseCreature bc, Mobile captain)
        {
            if (captain is PirateDrow)
            {
                bc.AddItem(new ElvenBoots(0x6F8));
                Item armor = new LeatherChest(); armor.Hue = 0x6F8; bc.AddItem(armor);
                bc.AddItem(new FancyShirt(0));
                switch (Utility.Random(2))
                {
                case 0: bc.AddItem(new LongPants(0xBB4)); break;

                case 1: bc.AddItem(new ShortPants(0xBB4)); break;
                }
                switch (Utility.Random(2))
                {
                case 0: bc.AddItem(new Bandana(0x846)); break;

                case 1: bc.AddItem(new SkullCap(0x846)); break;
                }
            }
            else if (captain is PirateMen)
            {
                bc.AddItem(new ElvenBoots(0x83A));
                Item armor = new LeatherChest(); armor.Hue = 0x83A; bc.AddItem(armor);
                bc.AddItem(new FancyShirt(0));
                switch (Utility.Random(2))
                {
                case 0: bc.AddItem(new LongPants(0xBB4)); break;

                case 1: bc.AddItem(new ShortPants(0xBB4)); break;
                }

                switch (Utility.Random(2))
                {
                case 0: bc.AddItem(new Bandana(0x846)); break;

                case 1: bc.AddItem(new SkullCap(0x846)); break;
                }
            }
            else if (captain is PirateNatives)
            {
                bc.Hue     = 743;
                bc.HairHue = 0x96C;

                if (bc.Female)
                {
                    Item cloth9 = new FemaleLeatherChest();
                    cloth9.Hue  = 773;
                    cloth9.Name = "Native Tunic";
                    bc.AddItem(cloth9);
                }
                Item cloth1 = new SavageArms();
                cloth1.Hue  = 773;
                cloth1.Name = "Native Guantlets";
                bc.AddItem(cloth1);
                Item cloth2 = new SavageLegs();
                cloth2.Hue  = 773;
                cloth2.Name = "Native Leggings";
                bc.AddItem(cloth2);
                Item cloth3 = new TribalMask();
                cloth3.Hue  = 773;
                cloth3.Name = "Native Tribal Mask";
                bc.AddItem(cloth3);
                Item cloth4 = new LeatherSkirt();
                cloth4.Hue   = 773;
                cloth4.Name  = "Native Skirt";
                cloth4.Layer = Layer.Waist;
                bc.AddItem(cloth4);
            }
            else if (captain is PirateCult)
            {
                bc.AddItem(new Robe(0));
                switch (Utility.RandomMinMax(0, 2))
                {
                case 0: bc.AddItem(new ClothCowl()); break;

                case 1: bc.AddItem(new ClothHood()); break;

                case 2: bc.AddItem(new FancyHood()); break;
                }
                MorphingTime.ColorMyClothes(bc, captain.SpeechHue);
                bc.AddItem(new ElvenBoots(0x83A));

                if (bc.FindItemOnLayer(Layer.OneHanded) != null)
                {
                    Item hand = bc.FindItemOnLayer(Layer.OneHanded); hand.ItemID = 0x13C6; hand.Name = "gloves"; hand.MoveToWorld(captain.Location, captain.Map); bc.AddItem(hand);
                }
                if (bc.FindItemOnLayer(Layer.TwoHanded) != null)
                {
                    Item hand = bc.FindItemOnLayer(Layer.TwoHanded); hand.ItemID = 0x13C6; hand.Name = "gloves"; hand.MoveToWorld(captain.Location, captain.Map); bc.AddItem(hand);
                }
            }
            else if (captain is SailorGuards || captain is SailorElfGuards || captain is SailorOrkGuards)
            {
                DressGuards(bc, captain);
                if (captain is SailorElfGuards)
                {
                    bc.HairHue = Utility.RandomHairHue(); bc.Hue = Utility.RandomSkinColor();
                }
            }
            else if (captain is SailorMerchant || captain is SailorElf)
            {
                DressSailor(bc);
                if (captain is SailorElf)
                {
                    bc.HairHue = Utility.RandomHairHue(); bc.Hue = Utility.RandomSkinColor();
                }
                if (bc.FindItemOnLayer(Layer.OneHanded) != null)
                {
                    Item hand = bc.FindItemOnLayer(Layer.OneHanded);
                    if (hand is MonsterGloves)
                    {
                        hand.ItemID = 0x1087;
                        hand.Hue    = 0;
                        hand.Name   = "earrings";
                        hand.MoveToWorld(captain.Location, captain.Map);
                        bc.AddItem(hand);
                    }
                }
            }
        }