public static void MachinicalRulerEffect_D(GameContext Context) { int a = AobscanHelper.Aobscan( Context.HContext.Handle, "d9 9e c0 03 00 00 88 96 f0 05 00 00") + 12; InlineHook.FreeHook(Context.HContext, a); }
public static void FastTileSpeed_D(GameContext Context) { int a = AobscanHelper.Aobscan( Context.HContext.Handle, "8b 85 30 f0 ff ff d9 80 c4 03 00 00") - 6; InlineHook.FreeHook(Context.HContext, a); }
public static void ShowCircuit_D(GameContext Context) { int a = AobscanHelper.Aobscan( Context.HContext.Handle, "88 96 F8 05 00 00 88 96 F9 05 00 00") - 6; InlineHook.FreeHook(Context.HContext, a); }
public static void FastSpeed_D(GameContext Context) { int a = AobscanHelper.AobscanASM( Context.HContext.Handle, "mov [esi+0x54b],dl\nmov [esi+0x54d],dl") - 6; InlineHook.FreeHook(Context.HContext, a); }
public static void ShadowDodge_D(GameContext Context) { int a = AobscanHelper.Aobscan( Context.HContext.Handle, "88 96 33 05 00 00 88 96 A9 05 00 00") - 6; InlineHook.FreeHook(Context.HContext, a); }
public static void LowGravity_D(GameContext Context) { int a = AobscanHelper.AobscanASM( Context.HContext.Handle, "fldz\nfstp dword ptr [esi+0x410]") + 8; InlineHook.FreeHook(Context.HContext, a); }
public static void ProjectileIgnoreTile_D(GameContext Context) { int a = AobscanHelper.AobscanASM( Context.HContext.Handle, "mov [ebp-0x20],eax\ncmp byte ptr [ebx+0xE7],0") + 11; NativeFunctions.WriteProcessMemory(Context.HContext.Handle, a, new byte[] { 0x84 }, 1, 0); }
public static void LowGravity_E(GameContext Context) { int a = AobscanHelper.AobscanASM( Context.HContext.Handle, "mov [esi+0x414],edx\ncmp dword ptr [esi+0x370],0"); InlineHook.Inject(Context.HContext, AssemblySnippet.FromASMCode("mov dword ptr [esi+0x410],0x41200000"), a, false); }
public static void SlimeGunBurn_D(GameContext Context) { int a = AobscanHelper.Aobscan( Context.HContext.Handle, "8b 85 b8 f3 ff ff 89 45 cc 8b 45 cc 40") - 0x1a; InlineHook.FreeHook(Context.HContext, a); }
public static void RulerEffect_D(GameContext Context) { int a = AobscanHelper.Aobscan( Context.HContext, "88 96 F8 05 00 00 88 96 F9 05 00 00") - 6; InlineHook.FreeHook(Context.HContext, a); }
public static void HarpToTP_D(GameContext Context) { int a = AobscanHelper.Aobscan( Context.HContext.Handle, "8B 8D E4 F9 FF FF FF 15") - 5; InlineHook.FreeHook(Context.HContext, a); }
public static void ShowInvisiblePlayers_D(GameContext Context) { int a = AobscanHelper.Aobscan( Context.HContext.Handle, "90 90 8d 45 e8 83 ec 08 f3 0f 7e 00"); byte[] b = new byte[] { 0x75, 0x37 }; NativeFunctions.WriteProcessMemory(Context.HContext.Handle, a, b, 2, 0); }
public static void StrengthenVampireKnives_E(GameContext Context) { int a = AobscanHelper.Aobscan( Context.HContext.Handle, "81 78 6c 21 06 00 00 0f 85") + 0x13; int v = 100; NativeFunctions.WriteProcessMemory(Context.HContext.Handle, a, ref v, 4, 0); }
public static void FishOnlyCrates_D(GameContext Context) { int a = AobscanHelper.Aobscan( Context.HContext.Handle, "90 90 90 90 90 90 8B 45 A8 0B 45 A4"); var bs = AobscanHelper.GetHexCodeFromString("0f 8d 4F 01 00 00 8b 45"); NativeFunctions.WriteProcessMemory(Context.HContext.Handle, a, bs, bs.Length, 0); }
public static void FastTileSpeed_D(GameContext Context) { int a = AobscanHelper.Aobscan( Context.HContext.Handle, "8b 85 30 f0 ff ff d9 80 c4 03 00 00") - 6; //int a = (int)Context.HContext.MainAddressHelper.GetFunctionInstruction("Terraria.Player", "Update", 0x2CDD).EndAddress - 6; InlineHook.FreeHook(Context.HContext, a); }
public static void StrengthenVampireKnives_D(GameContext Context) { int a = AobscanHelper.Aobscan( Context.HContext.Handle, "81 F9 21060000") + 18; int v = 4; NativeFunctions.WriteProcessMemory(Context.HContext.Handle, a, ref v, 4, 0); }
public static void FishOnlyCrates_D(GameContext Context) { int a = AobscanHelper.Aobscan( Context.HContext.Handle, "90 90 90 90 90 90 0F B6"); var bs = AobscanHelper.GetHexCodeFromString("0F 84 C0 03 00 00"); NativeFunctions.WriteProcessMemory(Context.HContext.Handle, a, bs, bs.Length, 0); }
public static void RulerEffect_E(GameContext Context) { int a = AobscanHelper.Aobscan( Context.HContext.Handle, "88 96 F8 05 00 00 88 96 F9 05 00 00") - 6; InlineHook.Inject(Context.HContext, AssemblySnippet.FromASMCode( "mov byte ptr [esi+0x5f7],0x1"), a, false, false); }
public static void HighLight_D(GameContext Context) { int a = AobscanHelper.Aobscan(Context.HContext.Handle, "df f1 dd d8 7a 0a 73 08 d9 46 08 d9 5d c4 eb 2c d9 45 c4 dd 05") - 6; if (a <= 0) { return; } InlineHook.FreeHook(Context.HContext, a); }
public static void AobReplace(GameContext Context, string srcHex, string targetHex, int offset = 0, bool matching = false) { int addr = 0; while ((addr = AobscanHelper.Aobscan(Context.HContext.Handle, srcHex, matching)) != -1) { byte[] code = AobscanHelper.GetHexCodeFromString(targetHex); NativeFunctions.WriteProcessMemory(Context.HContext.Handle, addr + offset, code, code.Length, 0); } }
public static void SlimeGunBurn_E(GameContext Context) { int a = AobscanHelper.Aobscan( Context.HContext.Handle, "8b 85 b8 f3 ff ff 89 45 cc 8b 45 cc 40") - 0x1a; InlineHook.Inject(Context.HContext, AssemblySnippet.FromASMCode( "mov dword ptr [esp+8],216000\nmov edx,0x99"), a, false, false); }
public static void AobReplaceASM(GameContext Context, string src, string target, int offset = 0) { int addr = 0; while ((addr = AobscanHelper.AobscanASM(Context.HContext.Handle, src)) != -1) { byte[] code = Assembler.Assemble(target, 0); NativeFunctions.WriteProcessMemory(Context.HContext.Handle, addr + offset, code, code.Length, 0); } }
public static void FastSpeed_E(GameContext Context) { int a = AobscanHelper.AobscanASM( Context.HContext.Handle, "fstp dword ptr [esi+0x3bc]\nmov [esi+0x54b],dl"); InlineHook.Inject(Context.HContext, AssemblySnippet.FromASMCode( "mov dword ptr [esi+0x3bc],0x464b2000\nmov dword ptr [esi+0x3e4],0x464b2000"), a, false, false); }
public static void HighLight_D(GameContext Context) { int a = AobscanHelper.Aobscan(Context.HContext.Handle, "C7 ** ** ******** E9 ** ** ** ** DF F1 DD D8 7A", true); if (a <= 0) { return; } InlineHook.FreeHook(Context.HContext, a + 7); }
public static void InfiniteFly_D(GameContext Context) { int addr = AobscanHelper.Aobscan(Context.HContext.Handle, "E9 ******** 90 80 BF", true); if (addr <= 0) { return; } InlineHook.FreeHook(Context.HContext, addr); }
public static void FastTileSpeed_E(GameContext Context) { int a = AobscanHelper.Aobscan( Context.HContext.Handle, "d9 98 c8 03 00 00 8b 85 30 f0 ff ff d9"); InlineHook.Inject(Context.HContext, AssemblySnippet.FromASMCode( "mov dword ptr [eax+0x3c8],0x3e800000"), a, false, false); }
public static void ShadowDodge_E(GameContext Context) { int a = AobscanHelper.Aobscan( Context.HContext.Handle, "00 00 88 96 33 05 00 00 88 96 A9 05 00 00") - 4; InlineHook.Inject(Context.HContext, AssemblySnippet.FromASMCode( "mov byte ptr [esi+0x532],0x1"), a, false, false); }
public static void MachinicalRulerEffect_E(GameContext Context) { int a = AobscanHelper.Aobscan( Context.HContext.Handle, "d9 9e c0 03 00 00 88 96 f0 05 00 00") + 12; InlineHook.Inject(Context.HContext, AssemblySnippet.FromASMCode( "mov byte ptr [esi+0x5f6],0x1"), a, false, false); }
public static void ShowCircuit_E(GameContext Context) { int a = AobscanHelper.Aobscan( Context.HContext.Handle, "88 96 1D 06 00 00 88 96 1E 06 00 00") - 6; InlineHook.Inject(Context.HContext, AssemblySnippet.FromASMCode( "mov byte ptr [esi+0x62a],0x1"), a, false, false); }
public static void AobReplace(GameContext Context, string srcHex, string targetHex) { var addrs = AobscanHelper.Aobscan(Context.HContext.Handle, srcHex); byte[] code = AobscanHelper.GetHexCodeFromString(targetHex); foreach (var addr in addrs) { Context.HContext.DataAccess.WriteBytes(addr, code); } }