Greasy Fork 还支持 简体中文。

Many Hack Menu, + TP Middle + Shift + Click

Manyland Hack Menu and Teleportaion toggle with Middle CLick + Shift

  1. // ==UserScript==
  2. // @name Many Hack Menu, + TP Middle + Shift + Click
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.1
  5. // @description Manyland Hack Menu and Teleportaion toggle with Middle CLick + Shift
  6. // @author Explorer Scripts
  7. // @match http://manyland.com/*
  8. // @icon https://www.google.com/s2/favicons?domain=manyland.com
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. function sparkle(position) {
  15. ig.game.websocket.wssend(ig.game.websocket.ws, "it", position)
  16. }
  17. //Thank you MTP3!
  18. function whiteSparkle(a, b, c, d) {
  19. a = {
  20. x: Math.round(100 * a.x) / 100,
  21. y: Math.round(100 * a.y) / 100
  22. };
  23. Math.round(1E3 * c.x);
  24. Math.round(1E3 * c.y);
  25. ig.game.websocket.wssend(ig.game.websocket.ws, "lc", {
  26. pos: a,
  27. end: b,
  28. vel: c,
  29. flp: d
  30. })
  31. }
  32. async function loadObf() {
  33. if (typeof Deobfuscator == 'undefined')
  34. await $.getScript("https://cdn.jsdelivr.net/gh/parseml/many-deobf@latest/deobf.js")
  35. }
  36. function main() {
  37. ig.game.player.kill = function() {};
  38. ig.game.decorator.collectSparkles = Deobfuscator.function(ig.game.decorator, 'Math.floor(f/5),g,d=d/f,h=e/f,k=1;k<=f;k++', false);
  39. ig.game.decorator.portalSparkles = Deobfuscator.function(ig.game.decorator, 'e?e:10;a-=5;b-=5;this', false);
  40. let oldUpdate = ig.game.update;
  41. ig.game.update = function() {
  42. let result = oldUpdate.apply(this, arguments);
  43. if (ig.input.state('shift') && ig.input.pressed('middleclick')) {
  44. let x = ig.game.screen.x + ig.input.mouse.x;
  45. let y = ig.game.screen.y + ig.input.mouse.y;
  46. sparkle({x: ig.game.currentMapCoordsForMouse.x, y: ig.game.currentMapCoordsForMouse.y})
  47. ig.game.decorator.portalSparkles(ig.game.player.pos.x, ig.game.player.pos.y, 0, 0, 3);
  48. ig.game.decorator.portalSparkles(ig.game.player.pos.x, ig.game.player.pos.y, 0, 0, 6);
  49. whiteSparkle(ig.game.player.pos, {x: 0, y: 0}, {x: 0, y: 0}, 0);
  50. ig.game.decorator.collectSparkles(ig.game.player, {x: x/ig.game.tileSize, y: y/ig.game.tileSize})
  51. ig.game.player.pos = {x: x, y: y -25}
  52. whiteSparkle(ig.game.player.pos, {x: 0, y: 0}, {x: 0, y: 0}, 0);
  53. }
  54. return result;
  55. }
  56. }
  57. !function loader() {
  58. let loading = setInterval(() => {
  59. if(typeof ig === "undefined") return
  60. else if(typeof ig.game === "undefined") return
  61. else if(typeof ig.game.screen === "undefined") return
  62. else if(ig.game.screen.x == 0) return
  63. clearInterval(loading)
  64. loadObf().then(() => {
  65. main();
  66. })
  67. }, 250)
  68. }()
  69. })();
  70.  
  71. $.getScript('https://cdn.jsdelivr.net/gh/ZoltarML/Quasar@0.3/Quasar.js')