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();
                }
            }
        }
Exemple #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 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();
                }
            }
        }