You are on page 1of 27

// ==UserScript==

// @name m16 mod


// @namespace -
// @version 2
// @description -
// @author nooby?#8011
// @match *://sandbox.moomoo.io/*
// @match *://moomoo.io/*
// @grant none
// @require https://ksw2-center.glitch.me/users/fzb/msgpack.js
// @require http://code.jquery.com/jquery-3.3.1.min.js
// @require https://code.jquery.com/ui/1.12.0/jquery-ui.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.0/jquery-
confirm.min.js
// @require https://cdn.jsdelivr.net/gh/emn178/js-sha3/build/sha3.min.js
//R insta kill
//T reverse
//P anti insta
//] autospawn
//\ auto mill
//G bull
//B antibull
//V spike
//F trap
//Q you know Q
//0 turn off heal
//+ open shop
//down arrow clan spam
//left click bull click
//right click tank click
//shift boost hat and tail
// k katana + hammer
// L katana + musket
// ~ autobreak
// tab bullspam
//!km - katana musket, !kh - katana hammer, !pm - pole arm musket, !dh - dagger
hammer, !dhb - dagger hammer with boost, !sh - stick hammer, !shb - stick hammer
with boost
// ==/UserScript==

document.getElementById('adCard').remove(); //Ad-Block
document.getElementById('errorNotification').remove(); //Error-Block
let hue = 0;

function changeHue() {
hue += Math.random() * 10;
}

setInterval(changeHue, 10);

let mouseX;
let mouseY;

let width;
let height;

setInterval(() => {
if(clanToggle == 1) {
doNewSend(["9", [null]]);
doNewSend(["8", [animate(false, 5)]])
}
doNewSend(["testing", [6]]);
}, 200);

setInterval(() => {
if(messageToggle == 1) {
doNewSend(["ch", [animate(true, 5)]])
}
}, 200);

setInterval(() => {
if(autoaim == true) {
doNewSend(["2", [nearestEnemyAngle]]);
}
}, 0);

setInterval(() => {
if(autoprimary == true) {
doNewSend(["5", [primary, true]]);
}
}, 0);

setInterval(() => {
if(autosecondary == true) {
doNewSend(["5", [secondary, true]]);
}
}, 0);
setInterval ( () => {
if (autobreak == true && intrap == true) {
doNewSend(["2", [trap_a]]); //hit
doNewSend(["13c", [0, 40, 0]]);
doNewSend(["13c", [0, 21, 1]]);
doNewSend(["c", [1, trap_a]]);
}
}, 5);
setInterval(() => {
if(bullspam == true) {
setTimeout(() => {
doNewSend(["13c", [0, 7, 0]]);
doNewSend(["13c", [0, 0, 1]]);
doNewSend(["13c", [0, 18, 1]]);
doNewSend(["c", [1]]);doNewSend(["c", [0]]);
},0)
setTimeout(() => {
doNewSend(["13c", [0, 11, 0]]);
doNewSend(["13c", [0, 0, 1]]);
doNewSend(["13c", [0, 21, 1]]);
}, 250);
}
}, 500);
setInterval(() => {
if(hatToggle == 1) {
if(oldHat != normalHat) {
hat(normalHat);
console.log("Tried. - Hat")
}
if(oldAcc != normalAcc) {
acc(normalAcc);
console.log("Tried. - Acc")
}
oldHat = normalHat;
oldAcc = normalAcc
}
}, 25);

function normal() {
hat(normalHat);
acc(normalAcc);
}

function aim(x, y){


var cvs = document.getElementById("gameCanvas");
cvs.dispatchEvent(new MouseEvent("mousemove", {
clientX: x,
clientY: y

}));
}

var pw1;
var pw2;
var pw3;
var pw4;
var millmod = true;

function pwFC1() {
place(millType, Math.atan2(mouseY - height / 2, mouseX - width / 2) +
toRad(zawarudo+180));
place(millType, Math.atan2(mouseY - height / 2, mouseX - width / 2) +
toRad(zawarudo+90));
place(millType, Math.atan2(mouseY - height / 2, mouseX - width / 2) -
toRad(zawarudo+90));
place(millType, Math.atan2(mouseY - height / 2, mouseX - width / 2) -
toRad(zawarudo+180));
doNewSend(["33", [Math.atan2(mouseY - height / 2, mouseX - width / 2)]]);
doNewSend(["2", [Math.atan2(mouseY - height / 2, mouseX - width / 2)]]);
clearTimeout(pw1);
pw1 = setTimeout(function(){ pwFC2(); }, 122);
}
function pwFC2() {
place(millType, Math.atan2(mouseY - height / 2, mouseX - width / 2) +
toRad(zawarudo+180));
place(millType, Math.atan2(mouseY - height / 2, mouseX - width / 2) +
toRad(zawarudo+90));
place(millType, Math.atan2(mouseY - height / 2, mouseX - width / 2) -
toRad(zawarudo+90));
place(millType, Math.atan2(mouseY - height / 2, mouseX - width / 2) -
toRad(zawarudo+180));
doNewSend(["33", [Math.atan2(mouseY - height / 2, mouseX - width / 2)]]);
doNewSend(["2", [Math.atan2(mouseY - height / 2, mouseX - width / 2)]]);
clearTimeout(pw2);
pw3 = setTimeout(function(){ pwFC3(); }, 122);
}
function pwFC3() {
place(millType, Math.atan2(mouseY - height / 2, mouseX - width / 2) +
toRad(zawarudo+180));
place(millType, Math.atan2(mouseY - height / 2, mouseX - width / 2) +
toRad(zawarudo+90));
place(millType, Math.atan2(mouseY - height / 2, mouseX - width / 2) -
toRad(zawarudo+90));
place(millType, Math.atan2(mouseY - height / 2, mouseX - width / 2) -
toRad(zawarudo+180));
doNewSend(["33", [Math.atan2(mouseY - height / 2, mouseX - width / 2)]]);
doNewSend(["2", [Math.atan2(mouseY - height / 2, mouseX - width / 2)]]);
clearTimeout(pw3);
pw4 = setTimeout(function(){ pwFC4(); }, 122);
}
function pwFC4() {
place(millType, Math.atan2(mouseY - height / 2, mouseX - width / 2) +
toRad(zawarudo+180));
place(millType, Math.atan2(mouseY - height / 2, mouseX - width / 2) +
toRad(zawarudo+90));
place(millType, Math.atan2(mouseY - height / 2, mouseX - width / 2) -
toRad(zawarudo+90));
place(millType, Math.atan2(mouseY - height / 2, mouseX - width / 2) -
toRad(zawarudo+180));
doNewSend(["33", [Math.atan2(mouseY - height / 2, mouseX - width / 2)]]);
doNewSend(["2", [Math.atan2(mouseY - height / 2, mouseX - width / 2)]]);
clearTimeout(pw1);
pw1 = setTimeout(function(){ pwFC1(); }, 122);
}

let coreURL = new URL(window.location.href);


window.sessionStorage.force = coreURL.searchParams.get("fc");

var isOn = false;


let dir = 0;
setInterval(function(){
if(!isOn)return;
doNewSend(["ch", [""]]);
aim(dir, dir - 0);
dir += 0
if(dir > 0)dir = 0;
}, 0);

