Many Hack Menu, + TP Middle + Shift + Click

Manyland Hack Menu and Teleportaion toggle with Middle CLick + Shift

当前为 2023-07-28 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name    Many Hack Menu,  + TP Middle + Shift + Click
// @namespace    http://tampermonkey.net/
// @version      1.1
// @description  Manyland Hack Menu and Teleportaion toggle with Middle CLick + Shift
// @author       Explorer Scripts
// @match        http://manyland.com/*
// @icon         https://www.google.com/s2/favicons?domain=manyland.com
// @grant        none
// ==/UserScript==
// note this script is not mine
// Thank you Zoltar!
// @license MIT


$.getScript('https://cdn.jsdelivr.net/gh/ZoltarML/[email protected]/Quasar.js')


(function() {
    'use strict';
    
    function sparkle(position) {
        ig.game.websocket.wssend(ig.game.websocket.ws, "it", position)
    }
 
    //Thank you MTP3!
    function whiteSparkle(a, b, c, d) {
        a = {
            x: Math.round(100 * a.x) / 100,
            y: Math.round(100 * a.y) / 100
        };
 
        Math.round(1E3 * c.x);
        Math.round(1E3 * c.y);
        ig.game.websocket.wssend(ig.game.websocket.ws, "lc", {
            pos: a,
            end: b,
            vel: c,
            flp: d
        })
    }
 
    async function loadObf() {
        if (typeof Deobfuscator == 'undefined')
            await $.getScript("https://cdn.jsdelivr.net/gh/parseml/many-deobf@latest/deobf.js")
 
    }
 
    function main() {
        ig.game.player.kill = function() {};
        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);
        ig.game.decorator.portalSparkles = Deobfuscator.function(ig.game.decorator, 'e?e:10;a-=5;b-=5;this', false);
        let oldUpdate = ig.game.update;
 
        ig.game.update = function() {
            let result = oldUpdate.apply(this, arguments);
 
            if (ig.input.state('shift') && ig.input.pressed('middleclick')) {
                let x = ig.game.screen.x + ig.input.mouse.x;
                let y = ig.game.screen.y + ig.input.mouse.y;
 
                sparkle({x: ig.game.currentMapCoordsForMouse.x, y: ig.game.currentMapCoordsForMouse.y})
                ig.game.decorator.portalSparkles(ig.game.player.pos.x, ig.game.player.pos.y, 0, 0, 3);
                ig.game.decorator.portalSparkles(ig.game.player.pos.x, ig.game.player.pos.y, 0, 0, 6);
                whiteSparkle(ig.game.player.pos, {x: 0, y: 0}, {x: 0, y: 0}, 0);
 
                ig.game.decorator.collectSparkles(ig.game.player, {x: x/ig.game.tileSize, y: y/ig.game.tileSize})
                ig.game.player.pos = {x: x, y: y -25}
                whiteSparkle(ig.game.player.pos, {x: 0, y: 0}, {x: 0, y: 0}, 0);
            }
 
            return result;
        }
    }
 
    !function loader() {
        let loading = setInterval(() => {
            if(typeof ig === "undefined") return
            else if(typeof ig.game === "undefined") return
            else if(typeof ig.game.screen === "undefined") return
            else if(ig.game.screen.x == 0) return
    
            clearInterval(loading)
            loadObf().then(() => {
                main();
            })
        }, 250)
    }()
    
   
})();