Auto Walk[NumPad 1] and Walk+Jump[NumPad 2] Mod For Shell Shockers

Auto Walk and Walk+Jump script triggered by numpad keys (1 and 2), initially disabled.

目前为 2024-05-30 提交的版本。查看 最新版本

// ==UserScript==
// @name         Auto Walk[NumPad 1] and Walk+Jump[NumPad 2] Mod For Shell Shockers
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Auto Walk and Walk+Jump script triggered by numpad keys (1 and 2), initially disabled.
// @match        *://algebra.best/*
// @match        *://algebra.vip/*
// @match        *://biologyclass.club/*
// @match        *://deadlyegg.com/*
// @match        *://deathegg.world/*
// @match        *://eggcombat.com/*
// @match        *://egg.dance/*
// @match        *://eggfacts.fun/*
// @match        *://egghead.institute/*
// @match        *://eggisthenewblack.com/*
// @match        *://eggsarecool.com/*
// @match        *://geometry.best/*
// @match        *://geometry.monster/*
// @match        *://geometry.pw/*
// @match        *://geometry.report/*
// @match        *://hardboiled.life/*
// @match        *://hardshell.life/*
// @match        *://humanorganising.org/*
// @match        *://mathdrills.info/*
// @match        *://mathfun.rocks/*
// @match        *://mathgames.world/*
// @match        *://math.international/*
// @match        *://mathlete.fun/*
// @match        *://mathlete.pro/*
// @match        *://overeasy.club/*
// @match        *://scrambled.best/*
// @match        *://scrambled.tech/*
// @match        *://scrambled.today/*
// @match        *://scrambled.us/*
// @match        *://scrambled.world/*
// @match        *://shellshockers.club/*
// @match        *://shellshockers.site/*
// @match        *://shellshockers.us/*
// @match        *://shellshockers.world/*
// @match        *://softboiled.club/*
// @match        *://violentegg.club/*
// @match        *://violentegg.fun/*
// @match        *://yolk.best/*
// @match        *://yolk.life/*
// @match        *://yolk.rocks/*
// @match        *://yolk.tech/*
// @match        *://shellshock.io/*
// @match        *://zygote.cafe/*
// @grant        none
// @icon         https://t3.ftcdn.net/jpg/06/21/52/32/240_F_621523283_93JNEJ1v1X2OjTRnN31vNUVIwivyyOx9.jpg
// @run-at       document-start
// @require      https://cdn.jsdelivr.net/npm/[email protected]/babylon.min.js
// ==/UserScript==

(function() {
    'use strict';

    const keySequence = ['a', 'w', 'd', ' '];
    let currentIndex = 0;

    function triggerKeyDownUp(key) {
        document.dispatchEvent(new KeyboardEvent('keydown', {'key': key}));
        setTimeout(() => {
            document.dispatchEvent(new KeyboardEvent('keyup', {'key': key}));
        }, 100);
    }

    function autoWalk() {
        triggerKeyDownUp(keySequence[currentIndex]);
        currentIndex = (currentIndex + 1) % keySequence.length;
    }

    function autoWalkJump() {
        triggerKeyDownUp('w');
        triggerKeyDownUp(' ');
    }

    let autoWalkInterval;
    let autoWalkJumpInterval;

    document.addEventListener('keydown', function(event) {
        // Toggle auto walk on Numpad1
        if (event.code === 'Numpad1' && !event.ctrlKey && !event.altKey && !event.shiftKey && !event.metaKey) {
            if (!autoWalkInterval) {
                autoWalkInterval = setInterval(autoWalk, 1);
            } else {
                clearInterval(autoWalkInterval);
                autoWalkInterval = null;
            }
        } 
        // Toggle auto walk+jump on Numpad2
        else if (event.code === 'Numpad2' && !event.ctrlKey && !event.altKey && !event.shiftKey && !event.metaKey) {
            if (!autoWalkJumpInterval) {
                autoWalkJumpInterval = setInterval(autoWalkJump, 1);
            } else {
                clearInterval(autoWalkJumpInterval);
                autoWalkJumpInterval = null;
            }
        }
    });
})();

QingJ © 2025

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