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 | [I] for 4 Trap or BoostPad | [L] for Musket | [1 on NumPad] for Katana | [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 !!

目前為 2021-05-05 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name SISI´s HacK | HAT MACRO | Katana + Musket | AUTOHEAL | Anti-Insta | INSTAKILL | NO ADS and more
  3. // @version 6.70
  4. // @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 | [I] for 4 Trap or BoostPad | [L] for Musket | [1 on NumPad] for Katana | [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 !!
  5. // @author BiG_LoOseR and BiG_KinG (same person)
  6. // @match *://moomoo.io/*
  7. // @match *://dev.moomoo.io/*
  8. // @match *://sandbox.moomoo.io/*
  9. // @require https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.5/socket.io.min.js
  10. // @require https://greasyfork.org/scripts/368273-msgpack/code/msgpack.js?version=598723
  11. // @require http://code.jquery.com/jquery-3.3.1.min.js
  12. // @require https://cdn.jsdelivr.net/npm/msgpack-lite@0.1.26/dist/msgpack.min.js
  13. // @require https://cdn.jsdelivr.net/npm/fontfaceobserver@2.1.0/fontfaceobserver.standalone.min.js
  14. // @namespace https://greasyfork.org/users/752105
  15. // ==/UserScript==
  16.  
  17.  
  18. var sANC = 1;
  19. var aNC = [255,255,0];
  20. var rANC = [0,255];
  21.  
  22. var mk = document.getElementById("gameCanvas").getContext("2d");
  23. var Laa = 0;
  24. var Lab = 0;
  25. var aVZ = 0;
  26. var fBX = "<3 KatieW.";
  27. var resForRANC = 1;
  28.  
  29.  
  30. function rainbowColor(){
  31. if(resForRANC === 1){
  32. aNC = [255,0,0];
  33. resForRANC = 0;
  34. }
  35. if(aNC[0] === 255 && aNC[1] !== 255 && aNC[2] === 0){aNC[1] += 255/rANC[1];}
  36. if(aNC[0] !== 0 && aNC[1] === 255 && aNC[2] === 0){aNC[0] += 255/rANC[1]*-1;}
  37. if(aNC[0] === 0 && aNC[1] === 255 && aNC[2] !== 255){aNC[2] += 255/rANC[1];}
  38. if(aNC[0] === 0 && aNC[1] !== 0 && aNC[2] === 255){aNC[1] += 255/rANC[1]*-1;}
  39. if(aNC[0] !== 255 && aNC[1] === 0 && aNC[2] === 255){aNC[0] += 255/rANC[1];}
  40. if(aNC[0] === 255 && aNC[1] === 0 && aNC[2] !== 0){aNC[2] += 255/rANC[1]*-1;}
  41. if(aNC[0] < 0){aNC[0] = 0;} if(255 < aNC[0]){aNC[0] = 255;}
  42. if(aNC[1] < 0){aNC[1] = 0;} if(255 < aNC[1]){aNC[1] = 255;}
  43. if(aNC[2] < 0){aNC[2] = 0;} if(255 < aNC[2]){aNC[2] = 255;}
  44. }
  45.  
  46. function katie(){
  47. if(document.getElementById("actionBarItem0")){
  48. if(document.getElementById("actionBarItem3").style.display === "inline-block"){
  49. if(fBX !== 3){
  50. aVZ = [[0,480],[0,360],[0,255]];
  51. if(sANC === 1){aNC = [255,0,0];}
  52. fBX = 3;
  53. }
  54.  
  55. aVZ[0][0] += 1;
  56. if(aVZ[0][1] <= aVZ[0][0]){
  57. aVZ[0][0] = 0;
  58. }
  59. aVZ[1][0] += 1;
  60. if(aVZ[1][1] <= aVZ[1][0]){
  61. aVZ[1][0] = 0;
  62. }
  63. aVZ[2][0] += 1;
  64. if(aVZ[2][1] <= aVZ[2][0]){
  65. aVZ[2][0] = 0;
  66. }
  67.  
  68. mk.beginPath();
  69. mk.lineWidth = 24;
  70. mk.strokeStyle = "rgb("+Math.round(aNC[0])+","+Math.round(aNC[1])+","+Math.round(aNC[2])+",0.625)";
  71. mk.arc(960,540,212,0+Math.PI/(aVZ[0][1]/2)*aVZ[0][0],7/8*Math.PI+Math.PI/(aVZ[0][1]/2)*aVZ[0][0]);
  72. mk.stroke();
  73. mk.beginPath();
  74. mk.lineWidth = 30;
  75. mk.strokeStyle = "rgb("+Math.round(aNC[0]/255*220)+","+Math.round(aNC[1]/255*220)+","+Math.round(aNC[2]/255*220)+",0.625)";
  76. mk.arc(960,540,185,0+Math.PI/(aVZ[1][1]/2)*aVZ[1][0],2/3*Math.PI+Math.PI/(aVZ[1][1]/2)*aVZ[1][0]);
  77. mk.stroke();
  78. mk.beginPath();
  79. mk.lineWidth = 45;
  80. mk.strokeStyle = "rgb("+Math.round(aNC[0])+","+Math.round(aNC[1])+","+Math.round(aNC[2])+",0.5)";
  81. mk.arc(960,540,85,0+Math.PI/(aVZ[2][1]/2)*aVZ[2][0],1/3*Math.PI+Math.PI/(aVZ[2][1]/2)*aVZ[2][0]);
  82. mk.stroke();
  83. }
  84. if(document.getElementById("actionBarItem4").style.display === "inline-block"){
  85. if(fBX !== 4){
  86. aVZ = [[0,360],[0,250],[0,225],[0,250]];
  87. if(sANC === 1){aNC = [255,0,0];}
  88. fBX = 4;
  89. }
  90.  
  91. aVZ[0][0] += -1;
  92. if(aVZ[0][1] <= aVZ[0][0]){
  93. aVZ[0][0] = 0;
  94. }
  95. aVZ[1][0] += 1;
  96. if(aVZ[1][1] <= aVZ[1][0]){
  97. aVZ[1][0] = 0;
  98. }
  99. aVZ[2][0] += -1;
  100. if(aVZ[2][1] <= aVZ[2][0]){
  101. aVZ[2][0] = 0;
  102. }
  103. aVZ[3][0] += 1;
  104. if(aVZ[3][1] <= aVZ[3][0]){
  105. aVZ[3][0] = 0;
  106. }
  107.  
  108. mk.beginPath();
  109. mk.lineWidth = 36;
  110. mk.strokeStyle = "rgb("+Math.round(aNC[0])+","+Math.round(aNC[1])+","+Math.round(aNC[2])+",0.45)";
  111. mk.arc(960,540,251,0+Math.PI/(aVZ[0][1]/2)*aVZ[0][0],15/16*Math.PI+Math.PI/(aVZ[0][1]/2)*aVZ[0][0]);
  112. mk.stroke();
  113. mk.beginPath();
  114. mk.lineWidth = 46;
  115. mk.strokeStyle = "rgb("+Math.round(aNC[0]/255*220)+","+Math.round(aNC[1]/255*220)+","+Math.round(aNC[2]/255*220)+",0.45)";
  116. mk.arc(960,540,210,0+Math.PI/(aVZ[1][1]/2)*aVZ[1][0],7/9*Math.PI+Math.PI/(aVZ[1][1]/2)*aVZ[1][0]);
  117. mk.stroke();
  118. mk.beginPath();
  119. mk.lineWidth = 32;
  120. mk.strokeStyle = "rgb("+Math.round(aNC[0])+","+Math.round(aNC[1])+","+Math.round(aNC[2])+",0.383)";
  121. mk.arc(960,540,109,0+Math.PI/(aVZ[2][1]/2)*aVZ[2][0],2/3*Math.PI+Math.PI/(aVZ[2][1]/2)*aVZ[2][0]);
  122. mk.stroke();
  123. mk.beginPath();
  124. mk.lineWidth = 26;
  125. mk.strokeStyle = "rgb("+Math.round(aNC[0]/255*235)+","+Math.round(aNC[1]/255*235)+","+Math.round(aNC[2]/255*235)+",0.383)";
  126. mk.arc(960,540,80,0+Math.PI/(aVZ[3][1]/2)*aVZ[3][0],7/8*Math.PI+Math.PI/(aVZ[3][1]/2)*aVZ[3][0]);
  127. mk.stroke();
  128. }
  129. if(document.getElementById("actionBarItem5").style.display === "inline-block"){
  130. if(fBX !== 5){
  131. aVZ = [[0,250,2.5,10,1.2]];
  132. if(sANC === 1){aNC = [255,0,255];}
  133. fBX = 5;
  134. }
  135.  
  136. aVZ[0][0] += 1;
  137. if(aVZ[0][1] <= aVZ[0][0]){
  138. aVZ[0][0] = 0;
  139. }
  140.  
  141. for(Laa = 0; Laa < Math.round(aVZ[0][1]/5*2); Laa++){
  142. mk.beginPath();
  143. mk.lineWidth = 26;
  144. mk.strokeStyle = "rgb("+Math.round(aNC[0]/255*235)+","+Math.round(aNC[1]/255*235)+","+Math.round(aNC[2]/255*235)+",0.5)";
  145. mk.arc(960,540,200+Math.sin(aVZ[0][3]*Math.PI/(aVZ[0][1]/aVZ[0][2])*(Laa-aVZ[0][0]))*aVZ[0][3]*aVZ[0][4],0-2*Math.PI/aVZ[0][1]*Laa+2*Math.PI/aVZ[0][1]*aVZ[0][0],2*Math.PI/aVZ[0][1]-2*Math.PI/aVZ[0][1]*Laa+2*Math.PI/aVZ[0][1]*aVZ[0][0]);
  146. mk.stroke();
  147. }
  148. }
  149. }
  150. }
  151.  
  152. function letThereBeLight(){
  153. if(rANC[0] === 1){
  154. rainbowColor();
  155. }
  156. katie();
  157. window.requestAnimationFrame(letThereBeLight);
  158. }
  159.  
  160. window.requestAnimationFrame(letThereBeLight);
  161.  
  162.  
  163. let hue = 0;
  164.  
  165. let replaceInterval = setInterval(() => {
  166. if (CanvasRenderingContext2D.prototype.roundRect) {
  167. CanvasRenderingContext2D.prototype.roundRect = ((oldFunc) => function() { if (this.fillStyle == "#8ecc51") this.fillStyle = `hsl(${hue}, 100%, 50%)`; return oldFunc.call(this, ...arguments); })(CanvasRenderingContext2D.prototype.roundRect);
  168. clearInterval(replaceInterval);
  169. }}, 10);
  170.  
  171. function changeHue() {
  172. hue += Math.random() * 3;
  173. }
  174.  
  175. setInterval(changeHue, 10);
  176.  
  177.  
  178. Hallo();
  179.  
  180. var autoreloadloop;
  181. var autoreloadenough = 0;
  182.  
  183. autoreloadloop = setInterval(function () {
  184. if (autoreloadenough < 200) {
  185. if (document.getElementById("loadingText").innerHTML == `disconnected<a href="javascript:window.location.href=window.location.href" class="ytLink">reload</a>`) {
  186. document.title = "Disconnected? NP";
  187. clearInterval(autoreloadloop);
  188. setTimeout(function () {document.title = "Moo Moo";}, 1000)
  189. location.reload();
  190. }
  191. autoreloadenough++;
  192. }
  193. else if (autoreloadenough >= 300) {
  194. clearInterval(autoreloadloop);
  195. document.title = "there you are";
  196. setTimeout(function () {document.title = "Moo Moo";}, 1000)
  197. }
  198. }, 50);
  199.  
  200.  
  201.  
  202. (function() {
  203. 'use strict';
  204.  
  205. var conf = {
  206. 'radar': {
  207. 'color': '#ffffff',
  208. 'w': '20',
  209. 'h': '20'
  210. },
  211. 'maxScreenWidth': 1920,
  212. 'maxScreenHeight': 1080
  213. };
  214.  
  215. var SID;
  216. var socket;
  217. var player_x = 0;
  218. var player_y = 0;
  219. var player_team = null;
  220. var user = [];
  221.  
  222. setTimeout(function () {
  223. var c = setInterval(function () {
  224. if (typeof io !== 'undefined' && io !== null) {
  225. if (typeof storeBuy === 'function' && typeof Object.keys(io.managers) [0] !== 'undefined') {
  226. socket = io.managers[Object.keys(io.managers) [0]].nsps['/'];
  227. socket.on('1', function (e) {
  228. SID = e;
  229. });
  230. socket.on('2', function (e, t) {
  231. if (!t) user.push([e[0], e[1], e[2], 0, 0, null]);
  232. });
  233. socket.on('4', function (e) {
  234. removeUserID(e);
  235. });
  236. socket.on('13', function (e) {
  237. removeUserSID(e);
  238. });
  239. socket.on('3', function (e) {
  240. for (var i = 0; i < user.length; i++) {
  241. $('#enemyradar' + user[i][1]).css({ 'display': 'none' });
  242. }
  243. for (var t = 0; t < e.length; t += 8) {
  244. if (e[t] == SID) {
  245. player_x = e[t + 1];
  246. player_y = e[t + 2];
  247. player_team = e[t + 6];
  248. } else {
  249. addUser(e[t], e[t + 1], e[t + 2], e[t + 6]);
  250. }
  251. }
  252. });
  253. clearInterval(c);
  254. }
  255. }
  256. }, 200);
  257. }, 1000);
  258.  
  259. function addUser(sid, x, y, team) {
  260. for (var i = 0; i < user.length; i++) {
  261. if (user[i][1] === sid) {
  262. user[i][3] = x;
  263. user[i][4] = y;
  264. user[i][5] = team;
  265. break;
  266. }
  267. }
  268. if (!$('#enemyradar' + sid).length) {
  269. $(document.body).append('<div id="enemyradar' + sid + '" style="' +
  270. 'display: none;' +
  271. 'position: absolute;' +
  272. 'left: 0;' +
  273. 'top: 0;' +
  274. 'color: #ffffff;' +
  275. 'width: 0;' +
  276. 'height: 0;' +
  277. 'border-style: solid;' +
  278. 'border-width: 10px 0 10px 20px;' +
  279. 'border-color: transparent transparent transparent ' + conf.radar.color + ';' +
  280. '"></div>');
  281. }
  282. var center_x = window.innerWidth / 2;
  283. var center_y = window.innerHeight / 2;
  284. var rad = getRadian(player_x, player_y, x, y);
  285. var per = getDistance(0, 0, (player_x - x), (player_y - y) * (16 / 9)) * 100 / (conf.maxScreenHeight / 2);
  286. var alpha = per / center_y;
  287. if (alpha > 1.0) alpha = 1.0;
  288. var dis = center_y * alpha;
  289. var tx = center_x + dis * Math.cos(rad) - conf.radar.w / 2;
  290. var ty = center_y + dis * Math.sin(rad) - conf.radar.h / 2;
  291. $('#enemyradar' + sid).css({
  292. 'left': tx + 'px',
  293. 'top': ty + 'px',
  294. 'display': ((player_team === null || player_team !== team) ? 'block' : 'none'),
  295. 'opacity': alpha,
  296. 'transform': 'rotate(' + RtoD(rad) + 'deg)'
  297. });
  298. }
  299.  
  300. function removeUserID(id) {
  301. for (var i = 0; i < user.length; i++) {
  302. if (user[i][0] == id) {
  303. $('#enemyradar' + user[i][1]).remove();
  304. user.splice(i, 1);
  305. break;
  306. }
  307. }
  308. }
  309.  
  310. function removeUserSID(sid) {
  311. for (var i = 0; i < user.length; i++) {
  312. if (user[i][1] == sid) {
  313. $('#enemyradar' + user[i][1]).remove();
  314. user.splice(i, 1);
  315. break;
  316. }
  317. }
  318. }
  319.  
  320. function getRadian(x1, y1, x2, y2) {
  321. return Math.atan2(y2 - y1, x2 - x1);
  322. }
  323. function getDistance(x1, y1, x2, y2) {
  324. return Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2));
  325. }
  326. function RtoD(r) {
  327. return r * 180 / Math.PI;
  328. }
  329. function DtoR(d) {
  330. return d * Math.PI / 180;
  331. }
  332. })();
  333.  
  334.  
  335.  
  336. setInterval(() => {
  337. setTimeout(() => {
  338. document.getElementById('chatBox').placeholder = "💬writing💬";
  339. setTimeout(() => {
  340. document.getElementById('chatBox').placeholder = "💬writing.💬";
  341. setTimeout(() => {
  342. document.getElementById('chatBox').placeholder = "💬writing..💬";
  343. setTimeout(() => {
  344. document.getElementById('chatBox').placeholder = "💬writing...💬";
  345. }, 100);
  346. }, 100);
  347. }, 100);
  348. }, 100);
  349. }, 500)
  350. var int;
  351. var isSpecToggled = false;
  352. function BuyAll(){
  353. int = 0;
  354. var val = setInterval(function(){
  355. int++;
  356. Hat(int);
  357. if(int === 100){
  358. clearInterval(val);
  359. }
  360. }, 10);
  361.  
  362. }
  363.  
  364. function Hat(id){
  365. storeBuy(id);
  366. storeEquip(id);
  367. }
  368.  
  369. window.addEventListener('keydown', function(e) {
  370. switch(e.keyCode){
  371. case 119:
  372. spec();
  373. break;
  374. }
  375. });
  376. setInterval(() => window.follmoo && follmoo(), 10);
  377. function spec() {
  378. if(isSpecToggled == false) {
  379. $("#ot-sdk-btn-floating").hide();
  380. isSpecToggled = !isSpecToggled;
  381. } else if(isSpecToggled == true){
  382. $("#ot-sdk-btn-floating").show();
  383. isSpecToggled = !isSpecToggled;
  384. }
  385. }
  386. setInterval(() => window.follmoo && follmoo(), 10);
  387.  
  388. document.getElementById("moomooio_728x90_home").style.display = "none";
  389. $("#moomooio_728x90_home").parent().css({display: "none"});
  390. 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 ';
  391. document.getElementById('gameName').innerHTML = 'SISI´s bEsT HacK';
  392. document.getElementById('loadingText').innerHTML = ' LoaDiNg YouR NicE hAcK '
  393. document.getElementById('diedText').innerHTML = ' !!💀Revange💀!! ';
  394. document.getElementById('enterGame').innerHTML = ' have a nice game ';
  395. 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.. '
  396. document.getElementById('gameName').style.color = "#fe1414";
  397. document.getElementById('diedText').style.color = "#fe3200";
  398. document.getElementById('loadingText').style.color = "#f76f16";
  399. document.getElementById('nameInput').style.color = "#F70606";
  400. document.getElementById("enterGame").style.color = "#000";
  401. document.getElementById('leaderboard').style.color = "#ff1f3d";
  402. document.title = ' SISI´s HacK ';
  403. document.getElementById("leaderboard").append ('SISI´s HacK');
  404. document.getElementById("promoImgHolder").remove();
  405. document.getElementById('ageText').style.color = "#ff1f3d";
  406. //ANTI AD
  407. document.querySelector("#pre-content-container").remove();
  408.  
  409. $('.menuCard').css({'white-space': 'normal',
  410. 'text-align': 'left',
  411. 'background-color': 'rgba(0, 0, 0, 0.74)',
  412. '-moz-box-shadow': '0px 0px rgba(255, 255, 255, 0)',
  413. '-webkit-box-shadow': '0px 0px rgba(255, 255, 255, 0)',
  414. 'box-shadow': '0px 0px rgba(255, 255, 255, 0)',
  415. '-webkit-border-radius': '0px',
  416. '-moz-border-radius': '0px',
  417. 'border-radius': '0px',
  418. 'margin': '15px',
  419. 'margin-top': '15px'});
  420.  
  421. $('.actionBarItem').css({'-webkit-border-radius': '0px',
  422. 'border-radius': '3px',
  423. 'background-color': 'rgba(0, 0, 0, 0.4)'});
  424.  
  425. $('.menuCard').css({'color':'#808080'});
  426.  
  427. $("#ageBarBody").css({'background-color':'red'});
  428.  
  429. $("#youtuberOf").remove();
  430. $("#adCard").remove();
  431. $("#mobileInstructions").remove();
  432. $("#downloadButtonContainer").remove();
  433. $("#mobileDownloadButtonContainer").remove();
  434. $(".downloadBadge").remove();
  435.  
  436. $("#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>');
  437.  
  438. $( "#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>');
  439. (function() {var css = [
  440. " #moddedMenu {",
  441. " position: absolute;",
  442. " top: 7%;",
  443. " left: 0px;",
  444. " width: 3%;",
  445. " height: 50.5%;",
  446. " background: rgba(0,0,0,0.6);",
  447. " border: 3px solid rgba(0,0,0,0.9);",
  448. " border-top-right-radius: 30px;",
  449. " border-bottom-right-radius: 30px;",
  450. " transition: 1s;",
  451. " z-index: 999;",
  452. " }",
  453. "",
  454. " #moddedMenu:hover {",
  455. " width: 20%;",
  456. " }",
  457. "",
  458. " .titleMM {",
  459. " color: red;",
  460. " border-bottom: 3px solid red;",
  461. " font-size: 32px;",
  462. " transform: rotate(90deg);",
  463. " white-space: nowrap;",
  464. " margin-top: 250%;",
  465. " transition: 1s;",
  466. " }",
  467. "",
  468. " #moddedMenu:hover > .titleMM {",
  469. " transform: rotate(180deg) translate(0,-1580%)",
  470. " }",
  471. "",
  472. " .switch {",
  473. " margin-top: 5px;",
  474. " margin-left: 10px;",
  475. " position: absolute;",
  476. " width: 60px;",
  477. " height: 34px;",
  478. " transition: opacity 1s;",
  479. " opacity: 0;",
  480. " }",
  481. "",
  482. " .text {",
  483. " bottom: 76%;",
  484. " position: absolute;",
  485. " color: red;",
  486. " font-size: 20px;",
  487. " left: 0%;",
  488. " display: none;",
  489. " transition: 1s;",
  490. " }",
  491. "",
  492. " .text > b { ",
  493. " font-size: 20px;",
  494. " color: red;",
  495. " }",
  496. "",
  497. " b:hover { ",
  498. " color: red;",
  499. " }",
  500. "",
  501. " .one > .text {",
  502. " top: 5.5%;",
  503. " }",
  504. "",
  505. " .two > .text {",
  506. " top: 10.7%;",
  507. " }",
  508. "",
  509. " .three > .text {",
  510. " top: 37.5%;",
  511. " }",
  512. "",
  513. " .four > .text {",
  514. " top: 47.5%;",
  515. " }",
  516. "",
  517. " .five > .text {",
  518. " top: 57.5%;",
  519. " }",
  520. "",
  521. " .six > .text {",
  522. " top: 67.5%;",
  523. " }",
  524. "",
  525. " .seven > .text {",
  526. " top: 77.5%;",
  527. " }",
  528. "",
  529. " .eight > .text {",
  530. " top: 87.5%;",
  531. " }",
  532. "",
  533. " #moddedMenu:hover .switch {",
  534. " opacity: 1;",
  535. " }",
  536. "",
  537. " #moddedMenu:hover .text {",
  538. " display: block;",
  539. " }",
  540. "",
  541. " .one > .switch {",
  542. " top: 15%;",
  543. " }",
  544. "",
  545. " .two > .switch {",
  546. " top: 25%;",
  547. " }",
  548. "",
  549. " .three > .switch {",
  550. " top: 35%;",
  551. " }",
  552. "",
  553. " .four > .switch {",
  554. " top: 45%;",
  555. " }",
  556. "",
  557. " .five > .switch {",
  558. " top: 55%;",
  559. " }",
  560. "",
  561. " .six > .switch {",
  562. " top: 65%;",
  563. " }",
  564. "",
  565. " .seven > .switch {",
  566. " top: 75%;",
  567. " }",
  568. "",
  569. " .eight > .switch {",
  570. " top: 85%;",
  571. " }",
  572. "",
  573. " .switch input {",
  574. " display:none;",
  575. " }",
  576. "",
  577. " .slider {",
  578. " position: absolute;",
  579. " cursor: pointer;",
  580. " top: 0;",
  581. " left: 0;",
  582. " right: 0;",
  583. " bottom: 0;",
  584. " background-color: red;",
  585. " -webkit-transition: .4s;",
  586. " transition: .4s;",
  587. " }",
  588. "",
  589. " .slider:before {",
  590. " position: absolute;",
  591. " content: \"\";",
  592. " height: 26px;",
  593. " width: 26px;",
  594. " left: 4px;",
  595. " bottom: 4px;",
  596. " background-color: white;",
  597. " -webkit-transition: .4s;",
  598. " transition: .4s;",
  599. " }",
  600. "",
  601. " input:checked + .slider {",
  602. " background-color: red;",
  603. " }",
  604. " ",
  605. " input:focus + .slider {",
  606. " box-shadow: 0 0 1px red;",
  607. " }",
  608. "",
  609. " input:checked + .slider:before {",
  610. " -webkit-transform: translateX(26px);",
  611. " -ms-transform: translateX(26px);",
  612. " transform: translateX(26px);",
  613. " }",
  614. "",
  615. " .slider.round {",
  616. " border-radius: 34px;",
  617. " }",
  618. "",
  619. " .slider.round:before {",
  620. " border-radius: 50%;",
  621. "",
  622. ].join("\n");
  623. if (typeof GM_addStyle != "undefined") {
  624. GM_addStyle(css);
  625. } else if (typeof PRO_addStyle != "undefined") {
  626. PRO_addStyle(css);
  627. } else if (typeof addStyle != "undefined") {
  628. addStyle(css);
  629. } else {
  630. var node = document.createElement("style");
  631. node.type = "text/css";
  632. node.appendChild(document.createTextNode(css));
  633. var heads = document.getElementsByTagName("head");
  634. if (heads.length > 0) {
  635. heads[0].appendChild(node);
  636. } else {
  637. document.documentElement.appendChild(node);
  638. }
  639. }
  640. })();
  641.  
  642. var musics=[{
  643. name: "Vmz - Plutão",
  644. msc: "https://cdn.discordapp.com/attachments/829054751601721354/829057185056948276/vmz_plutao_6979047102050399469.mp3"
  645. }, {
  646. name: "MhRap - Vibe do zabuza",
  647. msc: "https://cdn.discordapp.com/attachments/829054751601721354/829058226171019294/vibe_zabuza_animes_style_trap_prod_ihaksi_mhrap_-5421045193047514059.mp3"
  648. },{
  649. name: "Vmz - Eu sou o Zetsu",
  650. msc: "https://cdn.discordapp.com/attachments/829054751601721354/829059227401060353/vmz_eu_sou_zetsu_-688032162626482960.mp3"
  651. }, {
  652. name: "Rob Gasser - Ricochet",
  653. msc: "https://cdn.discordapp.com/attachments/829054751601721354/829061218475049040/rob_gasser_ricochet_ncs_release_147707616798364197.mp3"
  654. }, {
  655. name: "Astronomia Remix",
  656. msc: "https://cdn.discordapp.com/attachments/728226830414381056/731040059054096404/Astronomia_Remix_By_Jiaye_Trending_TikTok_EDM_Full_Version.mp3"
  657. }]
  658.  
  659.  
  660. let musicmenu = document.createElement('div')
  661. musicmenu.innerHTML="<h1 style='color:#fff;text-shadow:2px 2px 2px black;margin:10px;font-weight;1000;'>PlayList</h1><br>"
  662.  
  663.  
  664. for(let i=0;i<musics.length;i++){
  665. musicmenu.innerHTML+=`
  666. <h3 style="text-shadow:1px 1px 2px black;margin-top:15px;margin-left:2.5%">`+musics[i].name+`</h3>
  667. <audio style="width: 90%; margin-left: 2.5%; margin-top:10px;" src="`+musics[i].msc+`" controls="" loop=""></audio><hr>
  668. `
  669. }
  670. musicmenu.style=`
  671. display:none;
  672. overflow:auto;
  673. position:absolute;
  674. top:50%;
  675. left:50%;
  676. margin-top:-200px;
  677. margin-left:-350px;
  678. z-index:1000000;
  679. border:7px solid black;
  680. width:700px;
  681. height:400px;
  682. border-radius:25px;
  683. background-color:#f71b1b;
  684. `
  685. document.body.prepend(musicmenu)
  686. document.addEventListener("keydown", (e)=>{
  687. if(e.keyCode == 45){
  688. if(musicmenu.style.display=="block"){
  689. musicmenu.style.display="none"
  690. }else{
  691. musicmenu.style.display="block"
  692. }
  693. }
  694. })
  695.  
  696.  
  697. var checkbox = document.querySelector("#MaP")
  698.  
  699. checkbox.addEventListener('change', function() {
  700. if (this.checked) {
  701. $("#mapDisplay").css({background: `url('http://i.imgur.com/Qllo1mA.png')`});
  702. } else {
  703. $("#mapDisplay").css({background: `rgba(0, 0, 0, 0.25)`})
  704. }
  705. })
  706.  
  707.  
  708. var checkbox2 = document.querySelector("#bread_cat")
  709.  
  710. checkbox2.addEventListener('change', function() {
  711. if (this.checked) {
  712. $("#mapDisplay").css({background: `url('https://lh3.googleusercontent.com/5RZMHxal_5gtIhvx_ct9h8EI_YMtYgOK94snff4lzVVPq2IMcRuzaIo4bt3-1BZWCMmI=s130')`});
  713. } else {
  714. $("#mapDisplay").css({background: `rgba(0, 0, 0, 0.25)`})
  715. }
  716. })
  717.  
  718.  
  719. var checkbox3 = document.querySelector("#Stupid_cat_gif")
  720.  
  721. checkbox3.addEventListener('change', function() {
  722. if (this.checked) {
  723. $("#mapDisplay").css({background: `url('https://media0.giphy.com/media/GaqnjVbSLs2uA/giphy.gif?cid=ecf05e47ea99c7380f6deb1064d8804c8eaeec5c01af4d9d&rid=giphy.gif')`});
  724. } else {
  725. $("#mapDisplay").css({background: `rgba(0, 0, 0, 0.25)`})
  726. }
  727. })
  728.  
  729.  
  730. var checkbox5 = document.querySelector("#Big_store")
  731.  
  732. checkbox5.addEventListener('change', function() {
  733. if (this.checked) {
  734. document.getElementById("storeHolder").style = "height: 1000px; width: 480px;";
  735. } else {
  736. document.getElementById("storeHolder").style = "height: 200px; width: 400px;";
  737. }
  738. })
  739.  
  740.  
  741. var checkbox6 = document.querySelector("#Middle_big_store")
  742.  
  743. checkbox6.addEventListener('change', function() {
  744. if (this.checked) {
  745. document.getElementById("storeHolder").style = "height: 300px; width: 435px;";
  746. } else {
  747. document.getElementById("storeHolder").style = "height: 200px; width: 400px;";
  748. }
  749. })
  750.  
  751.  
  752. let newImg = document.createElement("img");
  753. newImg.src = "data:image/png;base64,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";
  754. newImg.style = `position: absolute; top: 15px; left: 15px; z-index: 100000; width: 65px; height: 65px; cursor: pointer;`;
  755. document.body.prepend(newImg);
  756.  
  757. newImg.addEventListener("click", () => {
  758. let w = window.open("https://discord.gg/4skVv2dZZs", null, `height=650, width=1199, status=yes, toolbar=no, menubar=no, location=no`);
  759. });
  760.  
  761. function Hallo () {
  762. var name = prompt ("What´s your name?")
  763. if (name.length === 0) {
  764. Hallo();
  765. } else {
  766. alert ("Hello " + name + ",\nNice to meet you!")
  767. alert ("to remove this messages go to line 32 and remove Hallo();")
  768. }
  769. }
  770.  
  771. 'use strict';
  772. function _toConsumableArray(arr) {
  773. if (Array.isArray(arr)) {
  774. var i = 0;
  775. var arr2 = Array(arr.length);
  776. for (; i < arr.length; i++) {
  777. arr2[i] = arr[i];
  778. }
  779. return arr2;
  780. } else {
  781. return Array.from(arr);
  782. }
  783. }
  784. var mouseX = void 0;
  785. var mouseY = void 0;
  786. var width = void 0;
  787. var height = void 0;
  788. setInterval(function() {
  789. if (clanToggle == 1) {
  790. doNewSend(['9', [null]]);
  791. doNewSend(['8', ['jellow']]);
  792. }
  793. doNewSend(['testing', [6]]);
  794. }, 200);
  795. setInterval(function() {
  796. if (messageToggle == 1) {
  797. doNewSend(['ch', [' /$&%(EZ)%&$\ ']]);
  798. }
  799. }, 0);
  800. setInterval(function() {
  801. if (autoaim == true) {
  802. doNewSend(['2', [nearestEnemyAngle]]);
  803. }
  804. }, 0);
  805. setInterval(function() {
  806. if (hatToggle == 1) {
  807. if (oldHat != normalHat) {
  808. hat(normalHat);
  809. console.log('Tried. - Hat');
  810. }
  811. if (oldAcc != normalAcc) {
  812. acc(normalAcc);
  813. console.log('Tried. - Acc');
  814. }
  815. oldHat = normalHat;
  816. oldAcc = normalAcc;
  817. }
  818. }, 25);
  819. function normal() {
  820. hat(normalHat);
  821. acc(normalAcc);
  822. }
  823. function aim(a, b) {
  824. var target = document.getElementById('gameCanvas');
  825. target.dispatchEvent(new MouseEvent('mousemove', {
  826. clientX : a,
  827. clientY : b
  828. }));
  829. }
  830. var coreURL = new URL(window.location.href);
  831. window.sessionStorage.force = coreURL.searchParams.get('fc');
  832. var lasthat = 6;
  833. var instahat = 0;
  834. var nearestEnemy;
  835. var nearestEnemyAngle;
  836. var nearestTribeAngle;
  837. var isEnemyNear;
  838. var instaSpeed = 230;
  839. var primary;
  840. var secondary;
  841. var foodType;
  842. var wallType;
  843. var spikeType;
  844. var millType;
  845. var mineType;
  846. var boostType;
  847. var turretType;
  848. var spawnpadType;
  849. var autoaim = false;
  850. var tick = 1;
  851. var oldHat;
  852. var oldAcc;
  853. var enemiesNear;
  854. var normalHat;
  855. var normalAcc;
  856. var ws;
  857. var msgpack5 = msgpack;
  858. var boostDir;
  859. var myPlayer = {
  860. id : null,
  861. x : null,
  862. y : null,
  863. dir : null,
  864. object : null,
  865. weapon : null,
  866. clan : null,
  867. isLeader : null,
  868. hat : null,
  869. accessory : null,
  870. isSkull : null
  871. };
  872. var healSpeed = 40;
  873. var messageToggle = 0;
  874. var clanToggle = 0;
  875. var healToggle = 1;
  876. var hatToggle = 1;
  877. var antiinsta = 0;
  878.  
  879. document.msgpack = msgpack;
  880. function n() {
  881. this.buffer = new Uint8Array([0]);
  882. this.buffer.__proto__ = new Uint8Array;
  883. this.type = 0;
  884. }
  885. WebSocket.prototype.oldSend = WebSocket.prototype.send;
  886. WebSocket.prototype.send = function(data) {
  887. if (!ws) {
  888. document.ws = this;
  889. ws = this;
  890. socketFound(this);
  891. }
  892. this.oldSend(data);
  893. };
  894. function socketFound(socket) {
  895. socket.addEventListener('message', function(data) {
  896. handleMessage(data);
  897. });
  898. }
  899. 'use strict';
  900. function handleMessage(_x17) {
  901. var b = msgpack5['decode'](new Uint8Array(_x17['data']));
  902. var node = void 0;
  903. if (b['length'] > 1) {
  904. node = [b[0]]['concat'](_toConsumableArray(b[1]));
  905. if (node[1] instanceof Array) {
  906. node = node;
  907. }
  908. } else {
  909. node = b;
  910. }
  911. var token = node[0];
  912. if (!node) {
  913. return;
  914. }
  915. if (token === 'io-init') {
  916. var docElem = document['getElementById']('gameCanvas');
  917. width = docElem['clientWidth'];
  918. height = docElem['clientHeight'];
  919. $(window)['resize'](function() {
  920. width = docElem['clientWidth'];
  921. height = docElem['clientHeight'];
  922. });
  923. docElem['addEventListener']('mousemove', function(res) {
  924. mouseX = res['clientX'];
  925. mouseY = res['clientY'];
  926. });
  927. }
  928. if (token == '1' && myPlayer['id'] == null) {
  929. myPlayer['id'] = node[1];
  930. }
  931. if (token == '33') {
  932. enemiesNear = [];
  933. var f = 0;
  934. for (; f < node[1]['length'] / 13; f++) {
  935. var object = node[1]['slice'](13 * f, 13 * f + 13);
  936. if (object[0] == myPlayer['id']) {
  937. myPlayer['x'] = object[1];
  938. myPlayer['y'] = object[2];
  939. myPlayer['dir'] = object[3];
  940. myPlayer['object'] = object[4];
  941. myPlayer['weapon'] = object[5];
  942. myPlayer['clan'] = object[7];
  943. myPlayer['isLeader'] = object[8];
  944. myPlayer['hat'] = object[9];
  945. myPlayer['accessory'] = object[10];
  946. myPlayer['isSkull'] = object[11];
  947. }
  948. }
  949. }
  950. isEnemyNear = ![];
  951. if (enemiesNear) {
  952. nearestEnemy = enemiesNear['sort'](function(line, i) {
  953. return dist(line, myPlayer) - dist(i, myPlayer);
  954. })[0];
  955. }
  956. if (nearestEnemy) {
  957. nearestEnemyAngle = Math['atan2'](nearestEnemy[2] - myPlayer['y'], nearestEnemy[1] - myPlayer['x']);
  958. if (Math['sqrt'](Math['pow'](myPlayer['y'] - nearestEnemy[2], 2) + Math['pow'](myPlayer['x'] - nearestEnemy[1], 2)) < 205) {
  959. isEnemyNear = !![];
  960. if (autoaim == ![] && myPlayer['hat'] != 7 && myPlayer['hat'] != 53) {
  961. normalHat = 7;
  962. normalAcc = 21;
  963. if (primary != 8) {
  964. }
  965. }
  966. }
  967. }
  968. if (isEnemyNear == ![] && autoaim == ![]) {
  969. normalHat = 12;
  970. normalAcc = 11;
  971. }
  972. if (!nearestEnemy) {
  973. nearestEnemyAngle = myPlayer['dir'];
  974. }
  975. if (token == 'h' && node[1] == myPlayer['id']) {
  976. if (node[2] < 95 && node[2] > 0 && healToggle == 1) {
  977. setTimeout(function() {
  978. place(foodType, null);
  979. place(foodType);
  980. }, healSpeed);
  981. } else if (node[2] < 41 && node[2] > 0 && antiinsta == 1) {
  982. hat(6);
  983. place(foodType);
  984. place(foodType);
  985. place(foodType);
  986. place(foodType);
  987. setTimeout( () => {
  988. place(foodType);
  989. place(foodType);
  990. place(foodType);
  991. }, healSpeed);
  992. }
  993. }
  994. if (token == 'h' && node[1] == myPlayer['id']) {
  995. if (node[2] < 55 && node[2] > 0 && antiinsta == 1) {
  996. hat(22);
  997. place(foodType);
  998. place(foodType);
  999. place(foodType);
  1000. place(foodType);
  1001. } else if (node[2] < 30 && node[2] > 0 && antiinsta == 1) {
  1002. hat(6)
  1003. place(foodType);
  1004. place(foodType);
  1005. place(foodType);
  1006. place(foodType);
  1007. place(foodType);
  1008. place(foodType);
  1009. place(foodType);
  1010. }
  1011. }
  1012. if (token == 'h' && node[1] == myPlayer['id']) {
  1013. if (node[2] < 45 && node[2] > 0 && antiinsta == 1) {
  1014. hat(6);
  1015. place(foodType);
  1016. place(foodType);
  1017. place(foodType);
  1018. place(foodType);
  1019. place(foodType);
  1020. place(foodType);
  1021. }
  1022. }
  1023. update();
  1024. }
  1025. ;
  1026. function doNewSend(data) {
  1027. ws.send(new Uint8Array(Array.from(msgpack5.encode(data))));
  1028. }
  1029. function acc(op) {
  1030. doNewSend(['13c', [0, 0, 1]]);
  1031. doNewSend(['13c', [0, op, 1]]);
  1032. }
  1033. function hat(ctx) {
  1034. doNewSend(['13c', [0, ctx, 0]]);
  1035. }
  1036. function place(p__14702) {
  1037. var angle = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Math.atan2(mouseY - height / 2, mouseX - width / 2);
  1038. doNewSend(['5', [p__14702, null]]);
  1039. doNewSend(['c', [1, angle]]);
  1040. doNewSend(['c', [0, angle]]);
  1041. doNewSend(['5', [myPlayer.weapon, true]]);
  1042. doNewSend(['5', [p__14702, null]]);
  1043. doNewSend(['c', [1, angle]]);
  1044. doNewSend(['c', [0, angle]]);
  1045. doNewSend(['5', [myPlayer.weapon, true]]);
  1046. }
  1047. function boostSpike() {
  1048. if (boostDir == null) {
  1049. boostDir = nearestEnemyAngle;
  1050. }
  1051. place(spikeType, boostDir + toRad(90));
  1052. place(spikeType, boostDir - toRad(90));
  1053. place(boostType, boostDir);
  1054. doNewSend(['33', [boostDir]]);
  1055. }
  1056. 'use strict';
  1057. var repeater = function mockedDriverFn(element, method, options) {
  1058. var d = ![];
  1059. var e = undefined;
  1060. return {
  1061. 'start' : function start(child) {
  1062. if (child == element && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1063. d = !![];
  1064. if (e === undefined) {
  1065. e = setInterval(function() {
  1066. method();
  1067. if (!d) {
  1068. clearInterval(e);
  1069. e = undefined;
  1070. console['log']('claered');
  1071. }
  1072. }, options);
  1073. }
  1074. }
  1075. },
  1076. 'stop' : function Chat(parent) {
  1077. if (parent == element && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1078. d = ![];
  1079. }
  1080. }
  1081. };
  1082. };
  1083. 'use strict';
  1084. var healer = repeater(81, function() {
  1085. place(foodType);
  1086. place(foodType);
  1087. place(foodType);
  1088. place(foodType);
  1089. }, 0);
  1090. var boostPlacer = repeater(70, function() {
  1091. place(boostType);
  1092. }, 0);
  1093. var spikePlacer = repeater(86, function() {
  1094. place(spikeType);
  1095. }, 0);
  1096. var turretPlacer = repeater(72, function() {
  1097. place(turretType);
  1098. }, 0);
  1099. var boostSpiker = repeater(71, function() {
  1100. place(boostSpike());
  1101. }, 0);
  1102. var millPlacer = repeater(78, function() {
  1103. place(millType);
  1104. }, 0);
  1105. document['addEventListener']('keydown', function(a) {
  1106. healer['start'](a['keyCode']);
  1107. boostPlacer['start'](a['keyCode']);
  1108. spikePlacer['start'](a['keyCode']);
  1109. turretPlacer['start'](a['keyCode']);
  1110. boostSpiker['start'](a['keyCode']);
  1111. millPlacer['start'](a['keyCode']);
  1112. if (a['keyCode'] == 79 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1113. var b = 0;
  1114. for (; b < 5; b++) {
  1115. var groupY = myPlayer['dir'] + toRad(b * 72);
  1116. place(millType, groupY);
  1117. }
  1118. }
  1119. if (a['keyCode'] == 80 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1120. var d = 0;
  1121. for (; d < 4; d++) {
  1122. groupY = myPlayer['dir'] + toRad(d * 90);
  1123. place(spikeType, groupY);
  1124. }
  1125. }
  1126. if (a['keyCode'] == 73 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1127. var e = 0;
  1128. for (; e < 4; e++) {
  1129. groupY = myPlayer['dir'] + toRad(e * 90);
  1130. place(boostType, groupY);
  1131. }
  1132. }
  1133. if (a['keyCode'] == 103 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1134. var f = 0;
  1135. for (; f < 4; f++) {
  1136. groupY = myPlayer['dir'] + toRad(f * 90);
  1137. place(spikeType, groupY);
  1138. }
  1139. }
  1140. if (a['keyCode'] == 72 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1141. place(turretType, myPlayer['dir'] + toRad(45));
  1142. place(turretType, myPlayer['dir'] - toRad(45));
  1143. }
  1144. if (a['keyCode'] == 77 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1145. if (myPlayer['y'] < 2400) {
  1146. hat(15);
  1147. } else {
  1148. if (myPlayer['y'] > 6850 && myPlayer['y'] < 7550) {
  1149. hat(31);
  1150. } else {
  1151. hat(12);
  1152. }
  1153. }
  1154. acc(11);
  1155. }
  1156. if(a['keyCode'] == 46 && document.activeElement.id.toLowerCase() !== 'chatbox') {//del
  1157. antiinsta = (antiinsta + 1) % 2;
  1158. if(antiinsta==1){
  1159. doNewSend(["ch", ["ai on"]]);
  1160. }else{
  1161. doNewSend(["ch", ["ai off"]]);
  1162. }
  1163. }
  1164. if (a['keyCode'] == 66 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1165. Hat(6);
  1166. acc(0);
  1167. doNewSend(['ch', ['<E/ Solider Helmet! /E>']]);
  1168. }
  1169. if (a['keyCode'] == 27 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1170. Hat(0);
  1171. doNewSend(['ch', ['<E/ Fast Hat-uneuiper! /E>']]);
  1172. }
  1173. if (a['keyCode'] == 85 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1174. Hat(53);
  1175. doNewSend(['ch', ['<E/ Turret Gear! /E>']]);
  1176. }
  1177. if (a['keyCode'] == 16 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1178. Hat(12);
  1179. doNewSend(['ch', ['<E/ Im a BOoSTer!!/E>']]);
  1180. }
  1181. if (a['keyCode'] == 188 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1182. Hat(15);
  1183. doNewSend(['ch', ['<E/ I like the snow! /E>']]);
  1184. }
  1185. if (a['keyCode'] == 60 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1186. Hat(31);
  1187. doNewSend(['ch', ['<E/ Im under Water! /E>']]);
  1188. }
  1189. if (a['keyCode'] == 90 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1190. Hat(40);
  1191. doNewSend(['ch', ['<E/I must destroy something/E>']]);
  1192. }
  1193. if (a['keyCode'] == 74 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1194. Hat(22);
  1195. doNewSend(['ch', ['<E/ Ez, these turrets! /E>']]);
  1196. }
  1197. if (a['keyCode'] == 84 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1198. Hat(7);
  1199. acc(0)
  1200. doNewSend(['ch', ['<E/ Bull Helmet = - 5 HP /E>']]);
  1201. }
  1202. if (a['keyCode'] == 82 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1203. doNewSend(['ch', ['<E/Im your father you fish!/E>']]);
  1204. }
  1205. if (a['keyCode'] == 82 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1206. autoaim = !![];
  1207. doNewSend(['5', [primary, !![]]]);
  1208. doNewSend(['13c', [0, 7, 0]]);
  1209. doNewSend(['13c', [0, 0, 1]]);
  1210. doNewSend(['13c', [0, 19, 1]]);
  1211. doNewSend(['c', [1]]);
  1212. setTimeout(function() {
  1213. doNewSend(['13c', [0, 53, 0]]);
  1214. doNewSend(['5', [secondary, !![]]]);
  1215. }, instaSpeed - 130);
  1216. setTimeout(function() {
  1217. doNewSend(['5', [primary, !![]]]);
  1218. doNewSend(['c', [0, null]]);
  1219. doNewSend(['13c', [0, 6, 0]]);
  1220. autoaim = ![];
  1221. }, instaSpeed);
  1222. setTimeout( () => {
  1223. doNewSend(["ch", ["Hold up, wait a minute"]]);
  1224. doNewSend(["5", [secondary, !![]]]);
  1225. }, 1750);
  1226. setTimeout( () => {
  1227. doNewSend(["ch", ["Ok, lets go!"]]);
  1228. doNewSend(["5", [primary, !![]]]);
  1229. }, 4500);
  1230. }
  1231. if (a['keyCode'] == 38 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1232. messageToggle = (messageToggle + 1) % 2;
  1233. }
  1234. if (a['keyCode'] == 40 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1235. clanToggle = (clanToggle + 1) % 2;
  1236. }
  1237. if (a['keyCode'] == 37 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1238. healToggle = (healToggle + 1) % 2;
  1239. if (healToggle == 0) {
  1240. if (hatToggle == 0) {
  1241. document['title'] = 'AutoHeal: OFF | AutoHat: OFF';
  1242. } else {
  1243. document['title'] = 'AutoHeal: OFF | AutoHat: ON';
  1244. }
  1245. } else {
  1246. if (hatToggle == 0) {
  1247. document['title'] = 'AutoHeal: ON | AutoHat: OFF';
  1248. } else {
  1249. document['title'] = 'AutoHeal: ON | AutoHat: ON';
  1250. }
  1251. }
  1252. }
  1253. if (a['keyCode'] == 76 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1254. autoaim = !![];
  1255. doNewSend(['5', [secondary, !![]]]);
  1256. doNewSend(['13c', [0, 53, 0]]);
  1257. doNewSend(['c', [1]]);
  1258. setTimeout(function() {
  1259. doNewSend(['6', [12]]);
  1260. }, 300);
  1261. setTimeout(function() {
  1262. doNewSend(['6', [15]]);
  1263. }, 300);
  1264. setTimeout(function() {
  1265. doNewSend(['c', [0]]);
  1266. doNewSend(['13c', [0, 6, 0]]);
  1267. doNewSend(['5', [primary, !![]]]);
  1268. autoaim = ![];
  1269. }, 300);
  1270. }
  1271. if (a['keyCode'] == 97 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1272. doNewSend(['6', [4]]);
  1273. }
  1274. if (a['keyCode'] == 98 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1275. doNewSend(['6', [15]]);
  1276. }
  1277. if (a['keyCode'] == 99 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1278. doNewSend(['6', [28]]);
  1279. }
  1280. if (a['keyCode'] == 105 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1281. doNewSend(['6', [28]]);
  1282. doNewSend(['6', [25]]);
  1283. }
  1284. if (a['keyCode'] == 39 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1285. hatToggle = (hatToggle + 1) % 2;
  1286. if (healToggle == 0) {
  1287. if (hatToggle == 0) {
  1288. document['title'] = 'Heal: OFF | Hat: OFF';
  1289. } else {
  1290. document['title'] = 'Heal: OFF | Hat: ON';
  1291. }
  1292. } else {
  1293. if (hatToggle == 0) {
  1294. document['title'] = 'Heal: ON | Hat: OFF';
  1295. } else {
  1296. document['title'] = 'Heal: ON | Hat: ON';
  1297. }
  1298. }
  1299. }
  1300. });
  1301. document['addEventListener']('keyup', function(a) {
  1302. healer['stop'](a['keyCode']);
  1303. turretPlacer['stop'](a['keyCode']);
  1304. boostPlacer['stop'](a['keyCode']);
  1305. spikePlacer['stop'](a['keyCode']);
  1306. boostSpiker['stop'](a['keyCode']);
  1307. millPlacer['stop'](a['keyCode']);
  1308. ;
  1309. if (a['keyCode'] == 71 && document['activeElement']['id']['toLowerCase']() !== 'chatbox') {
  1310. setTimeout(function() {
  1311. doNewSend(['33', [null]]);
  1312. boostDir = null;
  1313. }, 10);
  1314. }
  1315. });
  1316. function isElementVisible(options) {
  1317. return options.offsetParent !== null;
  1318. }
  1319. function toRad(degrees) {
  1320. return degrees * 0.01745329251;
  1321. }
  1322. function dist(p1, p) {
  1323. return Math.sqrt(Math.pow(p.y - p1[2], 2) + Math.pow(p.x - p1[1], 2));
  1324. }
  1325. function animate(selector, margin) {
  1326. var output = '';
  1327. var str1 = void 0;
  1328. if (selector) {
  1329. str1 = ' /$&%(EZ)%&$\ ';
  1330. } else {
  1331. str1 = 'gg-gg';
  1332. }
  1333. if (selector) {
  1334. str1 = str1.padStart((30 - str1.length) / 2 + str1.length);
  1335. str1 = str1.padEnd(30);
  1336. }
  1337. var count = 0;
  1338. var i = 0;
  1339. for (; i < str1.length; i++) {
  1340. if (Math.floor(Math.random() * margin) == 1 && str1.charAt(i) != '' && count < 2 && str1.charAt(i) != '') {
  1341. output = output + '-';
  1342. count++;
  1343. } else {
  1344. output = output + str1.charAt(i);
  1345. }
  1346. }
  1347. return output;
  1348. }
  1349. 'use strict';
  1350. function update() {
  1351. var event = 0;
  1352. for (; event < 9; event++) {
  1353. if (isElementVisible(document['getElementById']('actionBarItem' + event['toString']()))) {
  1354. primary = event;
  1355. }
  1356. }
  1357. var div = 9;
  1358. for (; div < 16; div++) {
  1359. if (isElementVisible(document['getElementById']('actionBarItem' + div['toString']()))) {
  1360. secondary = div;
  1361. }
  1362. }
  1363. var tobj = 16;
  1364. for (; tobj < 19; tobj++) {
  1365. if (isElementVisible(document['getElementById']('actionBarItem' + tobj['toString']()))) {
  1366. foodType = tobj - 16;
  1367. }
  1368. }
  1369. var props = 19;
  1370. for (; props < 22; props++) {
  1371. if (isElementVisible(document['getElementById']('actionBarItem' + props['toString']()))) {
  1372. wallType = props - 16;
  1373. }
  1374. }
  1375. var e = 22;
  1376. for (; e < 26; e++) {
  1377. if (isElementVisible(document['getElementById']('actionBarItem' + e['toString']()))) {
  1378. spikeType = e - 16;
  1379. }
  1380. }
  1381. var f = 26;
  1382. for (; f < 29; f++) {
  1383. if (isElementVisible(document['getElementById']('actionBarItem' + f['toString']()))) {
  1384. millType = f - 16;
  1385. }
  1386. }
  1387. var g = 29;
  1388. for (; g < 31; g++) {
  1389. if (isElementVisible(document['getElementById']('actionBarItem' + g['toString']()))) {
  1390. mineType = g - 16;
  1391. }
  1392. }
  1393. var h = 31;
  1394. for (; h < 33; h++) {
  1395. if (isElementVisible(document['getElementById']('actionBarItem' + h['toString']()))) {
  1396. boostType = h - 16;
  1397. }
  1398. }
  1399. var intval = 33;
  1400. for (; intval < 39; intval++) {
  1401. if (isElementVisible(document['getElementById']('actionBarItem' + intval['toString']())) && intval != 36) {
  1402. turretType = intval - 16;
  1403. }
  1404. }
  1405. spawnpadType = 36;
  1406. }
  1407. ;