public override void onDisable() { base.onDisable(); MCM.writeBaseByte(Statics.NegativeKnockBackX, 4); MCM.writeBaseByte(Statics.NegativeKnockBackY, 4); MCM.writeBaseByte(Statics.NegativeKnockBackZ, 4); }
public override void onEnable() { base.onEnable(); byte[] offs = { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 }; MCM.writeBaseBytes(Pointers.inWaterTick, offs); SDK.instance.player.isInWater = 0; }
public void OnLoad(object sender, EventArgs e) { Thread posThread = new Thread(() => { int lx = 0; int ly = 0; while (true) { fixSizeDel del = new fixSizeDel(() => { MCM.RECT mcRect = MCM.getMinecraftRect(); x = mcRect.Left + 16; y = mcRect.Top + 30; width = mcRect.Right; height = mcRect.Bottom; if (x != lx || y != ly) { lx = x; ly = y; ui.Refresh(); } ui.TopMost = MCM.isMinecraftFocused(); }); ui.Invoke(del); } }); posThread.Start(); Console.WriteLine("Tab GUI overlay loop started!"); }
public override void onEnable() { base.onEnable(); MCM.writeBaseByte(Statics.SuperKnockBackX, 16); MCM.writeBaseByte(Statics.SuperKnockBackY, 16); MCM.writeBaseByte(Statics.SuperKnockBackZ, 16); }
public override void onDisable() { base.onDisable(); byte[] write = { 0xF3, 0x0F, 0x11, 0x46, 0x0C }; MCM.writeBaseBytes(Statics.NoSlowDown1, write); MCM.writeBaseBytes(Statics.NoSlowDown2, write); }
public async Task packetDelay() { if (enabled) { await Task.Delay(sliderSettings[0].value); if (Minecraft.clientInstance.localPlayer.username.Length > 0) { switch (togglePacketState) { case 0: MCM.writeBaseByte(Statics.noPacket, 117); Console.WriteLine("On"); togglePacketState = 1; break; case 1: MCM.writeBaseByte(Statics.noPacket, 116); Console.WriteLine("Off"); togglePacketState = 0; break; } } else { MCM.writeBaseByte(Statics.noPacket, 116); } await packetDelay(); } }
public override void onEnable() { base.onEnable(); byte[] write = { 0x90, 0x90, 0x90, 0x90, 0x90 }; MCM.writeBaseBytes(Statics.NoSlowDown1, write); MCM.writeBaseBytes(Statics.NoSlowDown2, write); }
public override void onEnable() { base.onEnable(); byte[] offs = { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 }; MCM.writeBaseBytes(Statics.inWaterTick, offs); Minecraft.clientInstance.localPlayer.isInWater = 0; }
//Made by EchoHackCmd public static List <Entity> getEntityList() { List <Entity> entityList = new List <Entity>(); UInt64[] startOffs = { 0x358, 0x40, 0x0 }; UInt64 entityListStart = MCM.evaluatePointer(SDK.instance.player.addr, startOffs); UInt64[] endOffs = { 0x358, 0x48, 0x0 }; UInt64 entityListEnd = MCM.evaluatePointer(SDK.instance.player.addr, endOffs); for (UInt64 entity = entityListStart; entity < entityListEnd; entity += 0x8) { if (entity == entityListStart) { continue; } Entity eObj = new Entity(entity); if (eObj.movedTick > 1) { entityList.Add(eObj); }//Only allow entities that move (Bye bye NPC's) } return(entityList); }
public override void onEnable() { base.onEnable(); MCM.writeBaseByte(Statics.NegativeKnockBackX, 0); MCM.writeBaseByte(Statics.NegativeKnockBackY, 0); MCM.writeBaseByte(Statics.NegativeKnockBackZ, -0); }
public bool IsOnAMenu() { bool ret = MCM.readInt(MCM.baseEvaluatePointer(0x02FF5FD0, MCM.ceByte2uLong("1E8 CB0"))) > 0; //Console.WriteLine(ret); return(ret); }
static bool GeneralPatch_FailureToExtract(FVRFireArmChamber __instance) { if (__instance.Firearm != null) { MCM.IncRoundsUsed(__instance.Firearm); } return(true); }
public override void onEnable() { base.onEnable(); byte[] write = { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 }; MCM.writeBaseBytes(Pointers.NoKnockBackX, write); MCM.writeBaseBytes(Pointers.NoKnockBackY, write); MCM.writeBaseBytes(Pointers.NoKnockBackZ, write); }
public override void onDisable() { base.onDisable(); byte[] ladderUp = { 0xC7, 0x81, 0x70, 0x04, 0x00, 0x00, 0xCD, 0xCC, 0x4C, 0x3E }; byte[] ladderDown = { 0x41, 0xC7, 0x86, 0x70, 0x04, 0x00, 0x00, 0xCD, 0xCC, 0x4C, 0xBE }; MCM.writeBaseBytes(Statics.ladderUp, ladderUp); MCM.writeBaseBytes(Statics.ladderDown, ladderDown); }
public void patchGame() { MCM.unprotectMemory(MCM.mcBaseAddress + 0x1EAF0B4, 2048); byte[] chatHookPatch = MCM.ceByte2Bytes("57 48 83 EC 70 80 BB 00 07 00 00 21 0F 85 AF BE 3B FE C7 05 58 00 00 00 02 00 00 00 90 48 81 C3 00 07 00 00 48 89 1D 3D 00 00 00 48 81 EB 00 07 00 00 83 3D 3B 00 00 00 01 75 E1 C7 83 00 07 00 00 00 00 00 00 C7 83 04 07 00 00 00 00 00 00 C6 05 1E 00 00 00 00 E9 66 BE 3B FE 90 00 00 00 00 00 00 00"); byte[] entryHook = MCM.ceByte2Bytes("E9 3F 41 C4 01 90"); MCM.writeBaseBytes(0x1EAF0B4, chatHookPatch); MCM.writeBaseBytes(0x26AF70, entryHook); }
private void dispatchCommands(object sender, EventArgs e) { if (MCM.readBaseByte(0x1EAF128) == 2) { UInt64[] noff = { 0 }; string input = MCM.readString(MCM.baseEvaluatePointer(0x1EAF11C, noff), 256); MCM.writeBaseByte(0x1EAF128, 1); } }
public override void onDisable() { base.onDisable(); byte[] write1 = { 0x89, 0x81, 0x6C, 0x04, 0x00, 0x00 }; byte[] write2 = { 0x89, 0x81, 0x70, 0x04, 0x00, 0x00 }; byte[] write3 = { 0x89, 0x81, 0x74, 0x04, 0x00, 0x00 }; MCM.writeBaseBytes(Pointers.NoKnockBackX, write1); MCM.writeBaseBytes(Pointers.NoKnockBackY, write2); MCM.writeBaseBytes(Pointers.NoKnockBackZ, write2); }
public override void onDraw(System.Drawing.Graphics graphics) { base.onDraw(graphics); if (MCM.readInt64(Minecraft.clientInstance.localPlayer.addr) > 0) { MCM.RECT mcRect = MCM.getMinecraftRect(); float playerX = Minecraft.clientInstance.localPlayer.currentX3, playerY = Minecraft.clientInstance.localPlayer.currentY3, playerZ = Minecraft.clientInstance.localPlayer.currentZ3; string formatText = Math.Floor(playerX).ToString() + ":" + Math.Floor(playerY - 1).ToString() + ":" + Math.Floor(playerZ).ToString(); graphics.DrawString(formatText, textFont, primary, 0, mcRect.Top * 130); } }
public override void onDisable() { base.onDisable(); Minecraft.clientInstance.localPlayer.teleport(savedCoordinates[0], savedCoordinates[1], savedCoordinates[2]); Minecraft.clientInstance.localPlayer.level.firstPersonCamera.cameraPitch = savedPitchAndYaw[0]; Minecraft.clientInstance.localPlayer.level.firstPersonCamera.cameraYaw = savedPitchAndYaw[1]; Minecraft.clientInstance.localPlayer.isFlying = savedFlightState; savedCoordinates.Clear(); savedPitchAndYaw.Clear(); byte[] write = { 0xFF, 0x50, 0x08 }; MCM.writeBaseBytes(Statics.movementPacket, write); }
public override void onEnable() { base.onEnable(); savedCoordinates.Add(Minecraft.clientInstance.localPlayer.currentX1); savedCoordinates.Add((float)Math.Floor(Minecraft.clientInstance.localPlayer.currentY1 - 1)); savedCoordinates.Add(Minecraft.clientInstance.localPlayer.currentZ1); savedPitchAndYaw.Add(Minecraft.clientInstance.localPlayer.level.firstPersonCamera.cameraPitch); savedPitchAndYaw.Add(Minecraft.clientInstance.localPlayer.level.firstPersonCamera.cameraYaw); savedFlightState = Minecraft.clientInstance.localPlayer.isFlying; byte[] write = { 0x90, 0x90, 0x90 }; MCM.writeBaseBytes(Statics.movementPacket, write); }
public override void onDisable() { base.onDisable(); SDK.instance.player.teleport(savedCoordinates[0], savedCoordinates[1], savedCoordinates[2]); Pointers.mousePitch = savedPitchAndYaw[0]; Pointers.mouseYaw = savedPitchAndYaw[1]; SDK.instance.player.isFlying = savedFlightState; savedCoordinates.Clear(); savedPitchAndYaw.Clear(); byte[] write = { 0xFF, 0x50, 0x08 }; MCM.writeBaseBytes(Pointers.movementPacket, write); }
public override void onEnable() { base.onEnable(); if (Minecraft.clientInstance.localPlayer.username.Length > 0) { MCM.writeBaseByte(Statics.noPacket, 117); } else { MCM.writeBaseByte(Statics.noPacket, 116); } }
public override void onEnable() { base.onEnable(); savedCoordinates.Add(SDK.instance.player.currentX1); savedCoordinates.Add((float)Math.Floor(SDK.instance.player.currentY1 - 1)); savedCoordinates.Add(SDK.instance.player.currentZ1); savedPitchAndYaw.Add(Pointers.mousePitch); savedPitchAndYaw.Add(Pointers.mouseYaw); savedFlightState = SDK.instance.player.isFlying; byte[] write = { 0x90, 0x90, 0x90 }; MCM.writeBaseBytes(Pointers.movementPacket, write); }
static void Main(string[] args) { //Dont.Be.A.Scumbag.And.Remove.This.Warn.warn(); Console.WriteLine("Xri Client"); Console.WriteLine("Flare port to C#"); Console.WriteLine("Xri port to C#"); Console.WriteLine("Discord: https://discord.gg/t8pp4Vm"); Process.Start("minecraft://"); try { MCM.openGame(); MCM.openWindowHost(); CommandHook cmh = new CommandHook(); SDK sdk = new SDK(); FileMan fm = new FileMan(); CategoryHandler ch = new CategoryHandler(); TabUiHandler tuih = new TabUiHandler(); ModuleHandler mh = new ModuleHandler(); KeybindHandler kh = new KeybindHandler(); Thread uiApp = new Thread(() => { OverlayHost ui = new OverlayHost(); Application.Run(ui); }); if (fm.readConfig()) { Console.WriteLine("Loaded configurations!"); } else { Console.WriteLine("Could not load configurations!"); } uiApp.Start(); while (true) { try { mainLoop.Invoke(null, new EventArgs()); Thread.Sleep(threadSleep); } catch (Exception) { } } } catch (Exception ex) { Console.WriteLine("Message: " + ex.Message); Console.WriteLine("Stacktrace: " + ex.StackTrace); MessageBox.Show("Xri crashed! Check the console for error details. Click 'Ok' to quit."); } }
public override void onTick() { base.onTick(); UInt64 facing = Minecraft.clientInstance.localPlayer.level.lookingEntity.addr; if (facing > 0) { MCM.writeBaseByte(Statics.rapidPlace, 1); } else { MCM.writeBaseByte(Statics.rapidPlace, 0); } }
public override void onTick() { base.onTick(); UInt64 facing = SDK.instance.entityFacing; if (facing > 0) { MCM.writeBaseByte(Pointers.rapidPlace, 0); } else { MCM.writeBaseByte(Pointers.rapidPlace, 1); } }
public override void onTick() { base.onTick(); Mob facing = Minecraft.clientInstance.localPlayer.level.lookingEntity; if (facing.movedTick > 1) { MCM.writeBaseByte(Statics.attackSwing, 0); } else { MCM.writeBaseByte(Statics.attackSwing, 1); } }
public override void onTick() { base.onTick(); UInt64 facing = SDK.instance.entityFacing; if (facing > 0) { MCM.writeBaseByte((int)Pointers.attackSwing(), 0); } else { MCM.writeBaseByte((int)Pointers.attackSwing(), 1); } }
public int SaveMCM(MCM mcm) { string sql = @" UPDATE MCM SET DeleteFlag = 1 WHERE JobID = @JobID INSERT INTO [dbo].[MCM] ([JobID] ,[MCMInfo] ,[DeleteFlag]) VALUES (@JobID ,@MCMInfo ,0) SELECT @@identity "; return(SaveAndReturnID <int>(sql, mcm)); }
public OverlayHost() { this.AutoScaleMode = AutoScaleMode.None; ui = this; this.TopMost = true; Console.WriteLine("Starting TabGUI."); this.FormBorderStyle = FormBorderStyle.None; this.TransparencyKey = Color.FromArgb(77, 77, 77); this.BackColor = this.TransparencyKey; this.Location = new Point(0, 0); this.DoubleBuffered = true; this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true); hWnd = this.Handle; overDel = new WinEventDelegate(adjustOverlay); mouseMove = new LowLevelMouseProc(OnMouseMove); SetWinEventHook((uint)SWEH_Events.EVENT_OBJECT_LOCATIONCHANGE, (uint)SWEH_Events.EVENT_OBJECT_LOCATIONCHANGE, IntPtr.Zero, overDel, (uint)MCM.mcWinProcId, GetWindowThreadProcessId(MCM.mcWinHandle, IntPtr.Zero), (uint)SWEH_dwFlags.WINEVENT_OUTOFCONTEXT | (uint)SWEH_dwFlags.WINEVENT_SKIPOWNPROCESS | (uint)SWEH_dwFlags.WINEVENT_SKIPOWNTHREAD); SetWinEventHook((uint)SWEH_Events.EVENT_SYSTEM_FOREGROUND, (uint)SWEH_Events.EVENT_SYSTEM_FOREGROUND, IntPtr.Zero, overDel, 0, 0, (uint)SWEH_dwFlags.WINEVENT_OUTOFCONTEXT | (uint)SWEH_dwFlags.WINEVENT_SKIPOWNPROCESS | (uint)SWEH_dwFlags.WINEVENT_SKIPOWNTHREAD); //mouseHookID= SetWindowsHookEx(14, mouseMove, GetModuleHandle("user32"), 0); UInt64 initialStyle = GetWindowLong(this.Handle, -20); SetWindowLong(this.Handle, -20, initialStyle | 0x80000 | 0x20); Timer rainbowTimer = new Timer(); float rainbowTick = 0f; rainbowTimer.Tick += (object segfsjn, EventArgs gfdd) => { if (MCM.isMinecraftFocused()) { rainbowTick += 0.005f; rainbow = new SolidBrush(Rainbow(rainbowTick)); this.Invalidate(); } }; rainbowTimer.Interval = 10; rainbowTimer.Stop(); if (postOverlayLoad != null) { postOverlayLoad.Invoke(this, new EventArgs()); } Paint += OverlayHost_Paint; }