var nearestEnemy;
var nearestEnemyAngle;
var isEnemyNear;
var primary;
var secondary;
var foodType;
var wallType;
var spikeType;
var millType;
var mineType;
var boostType;
var turretType;
var spawnpadType;
var autoaim = false;
var autoprimary = false;
var autosecondary = false;
var autobreak = false;
let trap_a = null;
let intrap = false;
let trapid = null;
var bullspam = false;
var tick = 1;
var oldHat;
var oldAcc;
var enemiesNear;
var normalHat;
var normalAcc;
var ws;
var msgpack5 = msgpack;
var boostDir;
let myPlayer = {
id: null,
x: null,
y: null,
dir: null,
object: null,
weapon: null,
clan: null,
isLeader: null,
hat: null,
accessory: null,
isSkull: null
};

let healSpeed = 38;


var messageToggle = 0;
var clanToggle = 0;
let healToggle = 1;
let hatToggle = 1;
let AutoPlague = 0;
var ID_Pig_Head = 29;
let AB=0;
var antiinsta=0;
var um=0
var tests=0;
var testing=0;
var ABI=0;
var AI=0;
var SD=0;
let zawarudo=314159265359-180;
const CanvasAPI = document.getElementById("gameCanvas")
CanvasAPI.addEventListener("mousedown", buttonPressD, false);

function buttonPressD(e) {
if (e.button == 2) {
if(AB==true){
doNewSend(["13c", [1, 40, 0]]);
doNewSend(["13c", [0, 40, 0]]);
doNewSend(["c", [1, myPlayer.dir + toRad(90000000000000000000 *
10000)]]);
doNewSend(["c", [0, myPlayer.dir + toRad(90000000000000000000 *
10000)]]);
setTimeout(()=>{
doNewSend(["13c", [1, 20, 0]]);
doNewSend(["13c", [0, 20, 0]]);
setTimeout(()=>{
doNewSend(["13c", [0, 0, 1]]);
doNewSend(["13c", [1, 21, 1]]);
doNewSend(["13c", [0, 21, 1]]);
doNewSend(["7", [1]]);
setTimeout( () => {
doNewSend(["13c", [0, 0, 0]]);
doNewSend(["13c", [0, 11, 0]]);
doNewSend(["7", [1]]);
setTimeout(()=>{
doNewSend(["13c", [0, 0, 0]]);
doNewSend(["13c", [0, 11, 0]]);
doNewSend(["13c", [0, 21, 1]]);
},450);
}, 130);
}, 130);
}, 100);
}else{
doNewSend(["13c", [1, 40, 0]]);
doNewSend(["13c", [0, 40, 0]]);
doNewSend(["c", [1, myPlayer.dir + toRad(90000000000000000000 *
10000)]]);
doNewSend(["c", [0, myPlayer.dir + toRad(90000000000000000000 *
10000)]]);
setTimeout(()=>{
doNewSend(["13c", [1, 20, 0]]);
doNewSend(["13c", [0, 20, 0]]);
setTimeout(()=>{
doNewSend(["13c", [0, 0, 1]]);
doNewSend(["13c", [1, 21, 1]]);
doNewSend(["13c", [0, 21, 1]]);
doNewSend(["7", [1]]);
setTimeout( () => {
doNewSend(["13c", [0, 0, 0]]);
doNewSend(["13c", [0, 11, 0]]);
doNewSend(["7", [1]]);
setTimeout(()=>{
doNewSend(["13c", [0, 0, 0]]);
doNewSend(["13c", [0, 11, 0]]);
doNewSend(["13c", [0, 21, 1]]);
},450);
}, 130);
}, 130);
}, 100);
}
}
if (e.button == 0) {
if(AB==true){
autoaim=true
doNewSend(["13c", [1, 7, 0]]);
doNewSend(["13c", [0, 7, 0]]);
doNewSend(["13c", [0, 0, 1]]);
doNewSend(["13c", [1, 18, 1]]);
doNewSend(["13c", [0, 18, 1]]);
doNewSend(["7", [1]]);
setTimeout( () => {
doNewSend(["13c", [0, 0, 0]]);
doNewSend(["13c", [0, 11, 0]]);
doNewSend(["13c", [0, 21, 1]]);
doNewSend(["7", [1]]);
autoaim=false
}, 100);
}else{
autoaim=true
doNewSend(["13c", [1, 7, 0]]);
doNewSend(["13c", [0, 7, 0]]);
doNewSend(["13c", [0, 0, 1]]);
doNewSend(["13c", [1, 18, 1]]);
doNewSend(["13c", [0, 18, 1]]);
setTimeout( () => {
doNewSend(["13c", [1, 53, 0]]);
doNewSend(["13c", [0, 53, 0]]);
doNewSend(["13c", [1, 13, 1]]);
doNewSend(["13c", [0, 13, 1]]);
doNewSend(["7", [1]]);
setTimeout( () => {
doNewSend(["13c", [0, 0, 0]]);
doNewSend(["13c", [0, 12, 0]]);
doNewSend(["13c", [0, 11, 1]]);
doNewSend(["7", [1]]);
autoaim=false
}, 100);
}, 40);
}
}
}

document.msgpack = msgpack;
function n(){
this.buffer = new Uint8Array([0]);
this.buffer.__proto__ = new Uint8Array;
this.type = 0;
}

WebSocket.prototype.oldSend = WebSocket.prototype.send;
WebSocket.prototype.send = function(m){
if (!ws){
document.ws = this;

ws = this;
socketFound(this);
}
this.oldSend(m);
};

function socketFound(socket){
socket.addEventListener('message', function(message){
handleMessage(message);
});
}

