Example #1
0
        public override void OnResponse(NetState state, RelayInfo info)
        {
            Mobile from = state.Mobile;

            if (from == null)
            {
                return;
            }

            if (info.ButtonID == 0)
            {
                m_From.SendMessage(m_Mobile.Name + " declines your request to mate the two Wolf 's.");
                m_Mobile.SendMessage("You decline " + m_From.Name + "'s request to mate the two Wolf 's.");
            }
            if (info.ButtonID == 1)
            {
                m_ED1.Blessed  = true;
                m_ED1.Pregnant = true;

                NytesWolfMatingTimer mt = new NytesWolfMatingTimer(m_ED1, TimeSpan.FromDays(3.0));
                mt.Start();
                m_ED1.EndNytesWolfMating = DateTime.UtcNow + TimeSpan.FromDays(3.0);

                m_From.SendMessage(m_Mobile.Name + " accepts your request to mate the two Wolf 's.");
                m_Mobile.SendMessage("You accept " + m_From.Name + "'s request to mate the two Wolf 's.");
            }
        }
Example #2
0
		public override void OnResponse( NetState state, RelayInfo info )
		{
			Mobile from = state.Mobile; 

			if ( from == null )
				return;

			if ( info.ButtonID == 0 )
			{
				m_From.SendMessage( m_Mobile.Name +" declines your request to mate the two Wolf 's." );
				m_Mobile.SendMessage( "You decline "+ m_From.Name +"'s request to mate the two Wolf 's." );
			}
			if ( info.ButtonID == 1 )
			{
				m_ED1.Blessed = true;
				m_ED1.Pregnant = true;

				NytesWolfMatingTimer mt = new NytesWolfMatingTimer( m_ED1, TimeSpan.FromDays( 3.0 ) );
				mt.Start();
				m_ED1.EndNytesWolfMating = DateTime.UtcNow + TimeSpan.FromDays( 3.0 );

				m_From.SendMessage( m_Mobile.Name +" accepts your request to mate the two Wolf 's." );
				m_Mobile.SendMessage( "You accept "+ m_From.Name +"'s request to mate the two Wolf 's." );
			}
		}