Example #1
0
        public BrokenFurnitureGump( PromotionalToken token )
            : base(200, 200)
        {
            m_Token = token;

            AddKRHtmlLocalized( 0, 0, 0, 0, 1015313, false, false );
            AddKRHtmlLocalized( 0, 0, 0, 0, 1049004, false, false );
            AddKRHtmlLocalized( 0, 0, 0, 0, 1076597, false, false );
            AddKRHtmlLocalized( 0, 0, 0, 0, 1011036, false, false );
            AddKRHtmlLocalized( 0, 0, 0, 0, 1011012, false, false );

            AddPage( 0 );

            AddBackground( 0, 0, 291, 159, 0x13BE );

            AddImageTiled( 5, 6, 280, 20, 0xA40 );
            AddHtmlLocalized( 9, 8, 280, 20, 1049004, 0x7FFF, false, false ); // Confirm

            AddImageTiled( 5, 31, 280, 100, 0xA40 );
            AddHtmlLocalized( 9, 35, 272, 100, 1076597, 0x7FFF, false, false ); // Clicking "OK" will create the items in your backpack if there is room.  Otherwise it will be created in your bankbox.

            AddButton( 190, 133, 0xFB7, 0xFB8, 1, GumpButtonType.Reply, 0 );
            AddHtmlLocalized( 225, 135, 90, 20, 1006044, 0x7FFF, false, false ); // OK

            AddButton( 5, 133, 0xFB1, 0xFB2, 0, GumpButtonType.Reply, 0 );
            AddHtmlLocalized( 40, 135, 100, 20, 1060051, 0x7FFF, false, false ); // CANCEL
        }
            public override void OnResponse(NetState sender, RelayInfo info)
            {
                if (m_Ticket.Deleted || m_From == null || m_From.Backpack == null || !m_Ticket.IsChildOf(sender.Mobile.Backpack))
                {
                    return;
                }

                //int number = 0;

                Item item = null;

                switch (info.ButtonID)
                {
                case 1: item = new StatsBall(); /*number = 1049368;*/ break;        // You have been rewarded for your dedication to Justice!.

                case 2: break;                                                      // item = new BloodPentagramPart(); /*number = 1049368;*/ break; // You have been rewarded for your dedication to Justice!.

                case 3: item = new PromotionalToken(); /*number = 1049368;*/ break; // You have been rewarded for your dedication to Justice!.

                case 4: item = new EtherealBeetle(); /*number = 1049368;*/ break;   // You have been rewarded for your dedication to Justice!.

                case 5: item = new SkinToneDeed(); /*number = 1049368;*/ break;     // You have been rewarded for your dedication to Justice!.

                case 6: item = new SpecialHairDye(); /*number = 1049368;*/ break;   // You have been rewarded for your dedication to Justice!.
                }

                if (item != null)
                {
                    m_Ticket.Delete();

                    //m_From.SendLocalizedMessage( number );
                    m_From.AddToBackpack(item);
                }
            }
            public override void OnResponse(NetState sender, RelayInfo info)
            {
                if (m_Ticket == null || m_Ticket.Deleted || m_From == null || !m_Ticket.IsChildOf(m_From.Backpack))
                {
                    return;
                }

                Item item = null;

                switch (info.ButtonID)
                {
                default:
                case 0: return;

                case 1: item = new StatsBall(); break;

                case 2: item = new PromotionalToken(); break;

                case 3: item = new EtherealBeetle(); break;

                case 4: item = new SkinToneDeed(); break;

                case 5: item = new EvoSpiderEvoEgg(); break;
                }

                if (item != null)
                {
                    m_Ticket.Delete();
                    m_From.AddToBackpack(item);
                }
            }
