Exemplo n.º 1
0
        public ProcessWarGump( Mobile from, Guild guild )
            : base(10, 40)
        {
            m_Mobile = from;
            m_Guild = from.Guild as Guild;
            w_Guild = guild;

            uint ET = m_Guild.GetExpTime( w_Guild );

            int h = (int) ( ET / 60 );
            int m = (int) ( ET - h * 60 );

            /*0*/
            Intern( "Unknown" );
            /*1*/
            Intern( "" );
            /*2*/
            Intern( "" );
            /*3*/
            Intern( "0/0" );
            /*4*/
            Intern( "0/0" );
            /*5*/
            Intern( "00:00" );
            /*6*/
            Intern( guild.Name );
            /*7*/
            Intern( "<basefont color=#black>" + guild.AllianceName + "</basefont>" );
            /*8*/
            Intern( guild.Abbreviation );
            /*9*/
            Intern( "<basefont color=#black>" + m_Guild.GetKills( w_Guild ) + "/" + m_Guild.GetMaxKills( w_Guild ) + "</basefont>" );
            /*10*/
            Intern( "<basefont color=#black>" + h + ":" + m + "</basefont>" );
            /*11*/
            Intern( "<basefont color=#black>" + w_Guild.GetKills( m_Guild ) + "/" + m_Guild.GetMaxKills( w_Guild ) + "</basefont>" );

            AddPage( 0 );

            AddBackground( 0, 0, 520, 335, 0x242C );
            AddHtmlLocalized( 20, 15, 480, 26, 1062975, 0x0, false, false ); // Guild Relationship
            AddImageTiled( 20, 40, 480, 2, 0x2711 );

            AddHtmlLocalized( 20, 50, 120, 26, 1062954, 0x0, true, false ); // Guild Name
            AddHtmlIntern( 150, 53, 360, 26, 6, false, false );

            AddHtmlLocalized( 20, 80, 120, 26, 1063025, 0x0, true, false ); // Alliance
            AddHtmlIntern( 150, 83, 360, 26, 7, false, false );

            AddHtmlLocalized( 20, 110, 120, 26, 1063139, 0x0, true, false ); // Abbreviation
            AddHtmlIntern( 150, 113, 120, 26, 8, false, false );

            AddHtmlLocalized( 280, 110, 120, 26, 1062966, 0x0, true, false ); // Your Kills
            AddHtmlIntern( 410, 113, 120, 26, 9, false, false );

            AddHtmlLocalized( 20, 140, 120, 26, 1062968, 0x0, true, false ); // Time Remaining
            AddHtmlIntern( 150, 143, 120, 26, 10, false, false );

            AddHtmlLocalized( 280, 140, 120, 26, 1062967, 0x0, true, false ); // Their Kills
            AddHtmlIntern( 410, 143, 120, 26, 11, false, false );

            AddImageTiled( 20, 172, 480, 2, 0x2711 );

            AddBackground( 275, 290, 225, 26, 0x2486 );
            AddButton( 280, 295, 0x845, 0x846, 0, GumpButtonType.Reply, 0 );
            AddHtmlLocalized( 305, 293, 185, 26, 3000091, 0x0, false, false ); // Cancel

            AddBackground( 20, 290, 225, 26, 0x2486 );
            AddButton( 25, 295, 0x845, 0x846, 100, GumpButtonType.Reply, 0 );
            AddHtmlLocalized( 50, 293, 185, 26, 1062980, 0x0, false, false ); // Surrender

            AddHtmlLocalized( 20, 180, 480, 30, 1062965, 0x0, true, false ); // You are at war with this guild!
            AddImageTiled( 20, 245, 480, 2, 0x2711 );

            //AddMasterGump( 725 );
        }
