diep.io key functions

Bounds keys do stuff

当前为 2021-11-30 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         diep.io key functions
// @namespace    http://tampermonkey.net/
// @version      9.0
// @description  Bounds keys do stuff
// @author       delta-1
// @match        *://*.diep.io/*
// @grant        none
// @license MIT
// ==/UserScript==




(function() {
    document.body.onkeyup=function(e){

		//Build keys
		//Go to http://keycode.info/ if you want to reassign keys and then change the number after "e.keyCode==="

        //01277727 = "z key"
        if(e.keyCode===90){
            input.execute("game_stats_build 565656565656564848484848484877332");
        }

        //57700077 = "x key"
        if(e.keyCode===88){
            input.execute("game_stats_build 232323888238238238238117777777111");
        }

        //07776600 = 
        if(e.keyCode===77){
            input.execute("game_stats_build 565656565656444444432323232323232");
        }

		//Themes bellow. 

        //La Faucheuse theme = "v key"
        if(e.keyCode===86){
            input.set_convar("ren_minimap_viewport", true);
            input.set_convar("ren_background_color", 0xC8C661);
            input.set_convar("ren_pattern_grid", false);
            input.set_convar("ren_grid_base_alpha", 0.3);
            input.set_convar("ren_stroke_soft_color_intensity", 1);
            input.execute("net_replace_color 1 0xBCDED2");
            input.execute("net_replace_color 2 0x0E99EE");
            input.execute("net_replace_color 10 0x0BC9E1");
            input.execute("net_replace_color 9 0xF6181B");
            input.execute("net_replace_color 8 0xE3C816");
            input.execute("net_replace_color 11 0xA881C2");
            input.execute("net_replace_color 15 0xF71022");
            input.execute("net_replace_color 16 0xEBE776");
            input.execute("net_replace_color 14 0xBCB28F");
            input.execute("net_replace_color 3 0x0E99EE");
            input.execute("net_replace_color 4 0xF71022");
            input.execute("net_replace_color 5 0xC03998");
            input.execute("net_replace_color 6 0x9FFA03");
            input.execute("net_replace_color 101 0x999999");
             input.set_convar(`ren_raw_health_values`, true);
             input.execute("ren_fps true");           
            setInterval(function(){input.keyDown(76);},150);
        }
        //b key
        if(e.keyCode===66){
       input.execute("net_replace_color 0 0x777777");
       input.execute("net_replace_color 1 0x898989");
       input.execute("net_replace_color 2 0x008db1");
       input.execute("net_replace_color 3 0x008db1");
       input.execute("net_replace_color 4 0xc23f43");
       input.execute("net_replace_color 5 0x9865c4");
       input.execute("net_replace_color 6 0x00aa4b");
       input.execute("net_replace_color 8 0xB8860B");
       input.execute("net_replace_color 9 0xa53c2c");
       input.execute("net_replace_color 10 0x105773");
       input.execute("net_replace_color 11 0xcc5fb0");
       input.execute("net_replace_color 12 0xccb954");
       input.execute("net_replace_color 13 0x2fb270");
       input.execute("net_replace_color 14 0x212121");
       input.execute("net_replace_color 15 0xc23f43");
       input.execute("net_replace_color 16 0xb48c56");
       input.set_convar("ren_background_color", 0x999999);
       input.execute("ren_solid_background true");
       input.execute("ren_minimap_viewport true");
       input.execute("ren_border_color_alpha 1");
       input.execute("ren_health_fill_color 0x20FFEF");
       input.execute("ren_health_background_color 0x000000");
       input.set_convar(`ren_raw_health_values`, true);
       input.execute("ren_fps true");
        }
    };
})();



//predator stack


document.addEventListener("keydown", function(zEvent) {
    if ( zEvent.code === "KeyN") {
        function fire(t, w) {
            setTimeout(function() {
                input.keyDown(32);
            }, t * 1000);
            setTimeout(function() {
                input.keyUp(32);
            }, t * 1000 + w);
        }
        fire(0, 100);
        fire(0.75, 200);
        fire(1.5, 750);
        setTimeout(function() {
            input.keyDown(69);
        }, 2000);
    }
});