예제 #1
0
 public override void onDisable()
 {
     base.onDisable();
     byte[] write = { 0xF3, 0x0F, 0x11, 0x46, 0x0C };
     MCM.writeBaseBytes(Statics.NoSlowDown1, write);
     MCM.writeBaseBytes(Statics.NoSlowDown2, write);
 }
예제 #2
0
 public override void onEnable()
 {
     base.onEnable();
     byte[] write = { 0x90, 0x90, 0x90, 0x90, 0x90 };
     MCM.writeBaseBytes(Statics.NoSlowDown1, write);
     MCM.writeBaseBytes(Statics.NoSlowDown2, write);
 }
예제 #3
0
 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;
 }
예제 #4
0
 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;
 }
예제 #5
0
 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);
 }
예제 #6
0
 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);
 }
예제 #7
0
        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);
        }
예제 #8
0
 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);
 }
예제 #9
0
 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);
 }
예제 #10
0
 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);
 }
예제 #11
0
 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);
 }
예제 #12
0
 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);
 }
예제 #13
0
 public override void onDisable()
 {
     base.onDisable();
     byte[] write = { 0x74, 0x13, 0x41, 0x0F, 0x28, 0xED };
     MCM.writeBaseBytes(Statics.survivalReachCmp, write);
 }
예제 #14
0
 public override void onDisable()
 {
     base.onDisable();
     byte[] write = { 0x44, 0x0F, 0x2F, 0x66, 0x0C };
     MCM.writeBaseBytes(Statics.autoSprint, write);
 }
예제 #15
0
 public override void onEnable()
 {
     base.onEnable();
     byte[] write = { 0x90, 0x90, 0x90, 0x90, 0x90 };
     MCM.writeBaseBytes(Statics.autoSprint, write);
 }
예제 #16
0
 public override void onDisable()
 {
     base.onDisable();
     byte[] offs = { 0xC6, 0x83, 0x15, 0x02, 0x00, 0x00, 0x01 }; //Extra offset needed? EB
     MCM.writeBaseBytes(Statics.inWaterTick, offs);
 }
예제 #17
0
 public override void onDisable()
 {
     base.onDisable();
     byte[] write = { 0x0F, 0xB6, 0x86, 0x78, 0x01, 0x00, 0x00 };
     MCM.writeBaseBytes(Pointers.criticalsPacket, write);
 }
예제 #18
0
 public override void onDisable()
 {
     base.onDisable();
     byte[] write = { 0x80, 0x78, 0x04, 0x00, 0x74, 0x07 };
     MCM.writeBaseBytes(Statics.showCoordinates, write);
 }
예제 #19
0
 public override void onDisable()
 {
     base.onDisable();
     byte[] write = { 0xF3, 0x0F, 0x11, 0x4F, 0x20 };
     MCM.writeBaseBytes(Pointers.blockBreak, write);
 }
예제 #20
0
 public override void onDisable()
 {
     base.onDisable();
     byte[] write = { 0xEB, 0x1B };
     MCM.writeBaseBytes(Pointers.shadowRenderer, write);
 }
예제 #21
0
 public override void onDisable()
 {
     base.onDisable();
     byte[] write = { 0xC6, 0x83, 0xB4, 0x08, 0x00, 0x00, 01 };
     MCM.writeBaseBytes(Statics.handSwingPacket, write);
 }
예제 #22
0
 public override void onEnable()
 {
     base.onEnable();
     byte[] write = { 0x90, 0x90 };
     MCM.writeBaseBytes(Statics.survivalReachCmp, write);
 }
예제 #23
0
 public override void onEnable()
 {
     base.onEnable();
     byte[] write = { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 };
     MCM.writeBaseBytes(Pointers.noPacket, write);
 }
예제 #24
0
 public override void onDisable()
 {
     base.onDisable();
     byte[] write = { 0x80, 0xB8, 0x31, 0x03, 0x00, 0x00, 0x00 };
     MCM.writeBaseBytes(Pointers.noPacket, write);
 }
예제 #25
0
 public override void onEnable()
 {
     base.onEnable();
     byte[] write = { 0x90, 0x90, 0x90, 0x90, 0x90 };
     MCM.writeBaseBytes(0x1A5B8F0, write);
 }
예제 #26
0
 public override void onDisable()
 {
     base.onDisable();
     byte[] write = { 0x44, 0x0F, 0x2F, 0x66, 0x0C };
     MCM.writeBaseBytes(0x1A5B8F0, write);
 }
예제 #27
0
 public override void onDisable()
 {
     base.onDisable();
     byte[] offs = { 0xC6, 0x83, 0x3D, 0x02, 0x00, 0x00, 0x01 };
     MCM.writeBaseBytes(Statics.inWaterTick, offs);
 }
예제 #28
0
 public override void onEnable()
 {
     base.onEnable();
     byte[] write = { 0x90, 0x90 };
     MCM.writeBaseBytes(Pointers.shadowRenderer, write);
 }
예제 #29
0
 public override void onDisable()
 {
     base.onDisable();
     byte[] write = { 0x74, 0x13 };
     MCM.writeBaseBytes(Pointers.survivalReachCmp, write);
 }
예제 #30
0
 public override void onEnable()
 {
     base.onEnable();
     byte[] write = { 0xB8, 0x00, 0x00, 0x00, 0x00, 0x90, 0x90 };
     MCM.writeBaseBytes(Statics.criticalsPacket, write);
 }