Moomoo.io Mod - Auto Heal, Traps, Hotkeys

Hotkeys (F: Soldier Hat, G: Tank Gear, T: Spikes), Auto-Heal, Auto-Trap Escape

  1. // ==UserScript==
  2. // @name Moomoo.io Mod - Auto Heal, Traps, Hotkeys
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Hotkeys (F: Soldier Hat, G: Tank Gear, T: Spikes), Auto-Heal, Auto-Trap Escape
  6. // @author II
  7. // @match *://moomoo.io/*
  8. // @grant none
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. console.log("🔥 Moomoo.io Mod Loaded!");
  16.  
  17. // Keybinds
  18. const KEY_SOLDIER_HAT = 'F';
  19. const KEY_TANK_GEAR = 'G';
  20. const KEY_QUAD_SPIKE = 'T';
  21.  
  22. const AUTO_HEAL_THRESHOLD = 60; // Health threshold for auto-heal
  23. const TRAP_DELAY = 2000; // Delay between trap placements
  24.  
  25. let autoHealEnabled = true;
  26. let lastTrapTime = 0;
  27.  
  28. // Intercept WebSocket messages
  29. const oldSend = WebSocket.prototype.send;
  30. WebSocket.prototype.send = function(data) {
  31. try {
  32. let msg = new Uint8Array(data);
  33.  
  34. // Auto-Heal when taking damage
  35. if (msg.length > 4 && msg[0] === 255 && msg[1] === 1) {
  36. let health = msg[3];
  37. if (autoHealEnabled && health < AUTO_HEAL_THRESHOLD) {
  38. console.log("⚕️ Auto Healing...");
  39. oldSend.call(this, new Uint8Array([255, 3, 0])); // Heal action
  40. }
  41. }
  42.  
  43. // Auto-Trap Escape
  44. if (msg.length > 4 && msg[0] === 255 && msg[1] === 3) {
  45. let trapType = msg[2];
  46. if (trapType === 6) { // If player gets trapped
  47. let now = Date.now();
  48. if (now - lastTrapTime > TRAP_DELAY) {
  49. console.log("🚨 Stuck in trap! Placing 2 traps behind...");
  50. placeTrapBehind();
  51. lastTrapTime = now;
  52. }
  53. }
  54. }
  55.  
  56. } catch (error) {
  57. console.error("Error processing WebSocket data:", error);
  58. }
  59. return oldSend.apply(this, arguments);
  60. };
  61.  
  62. // Key events for hotkeys
  63. document.addEventListener("keydown", function(event) {
  64. let key = event.key.toUpperCase();
  65.  
  66. if (key === KEY_SOLDIER_HAT) {
  67. console.log("🛡️ Equipping Soldier Hat...");
  68. selectHat(15);
  69. }
  70. if (key === KEY_TANK_GEAR) {
  71. console.log("💥 Equipping Tank Gear...");
  72. selectHat(7);
  73. }
  74. if (key === KEY_QUAD_SPIKE) {
  75. console.log("💥 Placing 4 Spikes...");
  76. placeQuadSpikes();
  77. }
  78. });
  79.  
  80. // Place 2 traps behind the player
  81. function placeTrapBehind() {
  82. for (let i = 0; i < 2; i++) {
  83. window.gameSocket.send(new Uint8Array([255, 3, 6])); // Trap action
  84. }
  85. }
  86.  
  87. // Place 4 spikes around the player
  88. function placeQuadSpikes() {
  89. for (let i = 0; i < 4; i++) {
  90. window.gameSocket.send(new Uint8Array([255, 3, 0])); // Spike action
  91. }
  92. }
  93.  
  94. // Equip a hat based on ID
  95. function selectHat(hatID) {
  96. window.gameSocket.send(new Uint8Array([255, 6, hatID])); // Hat switch action
  97. }
  98.  
  99. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址