public override void OnSpeech(SpeechEventArgs e) { base.OnSpeech(e); Mobile from = e.Mobile; // if( e.Layer.Helm is NecromaticMask ) if (from.FindItemOnLayer(Layer.Helm) is NecromaticMask) { if (e.Speech.IndexOf("nwapslleh") >= 0) { m_pss = new PoisonSpell(this, null); // get your spell if (m_pss.Cast()) // if it casts the spell { TimeSpan castDelay = m_pss.GetCastDelay(); m_CastTimer = new PSCastTimer(m_pss, from, castDelay); m_CastTimer.Start(); } } } }
public override void OnSpeech( SpeechEventArgs e ) { base.OnSpeech(e); Mobile from = e.Mobile; // if( e.Layer.Helm is NecromaticMask ) if ( from.FindItemOnLayer( Layer.Helm ) is NecromaticMask ) { if (e.Speech.IndexOf( "nwapslleh" ) >= 0 ) { m_pss = new PoisonSpell( this, null ); // get your spell if( m_pss.Cast() ) // if it casts the spell { TimeSpan castDelay = m_pss.GetCastDelay(); m_CastTimer = new PSCastTimer( m_pss, from, castDelay ); m_CastTimer.Start(); } } } }