Hello, i'm new to servuo.
And i have an issue with the spell.cs.

I'm going to make a situation that when you cast a spell you are not frozen at the same time and if you make a move during the casting then your spell is being disturbed.
The first thing succeded, i have just edited code below in spell.cs to false:

C#:
public virtual bool BlocksMovement { get { return false; } }

The problem is with the second thing, disturb a spell when i make a move during casting.
I did it on runuo and it worked fine, but in servuo it doesn't work :(

In runuo i just added below to OnCasterMoving method and it worked fine:
C#:
if (m_Caster is PlayerMobile)
            { Disturb( DisturbType.UseRequest ); }

When i do the same in servuo it doesn't work. It's like this method is out of date on servuo lke it's written in the summary below? Could someone help to make it work?
C#:
/// <summary>
        /// Pre-ML code where mobile can change directions, but doesn't move
        /// </summary>
        /// <param name="d"></param>
        /// <returns></returns>
        public virtual bool OnCasterMoving(Direction d)
        {      
            if (IsCasting && BlocksMovement && (!(m_Caster is BaseCreature) || ((BaseCreature)m_Caster).FreezeOnCast))
            {
                m_Caster.SendLocalizedMessage(500111); // You are frozen and can not move.
                return false;
            }

            return true;
        }

        /// <summary>
        /// Post ML code where player is frozen in place while casting.
        /// </summary>
        /// <param name="caster"></param>
        /// <returns></returns>
        public virtual bool CheckMovement(Mobile caster)
        {
            if (IsCasting && BlocksMovement && (!(m_Caster is BaseCreature) || ((BaseCreature)m_Caster).FreezeOnCast))
            {
                return false;
            }

            return true;
        }
 
Back