Ejemplo n.º 1
0
        public override void OnResponse(NetState state, RelayInfo info)
        {
            Mobile from = state.Mobile;

            switch (info.ButtonID)
            {
            case 0:
            {
                from.SendMessage("You decide not to claim your prizes.");
                break;
            }

            case 1:
            {
                Item[] WQStone = from.Backpack.FindItemsByType(typeof(WQStone));
                if (from.Backpack.ConsumeTotal(typeof(WQStone), 1))

                {
                    WyrmSoulBow WyrmSoulBow = new WyrmSoulBow();
                    from.AddToBackpack(WyrmSoulBow);
                    from.SendMessage("a Wyrm Soul's Bow fall into your backpack.");
                }
                else
                {
                    from.SendMessage("You do not have a Wyrm Soul's Stone Ticket.");
                }
                break;
            }
            }
        }
Ejemplo n.º 2
0
        public override void OnResponse(NetState state, RelayInfo info)
        {
            Mobile from = state.Mobile;

            switch (info.ButtonID)
            {
            case 0:
            {
                from.SendMessage("You decide not to claim a prize.");
                break;
            }

            case 1:
            {
                Item[] WQStonebow = from.Backpack.FindItemsByType(typeof(WQStonebow));
                if (from.Backpack.ConsumeTotal(typeof(WQStonebow), 1))

                {
                    WyrmSoulBow WyrmSoulBow = new WyrmSoulBow();
                    from.AddToBackpack(WyrmSoulBow);
                    from.SendMessage("a Wyrm Soul's Bow falls into your backpack.");
                }
                else
                {
                    from.SendMessage("You do not have a Wyrm's Bow Soul Stone to redeem!");
                }
                break;
            }

            case 2:
            {
                Item[] WQStonekryss = from.Backpack.FindItemsByType(typeof(WQStonekryss));
                if (from.Backpack.ConsumeTotal(typeof(WQStonekryss), 1))

                {
                    WyrmSoulKryss WyrmSoulKryss = new WyrmSoulKryss();
                    from.AddToBackpack(WyrmSoulKryss);
                    from.SendMessage("A Wyrm Soul's Kryss falls into your backpack.");
                }
                else
                {
                    from.SendMessage("You do not have a Wyrm's Kryss Soul Stone to redeem!");
                }
                break;
            }

            case 3:
            {
                Item[] WQStonekatana = from.Backpack.FindItemsByType(typeof(WQStonekatana));
                if (from.Backpack.ConsumeTotal(typeof(WQStonekatana), 1))

                {
                    WyrmSoulKatana WyrmSoulKatana = new WyrmSoulKatana();
                    from.AddToBackpack(WyrmSoulKatana);
                    from.SendMessage("A Wyrm Soul's Katana falls into your backpack.");
                }
                else
                {
                    from.SendMessage("You do not have a Wyrm's Katana Soul Stone to redeem!");
                }
                break;
            }

            case 4:
            {
                Item[] WQStonemace = from.Backpack.FindItemsByType(typeof(WQStonemace));
                if (from.Backpack.ConsumeTotal(typeof(WQStonemace), 1))

                {
                    WyrmSoulMace WyrmSoulMace = new WyrmSoulMace();
                    from.AddToBackpack(WyrmSoulMace);
                    from.SendMessage("A Wyrm Soul's Mace falls into your backpack.");
                }
                else
                {
                    from.SendMessage("You do not have a Wyrm's Mace Soul Stone to redeem!");
                }
                break;
            }

            case 5:
            {
                Item[] WQStonefork = from.Backpack.FindItemsByType(typeof(WQStonefork));
                if (from.Backpack.ConsumeTotal(typeof(WQStonefork), 1))

                {
                    WyrmSoulWarFork WyrmSoulWarFork = new WyrmSoulWarFork();
                    from.AddToBackpack(WyrmSoulWarFork);
                    from.SendMessage("A Wyrm Soul's Warfork falls into your backpack.");
                }
                else
                {
                    from.SendMessage("You do not have a Wyrm's Fork Soul Stone to redeem!");
                }
                break;
            }

            case 6:
            {
                Item[] WQStoneshield = from.Backpack.FindItemsByType(typeof(WQStoneshield));
                if (from.Backpack.ConsumeTotal(typeof(WQStoneshield), 1))

                {
                    WyrmSoulShield WyrmSoulShield = new WyrmSoulShield();
                    from.AddToBackpack(WyrmSoulShield);
                    from.SendMessage("A Wyrm Soul's Shield falls into your backpack.");
                }
                else
                {
                    from.SendMessage("You do not have a Wyrm's Shield Soul Stone to redeem!");
                }
                break;
            }
            }
        }