Example #4
0
        public PromotionalTokenGump(PromotionalToken t, Mobile m) : base(10, 10)
        {
            token = t;

            from = m;

            AddPage(0);

            AddBackground(0, 0, 240, 135, 0x2422);

            AddHtmlLocalized(15, 15, 210, 75, 1070972, 0x0, true, false);               // Click "OKAY" to redeem the following promotional item:

            switch (token.Type)
            {
            case PromotionalType.SoulStone:
            {
                AddHtmlLocalized(15, 60, 210, 75, 1030903, 0x0, false, false);                                   // <center>Soulstone</center>

                break;
            }

            case PromotionalType.SoulStoneFragment:
            {
                AddHtmlLocalized(15, 60, 210, 75, 1070999, 0x0, false, false);                                   // <center>Soulstone Fragment</center>

                break;
            }

            case PromotionalType.CharacterTransfer:
            {
                AddHtmlLocalized(15, 60, 210, 75, 1062785, 0x0, false, false);                                   // <BODY><CENTER>Character Transfer<CENTER></BODY>

                break;
            }

            case PromotionalType.SeventhAnniversary:
            {
                AddHtmlLocalized(15, 60, 210, 75, 1062928, 0x0, false, false);                                   // <CENTER>UO Seventh Anniversary</CENTER>

                break;
            }

            case PromotionalType.AdvancedCharacter:
            {
                AddHtmlLocalized(15, 60, 210, 75, 1072839, 0x0, false, false);                                   // <center>Advanced Character</center>

                break;
            }
            }

            AddButton(160, 95, 0xF7, 0xF8, 1, GumpButtonType.Reply, 0);

            AddButton(90, 95, 0xF2, 0xF1, 0, GumpButtonType.Reply, 0);
        }
