Пример #1
0
        public override void OnResponse(NetState state, RelayInfo info)
        {
            Mobile from = state.Mobile;

            switch (info.ButtonID)
            {
            case 1:
            {
                from.SendGump(new AdvancedCharacterChoiceGump());

                PlayerMobile pm = from as PlayerMobile;

                pm.ACState = AdvancedCharacterState.InUse;

                token.Delete();

                break;
            }

            case 0:
            {
                break;
            }
            }
        }
Пример #2
0
        public override void OnResponse(NetState sender, RelayInfo info)
        {
            Mobile from = sender.Mobile;

            if (!m_Token.IsChildOf(from.Backpack))
            {
                return;
            }

            Item reward = null;

            switch (info.ButtonID)
            {
            case 100:
                reward = new HearthOfHomeFireDeed();
                break;

            case 101:
                reward = new HolySword();
                break;

            case 102:
                reward = new LeggingsOfEmbers();
                break;

            case 103:
                reward = new RoseOfTrinsic();
                break;

            case 104:
                reward = new SamuraiHelm();
                break;

            case 105:
                reward = new ShaminoCrossbow();
                break;

            case 106:
                reward = new TapestryOfSosaria();
                break;
            }

            if (reward != null)
            {
                if (!from.AddToBackpack(reward))
                {
                    if (from.BankBox != null)
                    {
                        from.BankBox.DropItem(reward);
                    }
                }

                if (m_Token != null)
                {
                    m_Token.Delete();
                }
            }
        }
Пример #3
0
        public override void OnResponse(NetState sender, RelayInfo info)
        {
            if (info.ButtonID == 1)
            {
                Mobile m    = sender.Mobile;
                Item   item = null;

                item = new WoodenBox();

                Container c = item as Container;
                c.Hue  = 232;
                c.Name = "Evil Home D�cor Collection";

                c.DropItem(new BedOfNailsDeed());
                c.DropItem(new BoneTableDeed());
                c.DropItem(new CreepyPortraitDeed());
                c.DropItem(new HauntedMirrorDeed());
                c.DropItem(new MountedPixieGreenDeed());
                c.DropItem(new MountedPixieOrangeDeed());
                c.DropItem(new SacrificialAltarDeed());
                c.DropItem(new BoneCouchDeed());
                c.DropItem(new BoneThroneDeed());
                c.DropItem(new DisturbingPortraitDeed());
                c.DropItem(new MountedPixieBlueDeed());
                c.DropItem(new MountedPixieLimeDeed());
                c.DropItem(new MountedPixieWhiteDeed());
                c.DropItem(new UnsettlingPortraitDeed());

                if (item != null && m_Token != null)
                {
                    if (!m.AddToBackpack(item))
                    {
                        if (m.BankBox.TryDropItem(m, item, false))
                        {
                            item.MoveToWorld(m.Location, m.Map);
                        }
                    }

                    m_Token.Delete();
                }
            }
        }
Пример #4
0
        public override void OnResponse(NetState sender, RelayInfo info)
        {
            if (info.ButtonID == 1)
            {
                Mobile m    = sender.Mobile;
                Item   item = null;

                item = new WoodenBox();

                Container c = item as Container;
                c.Hue  = 1173;
                c.Name = "A Broken Furniture Set";

                c.DropItem(new BrokenBedDeed());
                c.DropItem(new BrokenChestOfDrawersDeed());
                c.DropItem(new BrokenFallenChairDeed());
                c.DropItem(new StandingBrokenChairDeed());
                c.DropItem(new BrokenArmoireDeed());
                c.DropItem(new BrokenBookcaseDeed());
                c.DropItem(new BrokenCoveredChairDeed());
                c.DropItem(new BrokenVanityDeed());


                if (item != null && m_Token != null)
                {
                    if (!m.AddToBackpack(item))
                    {
                        if (m.BankBox.TryDropItem(m, item, false))
                        {
                            item.MoveToWorld(m.Location, m.Map);
                        }
                    }

                    m_Token.Delete();
                }
            }
        }
