public static void Initialize() { if (!Enabled) { return; } PacketHandlers.RegisterThrottler(0x80, new ThrottlePacketCallback(Throttle_Callback)); PacketHandlers.RegisterThrottler(0x91, new ThrottlePacketCallback(Throttle_Callback)); PacketHandlers.RegisterThrottler(0xCF, new ThrottlePacketCallback(Throttle_Callback)); }
private void InvalidateDetectImpl() { PlayerMobile.FastwalkPrevention = ModuleEnabled && _DetectAction != SpeedhackAction.None; if (PlayerMobile.FastwalkPrevention) { PacketHandlers.RegisterThrottler(0x02, PlayerMobile.MovementThrottle_Callback); } else { PacketHandlers.RegisterThrottler(0x02, null); } }
public static void Initialize() { PacketHandlers.RegisterThrottler(0x03, new ThrottlePacketCallback(SpeechThrottle_Callback)); PacketHandlers.RegisterThrottler(0xAD, new ThrottlePacketCallback(SpeechThrottle_Callback)); }