~INSTAKILL MOD~ READ DESC.

PRESS R AND THEN E QUICKLY AND THEN HIT WITH PRIMARY THEN SWITCH TO SECONDARY

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

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

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         ~INSTAKILL MOD~ READ DESC.
// @author       SHD/BeagleLovers1/Cocoalovers
// @version      0.5
// @description  PRESS R AND THEN E QUICKLY AND THEN HIT WITH PRIMARY THEN SWITCH TO SECONDARY
// @match        *://dev.moomoo.io/*
// @match        *://moomoo.io/*
// @match        *://sandbox.moomoo.io/*
// @grant        none
// @namespace https://greasyfork.org/users/1048436
// ==/UserScript==

(function() {
    'use strict';


    //Keys
    var ID_ThiefGear = 52
    var ID_BullsHelmet = 7;
    var ID_TurretGear = 53;
    var ID_SoldierHelmet = 6;

    // Key code for the desired key (in this example, the 'r' key)
    var targetKey = 82;

    // Function to perform actions with delays
    function performActions() {
        // Action 1
storeEquip(ID_BullsHelmet);

        // Delay after Action 1 (in milliseconds)
        var delay1 = 150; // 2 seconds

        // Action 2
        setTimeout(function() {
storeEquip(ID_TurretGear);

            // Delay after Action 2 (in milliseconds)
            var delay2 = 150; // 1 second

            // Action 3
            setTimeout(function() {
storeEquip(ID_ThiefGear);

                // Delay after Action 3 (in milliseconds)
                var delay3 = 160; // 1.5 seconds

                // Action 4
                setTimeout(function() {
storeEquip(ID_TurretGear);

                    // Delay after Action 4 (in milliseconds)
                    var delay4 = 150; // 0.5 seconds

                    // Action 5
                    setTimeout(function() {
storeEquip(ID_SoldierHelmet);

                        // Delay after Action 5 (in milliseconds)
                        var delay5 = 150; // 0.8 seconds
storeEquip(ID_ThiefGear);
                        // Action 6
                        setTimeout(function() {
storeEquip(ID_SoldierHelmet);
                        }, delay5);
                    }, delay4);
                }, delay3);
            }, delay2);
        }, delay1);
    }

    // Event listener for key press
    document.addEventListener('keydown', function(event) {
        if (event.keyCode === targetKey) {
            performActions();
        }
    });
})();