Exemplo n.º 2
0
        public ReceiveWarGump( Mobile from, Guild guild )
            : base(10, 40)
        {
            m_Mobile = from;
            m_Guild = from.Guild as Guild;
            i_Guild = guild;

            int h, m;
            uint ET;

            ET = i_Guild.GetWarTime( m_Guild );

            h = (int) ( ET / 60 );
            m = (int) ( ET - h * 60 );

            /*0*/
            Intern( "Unknown" );
            /*1*/
            Intern( "" );
            /*2*/
            Intern( "" );
            /*3*/
            Intern( "0/0" );
            /*4*/
            Intern( "0/0" );
            /*5*/
            Intern( "00:00" );
            /*6*/
            Intern( guild.Name );
            /*7*/
            Intern( String.Format( "<basefont color=#black>{0}</basefont>", guild.AllianceName ) );
            /*8*/
            Intern( guild.Abbreviation );
            /*9*/
            Intern( String.Format( "<basefont color=#990000>0/{0}</basefont>", i_Guild.GetMaxKills( m_Guild ) ) );
            /*10*/
            Intern( String.Format( "<basefont color=#990000>{0}:{1}</basefont>", h, m ) );
            /*11*/
            Intern( String.Format( "<basefont color=#990000>0/{0}</basefont>", i_Guild.GetMaxKills( m_Guild ) ) );

            AddPage( 0 );

            AddBackground( 0, 0, 520, 335, 0x242C );
            AddHtmlLocalized( 20, 15, 480, 26, 1062975, 0x0, false, false ); // Guild Relationship
            AddImageTiled( 20, 40, 480, 2, 0x2711 );

            AddHtmlLocalized( 20, 50, 120, 26, 1062954, 0x0, true, false ); // Guild Name
            AddHtmlIntern( 150, 53, 360, 26, 6, false, false );

            AddHtmlLocalized( 20, 80, 120, 26, 1063025, 0x0, true, false ); // Alliance
            AddHtmlIntern( 150, 83, 360, 26, 7, false, false );

            AddHtmlLocalized( 20, 110, 120, 26, 1063139, 0x0, true, false ); // Abbreviation
            AddHtmlIntern( 150, 113, 120, 26, 8, false, false );

            AddHtmlLocalized( 280, 110, 120, 26, 1062966, 0x0, true, false ); // Your Kills
            AddHtmlIntern( 410, 113, 120, 26, 9, false, false );

            AddHtmlLocalized( 20, 140, 120, 26, 1062968, 0x0, true, false ); // Time Remaining
            AddHtmlIntern( 150, 143, 120, 26, 10, false, false );

            AddHtmlLocalized( 280, 140, 120, 26, 1062967, 0x0, true, false ); // Their Kills
            AddHtmlIntern( 410, 143, 120, 26, 11, false, false );

            AddImageTiled( 20, 172, 480, 2, 0x2711 );

            AddBackground( 275, 290, 225, 26, 0x2486 );
            AddButton( 280, 295, 0x845, 0x846, 0, GumpButtonType.Reply, 0 );
            AddHtmlLocalized( 305, 293, 185, 26, 3000091, 0x0, false, false ); // Cancel

            AddBackground( 20, 290, 225, 26, 0x2486 );
            AddButton( 25, 295, 0x845, 0x846, 201, GumpButtonType.Reply, 0 );
            AddHtmlLocalized( 50, 293, 185, 26, 1062982, 0x0, false, false ); // Dismiss Challenge

            AddBackground( 20, 260, 225, 26, 0x2486 );
            AddButton( 25, 265, 0x845, 0x846, 200, GumpButtonType.Reply, 0 );
            AddHtmlLocalized( 50, 263, 185, 26, 1062981, 0x0, false, false ); // Accept Challenge

            AddBackground( 275, 260, 225, 26, 0x2486 );
            AddButton( 280, 265, 0x845, 0x846, 202, GumpButtonType.Reply, 0 );
            AddHtmlLocalized( 305, 263, 185, 26, 1062983, 0x0, false, false ); // Modify Terms

            AddHtmlLocalized( 20, 180, 480, 30, 1062969, 0x0, true, false ); // This guild has challenged you to war!
            AddImageTiled( 20, 245, 480, 2, 0x2711 );

            //AddMasterGump( 725 );
        }
