コード例 #1
0
        public BuumBuumGump(Mobile from, int last) : base(0, 0)
        {
            m_Player = ( TeiravonMobile )from;
            m_Player.CloseGump(typeof(BuumBuumGump));
            m_LastItem = last;


            Closable   = true;
            Disposable = true;
            Dragable   = true;
            Resizable  = false;

            AddPage(0);
            AddLayout();

            if (m_LastItem > 0)
            {
                AddLabel(145, 363, 1000, @"Create last");
                AddButton(223, 364, 2714, 2715, m_LastItem, GumpButtonType.Reply, 0);
            }

            AddPage(2);

            AddHtml(272, 160, 219, 187, @"This particular explosive formula is relatively easy for any orc to learn. It is a mixture of black pearls and sulfurous ash that causes a small, almost nonexistant explosion when it reacts with air. The noise of burning sulfurous ash is much akin to a yelp, thusly the mixture has been dubbed golog's yelp, the yelp of an elf.", true, true);
            AddButton(454, 364, 2714, 2715, (int)Buttons.CGolog, GumpButtonType.Reply, 0);
            AddLabel(404, 363, 1000, @"Create");

            AddPage(3);

            AddHtml(272, 160, 219, 187, @"This formula consists of fertile dirt, mixed with sulfurous ash and crushed black pearls. The dirt adds considerably to the explosive properties of the two latter ingredients. When the mixture explodes, it causes a noise that sounds like an audible discharge of gas. The orcs have promptly named it the shara's fart, the flatulence of a human.", true, true);
            AddButton(454, 364, 2714, 2715, (int)Buttons.CShara, GumpButtonType.Reply, 0);
            AddLabel(404, 363, 1000, @"Create");

            AddPage(4);

            AddHtml(272, 160, 219, 187, @"The Gazat's Roar is an explosive of a medium potency. The blast radius is somewhat wider than usual, due to the highly compressed combination of sulfurous ash and fertile dirt. The audible discharge is extremely deep, low sound. Therefore it has been named the Gazat's Roar, the roar of a dwarf.", true, true);
            AddButton(454, 364, 2714, 2715, (int)Buttons.CGazat, GumpButtonType.Reply, 0);
            AddLabel(404, 363, 1000, @"Create");

            AddPage(5);

            AddHtml(272, 160, 219, 187, @"The Stone Smasher explosive has previously been used by orcs to clear small caverns of rubble. Upon detonation, it emits a stone-shattering pressure wave, and has promptly been dubbed Stone Smasher.", true, true);
            AddButton(454, 364, 2714, 2715, (int)Buttons.CStone, GumpButtonType.Reply, 0);
            AddLabel(404, 363, 1000, @"Create");

            AddPage(6);

            AddHtml(272, 160, 219, 187, @"The Mountain Crusher is a more potent version of the Stone Smasher formula. The pressure wave is far greater in both strength and range. It has been used to create makeshift caves for traveling warbands.", true, true);
            AddButton(454, 364, 2714, 2715, (int)Buttons.CMountain, GumpButtonType.Reply, 0);
            AddLabel(404, 363, 1000, @"Create");

            AddPage(7);

            AddHtml(272, 160, 219, 187, @"The Might of the Uruk is the most potent formula known to orcs. It has been the end of many an orc makur, being very volatile in nature and prone to spontaneous explosions. The formula was originally devised by the legendary Krugthor Spinebreaker, it has since been upgraded with a new reagent and made a lot safer by the promiscuous orc smith, Imrik. The new formula has been passed on as the orc legacy.", true, true);
            AddButton(454, 364, 2714, 2715, (int)Buttons.CMight, GumpButtonType.Reply, 0);
            AddLabel(404, 363, 1000, @"Create");
        }
