Goldysacek
Member
Greetings, could you please help me? I need active cast during run, thank you a lot (RUNUO)
/// <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;
}
Answer in the second post. Need just disable BlocksMovement valueI am curious about this for ServUO Pub57.
What exactly would I comment out since there is 2 of them?
public virtual bool BlocksMovement { get { return false; } }
I like that idea toIm wondering lets say you want to temporarily make it so you can cast while running lets say to make it an ability. Like put a time duration on this would be something cool. Something to think about 🙂
We use essential cookies to make this site work, and optional cookies to enhance your experience.