From 868c78e163cd05e3e5942d0bf8076fc19b247a21 Mon Sep 17 00:00:00 2001 From: Steven Stuber Date: Wed, 12 Feb 2025 12:29:16 -0800 Subject: [PATCH] Sets the 'all stop' range to 5, and reduces the time between random movements so it doesnt look so glitchy, also prevents it from updating its home location on each pass so it wont run off into the sunset --- Data/Scripts/Mobiles/Base/Behavior.cs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Data/Scripts/Mobiles/Base/Behavior.cs b/Data/Scripts/Mobiles/Base/Behavior.cs index cb90a5ad..8940c938 100644 --- a/Data/Scripts/Mobiles/Base/Behavior.cs +++ b/Data/Scripts/Mobiles/Base/Behavior.cs @@ -7112,6 +7112,7 @@ public virtual void OnCurrentOrderChanged() case OrderType.Stop: m_Mobile.ControlMaster.RevealingAction(); m_Mobile.Home = m_Mobile.Location; + m_Mobile.RangeHome = 5; m_Mobile.CurrentSpeed = m_Mobile.PassiveSpeed; m_Mobile.PlaySound( m_Mobile.GetIdleSound() ); m_Mobile.Warmode = false; @@ -7142,8 +7143,10 @@ public virtual bool DoOrderNone() { m_Mobile.DebugSay( "I have no order" ); - WalkRandomInHome( 3, 2, 1 ); - + if ( Utility.RandomMinMax( 1, 10 ) > 9 ) + { + WalkRandomInHome( 3, 2, 1 ); + } if( m_Mobile.Combatant != null && !m_Mobile.Combatant.Deleted && m_Mobile.Combatant.Alive && !m_Mobile.Combatant.IsDeadBondedPet ) { m_Mobile.Warmode = true; @@ -7787,15 +7790,15 @@ public virtual bool DoOrderStop() return true; m_Mobile.DebugSay( "My master told me to stop." ); - - m_Mobile.Direction = m_Mobile.GetDirectionTo( m_Mobile.ControlMaster ); - m_Mobile.Home = m_Mobile.Location; - m_Mobile.ControlTarget = null; if( Core.ML ) { - WalkRandomInHome( 3, 2, 1 ); + if ( Utility.RandomMinMax( 1, 10 ) > 8 ) + { + m_Mobile.Direction = (Direction)Utility.Random( 8 ); + WalkRandomInHome( 3, 2, 1 ); + } } else {