Example #5
0
            public PromotionalTokenGump(PromotionalToken token) : base(10, 10)
            {
                m_Token = token;

                AddPage(0);

                AddBackground(0, 0, 240, 135, 0x2422);
                AddHtmlLocalized(15, 15, 210, 75, 1070972, 0x0, true, false);                   // Click "OKAY" to redeem the following promotional item:
                TextDefinition.AddHtmlText(this, 15, 60, 210, 75, m_Token.ItemGumpName, false, false);

                AddButton(160, 95, 0xF7, 0xF8, 1, GumpButtonType.Reply, 0);                     //Okay
                AddButton(90, 95, 0xF2, 0xF1, 0, GumpButtonType.Reply, 0);                      //Cancel
            }
			public PromotionalTokenGump( PromotionalToken token ) : base( 10, 10 )
			{
				m_Token = token;

				AddPage( 0 );

				AddBackground( 0, 0, 240, 135, 0x2422 );
				AddHtmlLocalized( 15, 15, 210, 75, 1070972, 0x0, true, false ); // Click "OKAY" to redeem the following promotional item:
				TextDefinition.AddHtmlText( this, 15, 60, 210, 75, m_Token.ItemGumpName, false, false );

				AddButton( 160, 95, 0xF7, 0xF8, 1, GumpButtonType.Reply, 0 );	//Okay
				AddButton( 90, 95, 0xF2, 0xF1, 0, GumpButtonType.Reply, 0 );	//Cancel
			}
        public EighthAnniversaryGump( PromotionalToken token )
            : base(0, 0)
        {
            m_Token = token;

            AddPage( 0 );

            AddBackground( 0, 0, 520, 404, 0x13BE );

            AddImageTiled( 10, 10, 500, 20, 0xA40 );

            AddImageTiled( 10, 40, 500, 324, 0xA40 );

            AddImageTiled( 10, 374, 500, 20, 0xA40 );

            AddAlphaRegion( 10, 10, 500, 384 );

            AddButton( 10, 374, 0xFB1, 0xFB2, 0, GumpButtonType.Reply, 0 );

            AddHtmlLocalized( 45, 376, 450, 20, 1060051, 0x7FFF, false, false ); // CANCEL

            AddHtml( 14, 12, 500, 20, @"<basefont color=#FFFFFF>UO Eighth Anniversary gift</basefont>", false, false ); // UO Eighth Anniversary gift

            AddButtonTileArt( 14, 44, 0x918, 0x919, GumpButtonType.Reply, 0, 100, 0x2B01, 0, 15, 15 );
            AddHtmlLocalized( 98, 44, 250, 60, 1075196, 0x7FFF, false, false ); // Dupre’s Shield

            AddButtonTileArt( 264, 44, 0x918, 0x919, GumpButtonType.Reply, 0, 101, 0x2253, 0, 20, 15 );
            AddHtmlLocalized( 348, 44, 250, 60, 1078148, 0x7FFF, false, false ); // Ossian Grimoire

            AddButtonTileArt( 14, 108, 0x918, 0x919, GumpButtonType.Reply, 0, 102, 0x2D98, 0, 20, 15 );
            AddHtmlLocalized( 98, 108, 250, 60, 1078142, 0x7FFF, false, false ); // Talisman of the Fey:<br>Ferret

            AddButtonTileArt( 264, 108, 0x918, 0x919, GumpButtonType.Reply, 0, 103, 0x2D97, 0, 15, 15 );
            AddHtmlLocalized( 348, 108, 250, 60, 1078143, 0x7FFF, false, false ); // Talisman of the Fey:<br>Squirrel

            AddButtonTileArt( 14, 172, 0x918, 0x919, GumpButtonType.Reply, 0, 104, 0x2D96, 0, 15, 5 );
            AddHtmlLocalized( 98, 172, 250, 60, 1078144, 0x7FFF, false, false ); // Talisman of the Fey:<br>Cu Sidhe

            AddButtonTileArt( 264, 172, 0x918, 0x919, GumpButtonType.Reply, 0, 105, 0x2D95, 0, 10, 5 );
            AddHtmlLocalized( 348, 172, 250, 60, 1078145, 0x7FFF, false, false ); // Talisman of the Fey:<br>Reptalon

            AddButtonTileArt( 14, 236, 0x918, 0x919, GumpButtonType.Reply, 0, 106, 0x2B02, 0, -10, 10 );
            AddHtmlLocalized( 98, 236, 250, 60, 1075201, 0x7FFF, false, false ); // Quiver of Infinity

            AddButtonTileArt( 264, 236, 0x918, 0x919, GumpButtonType.Reply, 0, 107, 0x2AF9, 0, -10, 0 );
            AddHtmlLocalized( 348, 236, 250, 60, 1075198, 0x7FFF, false, false ); // Dawn's Music Box

            AddButtonTileArt( 14, 300, 0x918, 0x919, GumpButtonType.Reply, 0, 108, 0x2AC6, 0, 25, 0 );
            AddHtmlLocalized( 98, 300, 250, 60, 1075197, 0x7FFF, false, false ); // Fountain Of Life
        }
        public SeventhAniversaryGump( PromotionalToken token )
            : base(0, 0)
        {
            m_Token = token;

            AddPage( 0 );

            AddBackground( 0, 0, 520, 404, 0x13BE );

            AddImageTiled( 10, 10, 500, 20, 0xA40 );

            AddImageTiled( 10, 40, 500, 324, 0xA40 );

            AddImageTiled( 10, 374, 500, 20, 0xA40 );

            AddAlphaRegion( 10, 10, 500, 384 );

            AddButton( 10, 374, 0xFB1, 0xFB2, 0, GumpButtonType.Reply, 0 );

            AddHtmlLocalized( 45, 376, 450, 20, 1060051, 0x7FFF, false, false ); // CANCEL

            AddHtmlLocalized( 14, 12, 500, 20, 1062928, 0x7FFF, false, false ); // UO Seventh Anniversary gift

            AddButtonTileArt( 14, 44, 0x918, 0x919, GumpButtonType.Reply, 0, 100, 0x14F0, 0, 15, 15 );
            AddHtmlLocalized( 98, 44, 250, 60, 1062919, 0x7FFF, false, false ); // Hearth of the Home Fire

            AddButtonTileArt( 264, 44, 0x918, 0x919, GumpButtonType.Reply, 0, 101, 0xF61, 0, 0, 15 );
            AddHtmlLocalized( 348, 44, 250, 60, 1062921, 0x7FFF, false, false ); // The Holy Sword

            AddButtonTileArt( 14, 108, 0x918, 0x919, GumpButtonType.Reply, 0, 102, 0x1411, 0, 15, 15 );
            AddHtmlLocalized( 98, 108, 250, 60, 1062911, 0x7FFF, false, false ); // Royal Leggings of Embers

            AddButtonTileArt( 264, 108, 0x918, 0x919, GumpButtonType.Reply, 0, 103, 0x234D, 0, 15, 15 );
            AddHtmlLocalized( 348, 108, 250, 60, 1062913, 0x7FFF, false, false ); // Rose of Trinsic

            AddButtonTileArt( 14, 172, 0x918, 0x919, GumpButtonType.Reply, 0, 104, 0x236C, 0, 15, 15 );
            AddHtmlLocalized( 98, 172, 250, 60, 1062923, 0x7FFF, false, false ); // Ancient Samurai Helm

            AddButtonTileArt( 264, 172, 0x918, 0x919, GumpButtonType.Reply, 0, 105, 0x26C3, 5, 20, 15 );
            AddHtmlLocalized( 348, 172, 250, 60, 1062915, 0x7FFF, false, false ); // Shamino’s Best Crossbow

            AddButtonTileArt( 14, 236, 0x918, 0x919, GumpButtonType.Reply, 0, 106, 0x234E, 0, 15, 0 );
            AddHtmlLocalized( 98, 236, 250, 60, 1062917, 0x7FFF, false, false ); // The Tapestry of Sosaria
        }