コード例 #2
0
        public StoneOfSavingGump(Mobile from, Item item, ArrayList data) : base(0, 0)
        {
            Closable = true;
            Dragable = true;

            m_Player = (TeiravonMobile)from;
            m_Player.CloseGump(typeof(StoneOfSavingGump));
            m_Player.CloseGump(typeof(RestorePlayer));
            m_Stone          = (Item)item;
            SavedInformation = data;

            AddPage(0);

            AddBackground(281, 179, 179, 244, 5054);
            AddLabel(302, 224, 237, "Stone of Saving");
            AddButton(303, 260, 2360, 2361, 1, GumpButtonType.Reply, 0);
            AddButton(303, 290, 2360, 2361, 2, GumpButtonType.Reply, 0);
            AddButton(303, 320, 2360, 2361, 3, GumpButtonType.Reply, 0);
            AddButton(303, 350, 2360, 2361, 4, GumpButtonType.Reply, 0);

            AddLabel(320, 260, 4, "Store player");
            AddLabel(320, 290, 4, "Restore player");
            AddLabel(320, 320, 4, "Remove player");
            AddLabel(320, 350, 4, "Curse player");

            AddImage(433, 226, 10432);

            AddImageTiled(281, 195, 17, 183, 10200);
            AddImage(281, 181, 10203);

            AddImageTiled(443, 196, 17, 28, 10200);
            AddImage(443, 181, 10203);

            AddImage(389, 180, 10462);
            AddImage(343, 180, 10462);
            AddImage(297, 180, 10462);
            AddImage(388, 209, 111);

            AddImage(281, 375, 10452);
        }
コード例 #3
0
            public AlchemyTomeGump(TeiravonMobile m_Player, ulong m_Formulas) : base(40, 40)
            {
                m_Player.CloseGump(typeof(AlchemyTomeGump));
                AddPage(0);
                AddImage(40, 40, 2201);

                ListPotion("Refresh", "1 Bottle", "1 Black Pearl", null, null, false);

                /*for ( ulong i = 0x0; i <= m_Formulas; i *= 2 )
                 * {
                 *      AddPage( page += 1 );
                 * }*/
            }
コード例 #4
0
        public override bool OnDragDrop(Mobile from, Item item)
        {
            TeiravonMobile m_player = (TeiravonMobile)from;

            if (item is BaseGranite)
            {
                BaseGranite m_granite = (BaseGranite)item;
                switch (m_granite.Resource)
                {
                case CraftResource.Iron:
                    iron_amt += item.Amount; break;

                case CraftResource.DullCopper:
                    dull_amt += item.Amount; break;

                case CraftResource.ShadowIron:
                    shadow_amt += item.Amount; break;

                case CraftResource.Copper:
                    copper_amt += item.Amount; break;

                case CraftResource.Bronze:
                    bronze_amt += item.Amount; break;

                case CraftResource.Gold:
                    gold_amt += item.Amount; break;

                case CraftResource.Agapite:
                    agapite_amt += item.Amount; break;

                case CraftResource.Verite:
                    verite_amt += item.Amount; break;

                case CraftResource.Valorite:
                    valorite_amt += item.Amount; break;

                case CraftResource.Mithril:
                    mithril_amt += item.Amount; break;
                }

                m_player.SendMessage("You put the granite into the box");
                m_player.CloseGump(typeof(GraniteGump));
                m_player.SendGump(new GraniteGump(m_player, this, this.IronAmt, this.DullAmt, this.ShadowAmt, this.CopperAmt, this.BronzeAmt, this.GoldAmt, this.AgapiteAmt, this.VeriteAmt, this.ValoriteAmt, this.MithrilAmt));
                m_granite.Delete();
                return(true);
            }

            from.SendMessage("That box is for granite only.");
            return(false);
        }
