LizzyBELL

Initiate
Is there anyway to make PvP more like sphere? Is there away to make the freeze on casting disabled? On RunUO? If there is please tell me the code!
 
Check Spell.cs. If it's at all like the current ServUO, there should be something like these methods:

C#:
        /// <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;
        }
 
Hello, i made in my server a situation where if you start casting a spell then you are not being frozen.

I want now to make disturbing the spell if character make a move while casting but don't know how. I should probably use these methods above. Could someone help?
 
Last edited:

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back