Exemplo n.º 1
0
        public VendorGump( Mobile from, VendorStone stone )
            : base(25, 25)
        {
            m_SubmitData = new ArrayList();

            m_Stone = stone;

            AddPage( 0 );

            from.CloseGump( typeof( VendorGump ) );
            from.CloseGump( typeof( EditVendorGump ) );

            if ( m_SubmitData.Count == 0 )
            {
                m_SubmitData.Add( m_Stone.Hued );
                m_SubmitData.Add( m_Stone.Blessed );
                m_SubmitData.Add( m_Stone.Bonded );
            }

            AddBackground( 0, 0, 530, 480, 5054 );
            AddAlphaRegion( 10, 10, 510, 460 );
            AddImageTiled( 10, 40, 510, 5, 2624 );

            if ( m_Stone.Name != null && m_Stone.Name != "" )
            {
                AddLabel( 235, 20, 1152, m_Stone.Name );
            }
            else
            {
                AddLabel( 235, 20, 1152, "!STONE NAME GOES HERE!" );
            }

            AddLabel( 420, 60, 5, "Stone Currency:" );
            if ( m_Stone.Currency != null )
            {
                if ( m_Stone.Currency.Name != null )
                {
                    AddLabel( 420, 80, 5, m_Stone.Currency.Name );
                }
                else
                {
                    AddLabel( 420, 80, 33, ""+ m_Stone.Currency );
                }
            }
            else
            {
                AddLabel( 420, 80, 33, "None" );
            }

            if ( m_Stone.HuedPrice > 0 )
            {
                AddCheck( 400, 160, 0x2342, 0x2343, (bool)m_SubmitData[0], 1 );
                AddLabel( 430, 160, 1152, "Hue: "+ m_Stone.HuedPrice );
            }
            if ( m_Stone.BlessedPrice > 0 )
            {
                AddCheck( 400, 180, 0x2342, 0x2343, (bool)m_SubmitData[1], 2 );
                AddLabel( 430, 180, 1152, "Bless: "+ m_Stone.BlessedPrice );
            }
            if ( m_Stone.BondedPrice > 0 )
            {
                AddCheck( 400, 200, 0x2342, 0x2343, (bool)m_SubmitData[2], 3 );
                AddLabel( 430, 200, 1152, "Bond: "+ m_Stone.BondedPrice );
            }

            if ( from.AccessLevel >= AccessLevel.Seer )
            {
                AddButton( 400, 240, 4005, 4007, 41, GumpButtonType.Reply, 0 );
                AddLabel( 430, 240, 1152, "Edit" );
            }

            //AddLabel( 420, 360, 906, "Created By" );
            //AddLabel( 420, 380, 906, "~Raelis~" );

            AddButton( 420, 440, 4005, 4007, 0, GumpButtonType.Reply, 0 );
            AddLabel( 450, 440, 33, "Close" );

            AddPage( 1 );

            if ( m_Stone.GumpName1 != null && m_Stone.Item1 != null && m_Stone.GumpName1 != "" && m_Stone.Item1 != "" )
            {
                AddButton( 20, 60, 4005, 4007, 1, GumpButtonType.Reply, 0 );
                AddLabel( 50, 60, 1152, m_Stone.GumpName1 );
                AddLabel( 300, 60, 1152, ""+ m_Stone.Price1 );
            }

            if ( m_Stone.GumpName2 != null && m_Stone.Item2 != null && m_Stone.GumpName2 != "" && m_Stone.Item2 != "" )
            {
                AddButton( 20, 80, 4005, 4007, 2, GumpButtonType.Reply, 0 );
                AddLabel( 50, 80, 1152, m_Stone.GumpName2 );
                AddLabel( 300, 80, 1152, ""+ m_Stone.Price2 );
            }

            if ( m_Stone.GumpName3 != null && m_Stone.Item3 != null && m_Stone.GumpName3 != "" && m_Stone.Item3 != "" )
            {
                AddButton( 20, 100, 4005, 4007, 3, GumpButtonType.Reply, 0 );
                AddLabel( 50, 100, 1152, m_Stone.GumpName3 );
                AddLabel( 300, 100, 1152, ""+ m_Stone.Price3 );
            }

            if ( m_Stone.GumpName4 != null && m_Stone.Item4 != null && m_Stone.GumpName4 != "" && m_Stone.Item4 != "" )
            {
                AddButton( 20, 120, 4005, 4007, 4, GumpButtonType.Reply, 0 );
                AddLabel( 50, 120, 1152, m_Stone.GumpName4 );
                AddLabel( 300, 120, 1152, ""+ m_Stone.Price4 );
            }

            if ( m_Stone.GumpName5 != null && m_Stone.Item5 != null && m_Stone.GumpName5 != "" && m_Stone.Item5 != "" )
            {
                AddButton( 20, 140, 4005, 4007, 5, GumpButtonType.Reply, 0 );
                AddLabel( 50, 140, 1152, m_Stone.GumpName5 );
                AddLabel( 300, 140, 1152, ""+ m_Stone.Price5 );
            }

            if ( m_Stone.GumpName6 != null && m_Stone.Item6 != null && m_Stone.GumpName6 != "" && m_Stone.Item6 != "" )
            {
                AddButton( 20, 160, 4005, 4007, 6, GumpButtonType.Reply, 0 );
                AddLabel( 50, 160, 1152, m_Stone.GumpName6 );
                AddLabel( 300, 160, 1152, ""+ m_Stone.Price6 );
            }

            if ( m_Stone.GumpName7 != null && m_Stone.Item7 != null && m_Stone.GumpName7 != "" && m_Stone.Item7 != "" )
            {
                AddButton( 20, 180, 4005, 4007, 7, GumpButtonType.Reply, 0 );
                AddLabel( 50, 180, 1152, m_Stone.GumpName7 );
                AddLabel( 300, 180, 1152, ""+ m_Stone.Price7 );
            }

            if ( m_Stone.GumpName8 != null && m_Stone.Item8 != null && m_Stone.GumpName8 != "" && m_Stone.Item8 != "" )
            {
                AddButton( 20, 200, 4005, 4007, 8, GumpButtonType.Reply, 0 );
                AddLabel( 50, 200, 1152, m_Stone.GumpName8 );
                AddLabel( 300, 200, 1152, ""+ m_Stone.Price8 );
            }

            if ( m_Stone.GumpName9 != null && m_Stone.Item9 != null && m_Stone.GumpName9 != "" && m_Stone.Item9 != "" )
            {
                AddButton( 20, 220, 4005, 4007, 9, GumpButtonType.Reply, 0 );
                AddLabel( 50, 220, 1152, m_Stone.GumpName9 );
                AddLabel( 300, 220, 1152, ""+ m_Stone.Price9 );
            }

            if ( m_Stone.GumpName10 != null && m_Stone.Item10 != null && m_Stone.GumpName10 != "" && m_Stone.Item10 != "" )
            {
                AddButton( 20, 240, 4005, 4007, 10, GumpButtonType.Reply, 0 );
                AddLabel( 50, 240, 1152, m_Stone.GumpName10 );
                AddLabel( 300, 240, 1152, ""+ m_Stone.Price10 );
            }

            if ( m_Stone.GumpName11 != null && m_Stone.Item11 != null && m_Stone.GumpName11 != "" && m_Stone.Item11 != "" )
            {
                AddButton( 20, 260, 4005, 4007, 11, GumpButtonType.Reply, 0 );
                AddLabel( 50, 260, 1152, m_Stone.GumpName11 );
                AddLabel( 300, 260, 1152, ""+ m_Stone.Price11 );
            }

            if ( m_Stone.GumpName12 != null && m_Stone.Item12 != null && m_Stone.GumpName12 != "" && m_Stone.Item12 != "" )
            {
                AddButton( 20, 280, 4005, 4007, 12, GumpButtonType.Reply, 0 );
                AddLabel( 50, 280, 1152, m_Stone.GumpName12 );
                AddLabel( 300, 280, 1152, ""+ m_Stone.Price12 );
            }

            if ( m_Stone.GumpName13 != null && m_Stone.Item13 != null && m_Stone.GumpName13 != "" && m_Stone.Item13 != "" )
            {
                AddButton( 20, 300, 4005, 4007, 13, GumpButtonType.Reply, 0 );
                AddLabel( 50, 300, 1152, m_Stone.GumpName13 );
                AddLabel( 300, 300, 1152, ""+ m_Stone.Price13 );
            }

            if ( m_Stone.GumpName14 != null && m_Stone.Item14 != null && m_Stone.GumpName14 != "" && m_Stone.Item14 != "" )
            {
                AddButton( 20, 320, 4005, 4007, 14, GumpButtonType.Reply, 0 );
                AddLabel( 50, 320, 1152, m_Stone.GumpName14 );
                AddLabel( 300, 320, 1152, ""+ m_Stone.Price14 );
            }

            if ( m_Stone.GumpName15 != null && m_Stone.Item15 != null && m_Stone.GumpName15 != "" && m_Stone.Item15 != "" )
            {
                AddButton( 20, 340, 4005, 4007, 15, GumpButtonType.Reply, 0 );
                AddLabel( 50, 340, 1152, m_Stone.GumpName15 );
                AddLabel( 300, 340, 1152, ""+ m_Stone.Price15 );
            }

            if ( m_Stone.GumpName16 != null && m_Stone.Item16 != null && m_Stone.GumpName16 != "" && m_Stone.Item16 != "" )
            {
                AddButton( 20, 360, 4005, 4007, 16, GumpButtonType.Reply, 0 );
                AddLabel( 50, 360, 1152, m_Stone.GumpName16 );
                AddLabel( 300, 360, 1152, ""+ m_Stone.Price16 );
            }

            if ( m_Stone.GumpName17 != null && m_Stone.Item17 != null && m_Stone.GumpName17 != "" && m_Stone.Item17 != "" )
            {
                AddButton( 20, 380, 4005, 4007, 17, GumpButtonType.Reply, 0 );
                AddLabel( 50, 380, 1152, m_Stone.GumpName17 );
                AddLabel( 300, 380, 1152, ""+ m_Stone.Price17 );
            }

            if ( m_Stone.GumpName18 != null && m_Stone.Item18 != null && m_Stone.GumpName18 != "" && m_Stone.Item18 != "" )
            {
                AddButton( 20, 400, 4005, 4007, 18, GumpButtonType.Reply, 0 );
                AddLabel( 50, 400, 1152, m_Stone.GumpName18 );
                AddLabel( 300, 400, 1152, ""+ m_Stone.Price18 );
            }

            if ( m_Stone.GumpName19 != null && m_Stone.Item19 != null && m_Stone.GumpName19 != "" && m_Stone.Item19 != "" )
            {
                AddButton( 20, 420, 4005, 4007, 19, GumpButtonType.Reply, 0 );
                AddLabel( 50, 420, 1152, m_Stone.GumpName19 );
                AddLabel( 300, 420, 1152, ""+ m_Stone.Price19 );
            }

            if ( m_Stone.GumpName20 != null && m_Stone.Item20 != null && m_Stone.GumpName20 != "" && m_Stone.Item20 != "" )
            {
                AddButton( 20, 440, 4005, 4007, 20, GumpButtonType.Reply, 0 );
                AddLabel( 50, 440, 1152, m_Stone.GumpName20 );
                AddLabel( 300, 440, 1152, ""+ m_Stone.Price20 );
            }

            AddLabel( 420, 260, 1152, "Page 2" );
            AddButton( 420, 280, 0x1196, 0x1196, 2, GumpButtonType.Page, 2 );

            AddPage( 2 );

            if ( m_Stone.GumpName21 != null && m_Stone.Item21 != null && m_Stone.GumpName21 != "" && m_Stone.Item21 != "" )
            {
                AddButton( 20, 60, 4005, 4007, 21, GumpButtonType.Reply, 0 );
                AddLabel( 50, 60, 1152, m_Stone.GumpName21 );
                AddLabel( 300, 60, 1152, ""+ m_Stone.Price21 );
            }

            if ( m_Stone.GumpName22 != null && m_Stone.Item22 != null && m_Stone.GumpName22 != "" && m_Stone.Item22 != "" )
            {
                AddButton( 20, 80, 4005, 4007, 22, GumpButtonType.Reply, 0 );
                AddLabel( 50, 80, 1152, m_Stone.GumpName22 );
                AddLabel( 300, 80, 1152, ""+ m_Stone.Price22 );
            }

            if ( m_Stone.GumpName23 != null && m_Stone.Item23 != null && m_Stone.GumpName23 != "" && m_Stone.Item23 != "" )
            {
                AddButton( 20, 100, 4005, 4007, 23, GumpButtonType.Reply, 0 );
                AddLabel( 50, 100, 1152, m_Stone.GumpName23 );
                AddLabel( 300, 100, 1152, ""+ m_Stone.Price23 );
            }

            if ( m_Stone.GumpName24 != null && m_Stone.Item24 != null && m_Stone.GumpName24 != "" && m_Stone.Item24 != "" )
            {
                AddButton( 20, 120, 4005, 4007, 24, GumpButtonType.Reply, 0 );
                AddLabel( 50, 120, 1152, m_Stone.GumpName24 );
                AddLabel( 300, 120, 1152, ""+ m_Stone.Price24 );
            }

            if ( m_Stone.GumpName25 != null && m_Stone.Item25 != null && m_Stone.GumpName25 != "" && m_Stone.Item25 != "" )
            {
                AddButton( 20, 140, 4005, 4007, 25, GumpButtonType.Reply, 0 );
                AddLabel( 50, 140, 1152, m_Stone.GumpName25 );
                AddLabel( 300, 140, 1152, ""+ m_Stone.Price25 );
            }

            if ( m_Stone.GumpName26 != null && m_Stone.Item26 != null && m_Stone.GumpName26 != "" && m_Stone.Item26 != "" )
            {
                AddButton( 20, 160, 4005, 4007, 26, GumpButtonType.Reply, 0 );
                AddLabel( 50, 160, 1152, m_Stone.GumpName26 );
                AddLabel( 300, 160, 1152, ""+ m_Stone.Price26 );
            }

            if ( m_Stone.GumpName27 != null && m_Stone.Item27 != null && m_Stone.GumpName27 != "" && m_Stone.Item27 != "" )
            {
                AddButton( 20, 180, 4005, 4007, 27, GumpButtonType.Reply, 0 );
                AddLabel( 50, 180, 1152, m_Stone.GumpName27 );
                AddLabel( 300, 180, 1152, ""+ m_Stone.Price27 );
            }

            if ( m_Stone.GumpName28 != null && m_Stone.Item28 != null && m_Stone.GumpName28 != "" && m_Stone.Item28 != "" )
            {
                AddButton( 20, 200, 4005, 4007, 28, GumpButtonType.Reply, 0 );
                AddLabel( 50, 200, 1152, m_Stone.GumpName28 );
                AddLabel( 300, 200, 1152, ""+ m_Stone.Price28 );
            }

            if ( m_Stone.GumpName29 != null && m_Stone.Item29 != null && m_Stone.GumpName29 != "" && m_Stone.Item29 != "" )
            {
                AddButton( 20, 220, 4005, 4007, 29, GumpButtonType.Reply, 0 );
                AddLabel( 50, 220, 1152, m_Stone.GumpName29 );
                AddLabel( 300, 220, 1152, ""+ m_Stone.Price29 );
            }

            if ( m_Stone.GumpName30 != null && m_Stone.Item30 != null && m_Stone.GumpName30 != "" && m_Stone.Item30 != "" )
            {
                AddButton( 20, 240, 4005, 4007, 30, GumpButtonType.Reply, 0 );
                AddLabel( 50, 240, 1152, m_Stone.GumpName30 );
                AddLabel( 300, 240, 1152, ""+ m_Stone.Price30 );
            }

            if ( m_Stone.GumpName31 != null && m_Stone.Item31 != null && m_Stone.GumpName31 != "" && m_Stone.Item31 != "" )
            {
                AddButton( 20, 260, 4005, 4007, 31, GumpButtonType.Reply, 0 );
                AddLabel( 50, 260, 1152, m_Stone.GumpName31 );
                AddLabel( 300, 260, 1152, ""+ m_Stone.Price31 );
            }

            if ( m_Stone.GumpName32 != null && m_Stone.Item32 != null && m_Stone.GumpName32 != "" && m_Stone.Item32 != "" )
            {
                AddButton( 20, 280, 4005, 4007, 32, GumpButtonType.Reply, 0 );
                AddLabel( 50, 280, 1152, m_Stone.GumpName32 );
                AddLabel( 300, 280, 1152, ""+ m_Stone.Price32 );
            }

            if ( m_Stone.GumpName33 != null && m_Stone.Item33 != null && m_Stone.GumpName33 != "" && m_Stone.Item33 != "" )
            {
                AddButton( 20, 300, 4005, 4007, 33, GumpButtonType.Reply, 0 );
                AddLabel( 50, 300, 1152, m_Stone.GumpName33 );
                AddLabel( 300, 300, 1152, ""+ m_Stone.Price33 );
            }

            if ( m_Stone.GumpName34 != null && m_Stone.Item34 != null && m_Stone.GumpName34 != "" && m_Stone.Item34 != "" )
            {
                AddButton( 20, 320, 4005, 4007, 34, GumpButtonType.Reply, 0 );
                AddLabel( 50, 320, 1152, m_Stone.GumpName34 );
                AddLabel( 300, 320, 1152, ""+ m_Stone.Price34 );
            }

            if ( m_Stone.GumpName35 != null && m_Stone.Item35 != null && m_Stone.GumpName35 != "" && m_Stone.Item35 != "" )
            {
                AddButton( 20, 340, 4005, 4007, 35, GumpButtonType.Reply, 0 );
                AddLabel( 50, 340, 1152, m_Stone.GumpName35 );
                AddLabel( 300, 340, 1152, ""+ m_Stone.Price35 );
            }

            if ( m_Stone.GumpName36 != null && m_Stone.Item36 != null && m_Stone.GumpName36 != "" && m_Stone.Item36 != "" )
            {
                AddButton( 20, 360, 4005, 4007, 36, GumpButtonType.Reply, 0 );
                AddLabel( 50, 360, 1152, m_Stone.GumpName36 );
                AddLabel( 300, 360, 1152, ""+ m_Stone.Price36 );
            }

            if ( m_Stone.GumpName37 != null && m_Stone.Item37 != null && m_Stone.GumpName37 != "" && m_Stone.Item37 != "" )
            {
                AddButton( 20, 380, 4005, 4007, 37, GumpButtonType.Reply, 0 );
                AddLabel( 50, 380, 1152, m_Stone.GumpName37 );
                AddLabel( 300, 380, 1152, ""+ m_Stone.Price37 );
            }

            if ( m_Stone.GumpName38 != null && m_Stone.Item38 != null && m_Stone.GumpName38 != "" && m_Stone.Item38 != "" )
            {
                AddButton( 20, 400, 4005, 4007, 38, GumpButtonType.Reply, 0 );
                AddLabel( 50, 400, 1152, m_Stone.GumpName38 );
                AddLabel( 300, 400, 1152, ""+ m_Stone.Price38 );
            }

            if ( m_Stone.GumpName39 != null && m_Stone.Item39 != null && m_Stone.GumpName39 != "" && m_Stone.Item39 != "" )
            {
                AddButton( 20, 420, 4005, 4007, 39, GumpButtonType.Reply, 0 );
                AddLabel( 50, 420, 1152, m_Stone.GumpName39 );
                AddLabel( 300, 420, 1152, ""+ m_Stone.Price39 );
            }

            if ( m_Stone.GumpName40 != null && m_Stone.Item40 != null && m_Stone.GumpName40 != "" && m_Stone.Item40 != "" )
            {
                AddButton( 20, 440, 4005, 4007, 40, GumpButtonType.Reply, 0 );
                AddLabel( 50, 440, 1152, m_Stone.GumpName40 );
                AddLabel( 300, 440, 1152, ""+ m_Stone.Price40 );
            }

            AddLabel( 420, 260, 1152, "Page 1" );
            AddButton( 420, 280, 0x119a, 0x119a, 1, GumpButtonType.Page, 1 );
        }
