- Code: Select all
public static void SetGuardSpeed(GameKeepGuard guard) { if (guard.IsPortalKeepGuard) { guard.MaxSpeedBase = 575; } if ((guard is GuardLord && guard.Component != null) || guard is GuardStaticArcher || guard is GuardStaticCaster) { guard.MaxSpeedBase = 0; } else if (guard.Level < 250) { if (guard.Realm == eRealm.None) { guard.MaxSpeedBase = 200; } else if (guard.Level < 50) { guard.MaxSpeedBase = 210; } else { guard.MaxSpeedBase = 250; } } else { guard.MaxSpeedBase = 575; } }
In my mob table the speed for a gaurd is 0, but they are still moving
I thought this should prevent that. Am I missing something else.
- Code: Select all
if ((guard is GuardLord && guard.Component != null) || guard is GuardStaticArcher || guard is GuardStaticCaster) { guard.MaxSpeedBase = 0; }
npctemplate is also 0.
Thank you