Пример #5
0
        public override void OnResponse(GameClient sender, RelayInfo info)
        {
            if (info.ButtonID == 1)
            {
                Mobile m    = sender.Mobile;
                Item   item = null;

                switch (m_Token.Type)
                {
                case PromotionalType.PersonalAttendant:
                    //item = new PersonalAttendantDeed();
                    break;

                case PromotionalType.CrystalItems:
                {
                    item = new WoodenBox();

                    Container c = item as Container;
                    c.Hue  = 1173;
                    c.Name = "A Box of Crystal Items";

                    c.DropItem(new CrystalAltarDeed());
                    c.DropItem(new CrystalBeggarStatueDeed());
                    c.DropItem(new CrystalBrazierDeed());
                    c.DropItem(new CrystalBullStatueDeed());
                    c.DropItem(new CrystalRunnerStatueDeed());
                    c.DropItem(new CrystalSuplicantStatueDeed());
                    c.DropItem(new CrystalTableDeed());
                    c.DropItem(new CrystalThroneDeed());

                    break;
                }

                case PromotionalType.ShadowItems:
                {
                    item = new WoodenBox();

                    Container c = item as Container;
                    c.Hue  = 1908;
                    c.Name = "A Box of Shadow Items";

                    c.DropItem(new FireDemonStatueDeed());
                    c.DropItem(new GlobeOfSosariaDeed());
                    c.DropItem(new ObsidianPillarDeed());
                    c.DropItem(new ObsidianRockDeed());
                    c.DropItem(new ShadowAltarDeed());
                    c.DropItem(new ShadowBannerDeed());
                    c.DropItem(new ShadowFirePitDeed());
                    c.DropItem(new ShadowPillarDeed());
                    c.DropItem(new SpikeColumnDeed());
                    c.DropItem(new SpikePostDeed());

                    break;
                }
                }

                if (item != null && m_Token != null)
                {
                    if (!m.AddToBackpack(item))
                    {
                        if (m.BankBox.TryDropItem(m, item, false))
                        {
                            item.MoveToWorld(m.Location, m.Map);
                        }
                    }

                    m_Token.Delete();
                }
            }
        }
Пример #6
0
        public override void OnResponse(NetState sender, RelayInfo info)
        {
            Mobile from = sender.Mobile;

            if (!m_Token.IsChildOf(from.Backpack))
            {
                return;
            }

            Item reward = null;

            switch (info.ButtonID)
            {
            case 100:
                reward = new DupresShield();
                break;

            case 101:
                reward = new OssianGrimoire();
                break;

            case 102:
                reward = new FerretFormTalisman();
                break;

            case 103:
                reward = new SquirrelFormTalisman();
                break;

            case 104:
                reward = new CuSidheFormTalisman();
                break;

            case 105:
                reward = new ReptalonFormTalisman();
                break;

            case 106:
                reward = new QuiverOfInfinity();
                break;

            case 107:
                reward = new DawnsMusicBox();
                break;

            case 108:
                reward = new FountainOfLife();
                break;
            }

            if (reward != null)
            {
                if (!from.AddToBackpack(reward))
                {
                    if (from.BankBox != null)
                    {
                        from.BankBox.DropItem(reward);
                    }
                }

                if (m_Token != null)
                {
                    m_Token.Delete();
                }
            }
        }
Пример #7
0
        public override void OnResponse(NetState sender, RelayInfo info)
        {
            if (info.ButtonID == 1)
            {
                Mobile m    = sender.Mobile;
                Item   item = null;

                item = new WoodenBox();

                Container c = item as Container;
                c.Hue  = 106;
                c.Name = "A Heritage Items Set";

                c.DropItem(new BlueDecorativeRugDeed());
                c.DropItem(new BluePlainRugDeed());
                c.DropItem(new CherryBlossomTrunkDeed());
                c.DropItem(new CurtainsDeed());
                c.DropItem(new AppleTreeDeed());
                c.DropItem(new PeachTreeDeed());
                c.DropItem(new GuillotineDeed());
                c.DropItem(new HangingSwordsDeed());
                c.DropItem(new IronMaidenDeed());
                c.DropItem(new PeachTrunkDeed());
                c.DropItem(new RedPlainRugDeed());
                c.DropItem(new SmallFishingNetDeed());
                c.DropItem(new SuitOfGoldArmorDeed());
                c.DropItem(new TableWithBlueClothDeed());
                c.DropItem(new TableWithPurpleClothDeed());
                c.DropItem(new UnmadeBedDeed());
                c.DropItem(new WallTorchDeed());
                c.DropItem(new WallTorchDeed());
                c.DropItem(new BoilingCauldronAddonDeed());
                c.DropItem(new AppleTrunkDeed());
                c.DropItem(new BlueFancyRugDeed());
                c.DropItem(new CherryBlossomTreeDeed());
                c.DropItem(new CinnamonFancyRugDeed());
                c.DropItem(new FountainDeed());
                c.DropItem(new GoldenDecorativeRugDeed());
                c.DropItem(new HangingAxesDeed());
                c.DropItem(new HouseLadderDeed());
                c.DropItem(new LargeFishingNetDeed());
                c.DropItem(new PinkFancyRugDeed());
                c.DropItem(new ScarecrowDeed());
                c.DropItem(new StoneStatueDeed());
                c.DropItem(new SuitOfSilverArmorDeed());
                c.DropItem(new TableWithOrangeClothDeed());
                c.DropItem(new TableWithRedClothDeed());
                c.DropItem(new VanityDeed());
                c.DropItem(new WoodenCoffinDeed());


                if (item != null && m_Token != null)
                {
                    if (!m.AddToBackpack(item))
                    {
                        if (m.BankBox.TryDropItem(m, item, false))
                        {
                            item.MoveToWorld(m.Location, m.Map);
                        }
                    }

                    m_Token.Delete();
                }
            }
        }