public SelectGump(Mobile from, TeamTourTicket ttt) : base(50, 50) { m_From = from; rttt = ttt; from.CloseGump(typeof(SelectGump)); AddBackground(100, 10, 230, 180, 9390); AddHtml(140, 18, 400, 35, "Team tour ticket selection", false, false); AddHtml(126, 55, 200, 35, "This ticket can be used at a PVP Reward Stone", false, false); //AddHtml( 150, 75, 200, 35, "Convert into 10k gold", false, false ); AddHtml(150, 105, 150, 35, "Convert 12 Team tour tickets into a Tourney ticket", false, false); //AddButton( 118, 73, 0xFA5, 0xFA7, 1, GumpButtonType.Reply, 0 ); //Turn to gold: AddButton(118, 111, 0xFA5, 0xFA7, 1, GumpButtonType.Reply, 0); //Get a tourney ticket: }
public SelectGump( Mobile from, TeamTourTicket ttt ) : base( 50, 50 ) { m_From = from; rttt = ttt; from.CloseGump( typeof( SelectGump ) ); AddBackground( 100, 10, 230, 180, 9390 ); AddHtml( 140, 18, 400, 35, "Team tour ticket selection", false, false ); AddHtml( 126, 55, 200, 35, "This ticket can be used at a PVP Reward Stone", false, false ); //AddHtml( 150, 75, 200, 35, "Convert into 10k gold", false, false ); AddHtml( 150, 105, 150, 35, "Convert 12 Team tour tickets into a Tourney ticket", false, false ); //AddButton( 118, 73, 0xFA5, 0xFA7, 1, GumpButtonType.Reply, 0 ); //Turn to gold: AddButton( 118, 111, 0xFA5, 0xFA7, 1, GumpButtonType.Reply, 0 ); //Get a tourney ticket: }
public override void OnDoubleClick( Mobile from ) { ttt = this; if( IsChildOf( from.Backpack ) ) { fromBackpack = true; from.SendGump( new SelectGump( from, ttt ) ); } else if( IsChildOf( from.BankBox ) ) { fromBackpack = false; from.SendGump( new SelectGump( from, ttt ) ); } else from.SendMessage( "This item has to either be in your backpack or bank" ); }
public override void OnDoubleClick(Mobile from) { ttt = this; if (IsChildOf(from.Backpack)) { fromBackpack = true; from.SendGump(new SelectGump(from, ttt)); } else if (IsChildOf(from.BankBox)) { fromBackpack = false; from.SendGump(new SelectGump(from, ttt)); } else { from.SendMessage("This item has to either be in your backpack or bank"); } }