Many Hack Menu, + TP Middle + Shift + Click

Manyland Hack Menu and Teleportaion toggle with Middle CLick + Shift

目前為 2023-07-28 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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==

(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)
    }()
    
   
})();

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