Ejemplo n.º 1
0
        public LevelUpAcceptGump(LevelUpScroll scroll, Mobile from) : base(0, 0)
        {
            m_Scroll = scroll;
            m_From   = from;

            string PaymentMsg = null;

            if (LevelItems.RewardBlacksmith && LevelItems.BlacksmithRewardAmt > 0)
            {
                PaymentMsg = "<BR><BR>If you accept and the process is successful, you will be given additional compensation of " + LevelItems.BlacksmithRewardAmt + ".";
            }

            Closable   = false;
            Disposable = false;
            Dragable   = true;
            Resizable  = false;
            AddPage(0);

            AddBackground(25, 22, 318, 268, 9390);
            AddLabel(52, 27, 0, @"Level Increase Request");
            AddLabel(52, 60, 0, @"Requested By:");
            AddLabel(52, 81, 0, @"Level Amount:");
            AddHtml(49, 109, 271, 116, @"<CENTER><U>Max Level Increase Request</U><BR><BR>Someone has requested your expert services in increasing the max levels of a levelable item." + PaymentMsg + "<BR><BR>Do you accept their offer?", (bool)false, (bool)true);
            AddButton(50, 235, 4023, 4024, 1, GumpButtonType.Reply, 0);
            AddButton(83, 235, 4017, 4018, 2, GumpButtonType.Reply, 0);
            if (m_From != null)
            {
                AddLabel(155, 60, 390, m_From.Name.ToString());
            }
            if (m_Scroll != null)
            {
                AddLabel(155, 81, 390, m_Scroll.Value.ToString());
            }
        }
        public AwaitingSmithApprovalGump(LevelUpScroll scroll, Mobile from)
            : base(0, 0)
        {
            this.m_Scroll = scroll;
            this.m_From   = from;

            this.Closable   = true;
            this.Disposable = true;
            this.Dragable   = true;
            this.Resizable  = false;
            this.AddPage(0);

            this.AddBackground(25, 10, 420, 180, 5054);
            this.AddImageTiled(33, 20, 401, 160, 2624);
            this.AddAlphaRegion(33, 20, 401, 160);

            int value = this.m_Scroll.Value;

            if (value == 5)
            {
                this.AddHtml(40, 20, 260, 20, String.Format("<basefont color=#FFFFFF>Wonderous scroll of leveling (+{0})</basefont>", value), (bool)false, (bool)false);
            }
            else if (value == 10)
            {
                this.AddHtml(40, 20, 260, 20, String.Format("<basefont color=#FFFFFF>Exalted scroll of leveling (+{0})</basefont>", value), (bool)false, (bool)false);
            }
            else if (value == 15)
            {
                this.AddHtml(40, 20, 260, 20, String.Format("<basefont color=#FFFFFF>Mythical scroll of leveling (+{0})</basefont>", value), (bool)false, (bool)false);
            }
            else if (value == 20)
            {
                this.AddHtml(40, 20, 260, 20, String.Format("<basefont color=#FFFFFF>Legendary scroll of leveling (+{0})</basefont>", value), (bool)false, (bool)false);
            }
            else
            {
                this.AddHtml(40, 20, 260, 20, String.Format("<basefont color=#FFFFFF>Scroll of leveling (+{0})</basefont>", value), false, false);
            }

            this.AddHtml(40, 46, 387, 20, @"<CENTER><U><basefont color=#FF0000>Please Wait...</basefont></U></CENTER>", (bool)false, (bool)false);
            this.AddHtml(40, 70, 387, 100, @"The other player is validating your Level Increase scroll.<br><br>If the process is successful, you will then be given the option to apply the scroll immediately OR press ESC to apply the scroll at a later time.", (bool)true, (bool)false);
        }