Exemplo n.º 2
0
        private void ConnectTarget_Callback( Mobile from, object obj )
        {
            if ( obj is VendorStone && obj is Item )
            {
                Item item = (Item)obj;
                VendorStone ps = (VendorStone)obj;

                Stone = ps;
                from.SendMessage( "You have connected the ball to the stone." );
            }
            else
            {
                from.SendMessage( "That is an invalid target!" );
            }
        }
Exemplo n.º 3
0
        public EditVendorGump( Mobile from, VendorStone stone )
            : base(25, 25)
        {
            m_Stone = stone;

            from.CloseGump( typeof( VendorGump ) );
            from.CloseGump( typeof( EditVendorGump ) );

            AddPage( 0 );
            AddBackground( 0, 0, 530, 480, 5054 );
            AddAlphaRegion( 10, 10, 510, 460 );

            AddImageTiled( 10, 40, 510, 5, 2624 );
            AddImageTiled( 400, 40, 5, 430, 2624 );
            AddImageTiled( 90, 40, 5, 430, 2624 );
            AddImageTiled( 310, 40, 5, 430, 2624 );
            AddImageTiled( 10, 58, 390, 5, 2624 );

            AddImageTiled( 10, 80, 390, 3, 2624 );
            AddImageTiled( 10, 100, 390, 3, 2624 );
            AddImageTiled( 10, 120, 390, 3, 2624 );
            AddImageTiled( 10, 140, 390, 3, 2624 );

            AddImageTiled( 10, 160, 510, 3, 2624 );
            AddImageTiled( 10, 180, 510, 3, 2624 );
            AddImageTiled( 10, 200, 510, 3, 2624 );
            AddImageTiled( 10, 220, 510, 3, 2624 );

            AddImageTiled( 10, 240, 390, 3, 2624 );
            AddImageTiled( 10, 260, 390, 3, 2624 );
            AddImageTiled( 10, 280, 390, 3, 2624 );
            AddImageTiled( 10, 300, 390, 3, 2624 );
            AddImageTiled( 10, 320, 390, 3, 2624 );
            AddImageTiled( 10, 340, 390, 3, 2624 );
            AddImageTiled( 10, 360, 390, 3, 2624 );
            AddImageTiled( 10, 380, 390, 3, 2624 );
            AddImageTiled( 10, 400, 390, 3, 2624 );
            AddImageTiled( 10, 420, 390, 3, 2624 );
            AddImageTiled( 10, 440, 390, 3, 2624 );

            AddImageTiled( 230, 10, 3, 30, 2624 );
            AddImageTiled( 340, 10, 3, 30, 2624 );

            AddTextEntry( 235, 20, 100, 15, 1152, 123, m_Stone.Name );

            AddLabel( 420, 60, 5, "Stone Currency:" );
            if ( m_Stone.Currency != null )
            {
                if ( m_Stone.Currency.Name != null )
                {
                    AddLabel( 420, 80, 5, m_Stone.Currency.Name );
                }
                else
                {
                    AddLabel( 420, 80, 33, ""+ m_Stone.Currency );
                }
            }
            else
            {
                AddLabel( 420, 80, 33, "None" );
            }

            AddLabel( 420, 360, 906, "Created By" );
            AddLabel( 420, 380, 906, "~Raelis~" );

            AddButton( 420, 440, 4005, 4007, 0, GumpButtonType.Reply, 0 );
            AddLabel( 450, 440, 33, "Close" );

            AddLabel( 420, 160, 1152, "Hue: " );
            AddTextEntry( 460, 160, 60, 15, 1152, 120, m_Stone.HuedPrice.ToString() );

            AddLabel( 420, 180, 1152, "Bless: " );
            AddTextEntry( 460, 180, 60, 15, 1152, 121, m_Stone.BlessedPrice.ToString() );

            AddLabel( 420, 200, 1152, "Bond: " );
            AddTextEntry( 460, 200, 60, 15, 1152, 122, m_Stone.BondedPrice.ToString() );

            AddButton( 420, 320, 0xFB7, 0xFB9, 1, GumpButtonType.Reply, 0 );
            AddButton( 420, 340, 0xFB1, 0xFB3, 0, GumpButtonType.Reply, 0 );

            AddLabel( 20, 42, 1152, "Item Name" );
            AddLabel( 170, 42, 1152, "Gump Name" );
            AddLabel( 340, 42, 1152, "Price" );

            AddPage( 1 );

            AddTextEntry( 10, 60, 70, 15, 5, 0, m_Stone.Item1 );
            AddTextEntry( 100, 60, 200, 15, 65, 1, m_Stone.GumpName1 );
            AddTextEntry( 320, 60, 60, 15, 34, 2, m_Stone.Price1.ToString() );

            AddTextEntry( 10, 80, 70, 15, 5, 3, m_Stone.Item2 );
            AddTextEntry( 100, 80, 200, 15, 65, 4, m_Stone.GumpName2 );
            AddTextEntry( 320, 80, 60, 15, 34, 5, m_Stone.Price2.ToString() );

            AddTextEntry( 10, 100, 70, 15, 5, 6, m_Stone.Item3 );
            AddTextEntry( 100, 100, 200, 15, 65, 7, m_Stone.GumpName3 );
            AddTextEntry( 320, 100, 60, 15, 34, 8, m_Stone.Price3.ToString() );

            AddTextEntry( 10, 120, 70, 15, 5, 9, m_Stone.Item4 );
            AddTextEntry( 100, 120, 200, 15, 65, 10, m_Stone.GumpName4 );
            AddTextEntry( 320, 120, 60, 15, 34, 11, m_Stone.Price4.ToString() );

            AddTextEntry( 10, 140, 70, 15, 5, 12, m_Stone.Item5 );
            AddTextEntry( 100, 140, 200, 15, 65, 13, m_Stone.GumpName5 );
            AddTextEntry( 320, 140, 60, 15, 34, 14, m_Stone.Price5.ToString() );

            AddTextEntry( 10, 160, 70, 15, 5, 15, m_Stone.Item6 );
            AddTextEntry( 100, 160, 200, 15, 65, 16, m_Stone.GumpName6 );
            AddTextEntry( 320, 160, 60, 15, 34, 17, m_Stone.Price6.ToString() );

            AddTextEntry( 10, 180, 70, 15, 5, 18, m_Stone.Item7 );
            AddTextEntry( 100, 180, 200, 15, 65, 19, m_Stone.GumpName7 );
            AddTextEntry( 320, 180, 60, 15, 34, 20, m_Stone.Price7.ToString() );

            AddTextEntry( 10, 200, 70, 15, 5, 21, m_Stone.Item8 );
            AddTextEntry( 100, 200, 200, 15, 65, 22, m_Stone.GumpName8 );
            AddTextEntry( 320, 200, 60, 15, 34, 23, m_Stone.Price8.ToString() );

            AddTextEntry( 10, 220, 70, 15, 5, 24, m_Stone.Item9 );
            AddTextEntry( 100, 220, 200, 15, 65, 25, m_Stone.GumpName9 );
            AddTextEntry( 320, 220, 60, 15, 34, 26, m_Stone.Price9.ToString() );

            AddTextEntry( 10, 240, 70, 15, 5, 27, m_Stone.Item10 );
            AddTextEntry( 100, 240, 200, 15, 65, 28, m_Stone.GumpName10 );
            AddTextEntry( 320, 240, 60, 15, 34, 29, m_Stone.Price10.ToString() );

            AddTextEntry( 10, 260, 70, 15, 5, 30, m_Stone.Item11 );
            AddTextEntry( 100, 260, 200, 15, 65, 31, m_Stone.GumpName11 );
            AddTextEntry( 320, 260, 60, 15, 34, 32, m_Stone.Price11.ToString() );

            AddTextEntry( 10, 280, 70, 15, 5, 33, m_Stone.Item12 );
            AddTextEntry( 100, 280, 200, 15, 65, 34, m_Stone.GumpName12 );
            AddTextEntry( 320, 280, 60, 15, 34, 35, m_Stone.Price12.ToString() );

            AddTextEntry( 10, 300, 70, 15, 5, 36, m_Stone.Item13 );
            AddTextEntry( 100, 300, 200, 15, 65, 37, m_Stone.GumpName13 );
            AddTextEntry( 320, 300, 60, 15, 34, 38, m_Stone.Price13.ToString() );

            AddTextEntry( 10, 320, 70, 15, 5, 39, m_Stone.Item14 );
            AddTextEntry( 100, 320, 200, 15, 65, 40, m_Stone.GumpName14 );
            AddTextEntry( 320, 320, 60, 15, 34, 41, m_Stone.Price14.ToString() );

            AddTextEntry( 10, 340, 70, 15, 5, 42, m_Stone.Item15 );
            AddTextEntry( 100, 340, 200, 15, 65, 43, m_Stone.GumpName15 );
            AddTextEntry( 320, 340, 60, 15, 34, 44, m_Stone.Price15.ToString() );

            AddTextEntry( 10, 360, 70, 15, 5, 45, m_Stone.Item16 );
            AddTextEntry( 100, 360, 200, 15, 65, 46, m_Stone.GumpName16 );
            AddTextEntry( 320, 360, 60, 15, 34, 47, m_Stone.Price16.ToString() );

            AddTextEntry( 10, 380, 70, 15, 5, 48, m_Stone.Item17 );
            AddTextEntry( 100, 380, 200, 15, 65, 49, m_Stone.GumpName17 );
            AddTextEntry( 320, 380, 60, 15, 34, 50, m_Stone.Price17.ToString() );

            AddTextEntry( 10, 400, 70, 15, 5, 51, m_Stone.Item18 );
            AddTextEntry( 100, 400, 200, 15, 65, 52, m_Stone.GumpName18 );
            AddTextEntry( 320, 400, 60, 15, 34, 53, m_Stone.Price18.ToString() );

            AddTextEntry( 10, 420, 70, 15, 5, 54, m_Stone.Item19 );
            AddTextEntry( 100, 420, 200, 15, 65, 55, m_Stone.GumpName19 );
            AddTextEntry( 320, 420, 60, 15, 34, 56, m_Stone.Price19.ToString() );

            AddTextEntry( 10, 440, 70, 15, 5, 57, m_Stone.Item20 );
            AddTextEntry( 100, 440, 200, 15, 65, 58, m_Stone.GumpName20 );
            AddTextEntry( 320, 440, 60, 15, 34, 59, m_Stone.Price20.ToString() );

            AddLabel( 420, 260, 1152, "Page 2" );
            AddButton( 420, 280, 0x1196, 0x1196, 2, GumpButtonType.Page, 2 );

            AddPage( 2 );

            AddTextEntry( 10, 60, 70, 15, 5, 60, m_Stone.Item21 );
            AddTextEntry( 100, 60, 200, 15, 65, 61, m_Stone.GumpName21 );
            AddTextEntry( 320, 60, 60, 15, 34, 62, m_Stone.Price21.ToString() );

            AddTextEntry( 10, 80, 70, 15, 5, 63, m_Stone.Item22 );
            AddTextEntry( 100, 80, 200, 15, 65, 64, m_Stone.GumpName22 );
            AddTextEntry( 320, 80, 60, 15, 34, 65, m_Stone.Price22.ToString() );

            AddTextEntry( 10, 100, 70, 15, 5, 66, m_Stone.Item23 );
            AddTextEntry( 100, 100, 200, 15, 65, 67, m_Stone.GumpName23 );
            AddTextEntry( 320, 100, 60, 15, 34, 68, m_Stone.Price23.ToString() );

            AddTextEntry( 10, 120, 70, 15, 5, 69, m_Stone.Item24 );
            AddTextEntry( 100, 120, 200, 15, 65, 70, m_Stone.GumpName24 );
            AddTextEntry( 320, 120, 60, 15, 34, 71, m_Stone.Price24.ToString() );

            AddTextEntry( 10, 140, 70, 15, 5, 72, m_Stone.Item25 );
            AddTextEntry( 100, 140, 200, 15, 65, 73, m_Stone.GumpName25 );
            AddTextEntry( 320, 140, 60, 15, 34, 74, m_Stone.Price25.ToString() );

            AddTextEntry( 10, 160, 70, 15, 5, 75, m_Stone.Item26 );
            AddTextEntry( 100, 160, 200, 15, 65, 76, m_Stone.GumpName26 );
            AddTextEntry( 320, 160, 60, 15, 34, 77, m_Stone.Price26.ToString() );

            AddTextEntry( 10, 180, 70, 15, 5, 78, m_Stone.Item27 );
            AddTextEntry( 100, 180, 200, 15, 65, 79, m_Stone.GumpName27 );
            AddTextEntry( 320, 180, 60, 15, 34, 80, m_Stone.Price27.ToString() );

            AddTextEntry( 10, 200, 70, 15, 5, 81, m_Stone.Item28 );
            AddTextEntry( 100, 200, 200, 15, 65, 82, m_Stone.GumpName28 );
            AddTextEntry( 320, 200, 60, 15, 34, 83, m_Stone.Price28.ToString() );

            AddTextEntry( 10, 220, 70, 15, 5, 84, m_Stone.Item29 );
            AddTextEntry( 100, 220, 200, 15, 65, 85, m_Stone.GumpName29 );
            AddTextEntry( 320, 220, 60, 15, 34, 86, m_Stone.Price29.ToString() );

            AddTextEntry( 10, 240, 70, 15, 5, 87, m_Stone.Item30 );
            AddTextEntry( 100, 240, 200, 15, 65, 88, m_Stone.GumpName30 );
            AddTextEntry( 320, 240, 60, 15, 34, 89, m_Stone.Price30.ToString() );

            AddTextEntry( 10, 260, 70, 15, 5, 90, m_Stone.Item31 );
            AddTextEntry( 100, 260, 200, 15, 65, 91, m_Stone.GumpName31 );
            AddTextEntry( 320, 260, 60, 15, 34, 92, m_Stone.Price31.ToString() );

            AddTextEntry( 10, 280, 70, 15, 5, 93, m_Stone.Item32 );
            AddTextEntry( 100, 280, 200, 15, 65, 94, m_Stone.GumpName32 );
            AddTextEntry( 320, 280, 60, 15, 34, 95, m_Stone.Price32.ToString() );

            AddTextEntry( 10, 300, 70, 15, 5, 96, m_Stone.Item33 );
            AddTextEntry( 100, 300, 200, 15, 65, 97, m_Stone.GumpName33 );
            AddTextEntry( 320, 300, 60, 15, 34, 98, m_Stone.Price33.ToString() );

            AddTextEntry( 10, 320, 70, 15, 5, 99, m_Stone.Item34 );
            AddTextEntry( 100, 320, 200, 15, 65, 100, m_Stone.GumpName34 );
            AddTextEntry( 320, 320, 60, 15, 34, 101, m_Stone.Price34.ToString() );

            AddTextEntry( 10, 340, 70, 15, 5, 102, m_Stone.Item35 );
            AddTextEntry( 100, 340, 200, 15, 65, 103, m_Stone.GumpName35 );
            AddTextEntry( 320, 340, 60, 15, 34, 104, m_Stone.Price35.ToString() );

            AddTextEntry( 10, 360, 70, 15, 5, 105, m_Stone.Item36 );
            AddTextEntry( 100, 360, 200, 15, 65, 106, m_Stone.GumpName36 );
            AddTextEntry( 320, 360, 60, 15, 34, 107, m_Stone.Price36.ToString() );

            AddTextEntry( 10, 380, 70, 15, 5, 108, m_Stone.Item37 );
            AddTextEntry( 100, 380, 200, 15, 65, 109, m_Stone.GumpName37 );
            AddTextEntry( 320, 380, 60, 15, 34, 110, m_Stone.Price37.ToString() );

            AddTextEntry( 10, 400, 70, 15, 5, 111, m_Stone.Item38 );
            AddTextEntry( 100, 400, 200, 15, 65, 112, m_Stone.GumpName38 );
            AddTextEntry( 320, 400, 60, 15, 34, 113, m_Stone.Price38.ToString() );

            AddTextEntry( 10, 420, 70, 15, 5, 114, m_Stone.Item39 );
            AddTextEntry( 100, 420, 200, 15, 65, 115, m_Stone.GumpName39 );
            AddTextEntry( 320, 420, 60, 15, 34, 116, m_Stone.Price39.ToString() );

            AddTextEntry( 10, 440, 70, 15, 5, 117, m_Stone.Item40 );
            AddTextEntry( 100, 440, 200, 15, 65, 118, m_Stone.GumpName40 );
            AddTextEntry( 320, 440, 60, 15, 34, 119, m_Stone.Price40.ToString() );

            AddLabel( 420, 260, 1152, "Page 1" );
            AddButton( 420, 280, 0x119a, 0x119a, 1, GumpButtonType.Page, 1 );
        }
Exemplo n.º 4
0
        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            int version = reader.ReadInt();
            m_Stone = reader.ReadItem() as VendorStone;
        }