Пример #1
0
		public override void OnCancel( Mobile from )
		{
			if ( GuildMenu.BadLeader( m_Mobile, m_Guild ) )
				return;

			m_Mobile.SendMenu( new GuildmasterMenu( m_Mobile, m_Guild ) );
		}
Пример #2
0
        public override void OnResponse(Mobile from, string text)
        {
            if (GuildMenu.BadLeader(m_Leader, m_Guild))
            {
                return;
            }
            else if (m_Target.Deleted || !m_Guild.IsMember(m_Target))
            {
                return;
            }

            text = text.Trim();

            if (text.Length > 20)
            {
                text = text.Substring(0, 20);
            }

            if (text.Length > 0)
            {
                m_Target.GuildTitle = text;
            }

            m_Leader.SendMenu(new GuildmasterMenu(m_Leader, m_Guild));
        }
Пример #3
0
        public override void OnResponse(Mobile from, string text)
        {
            if (GuildMenu.BadLeader(m_Mobile, m_Guild))
            {
                return;
            }

            text = text.Trim();

            if (text.Length >= 3)
            {
                List <Guild> guilds = Utility.CastConvertList <BaseGuild, Guild>(Guild.Search(text));

                if (guilds.Count > 0)
                {
                    m_Mobile.SendMenu(new GuildDeclareWarMenu(m_Mobile, m_Guild, 0, guilds));
                }
                else
                {
                    m_Mobile.SendMenu(new GuildWarAdminMenu(m_Mobile, m_Guild));
                    m_Mobile.SendAsciiMessage("No guilds found matching - try another name in the search");                       // No guilds found matching - try another name in the search
                }
            }
            else
            {
                m_Mobile.SendAsciiMessage("Search string must be at least three letters in length.");
            }
        }
Пример #4
0
        public override void OnResponse(Mobile from, string text)
        {
            if (GuildMenu.BadLeader(m_Mobile, m_Guild))
            {
                return;
            }

            text = text.Trim();

            if (text.Length > 40)
            {
                text = text.Substring(0, 40);
            }

            if (text.Length > 0)
            {
                if (Guild.FindByName(text) != null)
                {
                    m_Mobile.SendAsciiMessage("{0} conflicts with the name of an existing guild.", text);
                }
                else
                {
                    m_Guild.Name = text;
                    m_Guild.GuildTextMessage(String.Format("The name of your guild has changed: {0}", text));                       // The name of your guild has changed:
                }
            }

            m_Mobile.SendMenu(new GuildmasterMenu(m_Mobile, m_Guild));
        }
Пример #5
0
        protected override void OnTargetFinish(Mobile from)
        {
            if (GuildMenu.BadMember(m_Mobile, m_Guild))
            {
                return;
            }

            m_Mobile.SendMenu(new GuildMenu(m_Mobile, m_Guild));
        }
Пример #6
0
        public override void OnCancel(Mobile from)
        {
            if (GuildMenu.BadLeader(m_Mobile, m_Guild))
            {
                return;
            }

            m_Mobile.SendMenu(new GuildWarAdminMenu(m_Mobile, m_Guild));
        }
Пример #7
0
        public override void OnCancel(Mobile from)
        {
            if (GuildMenu.BadLeader(m_Leader, m_Guild))
            {
                return;
            }
            else if (m_Target.Deleted || !m_Guild.IsMember(m_Target))
            {
                return;
            }

            m_Leader.SendMenu(new GuildmasterMenu(m_Leader, m_Guild));
        }
Пример #8
0
		public override void OnResponse( Mobile from, string text )
		{
            if ( GuildMenu.BadLeader( m_Mobile, m_Guild ) )
				return;

			text = text.Trim();

			if ( text.Length > 50 )
				text = text.Substring( 0, 50 );

			if ( text.Length > 0 )
				m_Guild.Website = text;

            m_Mobile.SendMenu( new GuildmasterMenu( m_Mobile, m_Guild ) );
		}
Пример #9
0
        public override void OnResponse(Mobile from, string text)
        {
            if (GuildMenu.BadLeader(m_Mobile, m_Guild))
            {
                return;
            }

            text = text.Trim();

            if (text.Length > 50)
            {
                text = text.Substring(0, 50);
            }

            if (text.Length > 0)
            {
                m_Guild.Charter = text;
            }

            m_Mobile.SendAsciiMessage("Enter the new website for the guild (50 characters max):");               // Enter the new website for the guild (50 characters max):
            m_Mobile.Prompt = new GuildWebsitePrompt(m_Mobile, m_Guild);
        }