Exemplo n.º 3
0
        public WarRequestGump( Mobile from, Guild target )
            : base(10, 40)
        {
            m_Mobile = from;
            t_Guild = target;
            m_Guild = from.Guild as Guild;

            uint ET = m_Guild.GetWarTime( t_Guild );

            int h = (int) ( ET / 60 );
            int m = (int) ( ET - h * 60 );

            string name;
            if ( ( name = target.Name ) != null && ( name = name.Trim() ).Length <= 0 )
                name = "";

            string abbr;
            if ( ( abbr = target.Abbreviation ) != null && ( abbr = abbr.Trim() ).Length <= 0 )
                abbr = "";

            /*0*/
            Intern( "Unknown" );
            /*1*/
            Intern( "" );
            /*2*/
            Intern( "" );
            /*3*/
            Intern( "0/0" );
            /*4*/
            Intern( "0/0" );
            /*5*/
            Intern( "00:00" );
            /*6*/
            Intern( name );
            /*7*/
            Intern( "<basefont color=#black></basefont>" );
            /*8*/
            Intern( abbr );
            /*9*/
            Intern( "<basefont color=#990000>0/" + m_Guild.GetMaxKills( t_Guild ) + "</basefont>" );
            /*10*/
            Intern( "<basefont color=#990000>" + h + ":" + m + "</basefont>" );
            /*11*/
            Intern( "<basefont color=#990000>0/" + m_Guild.GetMaxKills( t_Guild ) + "</basefont>" );

            AddPage( 0 );

            AddBackground( 0, 0, 520, 335, 0x242C );
            AddHtmlLocalized( 20, 15, 480, 26, 1062975, 0x0, false, false ); // Guild Relationship
            AddImageTiled( 20, 40, 480, 2, 0x2711 );

            AddHtmlLocalized( 20, 50, 120, 26, 1062954, 0x0, true, false ); // Guild Name
            AddHtmlIntern( 150, 53, 360, 26, 6, false, false );

            AddHtmlLocalized( 20, 80, 120, 26, 1063025, 0x0, true, false ); // Alliance
            AddHtmlIntern( 150, 83, 360, 26, 7, false, false );

            AddHtmlLocalized( 20, 110, 120, 26, 1063139, 0x0, true, false ); // Abbreviation
            AddHtmlIntern( 150, 113, 120, 26, 8, false, false );

            AddHtmlLocalized( 280, 110, 120, 26, 1062966, 0x0, true, false ); // Your Kills
            AddHtmlIntern( 410, 113, 120, 26, 9, false, false );

            AddHtmlLocalized( 20, 140, 120, 26, 1062968, 0x0, true, false ); // Time Remaining
            AddHtmlIntern( 150, 143, 120, 26, 10, false, false );

            AddHtmlLocalized( 280, 140, 120, 26, 1062967, 0x0, true, false ); // Their Kills
            AddHtmlIntern( 410, 143, 120, 26, 11, false, false );

            AddImageTiled( 20, 172, 480, 2, 0x2711 );

            AddBackground( 275, 290, 225, 26, 0x2486 );
            AddButton( 280, 295, 0x845, 0x846, 0, GumpButtonType.Reply, 0 );
            AddHtmlLocalized( 305, 293, 185, 26, 3000091, 0x0, false, false ); // Cancel

            AddBackground( 20, 290, 225, 26, 0x2486 );
            AddButton( 25, 295, 0x845, 0x846, 201, GumpButtonType.Reply, 0 );
            AddHtmlLocalized( 50, 293, 185, 26, 1062982, 0x0, false, false ); // Dismiss Challenge

            AddHtmlLocalized( 20, 180, 480, 30, 1063027, 0x0, true, false ); // You have challenged this guild to war!
            AddImageTiled( 20, 245, 480, 2, 0x2711 );
        }