Greasy Fork is available in English.

Macros agario

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 == 69 && DioMasa === false) {
        DioMasa = true;
        setTimeout(funcionmasa, DuracionDelay);
    } // Dar masa
    if (event.keyCode == 84) {
        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;
    }
}