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

  • Unchained
    Custom (Classic)
    • Players
    • 105 Online
    • 273 Peak
  • UO Eventine
    Custom (Classic)
    • Players
    • 99 Online
    • 137 Peak
  • Insane UO
    Endless Journey
    • Players
    • 97 Online
    • 128 Peak
  • The Crossroads
    Mondain's Legacy
    • Players
    • 76 Online
    • 190 Peak
  • Arth
    Custom (Modern)
    • Players
    • 42 Online
    • 46 Peak
  • UO Phoenix
    Custom (Classic)
    • Players
    • 30 Online
    • 48 Peak
  • UO Enigma
    Custom (Modern)
    • Players
    • 30 Online
    • 172 Peak
  • UO: New Renaissance
    Custom (Classic)
    • Players
    • 22 Online
    • 85 Peak
  • Heritage
    New Legacy
    • Players
    • 14 Online
    • 41 Peak
  • Pandora
    Custom (Modern)
    • Players
    • 14 Online
    • 32 Peak

Donations

Total amount
$0.00
Goal
$500.00
Back