Beispiel #1
0
        public override void OnSpeech(SpeechEventArgs e)
        {
            base.OnSpeech(e);
            Mobile from = e.Mobile;

            if (from.FindItemOnLayer(Layer.Helm) is NecromaticMask)
            {
                if (e.Speech.IndexOf("nwapslleh") >= 0)
                {
                    GreaterHealSpell gheal = new GreaterHealSpell(this, null); // get your spell
                    if (gheal.Cast())                                          // if it casts the spell
                    {
                        m_CastTimer = new GHCastTimer(gheal, from, gheal.GetCastDelay());
                        m_CastTimer.Start();
                    }
                }
            }
        }
Beispiel #2
0
        public override void OnSpeech(SpeechEventArgs e)
        {
            if (XmlScript.HasTrigger(this, TriggerName.onSpeech) && UberScriptTriggers.Trigger(this, e.Mobile, TriggerName.onSpeech, null, e.Speech))
            {
                return;
            }
            base.OnSpeech(e);
            Mobile from = e.Mobile;

            if (from.FindItemOnLayer(Layer.Helm) is NecromaticMask)
            {
                if (e.Speech.IndexOf("nwapslleh") >= 0)
                {
                    GreaterHealSpell gheal = new GreaterHealSpell(this, null); // get your spell
                    if (gheal.Cast())                                          // if it casts the spell
                    {
                        m_CastTimer = new GHCastTimer(gheal, from, gheal.GetCastDelay());
                        m_CastTimer.Start();
                    }
                }
            }
        }
Beispiel #3
0
        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)
                //if (e.Speech.ToLower().IndexOf( "nwapslleh" ) >= 0  )
                {
                    // if ( e.Hits < (e.HitsMax - 50) && from.Poisoned == false )
                    //{
                    m_ghs = new GreaterHealSpell(this, null); // get your spell
                    if (m_ghs.Cast())                         // if it casts the spell
                    {
                        TimeSpan castDelay = m_ghs.GetCastDelay();
                        m_CastTimer = new GHCastTimer(m_ghs, from, castDelay);
                        m_CastTimer.Start();
                    }
                }
            }
            //}
        }