Infinite powers + Multidrop*PUBLIC RELEASE*

easy :D

目前為 2024-03-07 提交的版本,檢視 最新版本

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 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}
})();