mirror of
https://github.com/ServUO/ServUO
synced 2026-08-11 20:23:04 -04:00
-Fixed issue where client helpers could bypass the container gump and add items directly to the seed box -SearedFireAntGoo is no longer stackable -Blue NPC's (mainly vendors, not initial innocent) can no longer be attacked on trammel maps -Aggressors/Aggressed from pet masters now works properly. This was suspected to crated large numbers to redundant aggressor/aggressed added to a mobiles aggressor/aggressed lists -Aggressive action for healing a mobile while fighting another mobile has been re-enabled -AuraDamage is now a harmful act, ie those affected will aggro on your pet! -MLDryads should no longer attack other wild creatures during Blackthorn Invasion Instance -More code cleanup
32 lines
1.3 KiB
C#
32 lines
1.3 KiB
C#
using System;
|
|
|
|
namespace Server.Misc
|
|
{
|
|
// This fastwalk detection is no longer required
|
|
// As of B36 PlayerMobile implements movement packet throttling which more reliably controls movement speeds
|
|
public class Fastwalk
|
|
{
|
|
private static readonly int MaxSteps = 4;// Maximum number of queued steps until fastwalk is detected
|
|
private static readonly bool Enabled = false;// Is fastwalk detection enabled?
|
|
private static readonly bool UOTDOverride = false;// Should UO:TD clients not be checked for fastwalk?
|
|
private static readonly AccessLevel AccessOverride = AccessLevel.Decorator;// Anyone with this or higher access level is not checked for fastwalk
|
|
public static void Initialize()
|
|
{
|
|
Mobile.FwdMaxSteps = MaxSteps;
|
|
Mobile.FwdEnabled = Enabled;
|
|
Mobile.FwdUOTDOverride = UOTDOverride;
|
|
Mobile.FwdAccessOverride = AccessOverride;
|
|
|
|
if (Enabled)
|
|
EventSink.FastWalk += OnFastWalk;
|
|
}
|
|
|
|
public static void OnFastWalk(FastWalkEventArgs e)
|
|
{
|
|
e.Blocked = true;//disallow this fastwalk
|
|
Utility.PushColor(ConsoleColor.Red);
|
|
Console.WriteLine("Client: {0}: Fast movement detected! (name={1})", e.NetState, e.NetState.Mobile.Name);
|
|
Utility.PopColor();
|
|
}
|
|
}
|
|
}
|