コード例 #5
0
        public NewShapeshiftGump(TeiravonMobile from)
            : base(0, 0)
        {
            m_Player = from;
            max      = 1 + m_Player.PlayerLevel / (m_Player.IsShapeshifter()? 4 : 7);
            if (max > 7)
            {
                max = 7;
            }

            Closable   = true;
            Disposable = true;
            Dragable   = true;
            Resizable  = false;

            m_Player = (TeiravonMobile)from;
            m_Player.CloseGump(typeof(NewShapeshiftGump));
            this.AddPage(0);
            AddBackground(312, 10, 30 + (max * 98), 140, 9260);
            //this.AddImage(328, -5, 30061);
            //this.AddImage(328, 55 + (max * 82), 30077);

            //AddLabel(355,  115, 2930, @"Evaluate creature");
            AddButton(330, 120, 22153, 22155, (int)Buttons.Information, GumpButtonType.Reply, 0);

            if (m_Player.IsShifted() && m_Player.Shapeshifted)
            {
                //AddLabel(401, 487, 2930, @"Undo transformation");
                AddButton(276 + ((30 + (max * 98))), 112, 5052, 5053, (int)Buttons.Cancel, GumpButtonType.Reply, 0);
            }

            bool DeleteTime = false;

            if (m_Player.ShapeshiftSlotDelete <= DateTime.Now)
            {
                DeleteTime = true;
            }

            switch (max)
            {
            case 1:
                if (FilledSlot(1, m_Player))
                {
                    FullSlot((int)Buttons.CTransform1, 1, m_Player);

                    if (DeleteTime)
                    {
                        DeleteButton((int)Buttons.CDelete1, 1);
                    }
                }
                else
                {
                    EmptySlot((int)Buttons.CAdd1, 1);
                }

                break;

            case 2:

                if (FilledSlot(2, m_Player))
                {
                    FullSlot((int)Buttons.CTransform2, 2, m_Player);

                    if (DeleteTime)
                    {
                        DeleteButton((int)Buttons.CDelete2, 2);
                    }
                }
                else
                {
                    EmptySlot((int)Buttons.CAdd2, 2);
                }

                goto case 1;

            case 3:
                if (FilledSlot(3, m_Player))
                {
                    FullSlot((int)Buttons.CTransform3, 3, m_Player);

                    if (DeleteTime)
                    {
                        DeleteButton((int)Buttons.CDelete3, 3);
                    }
                }
                else
                {
                    EmptySlot((int)Buttons.CAdd3, 3);
                }

                goto case 2;

            case 4:
                if (FilledSlot(4, m_Player))
                {
                    FullSlot((int)Buttons.CTransform4, 4, m_Player);

                    if (DeleteTime)
                    {
                        DeleteButton((int)Buttons.CDelete4, 4);
                    }
                }
                else
                {
                    EmptySlot((int)Buttons.CAdd4, 4);
                }

                goto case 3;

            case 5:

                if (FilledSlot(5, m_Player))
                {
                    FullSlot((int)Buttons.CTransform5, 5, m_Player);

                    if (DeleteTime)
                    {
                        DeleteButton((int)Buttons.CDelete5, 5);
                    }
                }
                else
                {
                    EmptySlot((int)Buttons.CAdd5, 5);
                }

                goto case 4;

            case 6:

                if (FilledSlot(6, m_Player))
                {
                    FullSlot((int)Buttons.CTransform6, 6, m_Player);

                    if (DeleteTime)
                    {
                        DeleteButton((int)Buttons.CDelete6, 6);
                    }
                }
                else
                {
                    EmptySlot((int)Buttons.CAdd6, 6);
                }

                goto case 5;

            case 7:

                if (FilledSlot(7, m_Player))
                {
                    FullSlot((int)Buttons.CTransform7, 7, m_Player);

                    if (DeleteTime)
                    {
                        DeleteButton((int)Buttons.CDelete7, 7);
                    }
                }
                else
                {
                    EmptySlot((int)Buttons.CAdd7, 7);
                }

                goto case 6;

            default: break;
            }
        }
