public override void Disable(GameContext ctx) { int off = GetOffset(ctx, "Terraria.Player", "wingTime"); AobReplace(ctx, "90 90 90 90 90 90 80 B9 F7060000 00", $"D9 99 {AobscanHelper.GetMByteCode(off)}"); this.IsEnabled = false; }
public override void Disable(GameContext ctx) { nuint a = Aobscan( ctx, $"E9 ******** 90 88 96 {AobscanHelper.GetMByteCode(GetOffset(ctx, "Terraria.Player", "findTreasure"))}").FirstOrDefault(); if (a == 0) { return; } InlineHook.FreeHook(ctx.HContext, a); this.IsEnabled = false; }
public override void Disable(GameContext ctx) { int offB = GetOffset(ctx, "Terraria.Player", "rulerLine"); nuint a = Aobscan( ctx, $"E9 ******** 90 C6 86 {AobscanHelper.GetMByteCode(offB)} 01").FirstOrDefault(); if (a == 0) { return; } InlineHook.FreeHook(ctx.HContext, a); this.IsEnabled = false; }
public override void Enable(GameContext ctx) { int offA = GetOffset(ctx, "Terraria.Player", "infoAccMechShowWires"); int offB = GetOffset(ctx, "Terraria.Player", "accJarOfSouls"); nuint a = Aobscan( ctx, $"88 96 {AobscanHelper.GetMByteCode(offA)} 88 96 {AobscanHelper.GetMByteCode(offB)}").FirstOrDefault(); if (a == 0) { return; } InlineHook.Hook(ctx.HContext, AssemblySnippet.FromASMCode( $"mov byte ptr [esi+{offA}],0x1"), new HookParameters(a, 4096, false, false)); this.IsEnabled = true; }
public override void Enable(GameContext ctx) { int offA = GetOffset(ctx, "Terraria.Player", "moveSpeed"); int offB = GetOffset(ctx, "Terraria.Player", "boneArmor"); nuint a = Aobscan( ctx, $"D9 E8 D9 9E {AobscanHelper.GetMByteCode(offA)} 88 96 {AobscanHelper.GetMByteCode(offB)}").FirstOrDefault(); if (a == 0) { return; } InlineHook.Hook(ctx.HContext, AssemblySnippet.FromASMCode( $"mov dword ptr [esi+{offA}],0x41A00000"), new HookParameters(a, 0x1000, false, false)); this.IsEnabled = true; }
public override void Enable(GameContext ctx) { int offA = GetOffset(ctx, "Terraria.Player", "slowFall"); int offB = GetOffset(ctx, "Terraria.Player", "findTreasure"); nuint a = Aobscan( ctx, $"88 96 {AobscanHelper.GetMByteCode(offA)} 88 96 {AobscanHelper.GetMByteCode(offB)}").FirstOrDefault(); if (a == 0) { return; } InlineHook.Hook(ctx.HContext, AssemblySnippet.FromASMCode( $"mov dword ptr [esi+{offA}],1"), new HookParameters(a, 4096, false, false)); this.IsEnabled = true; }