MooMoo.io simple autoheal

MooMoo.js autoheal

  1. // ==UserScript==
  2. // @name MooMoo.io simple autoheal
  3. // @version 1.21
  4. // @description MooMoo.js autoheal
  5. // @author Nuro
  6. // @match *://*.moomoo.io/*
  7. // @require https://gf.qytechs.cn/scripts/456235-moomoo-js/code/MooMoojs.js?version=1159501
  8. // @run-at document-end
  9. // @namespace https://gf.qytechs.cn/users/761829
  10. // ==/UserScript==
  11. /*
  12. Support us on social media (follow and leave a star)
  13.  
  14. GitHub: https://moomooforge.github.io/MooMoo.js/
  15. Author: https://github.com/NuroC
  16. YouTube: https://www.youtube.com/@nuro9607
  17. Discord: https://discord.gg/NMS3YR9Q5R
  18. */
  19.  
  20. const AUTOHEAL_SPEED = 100 // make lower if you clown too fast
  21.  
  22. // https://nuroc.github.io/MooMoo.js/#installing-and-getting-started
  23. const MooMoo = (function MooMooJS_beta() {})[69]
  24.  
  25. // https://github.com/NuroC/moomoo-in-depth/tree/main/protocol/server#updatehealth
  26. MooMoo.addEventListener("updatehealth", (data) => {
  27. let sid = data[0]
  28. let health = data[1]
  29. // https://nuroc.github.io/MooMoo.js/Player#accessing-player-data-and-information
  30. if (MooMoo.myPlayer.sid === sid && health < 100) {
  31.  
  32. // https://nuroc.github.io/MooMoo.js/Player#accessing-player-data-and-information
  33. let food = MooMoo.myPlayer.inventory.food;
  34.  
  35. // https://nuroc.github.io/MooMoo.js/Player#placing-items
  36. setTimeout(() => {
  37. MooMoo.MyPlayer.place(food)
  38. }, AUTOHEAL_SPEED)
  39. }
  40. })

QingJ © 2025

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