Example #9
0
 public BrokenFurnitureConfirmGump( PromotionalToken token )
     : base(token)
 {
 }
Example #10
0
 public HeritageItemsConfirmGump( PromotionalToken token )
     : base(token)
 {
 }
Example #11
0
        public AdvancedCharacterWarningGump( PromotionalToken m_token )
            : base(100, 100)
        {
            token = m_token;

            AddPage( 0 );

            AddBackground( 0, 0, 440, 273, 0x2422 );

            AddHtmlLocalized( 15, 15, 410, 213, 1073816, 0x0, true, false ); // This character has over 200 skill points. You WILL NOT be able to choose an advanced character template until you reduce your skill point total (for example, by storing a skill using a soulstone). You may redeem this token anyway, or you can cancel this gump and trade your token to another character.<br><br>For more information about the advancement program, <a href="http://uo.custhelp.com/cgi-bin/uo.cfg/php/enduser/std_adp.php?p_faqid=13270">review this article</a> or <a href="http://uo.custhelp.com/cgi-bin/uo.cfg/php/enduser/ask.php?">ask a question</a> at our knowledge base.

            AddButton( 275, 233, 0xFB7, 0xFB8, 1, GumpButtonType.Reply, 0 );
            AddHtmlLocalized( 310, 235, 160, 20, 1073817, 0x7FFF, false, false ); // Redeem It Anyway!

            AddButton( 15, 233, 0xFB1, 0xFB2, 0, GumpButtonType.Reply, 0 );
            AddHtmlLocalized( 50, 235, 450, 20, 1060051, 0x7FFF, false, false ); // CANCEL
        }
 public CrystalSetConfirmGump( PromotionalToken token )
     : base(token)
 {
 }
 public EvilHomeDecorationConfirmGump( PromotionalToken token )
     : base(token)
 {
 }
			public override void OnResponse( NetState sender, RelayInfo info )
			{
				if ( m_Ticket.Deleted || m_From == null || m_From.Backpack == null || !m_Ticket.IsChildOf( sender.Mobile.Backpack ))
					return;

				//int number = 0;

				Item item = null;

				switch ( info.ButtonID )
				{
					case 1: item = new StatsBall(); /*number = 1049368;*/ break; // You have been rewarded for your dedication to Justice!.
					case 2: break; // item = new BloodPentagramPart(); /*number = 1049368;*/ break; // You have been rewarded for your dedication to Justice!.
					case 3: item = new PromotionalToken(); /*number = 1049368;*/ break; // You have been rewarded for your dedication to Justice!.
					case 4: item = new EtherealBeetle(); /*number = 1049368;*/ break; // You have been rewarded for your dedication to Justice!.
					case 5: item = new SkinToneDeed(); /*number = 1049368;*/ break; // You have been rewarded for your dedication to Justice!.
					case 6: item = new SpecialHairDye(); /*number = 1049368;*/ break; // You have been rewarded for your dedication to Justice!.
				}

				if ( item != null)
				{
					m_Ticket.Delete();

					//m_From.SendLocalizedMessage( number );
					m_From.AddToBackpack( item );

				}
			}
 public ShadowSetConfirmGump( PromotionalToken token )
     : base(token)
 {
 }