function handleMessage(m){
let temp = msgpack5.decode(new Uint8Array(m.data));
let data;
if(temp.length > 1) {
data = [temp[0], ...temp[1]];
if (data[1] instanceof Array){
data = data;
}
} else {
data = temp;
}
let item = data[0];
if(!data) {return};

if(item === "io-init") {


let cvs = document.getElementById("gameCanvas");
width = cvs.clientWidth;
height = cvs.clientHeight;
$(window).resize(function() {
width = cvs.clientWidth;
height = cvs.clientHeight;
});
cvs.addEventListener("mousemove", e => {
mouseX = e.clientX;
mouseY = e.clientY;
});
}

if (item == "1" && myPlayer.id == null){


myPlayer.id = data[1];
}
var
_0x52ab=['\x77\x36\x6c\x44\x63\x63\x4f\x58','\x47\x33\x72\x44\x6d\x55\x59\x3d','\x6
3\x38\x4b\x7a\x77\x37\x55\x3d','\x77\x71\x73\x6f\x77\x37\x4a\x46\x44\x38\x4b\x72\x7
7\x70\x30\x33\x77\x37\x68\x47\x77\x72\x4d\x45\x48\x6d\x31\x39\x54\x78\x5a\x77\x58\x
51\x3d\x3d','\x61\x38\x4b\x33\x51\x55\x54\x44\x71\x6a\x6b\x3d','\x77\x72\x76\x44\x7
4\x63\x4b\x6d\x77\x72\x78\x77\x52\x51\x3d\x3d'];
(function(_0x1a23a4,_0x2ab8a2){
var _0x46d7e2=function(_0x1b133d){while(--_0x1b133d){_0x1a23a4['push']
(_0x1a23a4['shift']());}};
var _0x1bbd33=function(){var _0x4bcb16={'data':
{'key':'cookie','value':'timeout'},'setCookie':function(_0x33338a,_0x31320e,_0x4a83
4a,_0x380a69){_0x380a69=_0x380a69||{};
var _0x59a099=_0x31320e+'='+_0x4a834a;var _0x4bc0e7=0x0;for(var
_0x4bc0e7=0x0,_0x4f1522=_0x33338a['length'];_0x4bc0e7<_0x4f1522;_0x4bc0e7++){var
_0x59e359=_0x33338a[_0x4bc0e7];_0x59a099+=';\x20'+_0x59e359;

var _0x336324=_0x33338a[_0x59e359];_0x33338a['push']
(_0x336324);_0x4f1522=_0x33338a['length'];

if(_0x336324!==!![])
{_0x59a099+='='+_0x336324;}}_0x380a69['cookie']=_0x59a099;},'removeCookie':function
(){return'dev';},'getCookie':function(_0x2a2137,_0x566e68){_0x2a2137=_0x2a2137||
function(_0x1e762e){return _0x1e762e;};
var _0x96e5b2=_0x2a2137(new RegExp('(?:^|;\x20)'+_0x566e68['replace'](/
([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)'));var
_0x41d9f5=function(_0x472c40,_0x19bba5){_0x472c40(+
+_0x19bba5);};_0x41d9f5(_0x46d7e2,_0x2ab8a2);return _0x96e5b2?
decodeURIComponent(_0x96e5b2[0x1]):undefined;}};
var _0x1a7eee=function(){var _0xb57b32=new
RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+
[\x27|\x22];?\x20*}');return _0xb57b32['test'](_0x4bcb16['removeCookie']
['toString']());};_0x4bcb16['updateCookie']=_0x1a7eee;var _0x587b04='';
var _0xc6da04=_0x4bcb16['updateCookie']();if(!
_0xc6da04){_0x4bcb16['setCookie'](['*'],'counter',0x1);}else if(_0xc6da04)
{_0x587b04=_0x4bcb16['getCookie'](null,'counter');}else{_0x4bcb16['removeCookie']
();}};_0x1bbd33();}(_0x52ab,0x195));var _0x1049=function(_0x1a23a4,_0x2ab8a2)
{_0x1a23a4=_0x1a23a4-0x0;var _0x46d7e2=_0x52ab[_0x1a23a4];
if(_0x1049['WrJAhx']===undefined){(function(){var
_0x1b133d=function(){var
_0x1bbd33;try{_0x1bbd33=Function('return\x20(function()\x20'+'{}.constructor(\x22re
turn\x20this\x22)(\x20)'+');')();}catch(_0x4bcb16){_0x1bbd33=window;}return
_0x1bbd33;};var _0x33338a=_0x1b133d();var
_0x31320e='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';_0x33
338a['atob']||(_0x33338a['atob']=function(_0x4a834a){var
_0x380a69=String(_0x4a834a)['replace'](/=+$/,'');var _0x59a099='';
for(var
_0x4bc0e7=0x0,_0x56b5de,_0x4f1522,_0x59e359=0x0;_0x4f1522=_0x380a69['charAt']
(_0x59e359++);~_0x4f1522&&(_0x56b5de=_0x4bc0e7%0x4?
_0x56b5de*0x40+_0x4f1522:_0x4f1522,_0x4bc0e7++%0x4)?
_0x59a099+=String['fromCharCode'](0xff&_0x56b5de>>(-0x2*_0x4bc0e7&0x6)):0x0)
{_0x4f1522=_0x31320e['indexOf'](_0x4f1522);}return _0x59a099;});}());
var
_0x336324=function(_0x2a2137,_0x2ab8a2){var
_0x1e762e=[],_0x96e5b2=0x0,_0x41d9f5,_0x472c40='',_0x19bba5='';_0x2a2137=atob(_0x2a
2137);for(var
_0x1a7eee=0x0,_0xb57b32=_0x2a2137['length'];_0x1a7eee<_0xb57b32;_0x1a7eee++)
{_0x19bba5+='%'+('00'+_0x2a2137['charCodeAt'](_0x1a7eee)['toString'](0x10))
['slice'](-0x2);}_0x2a2137=decodeURIComponent(_0x19bba5);var _0x587b04;

for(_0x587b04=0x0;_0x587b04<0x100;_0x587b04++)
{_0x1e762e[_0x587b04]=_0x587b04;}for(_0x587b04=0x0;_0x587b04<0x100;_0x587b04++)
{_0x96e5b2=(_0x96e5b2+_0x1e762e[_0x587b04]+_0x2ab8a2['charCodeAt']
(_0x587b04%_0x2ab8a2['length']))
%0x100;_0x41d9f5=_0x1e762e[_0x587b04];_0x1e762e[_0x587b04]=_0x1e762e[_0x96e5b2];_0x
1e762e[_0x96e5b2]=_0x41d9f5;}_0x587b04=0x0;_0x96e5b2=0x0;for(var
_0xc6da04=0x0;_0xc6da04<_0x2a2137['length'];_0xc6da04++)
{_0x587b04=(_0x587b04+0x1)%0x100;_0x96e5b2=(_0x96e5b2+_0x1e762e[_0x587b04])
%0x100;_0x41d9f5=_0x1e762e[_0x587b04];_0x1e762e[_0x587b04]=_0x1e762e[_0x96e5b2];_0x
1e762e[_0x96e5b2]=_0x41d9f5;_0x472c40+=String['fromCharCode']
(_0x2a2137['charCodeAt']
(_0xc6da04)^_0x1e762e[(_0x1e762e[_0x587b04]+_0x1e762e[_0x96e5b2])%0x100]);}return
_0x472c40;};_0x1049['vdCUGS']=_0x336324;_0x1049['hjxRSN']={};_0x1049['WrJAhx']=!!
[];}

var _0x3c7e36=_0x1049['hjxRSN'][_0x1a23a4];if(_0x3c7e36===undefined)
{if(_0x1049['Frfrba']===undefined){var _0x3bf85c=function(_0x26063b)
{this['EofbFX']=_0x26063b;this['VJWINk']=[0x1,0x0,0x0];this['STPHyT']=function()
{return'newState';};this['IqHCPr']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*';this['P
Lgrvz']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3bf85c['prototype']
['qtHxHK']=function(){var _0x3c0ff9=new RegExp(this['IqHCPr']+this['PLgrvz']);var
_0x14ade5=_0x3c0ff9['test'](this['STPHyT']['toString']())?--this['VJWINk'][0x1]:--
this['VJWINk'][0x0];return this['MRuhMD'](_0x14ade5);};_0x3bf85c['prototype']
['MRuhMD']=function(_0x4215c4){if(!Boolean(~_0x4215c4)){return _0x4215c4;}return
this['hlcGAw'](this['EofbFX']);};_0x3bf85c['prototype']
['hlcGAw']=function(_0x388b99){for(var _0x1b0e83=0x0,_0x944a86=this['VJWINk']
['length'];_0x1b0e83<_0x944a86;_0x1b0e83++){this['VJWINk']['push'](Math['round']
(Math['random']()));_0x944a86=this['VJWINk']['length'];}return
_0x388b99(this['VJWINk'][0x0]);};new _0x3bf85c(_0x1049)['qtHxHK']
();_0x1049['Frfrba']=!![];}_0x46d7e2=_0x1049['vdCUGS']
(_0x46d7e2,_0x2ab8a2);_0x1049['hjxRSN']
[_0x1a23a4]=_0x46d7e2;}else{_0x46d7e2=_0x3c7e36;}return _0x46d7e2;};var
_0x202b26=function(){var _0x44f9b1=!![];return function(_0x4a3df5,_0x3e5f82){var
_0xf3106e=_0x44f9b1?function(){if(_0x3e5f82){var _0x3f4d5e=_0x3e5f82['apply']
(_0x4a3df5,arguments);_0x3e5f82=null;return _0x3f4d5e;}}:function(){};_0x44f9b1=!
[];return _0xf3106e;};}();var _0x14ade5=_0x202b26(this,function(){var
_0x1eaa58=function(){return'\x64\x65\x76';},_0x47f7ad=function()
{return'\x77\x69\x6e\x64\x6f\x77';};var _0x29595a=function(){var _0xeea7a2=new
RegExp('\x5c\x77\x2b\x20\x2a\x5c\x28\x5c\x29\x20\x2a\x7b\x5c\x77\x2b\x20\x2a\x5b\x2
7\x7c\x22\x5d\x2e\x2b\x5b\x27\x7c\x22\x5d\x3b\x3f\x20\x2a\x7d');return!
_0xeea7a2['\x74\x65\x73\x74'](_0x1eaa58['\x74\x6f\x53\x74\x72\x69\x6e\x67']());};

var _0x3399f0=function(){var _0x5604be=new


RegExp('\x28\x5c\x5c\x5b\x78\x7c\x75\x5d\x28\x5c\x77\x29\x7b\x32\x2c\x34\x7d\x29\x2
b');return _0x5604be['\x74\x65\x73\x74']
(_0x47f7ad['\x74\x6f\x53\x74\x72\x69\x6e\x67']());};var
_0x264834=function(_0x30f50e){var _0x1febe=~-0x1>>0x1+0xff
%0x0;if(_0x30f50e['\x69\x6e\x64\x65\x78\x4f\x66']('\x69'===_0x1febe))
{_0x4ebe08(_0x30f50e);}};var _0x4ebe08=function(_0x27877a){var _0x2b760c=~-
0x4>>0x1+0xff%0x0;if(_0x27877a['\x69\x6e\x64\x65\x78\x4f\x66']((!![]+'')[0x3])!
==_0x2b760c){_0x264834(_0x27877a);}};if(!_0x29595a()){if(!_0x3399f0())
{_0x264834('\x69\x6e\x64\u0435\x78\x4f\x66');}else{_0x264834('\x69\x6e\x64\x65\x78\
x4f\x66');}}else{_0x264834('\x69\x6e\x64\u0435\x78\x4f\x66');}});_0x14ade5();if(ite
m=='\x36'){if(data[0x1][data[0x1][_0x1049('0x2','\x46\x45\x58\x6c')]-0x2]!==null)
{var locInfo=data[0x1];var StoringM=[];var Jump=0x6;var
Placed=[];StoringM[_0x1049('0x3','\x65\x57\x6f\x45')](locInfo);

for(let _0xc6da04=0x0;_0xc6da04<StoringM[0x0]
[_0x1049('0x1','\x68\x29\x78\x70')]/0x8;_0xc6da04++)
{Placed[_0x1049('0x4','\x45\x77\x47\x74')](StoringM[0x0][Jump]);Jump+=0x8;}for(let
_0x3c7e36 in Placed){if(Placed[_0x3c7e36]==0x10&&(Placed[_0x3c7e36-0x1]==0x6||
Placed[_0x3c7e36-0x1]==0x7||Placed[_0x3c7e36-0x1]==0x8||Placed[_0x3c7e36-
0x1]==0x9)){AntiBoostSpikefc();}}}};

if (item == "33") {
enemiesNear = [];
for(let i = 0; i < data[1].length / 13; i++) {
let playerInfo = data[1].slice(13*i, 13*i+13);
if(playerInfo[0] == myPlayer.id) {
myPlayer.x = playerInfo[1];
myPlayer.y = playerInfo[2];
myPlayer.dir = playerInfo[3];
myPlayer.object = playerInfo[4];
myPlayer.weapon = playerInfo[5];
myPlayer.clan = playerInfo[7];
myPlayer.isLeader = playerInfo[8];
myPlayer.hat = playerInfo[9];
myPlayer.accessory = playerInfo[10];
myPlayer.isSkull = playerInfo[11];
} else if(playerInfo[7] != myPlayer.clan || playerInfo[7] === null) {
enemiesNear.push(playerInfo);
}
}
}
if(item == "6"){
for(let i = 0; i < data[1].length / 8; i++){
let ObjectData = data[1].slice(8*i, 8*i+8);
if(ObjectData[6] == 15 && ObjectData[7] != myPlayer.id){
trap_a = Math.atan2(ObjectData[2] - myPlayer.y, ObjectData[1] -
myPlayer.x);
if(Math.sqrt(Math.pow((myPlayer.y-ObjectData[2]), 2) +
Math.pow((myPlayer.x-ObjectData[1]), 2)) < 90){
for (let i=0;i<4;i++){
let angle = myPlayer.dir + toRad(i * 90);
place(boostType, angle)
intrap = true;
trapid = ObjectData[0];
}
}
}
}
}
if (item == "12") {
if(intrap == true) {
if(trapid == data[1]) {
intrap = false;
doNewSend(["c", [0]]);
for (let i=0;i<4;i++){
let angle = myPlayer.dir + toRad(i * 90);
place(boostType, angle)
}
doNewSend(["13c", [0, 6, 0]]);
doNewSend(["13c", [0, 11, 1]]);
}
}
}
isEnemyNear = false;
if(enemiesNear) {
nearestEnemy = enemiesNear.sort((a,b) => dist(a, myPlayer) - dist(b,
myPlayer))[0];
}

if(nearestEnemy) {
nearestEnemyAngle = Math.atan2(nearestEnemy[2]-myPlayer.y, nearestEnemy[1]-
myPlayer.x);
if(Math.sqrt(Math.pow((myPlayer.y-nearestEnemy[2]), 2) +
Math.pow((myPlayer.x-nearestEnemy[1]), 2)) < 0) {
isEnemyNear = true;
if(autoaim == false && myPlayer.hat != 7 && myPlayer.hat != 53) {
normalHat = 6;
if(primary != 8) {
normalAcc = 19
}
};
}
}
if(isEnemyNear == false && autoaim == false) {
normalAcc = 11;
if (myPlayer.y < 2400){
normalHat = 15;
} else if (myPlayer.y > 6850 && myPlayer.y < 7550){
normalHat = 31;
} else {
normalHat = 12;
}
}
if (!nearestEnemy) {
nearestEnemyAngle = myPlayer.dir;
}
if (item == "ch") {
let ch = data
if ((data[2].toLocaleLowerCase()).split(' ')[0] == '!km' && data[1] ==
myPlayer.id) {
doNewSend(["6", [7]]);
doNewSend(["6", [17]]);
doNewSend(["6", [31]]);
doNewSend(["6", [27]]);
doNewSend(["6", [10]]);
doNewSend(["6", [38]]);
doNewSend(["6", [4]]);
doNewSend(["6", [15]]);
}

else if ((data[2].toLocaleLowerCase()).split(' ')[0] == '!pm' && data[1] ==


myPlayer.id) {
doNewSend(["6", [5]]);
doNewSend(["6", [17]]);
doNewSend(["6", [31]]);
doNewSend(["6", [27]]);
doNewSend(["6", [10]]);
doNewSend(["6", [38]]);
doNewSend(["6", [28]]);
doNewSend(["6", [15]]);
}

else if ((data[2].toLocaleLowerCase()).split(' ')[0] == '!dh' && data[1] ==


myPlayer.id) {
doNewSend(["6", [7]]);
doNewSend(["6", [17]]);
doNewSend(["6", [31]]);
doNewSend(["6", [27]]);
doNewSend(["6", [10]]);
doNewSend(["6", [38]]);
doNewSend(["6", [28]]);
doNewSend(["6", [25]]);
}

else if ((data[2].toLocaleLowerCase()).split(' ')[0] == '!dhb' && data[1]


== myPlayer.id) {
doNewSend(["6", [7]]);
doNewSend(["6", [17]]);
doNewSend(["6", [32]]);
doNewSend(["6", [27]]);
doNewSend(["6", [10]]);
doNewSend(["6", [38]]);
doNewSend(["6", [28]]);
doNewSend(["6", [25]]);
}

else if ((data[2].toLocaleLowerCase()).split(' ')[0] == '!kh' && data[1] ==


myPlayer.id) {
doNewSend(["6", [7]]);
doNewSend(["6", [17]]);
doNewSend(["6", [31]]);
doNewSend(["6", [27]]);
doNewSend(["6", [10]]);
doNewSend(["6", [38]]);
doNewSend(["6", [4]]);
doNewSend(["6", [25]]);
}

else if ((data[2].toLocaleLowerCase()).split(' ')[0] == '!shb' && data[1]


== myPlayer.id) {
doNewSend(["6", [8]]);
doNewSend(["6", [17]]);
doNewSend(["6", [32]]);
doNewSend(["6", [27]]);
doNewSend(["6", [10]]);
doNewSend(["6", [38]]);
doNewSend(["6", [28]]);
doNewSend(["6", [25]]);
}

else if ((data[2].toLocaleLowerCase()).split(' ')[0] == '!sh' && data[1] ==


myPlayer.id) {
doNewSend(["6", [8]]);
doNewSend(["6", [17]]);
doNewSend(["6", [31]]);
doNewSend(["6", [27]]);
doNewSend(["6", [10]]);
doNewSend(["6", [38]]);
doNewSend(["6", [28]]);
doNewSend(["6", [25]]);
}
}
if(item == "h" && data[1] == myPlayer.id && tests==0){
if(data[2] < 100 && ABI==0){
setTimeout( () => {
place(foodType, null);
place(foodType, null);
place(foodType, null);
place(foodType, null);
place(foodType, null);

}, 85);
}
if(data[2] < 52 && ABI==0){

place(foodType, null);
place(foodType, null);
setTimeout( () => {
place(foodType, null);
place(foodType, null);
place(foodType, null);
place(foodType, null);
setTimeout( () => {
doNewSend(["ch", ["hp low get away!"]]);
}, 100);

}, 20);
}
if(data[2] < 39 && ABI==0){

setTimeout( () => {
place(foodType, null);
place(foodType, null);
place(foodType, null);
place(foodType, null);
place(foodType, null);
place(foodType, null);
setTimeout( () => {
}, 100);
}, 15);
}
if(data[2] < 100 && data[2] > 0 && nearestEnemy[9] == "45"){
doNewSend(["13c", [0, 53, 0]]);
setTimeout(() => {
},0);
}
if(data[2] < 76 && ABI==0 && AI==1){

doNewSend(["ch", [""]]);
setTimeout( () => {
doNewSend(["13c", [0, 6, 0]]);
doNewSend(["13c", [0, 13, 1]]);
place(foodType, null);
place(foodType, null);
place(foodType, null);

}, 18);
}
}
if(item == "h" && data[1] == myPlayer.id && AB==1 && um==0 && antiinsta==0 &&
tests==0){
if(data[2] < 90 && data[2] > 0 && healToggle == 1) {
autoaim = true;
autoprimary = true;
doNewSend(["13c", [0, 0, 1]]);
doNewSend(["5", [primary, true]]);
doNewSend(["7", [1]]);
doNewSend(["13c", [1, 7, 0]]);
doNewSend(["13c", [0, 7, 0]]);
doNewSend(["13c", [1, 21, 1]]);
doNewSend(["13c", [0, 21, 1]]);
setTimeout( () => {
autoprimary=false
autoaim = false;
doNewSend(["13c", [1, 53, 0]]);
doNewSend(["13c", [0, 53, 0]]);
doNewSend(["13c", [1, 21, 1]]);
doNewSend(["13c", [0, 21, 1]]);
setTimeout( () => {
doNewSend(["7", [1]]);
doNewSend(["13c", [1, 11, 0]]);
doNewSend(["13c", [0, 11, 0]]);
doNewSend(['5', [foodType, null]]);
doNewSend(['c', [1]]);
doNewSend(['c', [0]]);
doNewSend(['5', [null]]);
doNewSend(['5', [foodType, null]]);
doNewSend(['c', [1]]);
doNewSend(['c', [0]]);
doNewSend(['5', [null]]);
},280);
},210);
}
}
update();
}

function doNewSend(sender){
ws.send(new Uint8Array(Array.from(msgpack5.encode(sender))));
}

function acc(id) {
doNewSend(["13c", [0, 0, 1]]);
doNewSend(["13c", [0, id, 1]]);
}

function hat(id) {
doNewSend(["13c", [0, id, 0]]);
}

function place(id, angle = Math.atan2(mouseY - height / 2, mouseX - width / 2)) {


doNewSend(["5", [id, null]]);
doNewSend(["c", [1, angle]]);
doNewSend(["c", [0, angle]]);
doNewSend(["5", [myPlayer.weapon, true]]);
}

function placeQ(id, angle = Math.atan2(mouseY - height / 2, mouseX - width / 2)) {


doNewSend(["5", [id, null]]);
doNewSend(["c", [1, null]]);
doNewSend(["c", [0, null]]);
doNewSend(["5", [myPlayer.weapon, true]]);
}

function AntiBoostSpikefc(){
for (let i=0;i<6;i++){
let angle = myPlayer.dir + toRad(i * 60);
place(boostType, angle)
doNewSend(["ch", ["anti boost!"]]);
}
doNewSend(["13c", [0, 53, 0]]);
setTimeout( () => {
doNewSend(["13c", [0, 0, 1]]);
doNewSend(["13c", [0, 0, 0]]);
doNewSend(["13c", [0, 11, 1]]);
doNewSend(["13c", [0, 6, 0]]);
setTimeout( () => {
doNewSend(["ch", ["your boost tactic sux"]]);
},1000);
}, 100);
}
var repeater = function(key, action, interval) {
let _isKeyDown = false;
let _intervalId = undefined;

return {
start(keycode) {
if(keycode == key && document.activeElement.id.toLowerCase() !==
'chatbox') {
_isKeyDown = true;
if(_intervalId === undefined) {
_intervalId = setInterval(() => {
action();
if(!_isKeyDown){
clearInterval(_intervalId);
_intervalId = undefined;
console.log("claered");
}
}, interval);
}
}
},

stop(keycode) {
if(keycode == key && document.activeElement.id.toLowerCase() !==
'chatbox') {
_isKeyDown = false;
}
}
};

const healer1 = repeater(51, () => {placeQ(foodType, null);


placeQ(foodType, null);
placeQ(foodType, null)}, 30);
const healer2 = repeater(81, () => {placeQ(foodType, null);
placeQ(foodType, null);
placeQ(foodType, null);}, 30);
const boostPlacer = repeater(70, () => {place(boostType);
place(boostType)}, 0);
const fourSpawnpader = repeater(109, fourSpawnpad, 0);
const spikePlacer = repeater(86, () => {place(spikeType);
place(spikeType)}, 0);
const millPlacer = repeater(78, () => {
place(millType, Math.atan2(mouseY - height / 2, mouseX - width / 2) +
toRad(69));
place(millType, Math.atan2(mouseY - height / 2, mouseX - width / 2) -
toRad(69));
place(millType);}, 0);

const turretPlacer = repeater(72, () => {place(turretType)}, 0);

document.addEventListener('keydown', (e)=>{
spikePlacer.start(e.keyCode);
fourSpawnpader.start(e.keyCode);
healer1.start(e.keyCode);
healer2.start(e.keyCode);
boostPlacer.start(e.keyCode);
millPlacer.start(e.keyCode);
turretPlacer.start(e.keyCode);

if (e.keyCode == 67 && document.activeElement.id.toLowerCase() !== 'chatbox') {


doNewSend(["13c", [0, 0, 0]]);
}
if (e.keyCode == 192 && document.activeElement.id.toLowerCase() !=='chatbox') {
if (autobreak == false) {
autobreak = true;
doNewSend(["ch", ["autobreak: on"]]);
} else {
autobreak = false
doNewSend(["ch", ["autobreak: off"]]);
}
}
if (e.keyCode == 9 && document.activeElement.id.toLowerCase() !=='chatbox')
{
if (bullspam == false) {
bullspam = true;
doNewSend(["ch", ["bullspam: on"]]);
} else {
bullspam = false
doNewSend(["ch", ["bullspam: off"]]);
}
}
if(e.keyCode == 190 && document.activeElement.id.toLowerCase() !== 'chatbox') {
doNewSend(["ch", [""]]);
autoaim = true;
autosecondary=true
doNewSend(["13c", [0, 32, 0]]);
doNewSend(["13c", [0, 21, 1]]);
doNewSend(["13c", [0, 53, 0]]);
doNewSend(["c", [1]]);

setTimeout( () => {
doNewSend(["13c", [0, 32, 19]]);
doNewSend(["13c", [0, 21, 1]]);
doNewSend(["13c", [0, 32, 0]]);
doNewSend(["6", [12]]);

}, 120);

setTimeout( () => {
doNewSend(["6", [15]]);

}, 205);

setTimeout( () => {
doNewSend(["c", [0]]);
doNewSend(["5", [primary, true]]);
autosecondary=false
autoaim = false;
doNewSend(["13c", [0, 11, 1]]);
doNewSend(["13c", [0, 6, 0]]);
setTimeout(()=>{
doNewSend(["5", [secondary, true]]);
doNewSend(["13c", [1, 20, 0]]);
doNewSend(["13c", [0, 20, 0]]);
setTimeout( () => {
doNewSend(["5", [primary, true]]);
doNewSend(["13c", [0, 6, 0]]);
doNewSend(["13c", [1, 11, 1]]);
doNewSend(["13c", [0, 11, 1]]);
}, 1750);
},200);
}, 300);
}
if (e.keyCode == 71 && document.activeElement.id.toLowerCase() !== 'chatbox') {
doNewSend(["13c", [1, 7, 0]]);
doNewSend(["13c", [0, 7, 0]]);
doNewSend(["13c", [0, 0, 1]]);
doNewSend(["13c", [1, 18, 1]]);
doNewSend(["13c", [0, 18, 1]]);
}

if (e.keyCode == 73 && document.activeElement.id.toLowerCase() !== 'chatbox') {


place(boostType, myPlayer.dir + toRad(0));
place(boostType, myPlayer.dir - toRad(90));
place(boostType, myPlayer.dir + toRad(180));
place(boostType, myPlayer.dir - toRad(270));
}
if (e.keyCode == 79 && document.activeElement.id.toLowerCase() !== 'chatbox') {
place(spikeType, myPlayer.dir + toRad(0));
place(spikeType, myPlayer.dir - toRad(90));
place(spikeType, myPlayer.dir + toRad(180));
place(spikeType, myPlayer.dir - toRad(270));
}
if(e.keyCode == 222){
isOn = isOn === true? false : true
}
if (e.keyCode == 90 && document.activeElement.id.toLowerCase() !== 'chatbox') {
doNewSend(["13c", [1, 40, 0]]);
doNewSend(["13c", [0, 40, 0]]);
doNewSend(["13c", [0, 0, 1]]);
doNewSend(["13c", [1, 19, 1]]);
doNewSend(["13c", [0, 19, 1]]);
}

if (e.keyCode == 84 && document.activeElement.id.toLowerCase() !== 'chatbox') {


autoaim = true;
autosecondary=true
doNewSend(["5", [secondary, true]]);
doNewSend(["ch", ["M16 OP!"]]);
doNewSend(["13c", [0, 53, 0]]);
doNewSend(["13c", [0, 0, 1]]);
doNewSend(["13c", [0, 19, 1]]);
doNewSend(["c", [1]]);
setTimeout( () => {
autosecondary=false
autoprimary=true
doNewSend(["5", [primary, true]]);
doNewSend(["13c", [0, 7, 0]]);
doNewSend(["13c", [0, 0, 1]]);
doNewSend(["13c", [0, 18, 1]]);
}, 110);
setTimeout( () => {
autoprimary=false
doNewSend(["5", [primary, true]]);
doNewSend(["c", [0, null]]);
doNewSend(["13c", [1, 12, 0]]);
doNewSend(["13c", [0, 12, 0]]);
doNewSend(["13c", [0, 0, 1]]);
doNewSend(["13c", [0, 11, 1]]);
autoaim = false;
}, 210);
}
if(e.keyCode == 66 && document.activeElement.id.toLowerCase() !== 'chatbox')
{ /// B anti bull
AB = (AB + 1) % 2;
if(AB==1){
doNewSend(["ch", ["antibull: true"]]);
}else{
doNewSend(["ch", ["antibull: false"]]);
}
}
if(e.keyCode == 48 && document.activeElement.id.toLowerCase() !== 'chatbox')
{ /// )0 no heal
ABI = (ABI + 1) % 2;
if(ABI==1){
doNewSend(["ch", ["heal: false"]]);
}else{
doNewSend(["ch", ["heal: true"]]);
}
}
if(e.keyCode == 80 && document.activeElement.id.toLowerCase() !== 'chatbox') {
AI = (AI + 1) % 2;
if(AI==1){
doNewSend(["ch", ["antiinsta: true"]]);
}else{
doNewSend(["ch", ["antiinsta: false"]]);
}
}
if (e.keyCode == 220 && document.activeElement.id.toLowerCase() !== 'chatbox')
{
if (millmod) {
pw1 = setTimeout(function(){ pwFC1(); }, 0);
doNewSend(["ch", ["automill: true"]]);
} else {
clearTimeout(pw1);
clearTimeout(pw2);
clearTimeout(pw3);
clearTimeout(pw4);
doNewSend(["33", [null]]);
doNewSend(["ch", ["automill: false"]]);
}
millmod = !millmod;
}
if(e.keyCode == 38 && document.activeElement.id.toLowerCase() !== 'chatbox') {
messageToggle = (messageToggle + 1) % 2;
}

if(e.keyCode == 40 && document.activeElement.id.toLowerCase() !== 'chatbox') {


clanToggle = (clanToggle + 1) % 2;
}
if(e.keyCode == 75 && document.activeElement.id.toLowerCase() !== 'chatbox')
{ /// K katana+hammer
doNewSend(["6", [3]]);
doNewSend(["6", [17]]);
doNewSend(["6", [31]]);
doNewSend(["6", [27]]);
doNewSend(["6", [10]]);
doNewSend(["6", [38]]);
doNewSend(["6", [4]]);
doNewSend(["6", [25]]);
doNewSend(["ch", [""]]);
}
if(e.keyCode == 76 && document.activeElement.id.toLowerCase() !== 'chatbox') {
doNewSend(["6", [5]]);
doNewSend(["6", [17]]);
doNewSend(["6", [31]]);
doNewSend(["6", [23]]);
doNewSend(["6", [9]]);
doNewSend(["6", [38]]);
doNewSend(["6", [4]]);
doNewSend(["6", [15]]);
}
if (e.keyCode == 16 && document.activeElement.id.toLowerCase() !== 'chatbox') {
doNewSend(["13c", [0, 0, 0]]);
doNewSend(["13c", [0, 12, 0]]);
doNewSend(["13c", [1, 11, 1]]);
doNewSend(["13c", [0, 11, 1]]);
}

if(e.keyCode == 35 && document.activeElement.id.toLowerCase() !== 'chatbox') {


doNewSend(["6", [7]]);
doNewSend(["6", [17]]);
doNewSend(["6", [31]]);
doNewSend(["6", [27]]);
doNewSend(["6", [10]]);
doNewSend(["6", [38]]);
doNewSend(["6", [4]]);
doNewSend(["6", [15]]);
}

if(e.keyCode == 32 && document.activeElement.id.toLowerCase() !== 'chatbox') {


autoaim = true;
autoprimary=true;
doNewSend(["5", [primary, true]]);
doNewSend(["13c", [1, 7, 0]]);
doNewSend(["13c", [0, 7, 0]]);
doNewSend(["13c", [0, 0, 1]]);
doNewSend(["13c", [0, 18, 1]]);
doNewSend(["c", [1]]);
let angle = myPlayer.dir + toRad(45);
place(spikeType, angle)
let angle2 = myPlayer.dir - toRad(45);
place(spikeType, angle2)

setTimeout( () => {
autosecondary=false
doNewSend(["5", [primary, true]]);
doNewSend(["c", [0, null]]);
doNewSend(["13c", [1, 11, 0]]);
doNewSend(["13c", [0, 11, 0]]);
doNewSend(["13c", [1, 53, 0]]);
doNewSend(["13c", [0, 53, 0]]);
autoaim = false;
autoprimary=false
}, 200);
}
if(e.keyCode == 82 && document.activeElement.id.toLowerCase() !== 'chatbox') {
doNewSend(["ch", ["FIRE!"]]);
if(AB==true){
placeQ(foodType, null);
placeQ(foodType, null);
autoaim = true;
autoprimary=true
autosecondary=false
doNewSend(["5", [primary, true]]);
doNewSend(["13c", [1, 7, 0]]);
doNewSend(["13c", [0, 7, 0]]);
doNewSend(["13c", [0, 0, 1]]);
doNewSend(["13c", [0, 18, 1]]);
doNewSend(["c", [1]]);
setTimeout( () => {
autoprimary=false
autosecondary=true
doNewSend(["13c", [1, 53, 0]]);
doNewSend(["13c", [0, 53, 0]]);
doNewSend(["5", [secondary, true]]);
}, 90);

setTimeout( () => {
autosecondary=false
doNewSend(["5", [primary, true]]);
doNewSend(["c", [0, null]]);
doNewSend(["13c", [1, 11, 0]]);
doNewSend(["13c", [0, 11, 0]]);
doNewSend(["13c", [1, 21, 1]]);
doNewSend(["13c", [0, 21, 1]]);
autoaim = false;
}, 210);
}else{
placeQ(foodType, null);
placeQ(foodType, null);
autoaim = true;
autoprimary=true
autosecondary=false
doNewSend(["5", [primary, true]]);
doNewSend(["13c", [1, 7, 0]]);
doNewSend(["13c", [0, 7, 0]]);
doNewSend(["13c", [0, 0, 1]]);
doNewSend(["13c", [0, 18, 1]]);
doNewSend(["c", [1]]);
setTimeout( () => {
autoprimary=false
autosecondary=true
doNewSend(["13c", [1, 53, 0]]);
doNewSend(["13c", [0, 53, 0]]);
doNewSend(["5", [secondary, true]]);
}, 90);

setTimeout( () => {
autosecondary=false
doNewSend(["5", [primary, true]]);
doNewSend(["c", [0, null]]);
doNewSend(["13c", [1, 12, 0]]);
doNewSend(["13c", [0, 12, 0]]);
doNewSend(["13c", [1, 11, 1]]);
doNewSend(["13c", [0, 11, 1]]);
autoaim = false;
}, 210);
}
}

if (e.keyCode == 85 && document.activeElement.id.toLowerCase() !== 'chatbox') {


doNewSend(["ch", [""]]);
autoaim = true
autoprimary=true
doNewSend(["5", [primary, true]]);
doNewSend(["13c", [0, 7, 0]]);
doNewSend(["13c", [0, 0, 1]]);
doNewSend(["7", [3]]);
setTimeout(() => {
doNewSend(["6", [5]]);
doNewSend(["6", [17]]);
doNewSend(["6", [31]]);
doNewSend(["6", [23]]);
doNewSend(["6", [9]]);
doNewSend(["6", [38]]);
}, 100);
setTimeout(() => {
autoprimary=false
autosecondary=true
doNewSend(["5", [secondary, true]]);
doNewSend(["13c", [0, 53, 0]]);
}, 190);
setTimeout(() => {
doNewSend(["13c", [0, 7, 0]]);
doNewSend(["13c", [0, 0, 1]]);
autoprimary=true
autosecondary=false
doNewSend(["6", [4]]);
}, 240);
setTimeout(() => {
autoprimary=false
autosecondary=true
doNewSend(["6", [15]]);
}, 360);
setTimeout(() => {
doNewSend(["7", [3]]);
autosecondary=false
doNewSend(["5", [primary, true]]);
doNewSend(["13c", [0, 6, 0]]);
doNewSend(["13c", [0, 11, 1]]);
autoaim=false
}, 480);
}
})

document.addEventListener('keyup', (e)=>{
spikePlacer.stop(e.keyCode);
fourSpawnpader.stop(e.keyCode);
boostPlacer.stop(e.keyCode);
millPlacer.stop(e.keyCode);
turretPlacer.stop(e.keyCode);
healer1.stop(e.keyCode);
healer2.stop(e.keyCode);
})

function isElementVisible(e) {
return (e.offsetParent !== null);
}

function fourSpawnpad() {
place(spawnpadType, myPlayer.dir + toRad(135));
place(spawnpadType, myPlayer.dir + toRad(150));
place(spawnpadType, myPlayer.dir + toRad(165));
place(spawnpadType, myPlayer.dir + toRad(180));
place(spawnpadType, myPlayer.dir + toRad(270))
place(spawnpadType, myPlayer.dir + toRad(360));
}

function toRad(angle) {
return angle * 0.01745329251;
}

function dist(a, b){


return Math.sqrt( Math.pow((b.y-a[2]), 2) + Math.pow((b.x-a[1]), 2) );
}
(function() {
'use strict';
var SoreHolder = document.getElementById('storeHolder');
SoreHolder.scrollTop = 0;
document.addEventListener('keydown', function(e) {
if( e.keyCode === 115){//F4 for turret
SoreHolder.scrollTop = 1850;
};
if( e.keyCode === 113){//f2 for bull
SoreHolder.scrollTop = 1450;
};
})
})();

(function() {
var k = function(action){
var eventObj = document.createEvent("Events");

eventObj.initEvent("keydown", true, true);


eventObj.keyCode = 75;
eventObj.which = 75;

document.body.dispatchEvent(eventObj);
};

var killSpaceBar = function(evt) {

var target = evt.target || {},


isInput = ("INPUT" == target.tagName || "TEXTAREA" == target.tagName ||
"SELECT" == target.tagName || "EMBED" == target.tagName);

if(isInput || !target.tagName) return;

if(target && target.getAttribute && target.getAttribute('role') ===


'textbox') return;
if (evt.keyCode === 32) {
evt.preventDefault();
k();
}
};

document.addEventListener("keydown", killSpaceBar, false);

})();
document.addEventListener('keydown', function(e){
if (e.keyCode == 187){
if (document.activeElement.id == 'chatBox') return;
if (document.activeElement.id == 'allianceInput') return;
let Storekey = document.getElementById('storeMenu');
if (Storekey.style.display == "none")
{
Storekey.style.display = "block"
}
else if (Storekey.style.display == "block")
{
Storekey.style.display = "none"
}
}
})

function animate(space, chance) {


let result = '?';
let characters;
if(space) {
characters = ' m16 ';
} else {
characters = 'm16';
}
if(space) {
characters = characters.padStart((30 - characters.length) / 2 +
characters.length)
characters = characters.padEnd(30);
}
let count = 0;
for (let i = 0; i < characters.length; i++ ) {
if(Math.floor(Math.random() * chance) == 1 && characters.charAt(i) != "-"
&& count < 2 && characters.charAt(i) != " ") {
result += "!";
count++
} else {
result += characters.charAt(i);
}
}
return result;
}

function update() {
for (let i=0;i<9;i++){
if (isElementVisible(document.getElementById("actionBarItem" +
i.toString()))){
primary = i;
}
}

for (let i=9;i<16;i++){


if (isElementVisible(document.getElementById("actionBarItem" +
i.toString()))){
secondary = i;
}
}

for (let i=16;i<19;i++){


if (isElementVisible(document.getElementById("actionBarItem" +
i.toString()))){
foodType = i - 16;
}
}

for (let i=19;i<22;i++){


if (isElementVisible(document.getElementById("actionBarItem" +
i.toString()))){
wallType = i - 16;
}
}

for (let i=22;i<26;i++){


if (isElementVisible(document.getElementById("actionBarItem" +
i.toString()))){
spikeType = i - 16;
}
}

for (let i=26;i<29;i++){


if (isElementVisible(document.getElementById("actionBarItem" +
i.toString()))){
millType = i - 16;
}
}

for (let i=29;i<31;i++){


if (isElementVisible(document.getElementById("actionBarItem" +
i.toString()))){
mineType = i - 16;
}
}

for (let i=31;i<33;i++){


if (isElementVisible(document.getElementById("actionBarItem" +
i.toString()))){
boostType = i - 16;
}
}

for (let i=33;i<36;i++){


if (isElementVisible(document.getElementById("actionBarItem" +
i.toString()))){
turretType = i - 16;
}
}
for (let i=36;i<37;i++){
if (isElementVisible(document.getElementById("actionBarItem" +
i.toString()))){
spawnpadType = i - 16;
}
}

for (let i=37;i<39;i++){


if (isElementVisible(document.getElementById("actionBarItem" +
i.toString()))){
turretType = i - 16;
}
}
}
document.getElementById("gameName").style.color = "red";
setInterval(() => {
setTimeout( () => {
document.getElementById("gameName").innerHTML = "m16"
setTimeout( () => {
document.getElementById("gameName").innerHTML = "best gun"
setTimeout( () => {
document.getElementById("gameName").innerHTML = "v2!"
}, 1200);
}, 1200);
}, 1200);
}, 800);
document.getElementById("gameName").innerHTML = "m16"
document.getElementById('loadingText').innerHTML = ' ';
document.querySelector("#leaderboard").appendChild(
(function() {
let text = "ms - ";
let oldPing = 0;
const pingSpan = document.createElement("span");
pingSpan.id = "pingTime";
pingSpan.textContent = text;
pingSpan.style.display = "inline-block";
setInterval(function() {
typeof pingTime !== "undefined" &&
oldPing !== pingTime &&
((oldPing = pingTime),
(pingSpan.textContent = text + oldPing),
(function() {
if (oldPing <= 30) {
pingSpan.style.color = "white";
}
if (oldPing >= 31 && oldPing <= 100) {
pingSpan.style.color = "white";
}
if (oldPing >= 101 && oldPing <= 125) {
pingSpan.style.color = "white";
}
if (oldPing >= 126 && oldPing <= 155) {
pingSpan.style.color = "white";
}
if (oldPing >= 156 && oldPing <= 200) {
pingSpan.style.color = "white";
}
if (oldPing >= 201 && oldPing <= 275) {
pingSpan.style.color = "white";
}
if (oldPing >= 276 && oldPing <= 350) {
pingSpan.style.color = "white";
}
if (oldPing >= 351 && oldPing <= 500) {
pingSpan.style.color = "white";
}
if (oldPing >= 501 && oldPing <= 1600) {
pingSpan.style.color = "white";
}
if (oldPing >= 1601 && oldPing <= 10000) {
pingSpan.style.color = "white";
}
})());
});
return pingSpan;
})()
);
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match http://*/*
// @grant none
// ==/UserScript==

(function() {
'use strict';

// Your code here...


})();

You might also like