コード例 #1
0
        public override void OnResponse(NetState sender, RelayInfo info)
        {
            Item reward = null;

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

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

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

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

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

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

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

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

            case 108:
                reward = new TomeOfLostKnowledge();
                break;

            case 109:
            {
                from.CloseGump(typeof(ChooseRewardGump));
                from.SendGump(new ChoosePigmentGump(from, minister));
                break;
            }
            }

            if (reward != null)
            {
                minister.Say(1070984, String.Format("#{0}", reward.LabelNumber));                     // You have earned the gratitude of the Empire. I have placed the ~1_OBJTYPE~ in your backpack.

                from.AddToBackpack(reward);

                ((PlayerMobile)from).GivenArtifacts = 0;
            }
            else if (info.ButtonID != 109)
            {
                minister.Say(1070982);                   // When you wish to choose your reward, you have but to approach me again.
            }
        }
コード例 #2
0
        public override void OnResponse(NetState state, RelayInfo info)
        {
            Mobile from = state.Mobile;

            switch (info.ButtonID)
            {
            case 0:
            {
                from.CloseGump(typeof(TokunoArtifactGump));
                break;
            }

            case 1:
            {
                Item item = new SwordsOfProsperity();
                item.LootType = LootType.Regular;
                from.AddToBackpack(item);
                from.CloseGump(typeof(TokunoArtifactGump));
                m_Deed.Delete();

                break;
            }

            case 3:
            {
                Item item = new SwordOfTheStampede();
                item.LootType = LootType.Regular;
                from.AddToBackpack(item);
                from.CloseGump(typeof(TokunoArtifactGump));
                m_Deed.Delete();

                break;
            }

            case 2:
            {
                Item item = new DarkenedSky();
                item.LootType = LootType.Regular;
                from.AddToBackpack(item);
                from.CloseGump(typeof(TokunoArtifactGump));
                m_Deed.Delete();

                break;
            }

            case 4:
            {
                Item item = new SwordOfTheStampede();
                item.LootType = LootType.Regular;
                from.AddToBackpack(item);
                from.CloseGump(typeof(TokunoArtifactGump));
                m_Deed.Delete();

                break;
            }

            case 5:
            {
                Item item = new WindsEdge();
                item.LootType = LootType.Regular;
                from.AddToBackpack(item);
                from.CloseGump(typeof(TokunoArtifactGump));
                m_Deed.Delete();

                break;
            }

            case 6:
            {
                Item item = new SwordOfTheStampede();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(TokunoArtifactGump));
                m_Deed.Delete();

                break;
            }

            case 7:
            {
                Item item = new Stormgrip();
                item.LootType = LootType.Regular;
                from.AddToBackpack(item);
                from.CloseGump(typeof(TokunoArtifactGump));
                m_Deed.Delete();

                break;
            }

            case 8:
            {
                Item item = new RuneBeetleCarapace();
                item.LootType = LootType.Regular;
                from.AddToBackpack(item);
                from.CloseGump(typeof(TokunoArtifactGump));
                m_Deed.Delete();

                break;
            }

            case 9:
            {
                Item item = new TomeOfLostKnowledge();
                item.LootType = LootType.Regular;
                from.AddToBackpack(item);
                from.CloseGump(typeof(TokunoArtifactGump));
                m_Deed.Delete();

                break;
            }
            }
        }