public InternalGump(HearthOfHomeFireDeed deed) : base(150, 50)
            {
                m_Deed = deed;

                AddBackground(0, 0, 350, 250, 0xA28);

                AddItem(90, 52, 0x2367);
                AddItem(112, 35, 0x2360);
                AddButton(70, 35, 0x868, 0x869, 1, GumpButtonType.Reply, 0);                   // South

                AddItem(220, 35, 0x2352);
                AddItem(242, 52, 0x2358);
                AddButton(185, 35, 0x868, 0x869, 2, GumpButtonType.Reply, 0);                   // East
            }
Ejemplo n.º 2
0
            public InternalGump( HearthOfHomeFireDeed deed )
                : base(150, 50)
            {
                m_Deed = deed;

                AddBackground( 0, 0, 350, 250, 0xA28 );

                AddItem( 90, 52, 0x2367 );
                AddItem( 112, 35, 0x2360 );
                AddButton( 70, 35, 0x868, 0x869, 1, GumpButtonType.Reply, 0 ); // South

                AddItem( 220, 35, 0x2352 );
                AddItem( 242, 52, 0x2358 );
                AddButton( 185, 35, 0x868, 0x869, 2, GumpButtonType.Reply, 0 ); // East
            }
Ejemplo n.º 3
0
        public override void OnResponse( GameClient sender, RelayInfo info )
        {
            Mobile from = sender.Mobile;

            if ( !m_Token.IsChildOf( from.Backpack ) )
                return;

            Item reward = null;

            switch ( info.ButtonID )
            {
                case 100:
                    reward = new HearthOfHomeFireDeed();
                    break;
                case 101:
                    reward = new HolySword();
                    break;
                case 102:
                    reward = new LeggingsOfEmbers();
                    break;
                case 103:
                    reward = new RoseOfTrinsic();
                    break;
                case 104:
                    reward = new SamuraiHelm();
                    break;
                case 105:
                    reward = new ShaminoCrossbow();
                    break;
                case 106:
                    reward = new TapestryOfSosaria();
                    break;
            }

            if ( reward != null )
            {
                if ( !from.AddToBackpack( reward ) )
                {
                    if ( from.BankBox != null )
                        from.BankBox.DropItem( reward );
                }

                if ( m_Token != null )
                    m_Token.Delete();
            }
        }