Example #16
0
        public PromotionalTokenGump( PromotionalToken t, Mobile m )
            : base(10, 10)
        {
            token = t;
            from = m;

            AddPage( 0 );
            AddBackground( 0, 0, 240, 135, 0x2422 );
            AddHtmlLocalized( 15, 15, 210, 75, 1070972, 0x0, true, false ); // Click "OKAY" to redeem the following promotional item:

            switch ( token.Type )
            {
                case PromotionalType.SoulStone:
                    {
                        AddHtmlLocalized( 15, 60, 210, 75, 1030903, 0x0, false, false ); // <center>Soulstone</center>
                        break;
                    }
                case PromotionalType.BlueSoulstone:
                    {
                        AddHtmlLocalized( 15, 60, 210, 75, 1030903, 0x0, false, false ); // <center>Soulstone</center>
                        break;
                    }
                case PromotionalType.SoulStoneFragment:
                    {
                        AddHtmlLocalized( 15, 60, 210, 75, 1070999, 0x0, false, false ); // <center>Soulstone Fragment</center>
                        break;
                    }
                case PromotionalType.CharacterTransfer:
                    {
                        AddHtmlLocalized( 15, 60, 210, 75, 1062785, 0x0, false, false ); // <BODY><CENTER>Character Transfer<CENTER></BODY>
                        break;
                    }
                case PromotionalType.SeventhAnniversary:
                    {
                        AddHtmlLocalized( 15, 60, 210, 75, 1062928, 0x0, false, false ); // <CENTER>UO Seventh Anniversary</CENTER>
                        break;
                    }
                case PromotionalType.EighthAnniversary:
                    {
                        AddHtml( 15, 60, 210, 75, @"<CENTER>UO Eighth Anniversary</CENTER>", false, false ); // <CENTER>UO Eighth Anniversary</CENTER>
                        break;
                    }
                case PromotionalType.AdvancedCharacter:
                    {
                        AddHtmlLocalized( 15, 60, 210, 75, 1072839, 0x0, false, false ); // <center>Advanced Character</center>
                        break;
                    }
                case PromotionalType.BrokenFurniture:
                    {
                        AddHtml( 15, 60, 210, 75, @"<CENTER>Broken Furniture Collection</CENTER>", false, false ); // <CENTER>Broken Furniture Collection</CENTER>
                        break;
                    }
                case PromotionalType.HeritageItems:
                    {
                        AddHtml( 15, 60, 210, 75, @"<CENTER>Heritage Items Pack</CENTER>", false, false ); // <CENTER>Heritage Items Pack</CENTER>
                        break;
                    }
                case PromotionalType.EvilHomeDecoration:
                    {
                        AddHtml( 15, 60, 210, 75, @"<CENTER>Evil Home Décor Collection</CENTER>", false, false ); // <CENTER>Evil Home Décor Collection</CENTER>
                        break;
                    }
            }

            AddButton( 160, 95, 0xF7, 0xF8, 1, GumpButtonType.Reply, 0 );
            AddButton( 90, 95, 0xF2, 0xF1, 0, GumpButtonType.Reply, 0 );
        }
Example #17
0
        public override void OnResponse( GameClient state, RelayInfo info )
        {
            Mobile from = state.Mobile;

            switch ( info.ButtonID )
            {
                case 0: // Message
                    {
                        if ( m_Success )
                        {
                            // TODO: send query to database for removing promotion code for this account

                            ( (PlayerMobile) from ).LastPromotionCode = null;

                            PromotionalToken pt = new PromotionalToken( m_Type );

                            from.SendMessage( 0x0, "A token has been placed in your backpack. Double-click it to redeem your promotion." );

                            from.AddToBackpack( pt );
                        }
                        else
                        {
                            from.SendGump( new PromotionFailureGump( from, m_Type, m_Code ) );
                        }

                        break;
                    }
            }
        }