Beispiel #1
0
            protected override void OnTarget(Mobile from, object targeted)
            {
                if (targeted == m_Ticket)
                {
                    from.SendLocalizedMessage(501928);                       // You can't target the same ticket!
                }
                else if (targeted is SpecialEtherealMountDeed)
                {
                    SpecialEtherealMountDeed theirTicket = targeted as SpecialEtherealMountDeed;
                    Mobile them = theirTicket.m_Owner;

                    if (them == null || them.Deleted)
                    {
                        from.SendLocalizedMessage(501930);                           // That is not a valid ticket.
                    }
                    else
                    {
                        from.SendGump(new InternalGump(from, m_Ticket));
                        them.SendGump(new InternalGump(them, theirTicket));
                    }
                }
                else if (targeted is Item && ((Item)targeted).ItemID == 0x14F0)
                {
                    from.SendLocalizedMessage(501931);                       // You need to find another ticket marked NEW PLAYER.
                }
                else
                {
                    from.SendLocalizedMessage(501929);                       // You will need to select a ticket.
                }
            }
Beispiel #2
0
            public InternalGump(Mobile from, SpecialEtherealMountDeed ticket) : base(50, 50)
            {
                m_From   = from;
                m_Ticket = ticket;

                AddBackground(0, 0, 400, 385, 0xA28);

                AddHtml(30, 45, 340, 70, "Thank you for your support! Please select an Ethereal..", true, true);

                AddButton(46, 128, 0xFA5, 0xFA7, 1, GumpButtonType.Reply, 0);
                AddHtml(80, 129, 240, 24, "A no-age required Ethereal Dragon", true, false);
                //AddLabel( 80, 128, 0x489, "A NoAge Ethereal Dragon" );  //# 1test

                AddButton(46, 163, 0xFA5, 0xFA7, 2, GumpButtonType.Reply, 0);
                AddHtml(80, 164, 240, 24, "A no-age required Charger of the Fallen", true, false);
                //AddLabel( 80, 163, 0x489, "A NoAge Ethereal Warsteed" );  //# 1test

                AddButton(46, 198, 0xFA5, 0xFA7, 3, GumpButtonType.Reply, 0);
                AddHtml(80, 199, 240, 24, "A no-age required Ethereal Wolf", true, false);
                //AddLabel( 80, 198, 0x489, "A NoAge Ethereal Wolf" );  //# 1test

                //AddButton( 46, 233, 0xFA5, 0xFA7, 4, GumpButtonType.Reply, 0 );
                //AddHtml(80,234,240,24,"a Black Hair Dye",true,false);
                //AddLabel( 80, 233, 0x489, "a Black Hair Dye" );  //# 1test

                //AddButton( 46, 268, 0xFA5, 0xFA7, 5, GumpButtonType.Reply, 0 );
                //AddHtml(80,269,240,24,"a hooded shroud of the shadows",true,false);
                //AddLabel( 80, 268, 0x489, "a hooded shroud of the shadows" );  //# 1test

                //AddButton( 46, 303, 0xFA5, 0xFA7, 6, GumpButtonType.Reply, 0 );
                //AddLabel( 50, 320, 0x489, "a wreath deed" );  //# 1test

                AddButton(120, 340, 0xFA5, 0xFA7, 0, GumpButtonType.Reply, 0);
                AddHtmlLocalized(154, 342, 100, 35, 1011012, false, false);                   // CANCEL
            }
Beispiel #3
0
 public InternalTarget(SpecialEtherealMountDeed ticket) : base(2, false, TargetFlags.None)
 {
     m_Ticket = ticket;
 }
			public InternalTarget( SpecialEtherealMountDeed ticket ) : base( 2, false, TargetFlags.None )
			{
				m_Ticket = ticket;
			}
			public InternalGump( Mobile from, SpecialEtherealMountDeed ticket ) : base( 50, 50 )
			{
				m_From = from;
				m_Ticket = ticket;

				AddBackground( 0, 0, 400, 385, 0xA28 );

				AddHtml(30, 45, 340, 70,"Thank you for your support! Please select an Ethereal..",true,true);

				AddButton( 46, 128, 0xFA5, 0xFA7, 1, GumpButtonType.Reply, 0 );
				AddHtml(80,129,240,24,"A NoAge Ethereal Dragon",true,false);
				//AddLabel( 80, 128, 0x489, "A NoAge Ethereal Dragon" );  //# 1test

				AddButton( 46, 163, 0xFA5, 0xFA7, 2, GumpButtonType.Reply, 0 );
				AddHtml(80,164,240,24,"A NoAge Ethereal Warsteed",true,false);
				//AddLabel( 80, 163, 0x489, "A NoAge Ethereal Warsteed" );  //# 1test

				AddButton( 46, 198, 0xFA5, 0xFA7, 3, GumpButtonType.Reply, 0 );
				AddHtml(80,199,240,24,"A NoAge Ethereal Wolf",true,false);
				//AddLabel( 80, 198, 0x489, "A NoAge Ethereal Wolf" );  //# 1test

				//AddButton( 46, 233, 0xFA5, 0xFA7, 4, GumpButtonType.Reply, 0 );
				//AddHtml(80,234,240,24,"a Black Hair Dye",true,false);
				//AddLabel( 80, 233, 0x489, "a Black Hair Dye" );  //# 1test

				//AddButton( 46, 268, 0xFA5, 0xFA7, 5, GumpButtonType.Reply, 0 );
				//AddHtml(80,269,240,24,"a hooded shroud of the shadows",true,false);
				//AddLabel( 80, 268, 0x489, "a hooded shroud of the shadows" );  //# 1test

				//AddButton( 46, 303, 0xFA5, 0xFA7, 6, GumpButtonType.Reply, 0 );
				//AddLabel( 50, 320, 0x489, "a wreath deed" );  //# 1test

				AddButton( 120, 340, 0xFA5, 0xFA7, 0, GumpButtonType.Reply, 0 );
				AddHtmlLocalized( 154, 342, 100, 35, 1011012, false, false ); // CANCEL
			}