コード例 #6
0
        public TrapGump(TeiravonMobile from) : base(40, 40)
        {
            m_From = from;

            from.CloseGump(typeof(TrapGump));

            AddPage(0);

            AddBackground(0, 0, 530, 437, 5054);
            AddImageTiled(10, 10, 510, 22, 2624);
            AddImageTiled(10, 292, 150, 45, 2624);
            AddImageTiled(165, 292, 355, 45, 2624);
            AddImageTiled(10, 342, 510, 85, 2624);
            AddImageTiled(10, 37, 200, 250, 2624);
            AddImageTiled(215, 37, 305, 250, 2624);
            AddAlphaRegion(10, 10, 510, 417);

            AddHtml(10, 12, 510, 20, String.Format("<BASEFONT COLOR=#{0:X6}><Center>TRAP CREATION SYSTEM</Center></BASEFONT>", FontColor), false, false);

            AddHtmlLocalized(10, 37, 200, 22, 1044010, LabelColor, false, false);               // <CENTER>CATEGORIES</CENTER>
            AddHtmlLocalized(215, 37, 305, 22, 1044011, LabelColor, false, false);              // <CENTER>SELECTIONS</CENTER>
            AddHtmlLocalized(10, 302, 150, 25, 1044012, LabelColor, false, false);              // <CENTER>NOTICES</CENTER>

            AddButton(15, 402, 4017, 4019, 0, GumpButtonType.Reply, 0);
            AddHtmlLocalized(50, 405, 150, 18, 1011441, LabelColor, false, false);               // EXIT

            /* Trap Selection */
            ListTrapCategory(0, 1, "Spike Traps");
            ListTrapCategory(0, 2, "Snare Traps");
            ListTrapCategory(0, 3, "Poison Traps");
            ListTrapCategory(0, 4, "Gas Traps");
            ListTrapCategory(0, 5, "Explosion Traps");
            //ListTrapCategory( 0, 6, "Magical Traps" );

            AddHtml(170, 295, 350, 40, String.Format("<BASEFONT COLOR=#{0:X6}>{1}</BASEFONT>", FontColor, notice), false, false);

            // Spike Trap
            AddPage(1);

            ListTrapSelection(1, "Spike Trap");
            ListTrapSelection(2, "Giant Spike Trap");

            // Snare Trap
            AddPage(2);

            ListTrapSelection(3, "Snare Trap");

            // Poison Trap
            AddPage(3);

            ListTrapSelection(4, "Lesser Poison");
            ListTrapSelection(5, "Normal Poison");
            ListTrapSelection(6, "Greater Poison");
            ListTrapSelection(7, "Lethal Poison");

            // Gas Trap
            AddPage(4);

            ListTrapSelection(8, "Gas Trap");

            // Explosion Trap
            AddPage(5);

            ListTrapSelection(9, "Flame Trap");
        }
