public GuildProtectionMenu( Mobile from, Guild guild ) : base("Guild Protection", null) { m_Mobile = from; m_Guild = guild; List<String> list = new List<String>(); if ( m_Guild.IsProtected( m_Guild.Leader ) ) { int total = 0; foreach ( Mobile m in m_Guild.Protected ) { if ( m == m_Guild.Leader ) total += Guild.ProtectionRateLeader; else total -= Guild.ProtectionRateMember; if ( total < 5000 ) total = 5000; } TimeSpan days = m_Guild.LastProtectionPayment.AddDays(m_Guild.ProtectionPeriod.TotalDays) - DateTime.Now; list.Add( String.Format( "Toggle guild protection and lockdowns. Currently on. The next payment of {0:n0} gold pieces will be charged in {1} days.", total, Math.Ceiling( days.TotalDays ) ) ); } else { list.Add( "Toggle guild protection and lockdowns. Currently off." ); } list.Add( "Set guild house sign." ); list.Add( "Grant protection to a guild member." ); list.Add( "Revoke protection from a guild member." ); list.Add( "Return to main menu." ); Answers = list.ToArray(); }