Infinite powers + Multidrop*PUBLIC RELEASE*

easy :D

当前为 2024-03-07 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Infinite powers + Multidrop*PUBLIC RELEASE*
// @namespace    http://tampermonkey.net/
// @version      2.0
// @description  easy :D
// @author       Vaqu
// @match        https://agma.io/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=agma.io
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    /*
    E: recombine
    S: speed
    X: Virus
    1: AntiRec
    Q: portal
    2: freeze
    3: anti freeze
    4: Shield
    */
    //important variables

    let socket = new WebSocket("wss://agma.io")
    var $ = window.$
    var pwAmnt = $("invRecombine").val()
    var pwAmnt2 = $("invSpeed").val()
    var user = document.getElementByClassName("username")
    var keyLol1 = "E";var keyLol2 = "S";var keyLol3 = "X";var keyLol4 = "1";var keyLol5 = "Q";var keyLol6 = "2";var keyLol7 = "3";
    var scriptSuccess = true;

window.addEventListener('keydown', keydown);
setTimeout(function() {
    keyLol1 = keyLol1.charCodeAt(0)
    keyLol2 = keyLol2.charCodeAt(0)
    keyLol3 = keyLol3.charCodeAt(0)
    keyLol4 = keyLol4.charCodeAt(0)
    keyLol5 = keyLol5.charCodeAt(0)
    keyLol6 = keyLol6.charCodeAt(0)
    keyLol7 = keyLol7.charCodeAt(0)
    

}, 5000)
    window.alert("Script is already started, no buttons")
    if(event.keyCode == keyLol1){
        socket.send("#invRecombine", () => {
            class AddRecs {
                constructor(){
                    pwAmnt++
                }
            }
            this.recombine = new AddRecs()
            this.recombine.init()
            user.pwAmnt = user.pwAmnt + 1
            
        })
    }

    if(event.keyCode == keyLol2){
        socket.send("#invSpeed", () => {
            class AddSpeed {
                constructor(){
                    pwAmnt2++
                }
            }
            this.speed = new AddSpeed()
            this.speed.init()
            user.pwAmnt2 = user.pwAmnt2 + 1
            
        })
    }
        if(event.keyCode == keyLol3){
        socket.send("#invSpeed", () => {
            class AddSpeed {
                constructor(){
                    pwAmnt++
                }
            }
            this.speed = new AddSpeed()
            this.speed.init()
            user.pwAmnt2 = user.pwAmnt2 + 1
            
        })
    }
    parseFloat(pwAmnt.val())
    parseFloat(pwAmnt2.val())
//multidrop
let keys = {
    keySuper1: "X",//virus
    keySuper2: "1",//antirec
    keySuper3: "Q",//portal
    keySuper4: "2",//freeze
    keySuper5: "3",//antifreeze
    keySuper6: "4",//shield
    keyyer: async function waiter(){
        if (e.keyCode != scriptKeys){
            return;
        }
    }
}

function dropper(){
    
        script.manifest("JSON", keys)
        if (keys.keyyer.isNaC() || agma.info.keyBinds == keys){return async function(){window.alert("Your keys are not valid/already in use.\n Please make sure this key is\n is a real character and not in use!\n Thank you for using one of Vaqu's scripts!")}; window.reload()}
        window.addEventListener("keydown", function(e) {
  if (ischecked === true && !$('input, textarea').is(':focus')) {
    if (e.repeat) {
      e.preventDefault(); // Prevents the default repeating behavior of the key
      return; // Exit the function if the key is being held down
    }

    if (e.keyCode === keys.keySuper1) {
      sendPw(4);
    } else if (e.keyCode === keys.keySuper3) {
      sendPw(6);
    } else if (e.keyCode === keys.keySuper4) {
      sendPw(8);
    } else if (e.keyCode === keys.keySuper5) {
      sendPw(11);
    } else if (e.keyCode === keys.keySuper2) {
      sendPw(12);
    } else if (e.keyCode === keys.keySuper6) {
      sendPw(14);
    }
  }
});

    }
    //ANTI PATCH
    let scriptPatched = false
    if(agma.innerJS == false){scriptPatched = true}
})();