Greasy Fork is available in English.

SISI´s HacK | HAT MACRO | Katana + Musket | AUTOHEAL | Anti-Insta | INSTAKILL | NO ADS and more

[N] For 1 Windmill | [O] For 5 Windmills | [G] for BoostSpike | [H] For 2 Turrets | [F] For Trap or BoostPad | [V] For Spike | [P] For 4 Spikes | [ArrowLeft] for Active/Unactive AutoHeal |[R] for Insta-Kill and some oher Instakills | [I] for 4 Trap or BoostPad | [L] for Musket | [1 on NumPad] for Katana + Hammer | [9 on NumPad] for Spinning Spikes | | | If you chatted you must click once on the screen! )))Rainbow HP-Bar((( !! Press "insert" to open Music-Menu !!

Verzia zo dňa 10.05.2021. Pozri najnovšiu verziu.

// ==UserScript==
// @name         SISI´s HacK | HAT MACRO  | Katana + Musket | AUTOHEAL |  Anti-Insta  |  INSTAKILL | NO ADS and more
// @version      7.3
// @description  [N] For 1 Windmill | [O] For 5 Windmills  |  [G] for BoostSpike  | [H] For 2 Turrets | [F] For Trap or BoostPad | [V] For Spike | [P] For 4 Spikes | [ArrowLeft] for Active/Unactive AutoHeal |[R] for Insta-Kill and some oher Instakills | [I] for 4 Trap or BoostPad  |  [L] for Musket  |  [1 on NumPad] for Katana + Hammer  |  [9 on NumPad] for Spinning Spikes  | | |  If you chatted you must click once on the screen!  )))Rainbow HP-Bar(((  !! Press "insert" to open Music-Menu !!
// @author       BiG_LoOseR
// @match        *://moomoo.io/*
// @match        *://dev.moomoo.io/*
// @match        *://*.moomoo.io/*
// @match        *://sandbox.moomoo.io/*
// @require      https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.5/socket.io.min.js
// @require      https://greasyfork.org/scripts/368273-msgpack/code/msgpack.js?version=598723
// @require      http://code.jquery.com/jquery-3.3.1.min.js
// @require      https://cdn.jsdelivr.net/npm/msgpack-lite@0.1.26/dist/msgpack.min.js
// @require      https://cdn.jsdelivr.net/npm/fontfaceobserver@2.1.0/fontfaceobserver.standalone.min.js
// @namespace    https://greasyfork.org/users/752105
// ==/UserScript==



let hue = 0;

let replaceInterval = setInterval(() => {
if (CanvasRenderingContext2D.prototype.roundRect) {
  CanvasRenderingContext2D.prototype.roundRect = ((oldFunc) => function() { if (this.fillStyle == "#8ecc51") this.fillStyle = `hsl(${hue}, 100%, 50%)`; return oldFunc.call(this, ...arguments); })(CanvasRenderingContext2D.prototype.roundRect);
  clearInterval(replaceInterval);
}}, 10);

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

setInterval(changeHue, 10);


var autoreloadloop;
var autoreloadenough = 0;

autoreloadloop = setInterval(function () {
    if (autoreloadenough < 200) {
        if (document.getElementById("loadingText").innerHTML == `disconnected<a href="javascript:window.location.href=window.location.href" class="ytLink">reload</a>`) {
            document.title = "Disconnected? NP";
            clearInterval(autoreloadloop);
            setTimeout(function () {document.title = "Moo Moo";}, 1000)
            location.reload();
        }
        autoreloadenough++;
    }
    else if (autoreloadenough >= 300) {
        clearInterval(autoreloadloop);
        document.title = "there you are";
        setTimeout(function () {document.title = "Moo Moo";}, 1000)
    }
}, 50);


setInterval(() => {
    setTimeout(() => {
        document.getElementById('chatBox').placeholder = "💬writing💬";
        setTimeout(() => {
            document.getElementById('chatBox').placeholder = "💬writing.💬";
            setTimeout(() => {
                document.getElementById('chatBox').placeholder = "💬writing..💬";
                setTimeout(() => {
                    document.getElementById('chatBox').placeholder = "💬writing...💬";
                }, 100);
            }, 100);
        }, 100);
    }, 100);
}, 500)


function Hat(id){
    storeBuy(id);
    storeEquip(id);
}

document.getElementById("enterGame").addEventListener('click', autohide);
function autohide(){
$("#ot-sdk-btn-floating").hide();
}
document.getElementById("moomooio_728x90_home").style.display = "none";
$("#moomooio_728x90_home").parent().css({display: "none"});
document.getElementById('linksContainer2').innerHTML = ' [N] For 1 Windmill | [O] For 5 Windmills | [H] For 2 Turrets |  [G] for Boost + Spike  | [F] For Trap BoostPad | [V] For Spike | [P] For 4 Spikes | [ArrowRight] for Active/Unactive Auto Hat | [ArrowLeft] for Active/Unactive AutoHeal | [R] for Insta-Kill | [I] for 4 Trap or BoostPad ';
document.getElementById('gameName').innerHTML = 'SISI´s bEsT HacK';
document.getElementById('loadingText').innerHTML = ' LoaDiNg YouR NicE hAcK '
document.getElementById('diedText').innerHTML = ' !!💀Revange💀!! ';
document.getElementById('enterGame').innerHTML = ' have a nice game ';
document.getElementById('desktopInstructions').innerHTML = '  [N] For 1 Windmill.............................. [O] For 5 Windmills.......................... [H] For Turrets................................... [F] For BoostPad............................... [V] For Spike...................................... [P] For 4 Spikes.............................. [B] for Active/Unactive Auto Hat.  [T] for Active/Unactive AutoHeal. [R] for Insta-Kill................................ [I] for 4 Trap or BoostPad.............. [L] for Musket.................................... [1/Numpad] for Katana + Hammer............................................... [9/Numpad] for Spinning Spikes..  '
document.getElementById('gameName').style.color = "#fe1414";
document.getElementById('diedText').style.color = "#fe3200";
document.getElementById('loadingText').style.color = "#f76f16";
document.getElementById('nameInput').style.color = "#F70606";
document.getElementById("enterGame").style.color = "#000";
document.getElementById('leaderboard').style.color = "#ff1f3d";
document.title = ' SISI´s HacK ';
document.getElementById("leaderboard").append ('SISI´s HacK');
document.getElementById("promoImgHolder").remove();
document.getElementById('ageText').style.color = "#ff1f3d";
//ANTI AD
document.querySelector("#pre-content-container").remove();

$('.menuCard').css({'white-space': 'normal',
                    'text-align': 'left',
                    'background-color': 'rgba(0, 0, 0, 0.74)',
                    '-moz-box-shadow': '0px 0px rgba(255, 255, 255, 0)',
                    '-webkit-box-shadow': '0px 0px rgba(255, 255, 255, 0)',
                    'box-shadow': '0px 0px rgba(255, 255, 255, 0)',
                    '-webkit-border-radius': '0px',
                    '-moz-border-radius': '0px',
                    'border-radius': '0px',
                    'margin': '15px',
                    'margin-top': '15px'});

$('.actionBarItem').css({'-webkit-border-radius': '0px',
                         'border-radius': '3px',
                         'background-color': 'rgba(0, 0, 0, 0.4)'});

$('.menuCard').css({'color':'#808080'});

$("#ageBarBody").css({'background-color':'red'});

$("#youtuberOf").remove();
$("#adCard").remove();
$("#mobileInstructions").remove();
$("#downloadButtonContainer").remove();
$("#mobileDownloadButtonContainer").remove();
$(".downloadBadge").remove();

$("#ageBarContainer").append('</br><div id="hacktext"></div><div style="width: 100%;position: absolute;bottom: 94px;text-align: center;color:blue;font-size: 24px;" id="freetext"></div><div style="width: 100%;position: absolute;bottom: 144px;text-align: center;color: #ed3f00;font-size: 24px;" id="ptext"></div><div style="width: 100%;position: absolute;bottom: 224px;text-align: center;color: #9a008b;font-size: 24px;" id="ctext"></div><div style="width: 100%;position: absolute;top: 100px;text-align: center;color: black;font-size: 12px;" id="bilgitext">[Z] Tank Gear | [U] Turret Gear | [T] Bull Helmet | [J] Emp Helmet | [B] Soldier Helmet | [<] Fish Hat | [,] Winter Cap | [Shift] Booster Helmet</div><div style="width: 100%;position: absolute;bottom: 170px;text-align: center;color: darkgreen;font-size: 24px;" id="atext"></div><div style="width: 100%;position: absolute;bottom: 196px;text-align: center;color: black;font-size: 24px;" id="mtext"></div>');

$( "#errorNotification" ).after( '<div id="moddedMenu"><div class="titleMM">SISI´s MeNu</div><div class="one"><label class="switch"></span></label><div class="two"><div class="text"><b>____made by BiG_KinG____ <label class="container">Press "insert" to open Music menu!<span class="checkmark"></label><label class="container"></b><hr></span></label><label>BIOM MAP<input type="checkbox" id="MaP"><span class="checkmark"></label><label class="container"></b><hr></span></label><label><label class="container">Bread Cat Map<input type="checkbox" id="bread_cat"><span class="checkmark"></label><label class="container"></b><hr></span></label><label><label class="container">Another Stupid Cat Gif map?<input type="checkbox" id="Stupid_cat_gif"><span class="checkmark"></label><label class="container"></b><hr></span></label><label><label class="container"><span class="checkmark"></label><label lass="container"></b><hr></span>Middle Big Store?</label><label><input type="checkbox" id="Middle_big_store"><span class="checkmark"></label><label lass="container"></b><hr></span>Big Store?</label><label><input type="checkbox" id="Big_store"><span class="checkmark"></label><label lass="container"><span><div></div>');
(function() {var css = [
	"  #moddedMenu {",
	"    position: absolute;",
	"    top: 7%;",
	"    left: 0px;",
	"    width: 3%;",
	"    height: 50.5%;",
	"    background: rgba(0,0,0,0.6);",
	"    border: 3px solid rgba(0,0,0,0.9);",
	"    border-top-right-radius: 30px;",
	"    border-bottom-right-radius: 30px;",
	"    transition: 1s;",
	"    z-index: 999;",
	"  }",
	"",
	"  #moddedMenu:hover {",
	"    width: 20%;",
	"  }",
	"",
	"  .titleMM {",
	"    color: red;",
	"    border-bottom: 3px solid red;",
	"    font-size: 32px;",
	"    transform: rotate(90deg);",
	"    white-space: nowrap;",
	"    margin-top: 250%;",
	"    transition: 1s;",
	"  }",
	"",
	"  #moddedMenu:hover > .titleMM {",
	"    transform: rotate(180deg) translate(0,-1580%)",
	"  }",
	"",
	"  .switch {",
	"    margin-top: 5px;",
	"    margin-left: 10px;",
	"    position: absolute;",
	"    width: 60px;",
	"    height: 34px;",
	"    transition: opacity 1s;",
	"    opacity: 0;",
	"  }",
	"",
	"  .text {",
	"    bottom: 76%;",
	"    position: absolute;",
	"    color: red;",
	"    font-size: 20px;",
	"    left: 0%;",
	"    display: none;",
	"    transition: 1s;",
	"  }",
	"",
	"  .text > b { ",
	"    font-size: 20px;",
	"    color: red;",
	"  }",
	"",
	"  b:hover { ",
	"    color: red;",
	"  }",
	"",
	"  .one > .text {",
	"    top: 5.5%;",
	"  }",
	"",
	"  .two > .text {",
	"    top: 10.7%;",
	"  }",
	"",
	"  .three > .text {",
	"    top: 37.5%;",
	"  }",
	"",
	"  .four > .text {",
	"    top: 47.5%;",
	"  }",
	"",
	"  .five > .text {",
	"    top: 57.5%;",
	"  }",
	"",
	"  .six > .text {",
	"    top: 67.5%;",
	"  }",
	"",
	"  .seven > .text {",
	"    top: 77.5%;",
	"  }",
	"",
	"  .eight > .text {",
	"    top: 87.5%;",
	"  }",
	"",
	"  #moddedMenu:hover .switch {",
	"    opacity: 1;",
	"  }",
	"",
	"  #moddedMenu:hover .text {",
	"    display: block;",
	"  }",
	"",
	"  .one > .switch {",
	"    top: 15%;",
	"  }",
	"",
	"  .two > .switch {",
	"    top: 25%;",
	"  }",
	"",
	"  .three > .switch {",
	"    top: 35%;",
	"  }",
	"",
	"  .four > .switch {",
	"    top: 45%;",
	"  }",
	"",
	"  .five > .switch {",
	"    top: 55%;",
	"  }",
	"",
	"  .six > .switch {",
	"    top: 65%;",
	"  }",
	"",
	"  .seven > .switch {",
	"    top: 75%;",
	"  }",
	"",
	"  .eight > .switch {",
	"    top: 85%;",
	"  }",
	"",
	"  .switch input {",
	"    display:none;",
	"  }",
	"",
	"  .slider {",
	"    position: absolute;",
	"    cursor: pointer;",
	"    top: 0;",
	"    left: 0;",
	"    right: 0;",
	"    bottom: 0;",
	"    background-color: red;",
	"    -webkit-transition: .4s;",
	"    transition: .4s;",
	"  }",
	"",
	"  .slider:before {",
	"    position: absolute;",
	"    content: \"\";",
	"    height: 26px;",
	"    width: 26px;",
	"    left: 4px;",
	"    bottom: 4px;",
	"    background-color: white;",
	"    -webkit-transition: .4s;",
	"    transition: .4s;",
	"  }",
	"",
	"  input:checked + .slider {",
	"    background-color: red;",
	"  }",
	"  ",
	"  input:focus + .slider {",
	"    box-shadow: 0 0 1px red;",
	"  }",
	"",
	"  input:checked + .slider:before {",
	"    -webkit-transform: translateX(26px);",
	"    -ms-transform: translateX(26px);",
	"    transform: translateX(26px);",
	"  }",
	"",
	"  .slider.round {",
	"    border-radius: 34px;",
	"  }",
	"",
	"  .slider.round:before {",
	"    border-radius: 50%;",
	"",
].join("\n");
if (typeof GM_addStyle != "undefined") {
	GM_addStyle(css);
} else if (typeof PRO_addStyle != "undefined") {
	PRO_addStyle(css);
} else if (typeof addStyle != "undefined") {
	addStyle(css);
} else {
	var node = document.createElement("style");
	node.type = "text/css";
	node.appendChild(document.createTextNode(css));
	var heads = document.getElementsByTagName("head");
	if (heads.length > 0) {
		heads[0].appendChild(node);
	} else {
		document.documentElement.appendChild(node);
	}
}
})();

var musics=[{
  name: "Vmz - Plutão",
  msc: "https://cdn.discordapp.com/attachments/829054751601721354/829057185056948276/vmz_plutao_6979047102050399469.mp3"
}, {
  name: "MhRap - Vibe do zabuza",
  msc:  "https://cdn.discordapp.com/attachments/829054751601721354/829058226171019294/vibe_zabuza_animes_style_trap_prod_ihaksi_mhrap_-5421045193047514059.mp3"
},{
  name: "Vmz - Eu sou o Zetsu",
  msc: "https://cdn.discordapp.com/attachments/829054751601721354/829059227401060353/vmz_eu_sou_zetsu_-688032162626482960.mp3"
}, {
  name: "Rob Gasser - Ricochet",
  msc: "https://cdn.discordapp.com/attachments/829054751601721354/829061218475049040/rob_gasser_ricochet_ncs_release_147707616798364197.mp3"
}, {
  name: "Astronomia Remix",
  msc: "https://cdn.discordapp.com/attachments/728226830414381056/731040059054096404/Astronomia_Remix_By_Jiaye_Trending_TikTok_EDM_Full_Version.mp3"
}]


let musicmenu = document.createElement('div')
musicmenu.innerHTML="<h1 style='color:#fff;text-shadow:2px 2px 2px black;margin:10px;font-weight;1000;'>PlayList</h1><br>"


for(let i=0;i<musics.length;i++){
  musicmenu.innerHTML+=`
  <h3 style="text-shadow:1px 1px 2px black;margin-top:15px;margin-left:2.5%">`+musics[i].name+`</h3>
  <audio style="width: 90%; margin-left: 2.5%; margin-top:10px;" src="`+musics[i].msc+`" controls="" loop=""></audio><hr>
  `
}
musicmenu.style=`
display:none;
overflow:auto;
position:absolute;
top:50%;
left:50%;
margin-top:-200px;
margin-left:-350px;
z-index:1000000;
border:7px solid black;
width:700px;
height:400px;
border-radius:25px;
background-color:#f71b1b;
`
document.body.prepend(musicmenu)
document.addEventListener("keydown", (e)=>{
  if(e.keyCode == 45){
      if(musicmenu.style.display=="block"){
        musicmenu.style.display="none"
      }else{
        musicmenu.style.display="block"
      }
  }
})


var checkbox = document.querySelector("#MaP")

checkbox.addEventListener('change', function() {
    if (this.checked) {
        $("#mapDisplay").css({background: `url('http://i.imgur.com/Qllo1mA.png')`});
    } else {
        $("#mapDisplay").css({background: `rgba(0, 0, 0, 0.25)`})
    }
})


var checkbox2 = document.querySelector("#bread_cat")

checkbox2.addEventListener('change', function() {
    if (this.checked) {
        $("#mapDisplay").css({background: `url('https://lh3.googleusercontent.com/5RZMHxal_5gtIhvx_ct9h8EI_YMtYgOK94snff4lzVVPq2IMcRuzaIo4bt3-1BZWCMmI=s130')`});
    } else {
        $("#mapDisplay").css({background: `rgba(0, 0, 0, 0.25)`})
    }
})


var checkbox3 = document.querySelector("#Stupid_cat_gif")

checkbox3.addEventListener('change', function() {
    if (this.checked) {
        $("#mapDisplay").css({background: `url('https://media0.giphy.com/media/GaqnjVbSLs2uA/giphy.gif?cid=ecf05e47ea99c7380f6deb1064d8804c8eaeec5c01af4d9d&rid=giphy.gif')`});
    } else {
        $("#mapDisplay").css({background: `rgba(0, 0, 0, 0.25)`})
    }
})


var checkbox5 = document.querySelector("#Big_store")

checkbox5.addEventListener('change', function() {
    if (this.checked) {
        document.getElementById("storeHolder").style = "height: 1000px; width: 480px;";
    } else {
        document.getElementById("storeHolder").style = "height: 200px; width: 400px;";
    }
})


var checkbox6 = document.querySelector("#Middle_big_store")

checkbox6.addEventListener('change', function() {
    if (this.checked) {
        document.getElementById("storeHolder").style = "height: 300px; width: 435px;";
    } else {
        document.getElementById("storeHolder").style = "height: 200px; width: 400px;";
    }
})


let newImg = document.createElement("img");
newImg.src = "data:image/png;base64,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";
newImg.style = `position: absolute; bottom: 200px; left: 15px; z-index: 100000; width: 65px; height: 65px; cursor: pointer;`;
document.body.prepend(newImg);

newImg.addEventListener("click", () => {
    let w = window.open("https://discord.gg/4skVv2dZZs", null, `height=650, width=1199, status=yes, toolbar=no, menubar=no, location=no`);
});

'use strict';
function _toConsumableArray(arr) {
if (Array.isArray(arr)) {
var i = 0;
var arr2 = Array(arr.length);
for (; i < arr.length; i++) {
arr2[i] = arr[i];
}
return arr2;
} else {
return Array.from(arr);
}
}
var mouseX = void 0;
var mouseY = void 0;
var width = void 0;
var height = void 0;
setInterval(function() {
if (clanToggle == 1) {
doNewSend(['9', [null]]);
doNewSend(['8', ['jellow']]);
}
doNewSend(['testing', [6]]);
}, 200);
setInterval(function() {
if (messageToggle == 1) {
doNewSend(['ch', [' /$&%(EZ)%&$\ ']]);
}
}, 0);
setInterval(function() {
if (autoaim == true) {
doNewSend(['2', [nearestEnemyAngle]]);
}
}, 0);
setInterval(function() {
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(a, b) {
var target = document.getElementById('gameCanvas');
target.dispatchEvent(new MouseEvent('mousemove', {
clientX : a,
clientY : b
}));
}
var coreURL = new URL(window.location.href);
window.sessionStorage.force = coreURL.searchParams.get('fc');

const CanvasAPI = document.getElementById("gameCanvas")
CanvasAPI.addEventListener("mousedown", buttonPressD, false);
//2 - right
//1 - scroll wheel
//0 - left
    function buttonPressD(e) {
    if (e.button == 2) {
        hat(40);
        acc(21);
        doNewSend(["7", [1]])
        setTimeout( () => {
acc(11);
if (myPlayer['y'] < 2400) {
hat(15);
} else {
if (myPlayer['y'] > 6850 && myPlayer['y'] < 7550) {
hat(31);
} else {
hat(12);
}
}
            doNewSend(["7", [1]])
             }, 100);
    }
        if (e.button == 0) {
        hat(7);
        acc(21);
            doNewSend(["7", [1]])
        setTimeout( () => {
acc(11);
if (myPlayer['y'] < 2400) {
hat(15);
} else {
if (myPlayer['y'] > 6850 && myPlayer['y'] < 7550) {
hat(31);
} else {
hat(12);
}
}
            doNewSend(["7", [1]])

             }, 100);
    }
    }

var lasthat = 6;
var instahat = 0;
var nearestEnemy;
var nearestEnemyAngle;
var nearestTribeAngle;
var isEnemyNear;
var instaSpeed = 230;
var primary;
var secondary;
var foodType;
var wallType;
var spikeType;
var millType;
var mineType;
var boostType;
var turretType;
var spawnpadType;
var autoaim = false;
var tick = 1;
var oldHat;
var oldAcc;
var enemiesNear;
var normalHat;
var normalAcc;
var ws;
var msgpack5 = msgpack;
var boostDir;
var myPlayer = {
id : null,
x : null,
y : null,
dir : null,
object : null,
weapon : null,
clan : null,
isLeader : null,
hat : null,
accessory : null,
isSkull : null
};
var healSpeed = 40;
var messageToggle = 0;
var clanToggle = 0;
var healToggle = 1;
var hatToggle = 1;
var antiinsta = 0;

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(data) {
if (!ws) {
document.ws = this;
ws = this;
socketFound(this);
}
this.oldSend(data);
};
function socketFound(socket) {
socket.addEventListener('message', function(data) {
handleMessage(data);
});
}
'use strict';
function handleMessage(_x17) {
var b = msgpack5['decode'](new Uint8Array(_x17['data']));
var node = void 0;
if (b['length'] > 1) {
node = [b[0]]['concat'](_toConsumableArray(b[1]));
if (node[1] instanceof Array) {
node = node;
}
} else {
node = b;
}
var token = node[0];
if (!node) {
return;
}
if (token === 'io-init') {
var docElem = document['getElementById']('gameCanvas');
width = docElem['clientWidth'];
height = docElem['clientHeight'];
$(window)['resize'](function() {
width = docElem['clientWidth'];
height = docElem['clientHeight'];
});
docElem['addEventListener']('mousemove', function(res) {
mouseX = res['clientX'];
mouseY = res['clientY'];
});
}
if (token == '1' && myPlayer['id'] == null) {
myPlayer['id'] = node[1];
}
if (token == '33') {
enemiesNear = [];
var f = 0;
for (; f < node[1]['length'] / 13; f++) {
var object = node[1]['slice'](13 * f, 13 * f + 13);
if (object[0] == myPlayer['id']) {
myPlayer['x'] = object[1];
myPlayer['y'] = object[2];
myPlayer['dir'] = object[3];
myPlayer['object'] = object[4];
myPlayer['weapon'] = object[5];
myPlayer['clan'] = object[7];
myPlayer['isLeader'] = object[8];
myPlayer['hat'] = object[9];
myPlayer['accessory'] = object[10];
myPlayer['isSkull'] = object[11];
}
}
}
isEnemyNear = ![];
if (enemiesNear) {
nearestEnemy = enemiesNear['sort'](function(line, i) {
return dist(line, myPlayer) - dist(i, 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)) < 205) {
isEnemyNear = !![];
if (autoaim == ![] && myPlayer['hat'] != 7 && myPlayer['hat'] != 53) {
normalHat = 7;
normalAcc = 21;
if (primary != 8) {
}
}
}
}
    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 (token == 'h' && node[1] == myPlayer['id']) {
if (node[2] < 95 && node[2] > 0 && healToggle == 1) {
setTimeout(function() {
place(foodType, null);
place(foodType);
}, healSpeed);
} else if (node[2] < 41 && node[2] > 0 && antiinsta == 1) {
            hat(6);
               place(foodType);
               place(foodType);
               place(foodType);
               place(foodType);
            setTimeout( () => {
               place(foodType);
               place(foodType);
               place(foodType);
             }, healSpeed);
        }
}
    if (token == 'h' && node[1] == myPlayer['id']) {
    if (node[2] < 55 && node[2] > 0 && antiinsta == 1) {
            hat(22);
               place(foodType);
               place(foodType);
               place(foodType);
               place(foodType);
        } else if (node[2] < 30 && node[2] > 0 && antiinsta == 1) {
               hat(6)
                   place(foodType);
                   place(foodType);
                   place(foodType);
                   place(foodType);
                   place(foodType);
                   place(foodType);
                   place(foodType);
        }
    }
    if (token == 'h' && node[1] == myPlayer['id']) {
    if (node[2] < 45 && node[2] > 0 && antiinsta == 1) {
            hat(6);
               place(foodType);
               place(foodType);
               place(foodType);
               place(foodType);
               place(foodType);
               place(foodType);
        }
    }
update();
}
;
function doNewSend(data) {
ws.send(new Uint8Array(Array.from(msgpack5.encode(data))));
}
function acc(op) {
doNewSend(['13c', [0, 0, 1]]);
doNewSend(['13c', [0, op, 1]]);
}
function hat(ctx) {
doNewSend(['13c', [0, ctx, 0]]);
}
function place(p__14702) {
var angle = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Math.atan2(mouseY - height / 2, mouseX - width / 2);
doNewSend(['5', [p__14702, null]]);
doNewSend(['c', [1, angle]]);
doNewSend(['c', [0, angle]]);
doNewSend(['5', [myPlayer.weapon, true]]);
doNewSend(['5', [p__14702, null]]);
doNewSend(['c', [1, angle]]);
doNewSend(['c', [0, angle]]);
doNewSend(['5', [myPlayer.weapon, true]]);
}
function boostSpike() {
if (boostDir == null) {
boostDir = nearestEnemyAngle;
}
place(spikeType, boostDir + toRad(90));
place(spikeType, boostDir - toRad(90));
place(boostType, boostDir);
doNewSend(['33', [boostDir]]);
}
'use strict';
var repeater = function mockedDriverFn(element, method, options) {
var d = ![];
var e = undefined;
return {
'start' : function start(child) {
if (child == element && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
d = !![];
if (e === undefined) {
e = setInterval(function() {
method();
if (!d) {
clearInterval(e);
e = undefined;
console['log']('claered');
}
}, options);
}
}
},
'stop' : function Chat(parent) {
if (parent == element && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
d = ![];
}
}
};
};
'use strict';
var healer = repeater(81, function() {
    place(foodType);
    place(foodType);
    place(foodType);
    place(foodType);
}, 0);
var boostPlacer = repeater(70, function() {
place(boostType);
}, 0);
var spikePlacer = repeater(86, function() {
place(spikeType);
}, 0);
var turretPlacer = repeater(72, function() {
place(turretType);
}, 0);
var boostSpiker = repeater(71, function() {
place(boostSpike());
}, 0);
var millPlacer = repeater(78, function() {
place(millType);
}, 0);
document['addEventListener']('keydown', function(a) {
    healer['start'](a['keyCode']);
    boostPlacer['start'](a['keyCode']);
    spikePlacer['start'](a['keyCode']);
    turretPlacer['start'](a['keyCode']);
    boostSpiker['start'](a['keyCode']);
    millPlacer['start'](a['keyCode']);

if (a['keyCode'] == 79 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
var b = 0;
for (; b < 5; b++) {
var groupY = myPlayer['dir'] + toRad(b * 72);
place(millType, groupY);
}
}
if (a['keyCode'] == 80 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
var d = 0;
for (; d < 4; d++) {
groupY = myPlayer['dir'] + toRad(d * 90);
place(spikeType, groupY);
}
}
if (a['keyCode'] == 73 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
var e = 0;
for (; e < 4; e++) {
groupY = myPlayer['dir'] + toRad(e * 90);
place(boostType, groupY);
}
}
if (a['keyCode'] == 103 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
var f = 0;
for (; f < 4; f++) {
groupY = myPlayer['dir'] + toRad(f * 90);
place(spikeType, groupY);
}
}
if (a['keyCode'] == 72 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
place(turretType, myPlayer['dir'] + toRad(45));
place(turretType, myPlayer['dir'] - toRad(45));
}
if (a['keyCode'] == 77 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
if (myPlayer['y'] < 2400) {
hat(15);
} else {
if (myPlayer['y'] > 6850 && myPlayer['y'] < 7550) {
hat(31);
} else {
hat(12);
}
}
acc(11);
}
        if(a['keyCode'] == 46 && document.activeElement.id.toLowerCase() !== 'chatbox') {
        antiinsta = (antiinsta + 1) % 2;
        if(antiinsta==1){
            doNewSend(["ch", ["ai on"]]);
        }else{
            doNewSend(["ch", ["ai off"]]);
        }
    }
if (a['keyCode'] == 32 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
Hat(7);
acc(21);
    setTimeout( () => {
place(spikeType, myPlayer['dir'] + toRad(45));
place(spikeType, myPlayer['dir'] - toRad(45));
        }, 75);
    setTimeout( () => {
     Hat(52);
        }, 25);
    setTimeout( () => {
            normalAcc = 11;
        if (myPlayer.y < 2400){
            normalHat = 15;
        } else if (myPlayer.y > 6850 && myPlayer.y < 7550){
            normalHat = 31;
        } else {
	        normalHat = 12;
        }
    }, 25);
    }
    if(a['keyCode'] == 173 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
        autoaim = true;
        doNewSend(["ch", ['Pls dont kill me.. me age 1 :V']]);
            doNewSend(["5", [primary, true]]);
        doNewSend(["13c", [0, 7, 0]]);
        doNewSend(["13c", [0, 0, 1]]);
        doNewSend(["13c", [0, 18, 1]]);
            doNewSend(["c", [1]]);

        setTimeout( () => {
            doNewSend(["6", [5]]);
        }, 100);

        setTimeout( () => {
            doNewSend(["13c", [0, 53, 0]]);
            place(spikeType, null);
        }, 200);

        setTimeout( () => {
            doNewSend(["5", [primary, true]]);
            doNewSend(["c", [0, null]]);
            doNewSend(["13c", [0, 0, 0]]);
            doNewSend(["13c", [0, 6, 0]]);
            doNewSend(["13c", [0, 19, 1]]);
            autoaim = false;
        }, 300);
    }
if (a['keyCode'] == 66 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
Hat(6);
acc(0);
doNewSend(['ch', ['<E/ Solider Helmet! /E>']]);
}
if (a['keyCode'] == 27 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
Hat(0);
doNewSend(['ch', ['<E/ Fast Hat unequiper! /E>']]);
}
if (a['keyCode'] == 85 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
Hat(53);
doNewSend(['ch', ['<E/ Turret Gear! /E>']]);
}
if (a['keyCode'] == 16 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
Hat(12);
doNewSend(['ch', ['<E/ Im a BOoSTer!!/E>']]);
}
if (a['keyCode'] == 188 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
Hat(15);
doNewSend(['ch', ['<E/ I like the snow! /E>']]);
}
if (a['keyCode'] == 60 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
Hat(31);
doNewSend(['ch', ['<E/ Im under Water /E>']]);
}
if (a['keyCode'] == 90 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
Hat(40);
doNewSend(['ch', ['<E/I must destroy something/E>']]);
}
if (a['keyCode'] == 74 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
Hat(22);
doNewSend(['ch', ['<E/ Ez, these turrets! /E>']]);
}
if (a['keyCode'] == 84 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
Hat(7);
acc(0)
doNewSend(['ch', ['<E/ Bull Helmet = - 5 HP /E>']]);
}
if (a['keyCode'] == 82 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
doNewSend(['ch', ['<E/Im your father you fish!/E>']]);
}
if (a['keyCode'] == 82 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
autoaim = !![];
doNewSend(['5', [primary, !![]]]);
doNewSend(['13c', [0, 7, 0]]);
doNewSend(['13c', [0, 0, 1]]);
doNewSend(['13c', [0, 19, 1]]);
doNewSend(['c', [1]]);
setTimeout(function() {
doNewSend(['13c', [0, 53, 0]]);
doNewSend(['5', [secondary, !![]]]);
}, instaSpeed - 130);
setTimeout(function() {
doNewSend(['5', [primary, !![]]]);
doNewSend(['c', [0, null]]);
doNewSend(['13c', [0, 6, 0]]);
autoaim = ![];
}, instaSpeed);
            setTimeout( () => {
            doNewSend(["ch", ["Hold up, wait a minute"]]);
            doNewSend(["5", [secondary, !![]]]);
        }, 1750);
        setTimeout( () => {
            doNewSend(["ch", ["Ok, lets go!"]]);
            doNewSend(["5", [primary, !![]]]);
        }, 4500);
            }
if (a['keyCode'] == 38 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
messageToggle = (messageToggle + 1) % 2;
}
if (a['keyCode'] == 40 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
clanToggle = (clanToggle + 1) % 2;
}
if (a['keyCode'] == 37 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
healToggle = (healToggle + 1) % 2;
if (healToggle == 0) {
if (hatToggle == 0) {
document['title'] = 'AutoHeal: OFF | AutoHat: OFF';
} else {
document['title'] = 'AutoHeal: OFF | AutoHat: ON';
}
} else {
if (hatToggle == 0) {
document['title'] = 'AutoHeal: ON | AutoHat: OFF';
} else {
document['title'] = 'AutoHeal: ON | AutoHat: ON';
}
}
}
if (a['keyCode'] == 76 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
autoaim = !![];
doNewSend(['5', [secondary, !![]]]);
doNewSend(['13c', [0, 53, 0]]);
doNewSend(['c', [1]]);
setTimeout(function() {
doNewSend(['6', [12]]);
}, 300);
setTimeout(function() {
doNewSend(['6', [15]]);
}, 300);
setTimeout(function() {
doNewSend(['c', [0]]);
doNewSend(['13c', [0, 6, 0]]);
doNewSend(['5', [primary, !![]]]);
autoaim = ![];
}, 300);
}
    if (a['keyCode'] == 190 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
    autoaim = true;
    doNewSend(["ch", ['LmAO']]);
       doNewSend(["5", [secondary, 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]]);

       }, 100);

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

       }, 200);

       setTimeout( () => {
           doNewSend(["c", [0]]);
           doNewSend(["5", [primary, true]]);
           autoaim = null;
       }, 300);
    }
if (a['keyCode'] == 97 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
doNewSend(['6', [4]]);
}
if (a['keyCode'] == 98 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
doNewSend(['6', [15]]);
}
if (a['keyCode'] == 99 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
doNewSend(['6', [28]]);
}
if (a['keyCode'] == 105 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
doNewSend(['6', [28]]);
doNewSend(['6', [25]]);
}
if (a['keyCode'] == 39 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
hatToggle = (hatToggle + 1) % 2;
if (healToggle == 0) {
if (hatToggle == 0) {
document['title'] = 'Heal: OFF | Hat: OFF';
} else {
document['title'] = 'Heal: OFF | Hat: ON';
}
} else {
if (hatToggle == 0) {
document['title'] = 'Heal: ON | Hat: OFF';
} else {
document['title'] = 'Heal: ON | Hat: ON';
}
}
}
});
document['addEventListener']('keyup', function(a) {
    healer['stop'](a['keyCode']);
    turretPlacer['stop'](a['keyCode']);
    boostPlacer['stop'](a['keyCode']);
    spikePlacer['stop'](a['keyCode']);
    boostSpiker['stop'](a['keyCode']);
    millPlacer['stop'](a['keyCode']);
;
if (a['keyCode'] == 71 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
setTimeout(function() {
doNewSend(['33', [null]]);
boostDir = null;
}, 10);
}
});
function isElementVisible(options) {
return options.offsetParent !== null;
}
function toRad(degrees) {
return degrees * 0.01745329251;
}
function dist(p1, p) {
return Math.sqrt(Math.pow(p.y - p1[2], 2) + Math.pow(p.x - p1[1], 2));
}
function animate(selector, margin) {
var output = '';
var str1 = void 0;
if (selector) {
str1 = ' /$&%(EZ)%&$\ ';
} else {
str1 = 'gg-gg';
}
if (selector) {
str1 = str1.padStart((30 - str1.length) / 2 + str1.length);
str1 = str1.padEnd(30);
}
var count = 0;
var i = 0;
for (; i < str1.length; i++) {
if (Math.floor(Math.random() * margin) == 1 && str1.charAt(i) != '' && count < 2 && str1.charAt(i) != '') {
output = output + '-';
count++;
} else {
output = output + str1.charAt(i);
}
}
return output;
}
'use strict';
function update() {
var event = 0;
for (; event < 9; event++) {
if (isElementVisible(document['getElementById']('actionBarItem' + event['toString']()))) {
primary = event;
}
}
var div = 9;
for (; div < 16; div++) {
if (isElementVisible(document['getElementById']('actionBarItem' + div['toString']()))) {
secondary = div;
}
}
var tobj = 16;
for (; tobj < 19; tobj++) {
if (isElementVisible(document['getElementById']('actionBarItem' + tobj['toString']()))) {
foodType = tobj - 16;
}
}
var props = 19;
for (; props < 22; props++) {
if (isElementVisible(document['getElementById']('actionBarItem' + props['toString']()))) {
wallType = props - 16;
}
}
var e = 22;
for (; e < 26; e++) {
if (isElementVisible(document['getElementById']('actionBarItem' + e['toString']()))) {
spikeType = e - 16;
}
}
var f = 26;
for (; f < 29; f++) {
if (isElementVisible(document['getElementById']('actionBarItem' + f['toString']()))) {
millType = f - 16;
}
}
var g = 29;
for (; g < 31; g++) {
if (isElementVisible(document['getElementById']('actionBarItem' + g['toString']()))) {
mineType = g - 16;
}
}
var h = 31;
for (; h < 33; h++) {
if (isElementVisible(document['getElementById']('actionBarItem' + h['toString']()))) {
boostType = h - 16;
}
}
var intval = 33;
for (; intval < 39; intval++) {
if (isElementVisible(document['getElementById']('actionBarItem' + intval['toString']())) && intval != 36) {
turretType = intval - 16;
}
}
spawnpadType = 36;
}
;