コード例 #7
0
        public BOEGump(TeiravonMobile from) : base(0, 0)
        {
            mage = from;

            mage.CloseGump(typeof(MSGemGump));

            int page = 0;

            this.Closable   = true;
            this.Disposable = true;
            this.Dragable   = true;
            this.Resizable  = false;
            AddPage(0);
            AddImage(72, 91, 2200);

            AddPage(++page);

            AddHtml(145, 135, 600, 20, "<basefont size=\"8\" color=\"#ffffff\">Book</basefont>", false, false);
            AddHtml(155, 180, 600, 20, "<basefont size=\"8\" color=\"#ffffff\">Of</basefont>", false, false);
            AddHtml(135, 225, 600, 20, "<basefont size=\"8\" color=\"#ffffff\">Elements</basefont>", false, false);

            AddHtml(260, 135, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Greetings to you</basefont>", false, false);
            AddHtml(260, 150, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">new member of the</basefont>", false, false);
            AddHtml(260, 165, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">learned. </basefont>", false, false);
            AddHtml(260, 180, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">With the lore</basefont>", false, false);
            AddHtml(260, 195, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">found in this tome, </basefont>", false, false);
            AddHtml(260, 210, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">your abilities in</basefont>", false, false);
            AddHtml(260, 225, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">binding the forces</basefont>", false, false);
            AddHtml(260, 240, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">of the elements will</basefont>", false, false);
            AddHtml(260, 255, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">be increased tenfold.</basefont>", false, false);

            AddButton(366, 95, 2206, 2206, 0, GumpButtonType.Page, page + 1);

            AddPage(++page);

            if (mage.IsGeomancer())
            {
                AddHtml(105, 135, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Stone Punch</basefont>", false, false);
            }
            else if (mage.IsPyromancer())
            {
                AddHtml(105, 135, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Burning Hands</basefont>", false, false);
            }
            else if (mage.IsAeromancer())
            {
                AddHtml(105, 135, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Shocking Grasp</basefont>", false, false);
            }
            else
            {
                AddHtml(105, 135, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Icy Blow</basefont>", false, false);
            }
            AddHtml(105, 150, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Usage: ]mgspa</basefont>", false, false);
            AddHtml(105, 165, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Description: </basefont>", false, false);
            AddHtml(105, 180, 600, 20, "<basefont size=\"6\" color=\"#ffffff\"></basefont>", false, false);
            AddHtml(105, 195, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">You must be</basefont>", false, false);
            AddHtml(105, 210, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">able to touch your</basefont>", false, false);
            AddHtml(105, 225, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">your target. The</basefont>", false, false);
            AddHtml(105, 240, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">lightest touch will </basefont>", false, false);
            AddHtml(105, 255, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">suffice.  Release</basefont>", false, false);

            AddHtml(260, 135, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">your arcane power,</basefont>", false, false);
            AddHtml(260, 150, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">and select your.</basefont>", false, false);
            AddHtml(260, 165, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">target. The</basefont>", false, false);
            AddHtml(260, 180, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">elemental force</basefont>", false, false);
            AddHtml(260, 195, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">you unleash will</basefont>", false, false);
            AddHtml(260, 210, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">strike your opponent</basefont>", false, false);
            AddHtml(260, 225, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">for a moderate</basefont>", false, false);
            AddHtml(260, 240, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">amount of damage.</basefont>", false, false);
            AddHtml(260, 255, 600, 20, "<basefont size=\"6\" color=\"#ffffff\"></basefont>", false, false);

            AddButton(366, 95, 2206, 2206, 0, GumpButtonType.Page, page + 1);
            AddButton(94, 99, 2205, 2205, 0, GumpButtonType.Page, page - 1);

            AddPage(++page);

            if (mage.IsGeomancer())
            {
                AddHtml(105, 135, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Sling Stones</basefont>", false, false);
            }
            else if (mage.IsPyromancer())
            {
                AddHtml(105, 135, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Firebolts</basefont>", false, false);
            }
            else if (mage.IsAeromancer())
            {
                AddHtml(105, 135, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Magic Arrows</basefont>", false, false);
            }
            else
            {
                AddHtml(105, 135, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Hail Stones</basefont>", false, false);
            }
            AddHtml(105, 150, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Usage: ]mgspb</basefont>", false, false);
            AddHtml(105, 165, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Description: </basefont>", false, false);
            AddHtml(105, 180, 600, 20, "<basefont size=\"6\" color=\"#ffffff\"></basefont>", false, false);
            AddHtml(105, 195, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">You call upon the</basefont>", false, false);
            AddHtml(105, 210, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">elemental power</basefont>", false, false);
            AddHtml(105, 225, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">to form tangible</basefont>", false, false);
            AddHtml(105, 240, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">missles to strike</basefont>", false, false);
            AddHtml(105, 255, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">your opponent from</basefont>", false, false);

            AddHtml(260, 135, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">a distance. Call</basefont>", false, false);
            AddHtml(260, 150, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">the power and target</basefont>", false, false);
            AddHtml(260, 165, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">your enemy. As you </basefont>", false, false);
            AddHtml(260, 180, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">grow in power, the</basefont>", false, false);
            AddHtml(260, 195, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">more missles you</basefont>", false, false);
            AddHtml(260, 210, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">will call into</basefont>", false, false);
            AddHtml(260, 225, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">being.</basefont>", false, false);
            AddHtml(260, 240, 600, 20, "<basefont size=\"6\" color=\"#ffffff\"></basefont>", false, false);
            AddHtml(260, 255, 600, 20, "<basefont size=\"6\" color=\"#ffffff\"></basefont>", false, false);

            AddButton(366, 95, 2206, 2206, 0, GumpButtonType.Page, page + 1);
            AddButton(94, 99, 2205, 2205, 0, GumpButtonType.Page, page - 1);

            AddPage(++page);

            if (mage.IsGeomancer())
            {
                AddHtml(105, 135, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Earth</basefont>", false, false);
            }
            else if (mage.IsPyromancer())
            {
                AddHtml(105, 135, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Fire</basefont>", false, false);
            }
            else if (mage.IsAeromancer())
            {
                AddHtml(105, 135, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Air</basefont>", false, false);
            }
            else
            {
                AddHtml(105, 135, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Water</basefont>", false, false);
            }
            AddHtml(105, 150, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Transformation</basefont>", false, false);
            AddHtml(105, 165, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Usage: ]mgspc</basefont>", false, false);
            AddHtml(105, 180, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Description: </basefont>", false, false);
            AddHtml(105, 195, 600, 20, "<basefont size=\"6\" color=\"#ffffff\"></basefont>", false, false);
            AddHtml(105, 210, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">You control and</basefont>", false, false);
            AddHtml(105, 225, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">surrender yourself</basefont>", false, false);
            AddHtml(105, 240, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">to the power of</basefont>", false, false);
            if (mage.IsGeomancer())
            {
                AddHtml(105, 255, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Earth. </basefont>", false, false);
            }
            else if (mage.IsPyromancer())
            {
                AddHtml(105, 255, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Fire. </basefont>", false, false);
            }
            else if (mage.IsAeromancer())
            {
                AddHtml(105, 255, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Air. </basefont>", false, false);
            }
            else
            {
                AddHtml(105, 255, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Water. </basefont>", false, false);
            }

            AddHtml(260, 135, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">As you progress</basefont>", false, false);
            AddHtml(260, 150, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">in your art, you</basefont>", false, false);
            AddHtml(260, 165, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">may spend a </basefont>", false, false);
            AddHtml(260, 180, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">longer time in</basefont>", false, false);
            AddHtml(260, 195, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">this form.  You</basefont>", false, false);
            AddHtml(260, 210, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">will feel a</basefont>", false, false);
            AddHtml(260, 225, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">weakening shortly</basefont>", false, false);
            AddHtml(260, 240, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">before you lose </basefont>", false, false);
            AddHtml(260, 255, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">control.</basefont>", false, false);

            AddButton(366, 95, 2206, 2206, 0, GumpButtonType.Page, page + 1);
            AddButton(94, 99, 2205, 2205, 0, GumpButtonType.Page, page - 1);

            AddPage(++page);

            if (mage.IsGeomancer())
            {
                AddHtml(105, 135, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Earth Spikes</basefont>", false, false);
            }
            else if (mage.IsPyromancer())
            {
                AddHtml(105, 135, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">FireStorm</basefont>", false, false);
            }
            else if (mage.IsAeromancer())
            {
                AddHtml(105, 135, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Lightning Storm</basefont>", false, false);
            }
            else
            {
                AddHtml(105, 135, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Hail Storm</basefont>", false, false);
            }
            AddHtml(105, 150, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Usage: ]mgspd</basefont>", false, false);
            AddHtml(105, 165, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Description: </basefont>", false, false);
            AddHtml(105, 180, 600, 20, "<basefont size=\"6\" color=\"#ffffff\"></basefont>", false, false);
            AddHtml(105, 195, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Your harness</basefont>", false, false);
            AddHtml(105, 210, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">elemental power</basefont>", false, false);
            AddHtml(105, 225, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">to form an area</basefont>", false, false);
            AddHtml(105, 240, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">surronding you</basefont>", false, false);
            AddHtml(105, 255, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">with the deadly</basefont>", false, false);
            AddHtml(260, 135, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">force of your</basefont>", false, false);
            if (mage.IsGeomancer())
            {
                AddHtml(260, 150, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Earth powers.</basefont>", false, false);
            }
            else if (mage.IsPyromancer())
            {
                AddHtml(260, 150, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Fire powers.</basefont>", false, false);
            }
            else if (mage.IsAeromancer())
            {
                AddHtml(260, 150, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Air powers.</basefont>", false, false);
            }
            else
            {
                AddHtml(260, 150, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Water powers.</basefont>", false, false);
            }
            AddHtml(260, 165, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">Additionaly,</basefont>", false, false);
            AddHtml(260, 180, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">creatures caught</basefont>", false, false);
            AddHtml(260, 195, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">in the elemental</basefont>", false, false);
            AddHtml(260, 210, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">effect will be</basefont>", false, false);
            AddHtml(260, 225, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">victim of </basefont>", false, false);
            if (mage.IsGeomancer())
            {
                AddHtml(260, 240, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">a vicious </basefont>", false, false);
                AddHtml(260, 255, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">bleed attack.</basefont>", false, false);
            }
            else if (mage.IsPyromancer())
            {
                AddHtml(260, 240, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">a severe </basefont>", false, false);
                AddHtml(260, 255, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">stamina drain.</basefont>", false, false);
            }
            else if (mage.IsAeromancer())
            {
                AddHtml(260, 240, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">a massive</basefont>", false, false);
                AddHtml(260, 255, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">mana loss.</basefont>", false, false);
            }
            else
            {
                AddHtml(260, 240, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">a freezing</basefont>", false, false);
                AddHtml(260, 255, 600, 20, "<basefont size=\"6\" color=\"#ffffff\">paralyzation.</basefont>", false, false);
            }

            AddButton(94, 99, 2205, 2205, 0, GumpButtonType.Page, page - 1);
        }
コード例 #8
0
        public RestorePlayer(Mobile from, Item item, ArrayList data, bool deletemenu) : base(0, 0)
        {
            m_Player = (TeiravonMobile)from;
            m_Player.CloseGump(typeof(RestorePlayer));
            m_Stone          = (StoneOfSaving)item;
            SavedInformation = data;
            page             = 1;
            listplayer       = 0;
            playernumber     = 1;
            delete           = deletemenu;

            Closable = true;
            Dragable = true;

            AddPage(0);

            AddBackground(162, 86, 504, 491, 5054);
            AddImage(112, 83, 10440);
            AddImage(375, 151, 3504);
            AddImage(210, 151, 3504);
            AddImage(189, 254, 3503);
            AddImage(612, 152, 3505);
            AddImage(189, 129, 3500);
            AddImage(611, 129, 3502);
            AddImage(214, 129, 3501);
            AddImage(371, 129, 3501);
            AddImage(189, 494, 3506);
            AddImage(215, 494, 3507);
            AddImage(612, 494, 3508);
            AddImage(612, 252, 3505);
            AddImage(370, 494, 3507);
            AddImage(189, 153, 3503);
            AddImage(208, 258, 3504);
            AddImage(375, 258, 3504);

            if (delete)
            {
                AddHtml(201, 104, 425, 20, "<basefont size=\"16\" color=\"#250A0A\"><center><b>DELETE PLAYER</b></center></basefont>", false, false);
                AddLabel(211, 150, 200, "Select a player to delete");
            }
            else
            {
                AddHtml(201, 104, 425, 20, "<basefont size=\"16\" color=\"#250A0A\"><center><b>RESTORE PLAYER</b></center></basefont>", false, false);
                AddLabel(211, 150, 200, "Select a player to restore");
            }

            AddLabel(211, 462, 200, "Page: " + page);

            for (int i = 1; i <= SavedInformation.Count; i++)
            {
                ListPlayer(listplayer, page, playernumber);
                listplayer++;
                playernumber++;

                if ((i % 12 == 0) && (SavedInformation.Count > i))
                {
                    listplayer = 0;
                    AddPage(page);
                    AddButton(615, 521, 22056, 22057, 0, GumpButtonType.Page, page + 1);

                    page++;
                    AddPage(page);
                    AddLabel(211, 462, 200, "Page: " + page);
                    AddButton(591, 521, 22053, 22054, 0, GumpButtonType.Page, page - 1);
                }
            }
        }
コード例 #9
0
        public MSGemGump(Mobile from, Item msgem, MageStaff mstaff) : base(0, 0)
        {
            m_Player = (TeiravonMobile)from;
            gem      = (MageStaffGem)msgem;
            staff    = (MageStaff)mstaff;

            m_Player.CloseGump(typeof(MSGemGump));

            int x  = 140;
            int y  = 170;
            int x2 = 116;
            int y2 = 173;
            int i  = 1;

            this.Closable   = false;
            this.Disposable = false;
            this.Dragable   = true;
            this.Resizable  = false;

            AddPage(0);
            AddBackground(70, 80, 350, 325, 3600);
            AddBackground(95, 125, 300, 255, 9350);

            AddHtml(200, 100, 600, 20, "<basefont size=\"8\" color=\"#ffffff\">Mage Staff Gem</basefont>", false, false);
            AddLabel(155, 135, 150, "Choose your Mage Staff Power:");

            AddLabel(x, y + (20 * i), 150, "Mana Reneration");
            AddButton(x2, y2 + (20 * i), 2224, 2224, 1, GumpButtonType.Reply, 0);
            i++;
            AddLabel(x, y + (20 * i), 150, "Increased Spell Damage");
            AddButton(x2, y2 + (20 * i), 2224, 2224, 2, GumpButtonType.Reply, 0);
            i++;
            if (staff.WeaponAttributes.MageWeapon < 30)
            {
                AddLabel(x, y + (20 * i), 150, "Mage Weapon");
                AddButton(x2, y2 + (20 * i), 2224, 2224, 3, GumpButtonType.Reply, 0);
                i++;
            }
            AddLabel(x, y + (20 * i), 150, "Faster Casting");
            AddButton(x2, y2 + (20 * i), 2224, 2224, 4, GumpButtonType.Reply, 0);
            i++;
            AddLabel(x, y + (20 * i), 150, "Faster Cast Recovery");
            AddButton(x2, y2 + (20 * i), 2224, 2224, 5, GumpButtonType.Reply, 0);
            i++;
            if (m_Player.IsAquamancer())
            {
                AddLabel(x, y + (20 * i), 150, "Hit Harm");
                AddButton(x2, y2 + (20 * i), 2224, 2224, 6, GumpButtonType.Reply, 0);
                i++;
                AddLabel(x, y + (20 * i), 150, "Hit Cold Area");
                AddButton(x2, y2 + (20 * i), 2224, 2224, 7, GumpButtonType.Reply, 0);
                i++;
                AddLabel(x, y + (20 * i), 150, "Cold Resist");
                AddButton(x2, y2 + (20 * i), 2224, 2224, 8, GumpButtonType.Reply, 0);
                i++;
            }
            else if (m_Player.IsAeromancer())
            {
                AddLabel(x, y + (20 * i), 150, "Hit Lightning");
                AddButton(x2, y2 + (20 * i), 2224, 2224, 9, GumpButtonType.Reply, 0);
                i++;
                AddLabel(x, y + (20 * i), 150, "Hit Energy Area");
                AddButton(x2, y2 + (20 * i), 2224, 2224, 10, GumpButtonType.Reply, 0);
                i++;
                AddLabel(x, y + (20 * i), 150, "Energy Resist");
                AddButton(x2, y2 + (20 * i), 2224, 2224, 11, GumpButtonType.Reply, 0);
                i++;
            }
            else if (m_Player.IsPyromancer())
            {
                AddLabel(x, y + (20 * i), 150, "Hit Fireball");
                AddButton(x2, y2 + (20 * i), 2224, 2224, 12, GumpButtonType.Reply, 0);
                i++;
                AddLabel(x, y + (20 * i), 150, "Hit Fire Area");
                AddButton(x2, y2 + (20 * i), 2224, 2224, 13, GumpButtonType.Reply, 0);
                i++;
                AddLabel(x, y + (20 * i), 150, "Fire Resist");
                AddButton(x2, y2 + (20 * i), 2224, 2224, 14, GumpButtonType.Reply, 0);
                i++;
            }
            else if (m_Player.IsNecromancer())
            {
                AddLabel(x, y + (20 * i), 150, "Hit Dispel");
                AddButton(x2, y2 + (20 * i), 2224, 2224, 15, GumpButtonType.Reply, 0);
                i++;
                AddLabel(x, y + (20 * i), 150, "Hit Poison Area");
                AddButton(x2, y2 + (20 * i), 2224, 2224, 16, GumpButtonType.Reply, 0);
                i++;
                AddLabel(x, y + (20 * i), 150, "Poison Resist");
                AddButton(x2, y2 + (20 * i), 2224, 2224, 17, GumpButtonType.Reply, 0);
                i++;
            }
            else if (m_Player.IsGeomancer())
            {
                AddLabel(x, y + (20 * i), 150, "Hit Magic Arrow");
                AddButton(x2, y2 + (20 * i), 2224, 2224, 18, GumpButtonType.Reply, 0);
                i++;
                AddLabel(x, y + (20 * i), 150, "Hit Physical Area");
                AddButton(x2, y2 + (20 * i), 2224, 2224, 19, GumpButtonType.Reply, 0);
                i++;
                AddLabel(x, y + (20 * i), 150, "Physical Resist");
                AddButton(x2, y2 + (20 * i), 2224, 2224, 20, GumpButtonType.Reply, 0);
                i++;
            }
        }