using System; using System.Runtime.InteropServices; using GuildWarsInterface.Native; namespace Mod.Patches { /// /// modifies the client to disable all click to move related actions /// public static class ClickToMoveDeactivation { private static readonly IntPtr _location = (IntPtr)0x0047C250; public static void Apply() { uint dwOldProtection; Kernel32.VirtualProtect(_location, 1, 0x40, out dwOldProtection); Marshal.WriteByte(_location, ASM.RETN); Kernel32.VirtualProtect(_location, 1, dwOldProtection, out dwOldProtection); } } }