// ==UserScript== // @name Macro GOLD, BOMB, SPLITS & AUTO SETTINGS FOR AGARIO // @namespace http://tampermonkey.net/ // @version 1.4 // @description Macro gold, bomb, splits and much more for bomb.agar.bio & agarz.com // @author #EMBER (htps://fb.com/embermaxx) // @match http://bomb.agar.bio/ // @match http://agarz.com/ // @grant none // @downloadURL https://update.greasyfork.icu/scripts/387927/Macro%20GOLD%2C%20BOMB%2C%20SPLITS%20%20AUTO%20SETTINGS%20FOR%20AGARIO.user.js // @updateURL https://update.greasyfork.icu/scripts/387927/Macro%20GOLD%2C%20BOMB%2C%20SPLITS%20%20AUTO%20SETTINGS%20FOR%20AGARIO.meta.js // ==/UserScript== //***NOTE*** CHANGE LINE 126 ('#Legend'); WRITE YOUR OWN NICK instead of '#Legend' (*Don't remove quotes)!!! (function(){ 'use strict'; $("body").dblclick(function(){ if($("#doubleclick_d").is(":checked")) keyPress(68); }); $("head").append(""); newIns(); var interval_gold, interval_bomb, key = false, key2 = false, att=20, X=0, Y=0, k=0, fg=false; function keyPress(code) { $("body").trigger($.Event("keydown", { keyCode: code})); $("body").trigger($.Event("keyup", { keyCode: code})); } function autoSpawn() { setInterval(function(){ if($("#overlays").is(':visible') && $("#autorespawnok").is(":checked")) $('.btn-play-guest')[0].click(); },1000) } function fastGrow() { $("body").trigger($.Event("keydown", { keyCode: 65})); $("body").trigger($.Event("keyup", { keyCode: 65})); } function autoSplit() { $("body").trigger($.Event("keydown", { keyCode: 32})); $("body").trigger($.Event("keyup", { keyCode: 32})); } function newIns() { var instr = document.getElementById("instructions"); instr.style.lineHeight = "1.15"; instr.style.fontSize = "14px"; instr.style.marginTop = "-30px"; instr.style.color = "white"; instr.innerHTML +='
Press Ctrl+Shift+Z for auto settings / ACTIVATION
'+ ' Mouse Double click to eject bomb
'+ ' Press Q for slow macro gold
' + ' Press F to freeze movement
'+ ' Press S for fast macro gold
' + ' Press R for macro bombs
' + ' Press 4 to split 4x times
'+ ' Press 3 to split 3x times
'+ ' Press 2 to split 2x times
' } $(document).on('keydown',function(e){ // Doublesplit -> key2 if (e.keyCode == 50) { autoSplit(); setTimeout(autoSplit, att); } // Triplesplit -> key3 else if (e.keyCode == 51) { autoSplit(); setTimeout(autoSplit, att); setTimeout(autoSplit, att*2); } // Tricksplit -> key4 else if(e.keyCode == 52) { autoSplit(); setTimeout(autoSplit, att); setTimeout(autoSplit, att*2); setTimeout(autoSplit, att*3); } //Freeze -> F else if (e.keyCode == 70) { X = window.innerWidth/2; Y = window.innerHeight/2; $("canvas").trigger($.Event("mousemove", {clientX: X, clientY: Y})); } // Play -> P else if(e.keyCode == 80 && !$("#nick, #ip_newserver, #chat_textbox").is(":focus")) { $('.btn-play-guest')[0].click(); $("#overlays").css("display","none"); } //Macro Gold [Slow] -> Q if(e.keyCode == 81) { if(key)return; key = true; interval_gold = setInterval(function() { keyPress(65); }, 10); } //Macro Bomb -> R else if(e.keyCode == 82) { if(key2)return; key2 = true; interval_bomb = setInterval(function() { keyPress(68) }, 100); } //Macro Gold [Fast] -> S else if (e.keyCode == 83) { if(fg)return; fg = true; for(var t=0;t<160;t++){ setTimeout(fastGrow, t/2); } } //=============================== Auto Settings ===================================== else if(e.keyCode == 90 && e.shiftKey && e.ctrlKey){ $('#nick').val('#Legend'); //Your nick here $('#close_chatfull').click(function(){$(this).fadeOut("fast");}); autoSpawn(true); // Auto Spawn Function setDarkTheme(true); //Dark theme: true setSmooth(true); //Smooth render: true setSkins(false); //Skins: false $('#screenshot, #account_button, .controls, #klan, #level, #stats, .tosBox').remove(); $("#gamemode").replaceWith( '
Reconnect Force Play Agarmen '+ '
 Connect
'); $(".adsbygoogle").replaceWith(''); $("#chat_textbox").after('Emoji'); $("#bilgilerModal").html(''); $('.btn-play-guest').text('PLAY [P]'); $('.btn-spectate').text('Spectate'); $('.row div.col-sm-6').eq(5).html(''); $('.row div.col-sm-6').eq(6).html(''); $('.row div.col-sm-6').eq(6).after('
'); $('.row div.col-sm-6').eq(7).after('
'); $('.row div.col-sm-6').eq(8).after('
'); $('.row').last().after('
'); $("#chat_textbox").attr("maxlength","70"); $("#loginModal div.modal-content").replaceWith(''); } //==============EO Auto Settings================= }) // ==============Append Functions============== $("body").append(""); // ============================================ $(document).on('keyup',function(e){ //Stops if(e.keyCode == 81) { key = false; clearInterval(interval_gold); return; } //Stops else if (e.keyCode == 82) { key2 = false; clearInterval(interval_bomb); return; } //Stops else if (e.keyCode == 83) { fg = false; return; } //Stops "Auto Respawn" else if(e.keyCode == 67) { $("#autorespawnok").attr('checked', false); } if($("#chat_textbox").is(":focus") && $("#chat_textbox").val().length > 69) // Chat textbox limit { if($("#chatlimitalarm").is(":checked")){ $("#loginModal").modal('show'); setTimeout(function(){ $("#loginModal").modal('hide'); },1E3) } } }) //Script by #EMBER (https://fb.com/embermaxx) })();