public PageEntry( Mobile sender, string message, PageType type ) { _sender = sender; _timeSent = DateTime.Now; _message = message; _type = type; _location = sender.Location; _map = sender.Map; if( Server.Engines.Help.SpeechLog.Enabled ) { PlayerMobile pm = sender as PlayerMobile; if( pm != null && pm.SpeechLog != null ) { _speechLog = pm.SpeechLog; } } }
public SpeechLogGump( Mobile player, SpeechLog log ) : this(player, new ArrayList( log )) { }
public override void OnSpeech(SpeechEventArgs e) { if (SpeechLog.Enabled && this.NetState != null) { if (m_SpeechLog == null) m_SpeechLog = new SpeechLog(); m_SpeechLog.Add(e.Mobile, e.Speech); } }
public SpeechLogGump(Mobile player, SpeechLog log) : this(player, new List <SpeechLogEntry>(log)) { }
public override void OnSpeech(SpeechEventArgs e) { if (SpeechLog.Enabled && this.NetState != null) { if (m_SpeechLog == null) m_SpeechLog = new SpeechLog(); m_SpeechLog.Add(e.Mobile, e.Speech); Felladrin.Commands.History.Refresh(this); } }
public SpeechLogGump(Mobile player, SpeechLog log) : this(player, new ArrayList(log)) { }
public SpeechLogGump(Mobile player, SpeechLog log) : this(player, new List<SpeechLogEntry>(log)) { }
public override void OnSpeech(SpeechEventArgs e) { if (SpeechLog.Enabled && NetState != null) { if (SpeechLog == null) { SpeechLog = new SpeechLog(); } SpeechLog.Add(e.Mobile, e.Speech); } // if it's a counselor or companion, log to file if (e.Mobile == null || e.Mobile == this) { return; } if (AccessLevel == AccessLevel.Counselor && PageQueue.Contains(e.Mobile)) { LoggingCustom.LogCounselor(DateTime.Now + "\t" + e.Mobile.RawName + "(nearby " + RawName + ")\t" + e.Speech); } if (!Companion || !(e.Mobile is PlayerMobile) || !((PlayerMobile)e.Mobile).Young) { return; } LoggingCustom.Log( Path.Combine(new[] {CompanionListGump.LogFileLocation, RawName + ".txt"}), DateTime.Now + "\t" + e.Mobile.RawName + "(nearby " + RawName + ")\t" + e.Speech); LoggingCustom.LogCompanion(DateTime.Now + "\t" + e.Mobile.RawName + "(nearby " + RawName + ")\t" + e.Speech); }
public HistoryAutoRefreshGump(Mobile player, SpeechLog log) : base(player, log) { }
public override void OnSpeech( SpeechEventArgs e ) { if ( SpeechLog.Enabled && this.NetState != null ) { if ( m_SpeechLog == null ) m_SpeechLog = new SpeechLog(); m_SpeechLog.Add( e.Mobile, e.Speech ); } if (e.Mobile == this && e.Mobile.Alive && (e.Speech.ToLower().Contains("guards") || e.Speech.ToLower().Contains("guardas"))) // *guards* { if (e.Mobile.Region == null || !(e.Mobile.Region is GuardedRegion)) e.Mobile.SendMessage(0x26, "Voce nao esta em uma area protegida!"); } }
public override void OnSpeech( SpeechEventArgs e ) { if (QuestArrow != null && (QuestArrow is SkillHandlers.TrackArrow) && e.HasKeyword(0x0036)) { QuestArrow.Stop(); } if ( SpeechLog.Enabled && this.NetState != null ) { if ( m_SpeechLog == null ) m_SpeechLog = new SpeechLog(); m_SpeechLog.Add( e.Mobile, e.Speech ); } }