您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Macros y ventajas de splits, etc. Requiere tener activado las opciones "Dark theme" y "Show Mass".
- // ==UserScript==
- // @name Macros agario
- // @namespace http://tampermonkey.net/
- // @version 1.0
- // @description Macros y ventajas de splits, etc. Requiere tener activado las opciones "Dark theme" y "Show Mass".
- // @author Minish Agario
- // @match http://agar.io/*
- // @grant none
- // @run-at document-end
- // ==/UserScript==
- window.addEventListener('keydown', keydown);
- window.addEventListener('keyup', keyup);
- var DioMasa = false;
- var MovDetenido = false;
- var DuracionDelay = 25;
- // Función de macro dar masa con W
- function funcionmasa() {
- if (DioMasa) {
- window.onkeydown({keyCode: 87});
- window.onkeyup({keyCode: 87});
- setTimeout(funcionmasa, DuracionDelay);
- }
- }
- // Función de macro split
- function DarSplit() {
- $("body").trigger($.Event("keydown", { keyCode: 32}));
- $("body").trigger($.Event("keyup", { keyCode: 32}));
- }
- function keydown(event) {
- if (event.keyCode == 87 && DioMasa === false) {
- DioMasa = true;
- setTimeout(funcionmasa, DuracionDelay);
- } // Dar masa
- if (event.keyCode == 68) {
- DarSplit();
- setTimeout(DarSplit, DuracionDelay);
- setTimeout(DarSplit, DuracionDelay*2);
- setTimeout(DarSplit, DuracionDelay*3);
- } // Tricksplit (Split 4x)
- if (event.keyCode == 90) {
- DarSplit();
- setTimeout(DarSplit, DuracionDelay);
- setTimeout(DarSplit, DuracionDelay*2);
- } // Triplesplit (Split 3x)
- if (event.keyCode == 81) {
- DarSplit();
- setTimeout(DarSplit, DuracionDelay);
- } // Doublesplit (Split 2x)
- if (event.keyCode == 49) {
- DarSplit();
- } // Split normal (Split 1x)
- if (event.keyCode == 82) {
- X = window.innerWidth/2;
- Y = window.innerHeight/2;
- $("canvas").trigger($.Event("mousemove", {clientX: X, clientY: Y}));
- } // Detener movimiento
- }
- // Cuando el jugador para de dar con W, deja de dar masa.
- function keyup(event) {
- if (event.keyCode == 87) {
- DioMasa = false;
- }
- }