nha bao viec fake:D

hack thoi ok:D?

Tento skript by nemal byť nainštalovaný priamo. Je to knižnica pre ďalšie skripty, ktorú by mali používať cez meta príkaz // @require https://update.sleazyfork.org/scripts/398198/782132/nha%20bao%20viec%20fake%3AD.js

  1. try {
  2. document.getElementById("moomooio_728x90_home").style.display = "none";
  3. $("#moomooio_728x90_home").parent().css({display: "none"});
  4. } catch (e) {
  5. console.log(" removing ad");
  6. }
  7.  
  8. unsafeWindow.onbeforeunload = null;
  9.  
  10.  
  11. ({'position':'absolute','bottom':'72px','left':'20px','width':'420px','height':'236.25px','padding-bottom':'18px','margin-top':'0px'});
  12.  
  13. $("#gameCanvas").css('cursor', 'url(http://cur.cursors-4u.net/games/gam-15/gam1422.gif), default');
  14.  
  15. $('.menuCard').css({'white-space': 'normal',
  16. 'text-align': 'center',
  17. 'background-color': 'rgba(0, 0, 0, 0.74)',
  18. '-moz-box-shadow': '0px 0px rgba(255, 255, 255, 0)',
  19. '-webkit-box-shadow': '0px 0px rgba(255, 255, 255, 0)',
  20. 'box-shadow': '0px 0px rgba(255, 255, 255, 0)',
  21. '-webkit-border-radius': '0px',
  22. '-moz-border-radius': '0px',
  23. 'border-radius': '0px',
  24. 'margin': '15px',
  25. 'margin-top': '15px'});
  26.  
  27. $('.menuCard').css({'color':'#808080'});
  28.  
  29.  
  30. $('#menuContainer').css({'white-space': 'normal'});
  31.  
  32.  
  33. $('#guideCard').css({'color': '#FFFFF'});
  34.  
  35. $('.killCounter').css({'color': '#000000'});
  36.  
  37. $('#nativeResolution').css({'cursor': 'pointer'});
  38.  
  39. $('#playMusic').css({'cursor': 'pointer'});
  40.  
  41. $('#skinColorHolder').css({'margin-bottom': '30.75px'});
  42.  
  43. $('.settingRadio').css({'margin-bottom': '30.75px'});
  44.  
  45. $('#gameName').css({'color': '#FFA500',
  46. 'text-shadow': '0 1px 0 rgba(255, 255, 255), 0 2px 0 rgba(255, 255, 255), 0 3px 0 rgba(255, 255, 255), 0 4px 0 rgba(255, 255, 255), 0 5px 0 rgba(255, 255, 255), 0 6px 0 rgba(255, 255, 255), 0 7px 0 rgba(255, 255, 255), 0 8px 0 rgba(255, 255, 255, 0), 0 9px 0 rgba(255, 255, 255, 0)',
  47. 'text-align': 'center',
  48. 'font-size': '126px',
  49. 'margin-bottom': '-30px'});
  50.  
  51. $('#loadingText').css({'color': '#FFA500',
  52. 'background-color': 'rgba(0, 0, 0, 0.74)',
  53. 'padding': '8px',
  54. 'right': '150%',
  55. 'left': '150%',
  56. 'margin-top': '40px'});
  57.  
  58. $('.ytLink').css({'color': '#FFA500',
  59. 'padding': '8px',
  60. 'background-color': 'rgba(0, 0, 0, 0.74)'});
  61.  
  62. $('.menuLink').css({'color': '#FF0000'});
  63.  
  64. $('.menuButton').css({'background-color': '#00FFFF'});
  65.  
  66.  
  67. $('#nameInput').css({'border-radius': '0px',
  68. '-moz-border-radius': '0px',
  69. '-webkit-border-radius': '0px',
  70. 'border': 'hidden'});
  71.  
  72.  
  73. $('#serverSelect').css({'cursor': 'pointer',
  74. 'color': '#FF00FF',
  75. 'background-color': '#FF00FF',
  76. 'border': 'hidden',
  77. 'font-size': '20px'});
  78.  
  79. $('.menuButton').css({'border-radius': '0px',
  80. '-moz-border-radius': '0px',})
  81.  
  82. var moomooVer = $('#linksContainer2 .menuLink').html(),
  83. hideSelectors = ['#mobileDownloadButtonContainer',
  84. '#followText',
  85. '#smallLinks',
  86. '#linksContainer1',
  87. '#twitterFollow',
  88. '#youtubeFollow',
  89. '#cdm-zone-02',
  90. '#youtuberOf',
  91. '#promoImg',
  92. '#downloadButtonContainer',
  93. '.menuHeader',
  94. '.menuLink',
  95. '.menuHeader:nth-child(5)',
  96. '.menuHeader:nth-child(6)',
  97. '.menuText'
  98. ],
  99. css = '#rightCardHolder {display: block!important}',
  100. head = document.head || document.getElementsByTagName('head')[0],
  101. style = document.createElement('style');
  102.  
  103. style.type = 'text/css';
  104. if (style.styleSheet){
  105. style.styleSheet.cssText = css;
  106. } else {
  107. style.appendChild(document.createTextNode(css));
  108. }
  109.  
  110. for ( let i = 0; i < hideSelectors.length; i++ ) {
  111. $(hideSelectors[i]).hide();
  112. }
  113. head.appendChild(style);
  114. $('#linksContainer2').html('<a href="./docs/versions.txt" target="_blank" class="menuLink">' + moomooVer + '</a>');
  115.  
  116. // document.getElementById("gameUI").style.backgroundImage = "url('')";
  117. // document.getElementById("mainMenu").style.backgroundImage = "url('')";
  118. document.getElementById('enterGame').innerHTML = '︵✿๖ۣۜPℓαү‿✿';
  119. document.getElementById('loadingText').innerHTML = '♡•Ƙαїʑø•ƤƘ• ๖ۣۜSρℓσĭт♡ Are Loading';
  120. document.getElementById('nameInput').placeholder = "♡๖ۣۜYσυɾ ๖ۣۜNαмε?♡";
  121. document.getElementById('chatBox').placeholder = "ʚ???ɞ";
  122. document.getElementById('diedText').innerHTML = '♡Ɣøʉ Ąɾε Dїε♡';
  123. document.getElementById('diedText').style.color = "yellow";
  124.  
  125. document.getElementById("storeHolder").style = "height: 1500px; width: 450px;"
  126.  
  127. document.getElementById('adCard').remove();
  128. document.getElementById('errorNotification').remove();
  129.  
  130. document.getElementById("leaderboard").style.color = "pink";
  131. document.getElementById("gameName").style.color = "pink";
  132. document.getElementById("setupCard").style.color = "black";
  133. document.getElementById("gameName").innerHTML = "♡•Ƙαїʑø•ƤƘ•"
  134. document.getElementById("promoImg").remove();
  135. document.getElementById("scoreDisplay").style.color = "yellow";
  136. document.getElementById("woodDisplay").style.color = "pink";
  137. document.getElementById("stoneDisplay").style.color = "pink";
  138. document.getElementById("killCounter").style.color = "pink";
  139. document.getElementById("foodDisplay").style.color = "pink";
  140. document.getElementById("ageText").style.color = "yellow";
  141. document.getElementById("allianceButton").style.color = "yellow";
  142. document.getElementById("chatButton").style.color = "red";
  143. document.getElementById("storeButton").style.color = "black";
  144.  
  145. $('.menuCard').css({'white-space': 'normal',
  146. 'text-align': 'center',
  147. 'background-color': 'rgba(0, 0, 0, 0)',
  148. '-moz-box-shadow': '0px 0px rgba(255, 255, 255, 0)',
  149. '-webkit-box-shadow': '0px 0px rgba(255, 255, 255, 0)',
  150. 'box-shadow': '0px 0px rgba(255, 255, 255, 0)',
  151. '-webkit-border-radius': '0px',
  152. '-moz-border-radius': '0px',
  153. 'border-radius': '0px',
  154. 'margin': '15px',
  155. 'margin-top': '15px'});
  156.  
  157. $('#menuContainer').css({'white-space': 'normal'});
  158.  
  159. $('#nativeResolution').css({'cursor': 'pointer'});
  160.  
  161. $('#playMusic').css({'cursor': 'pointer'});
  162.  
  163. $('#guideCard').css({'overflow-y': 'hidden',
  164. 'margin-top': 'auto',
  165. 'margin-bottom': '30px'});
  166.  
  167.  
  168. $('#skinColorHolder').css({'margin-bottom': '30.75px'});
  169.  
  170. $('.settingRadio').css({'margin-bottom': '30.75px'});
  171.  
  172.  
  173.  
  174. $('#linksContainer2').css({'-webkit-border-radius': '0px 0 0 0',
  175. '-moz-border-radius': '0px 0 0 0',
  176. 'border-radius': '0px 0 0 0',
  177. 'right': '44%',
  178. 'left': '44%',
  179. 'background-color': 'rgba(0, 0, 0, 0)',
  180. 'text-align': 'center',
  181. 'bottom': '12px'});
  182.  
  183. $('#gameName').css({'color': '#000000',
  184. 'text-shadow': '0 1px 0 rgba(255, 255, 255, 0), 0 2px 0 rgba(255, 255, 255, 0), 0 3px 0 rgba(255, 255, 255, 0), 0 4px 0 rgba(255, 255, 255, 0), 0 5px 0 rgba(255, 255, 255, 0), 0 6px 0 rgba(255, 255, 255, 0), 0 7px 0 rgba(255, 255, 255, 0), 0 8px 0 rgba(255, 255, 255, 0), 0 9px 0 rgba(255, 255, 255, 0)',
  185. 'text-align': 'center',
  186. 'font-size': '156px',
  187. 'margin-bottom': '-30px'});
  188.  
  189. $('#loadingText').css({'color': '#000000',
  190. 'background-color': 'rgba(0, 0, 0, 0)',
  191. 'padding': '8px',
  192. 'right': '150%',
  193. 'left': '150%',
  194. 'margin-top': '40px'});
  195.  
  196. $('.ytLink').css({'color': '#144db4',
  197. 'padding': '8px',
  198. 'background-color': 'rgba(0, 0, 0, 0)'});
  199.  
  200. $('.menuLink').css({'color': '#144db4'});
  201.  
  202. $('#nameInput').css({'border-radius': '0px',
  203. '-moz-border-radius': '0px',
  204. '-webkit-border-radius': '0px',
  205. 'border': 'hidden'});
  206.  
  207. $('#serverSelect').css({'cursor': 'pointer',
  208. 'color': '#000000',
  209. 'background-color': '#808080',
  210. 'border': 'hidden',
  211. 'font-size': '20px'});
  212.  
  213. $('.menuButton').css({'border-radius': '0px',
  214. '-moz-border-radius': '0px',
  215. '-webkit-border-radius': '0px'});
  216.  
  217. $('#promoImgHolder').css({'position': 'absolute',
  218. 'bottom': '-7%',
  219. 'left': '20px',
  220. 'width': '420px',
  221. 'height': '236.25px',
  222. 'padding-bottom': '18px',
  223. 'margin-top': '0px'});
  224.  
  225. $('#adCard').css({'position': 'absolute',
  226. 'bottom': '-7%',
  227. 'right': '20px',
  228. 'width': '420px',
  229. 'height': '236.25px',
  230. 'padding-bottom': '18px'});
  231.  
  232.  
  233. $('.menuHeader').css({'color': 'rgba(255, 255, 255, 1)'});
  234.  
  235. $('#killCounter').css({'color': '#ededed'});
  236.  
  237. $('#diedText').css({'background-color': 'rgba(0, 0, 0, 0)'});
  238.  
  239. $('#gameCanvas').css({'background-color': '#f4f4f4'});
  240.  
  241. $('#allianceButton').css({'color': 'rgba(241, 241, 241, 1)'});
  242.  
  243. $('#storeButton').css({'color': 'rgba(241, 241, 241, 1)'});
  244.  
  245. $('#chatButton').css({'color': 'rgba(241, 241, 241, 1)'});
  246.  
  247. $('.gameButton').css({'-webkit-border-radius': '0px 0 0 0',
  248. '-moz-border-radius': '0px 0 0 0',
  249. 'border-radius': '0px 0 0 0',
  250. 'background-color': 'rgba(0, 0, 0, 0.4)'});
  251.  
  252. $('.uiElement, .resourceDisplay').css({'-webkit-border-radius': '0px',
  253. '-moz-border-radius': '0px',
  254. 'border-radius': '0px',
  255. 'background-color': 'rgba(0, 0, 0, 0.4)'});
  256.  
  257. $('#chatBox').css({'-webkit-border-radius': '0px',
  258. '-moz-border-radius': '0px',
  259. 'border-radius': '0px',
  260. 'background-color': 'rgba(0, 0, 0, 0.4)',
  261. 'text-align': 'center'});
  262.  
  263. $('#foodDisplay').css({'color': '#ae4d54'});
  264.  
  265. $('#woodDisplay').css({'color': '#758f58'});
  266.  
  267. $('#stoneDisplay').css({'color': '#818198'});
  268.  
  269. $('#scoreDisplay').css({'color': '#c2b17a'});
  270.  
  271. $('#leaderboard').css({'-webkit-border-radius': '0px',
  272. '-moz-border-radius': '0px',
  273. 'border-radius': '0px',
  274. 'background-color': 'rgba(0, 0, 0, 0.4)',
  275. 'text-align': 'center'});
  276.  
  277. $('#ageText').css({'color': '#ffdfd'});
  278.  
  279. $('#ageBar').css({'-webkit-border-radius': '0px',
  280. '-moz-border-radius': '0px',
  281. 'border-radius': '0px',
  282. 'background-color': 'rgba(0, 0, 0, 0.4)'});
  283.  
  284. $('#ageBarBody').css({'-webkit-border-radius': '0px',
  285. '-moz-border-radius': '0px',
  286. 'border-radius': '0px',
  287. 'background-color': '#f00'});
  288.  
  289. $('.storeTab').css({'-webkit-border-radius': '0px',
  290. '-moz-border-radius': '0px',
  291. 'border-radius': '0px',
  292. 'background-color': 'rgba(0, 0, 0, 0.4)'});
  293.  
  294. $('#storeHolder').css({'-webkit-border-radius': '0px',
  295. '-moz-border-radius': '0px',
  296. 'border-radius': '0px',
  297. 'background-color': 'rgba(0, 0, 0, 0.4)'});
  298.  
  299. $('#allianceHolder').css({'-webkit-border-radius': '0px',
  300. '-moz-border-radius': '0px',
  301. 'border-radius': '0px',
  302. 'background-color': 'rgba(0, 0, 0, 0.4)'});
  303.  
  304. $('.actionBarItem').css({'-webkit-border-radius': '0px',
  305. 'border-radius': '0px',
  306. 'background-color': 'rgba(0, 0, 0, 0.4)'});
  307.  
  308. $('#itemInfoHolder').css({'text-align': 'center',
  309. 'top': '125px',
  310. 'left': '350px',
  311. 'right': '350px',
  312. 'max-width': '666px'});
  313.  
  314. // document.addEventListener("keydown", function(a) {if (a.keyCode == 8,9,13,16,17,18,19,20,27,33,34,35,36,37,38,39,40,45,46,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,96,97,98,100,101,102,103,104,105,106,107,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,144,145,186,187,188,189,190,191,192,219,220,221,222) {document.getElementById("nameInput").value="FERANYZERIR BOT";}}, false);
  315.  
  316. var myElement = document.querySelector('#nameInput');
  317. myElement.style.backgroundColor = "#fffdfd";
  318. myElement.style.color = "#000000";
  319.  
  320. var getElement = document.querySelector('#enterGame');
  321. getElement.style.backgroundColor = "#d61818";
  322. getElement.style.color = "#000000";
  323.  
  324. $('#leaderboard').append('♡•Ƙαїʑø•ƤƘ•');
  325.  
  326. var ID_WinterCap = 15;
  327. var ID_FlipperHat = 31;
  328. var ID_MarksmanCap = 1;
  329. var ID_BushGear = 10;
  330. var ID_SoldierHelmet = 6;
  331. var ID_AntiVenomGear = 23;
  332. var ID_MusketeerHat = 32;
  333. var ID_MedicGear = 13;
  334. var ID_BullHelmet = 7;
  335. var ID_EmpHelmet = 22;
  336. var ID_BoosterHat = 12;
  337. var ID_BarbarianArmor = 26;
  338. var ID_BullMask = 46;
  339. var ID_WindmillHat = 14;
  340. var ID_SpikeGear = 11;
  341. var ID_BushidoArmor = 16;
  342. var ID_SamuraiArmor = 20;
  343. var ID_ScavengerGear = 27;
  344. var ID_TankGear = 40;
  345. var ID_TurretGear = 53;
  346. var TankGearKey = 90;
  347. var BullHelmetKey = 74;
  348. var SoldierHelmetKey = 71;
  349. var TurretKey = 72;
  350. var BoosterHatKey = 66;
  351. var uneqiup = 16;
  352. var SpikeGearKey = 89;
  353. var BarabarianKey = 84;
  354. var SpikeKey = 86
  355.  
  356.  
  357. document.getElementById("moomooio_728x90_home").style.display = "none";
  358. $("#moomooio_728x90_home").parent().css({display: "none"});
  359.  
  360.  
  361. var menuChange = document.createElement("div");
  362. menuChange.className = "menuCard";
  363. menuChange.id = "mainSettings";
  364. menuChange.innerHTML = `
  365. <div id="simpleModal" class="modal">
  366. <div class="modal-content">
  367. <div class="modal-header">
  368. <span class="closeBtn">&times;</span>
  369. <h2 style="font-size: 17px;">♡•Ƙαїʑø•ƤƘ• ๖ۣۜSρℓσĭт♡ - Settings</h2>
  370. </div>
  371. <div class="modal-body" style="font-size: 17px;">
  372. <div class="flexControl">
  373. <label class="container">Premium Map
  374. <input type="checkbox" id="myCheck">
  375. <span class="checkmark"></span>
  376. </label>
  377. </div>
  378. </div>
  379. <div class="modal-body" style="font-size: 17px;">
  380. <div class="flexControl">
  381. <label class="container">More FPS
  382. <input type="checkbox" id="myCheck">
  383. <span class="checkmark"></span>
  384. </label>
  385. </div>
  386. </div>
  387. <div class="modal-body" style="font-size: 17px;">
  388. <div class="flexControl">
  389. <h3 style="color: black; font-size: 17px;">Hat-keys</h3>
  390. <h3 class="menuPrompt">Tank Gear : </h3> <input value="${String.fromCharCode(TankGearKey)}" id="tankGear" class="keyPressLow" onkeyup="this.value = this.value.toUpperCase();" maxlength="1" type="text"/>
  391. <h3 class="menuPrompt">Bull Helmet : </h3> <input value="${String.fromCharCode(BullHelmetKey)}" id="bullHelm" class="keyPressLow" onkeyup="this.value = this.value.toUpperCase();" maxlength="1" type="text"/>
  392. <h3 class="menuPrompt">Soldier Helmet : </h3> <input value="${String.fromCharCode(SoldierHelmetKey)}" id="soldier" class="keyPressLow"onkeyup="this.value = this.value.toUpperCase();" maxlength="1" type="text"/>
  393. <h3 class="menuPrompt">Turret Gear : </h3> <input value="${String.fromCharCode(TurretKey)}" id="turret" class="keyPressLow" maxlength="1" onkeyup="this.value = this.value.toUpperCase();" type="text"/>
  394. <h3 class="menuPrompt">Booster Hat : </h3> <input value="${String.fromCharCode(BoosterHatKey)}" id="booster" class="keyPressLow" maxlength="1" onkeyup="this.value = this.value.toUpperCase();" type="text"/>
  395. <h3 class="menuPrompt">Spike Gear : </h3> <input value="${String.fromCharCode(SpikeGearKey)}" id="spikeg" class="keyPressLow" maxlength="1" onkeyup="this.value = this.value.toUpperCase();" type="text"/>
  396. <h3 class="menuPrompt">Barbarian Armor : </h3> <input value="${String.fromCharCode(BarabarianKey)}" id="barb" class="keyPressLow" onkeyup="this.value = this.value.toUpperCase();" maxlength="1" type="text"/>
  397. <hr>
  398. <div class="modal-footer">
  399. <p>By Cookie_or_die</p>
  400. </div>
  401. </div>
  402. </div>
  403. `
  404. document.body.appendChild(menuChange)
  405.  
  406.  
  407. $("#tankGear").on("input", () => {
  408. var cval = $("#tankGear").val();
  409. if (cval){
  410. TankGearKey = cval.toUpperCase();
  411. TankGearKey = TankGearKey.charCodeAt(0);
  412. console.log(TankGearKey);
  413. }
  414. });
  415.  
  416. $("#bullHelm").on("input", () => {
  417. var cval = $("#bullHelm").val();
  418. if (cval){
  419. BullHelmetKey = cval.toUpperCase();
  420. BullHelmetKey = BullHelmetKey.charCodeAt(0);
  421. console.log(BullHelmetKey);
  422. }
  423. });
  424.  
  425. $("#soldier").on("input", () => {
  426. var cval = $("#soldier").val();
  427. if (cval){
  428. SoldierHelmetKey = cval.toUpperCase();
  429. SoldierHelmetKey = SoldierHelmetKey.charCodeAt(0);
  430. console.log(SoldierHelmetKey);
  431. }
  432. });
  433.  
  434. $("#turret").on("input", () => {
  435. var cval = $("#turret").val();
  436. if (cval){
  437. TurretKey = cval.toUpperCase();
  438. TurretKey = TurretKey.charCodeAt(0);
  439. console.log(TurretKey);
  440. }
  441. });
  442.  
  443.  
  444.  
  445. $("#barb").on("input", () => {
  446. var cval = $("#barb").val();
  447. if (cval){
  448. BarabarianKey = cval.toUpperCase();
  449. BarabarianKey = BarabarianKey.charCodeAt(0);
  450. console.log(BarabarianKey);
  451. }
  452. });
  453.  
  454. $("#booster").on("input", () => {
  455. var cval = $("#booster").val();
  456. if (cval){
  457. BoosterHatKey = cval.toUpperCase();
  458. BoosterHatKey = BoosterHatKey.charCodeAt(0);
  459. console.log(BoosterHatKey);
  460. }
  461. });
  462.  
  463. $("#spikeg").on("input", () => {
  464. var cval = $("#spikeg").val();
  465. if (cval){
  466. SpikeGearKey = cval.toUpperCase();
  467. SpikeGearKey = SpikeGearKey.charCodeAt(0);
  468. console.log(SpikeGearKey);
  469. }
  470. });
  471.  
  472. $("#trap").on("input", () => {
  473. var cval = $("#trap").val();
  474. if (cval){
  475. TrapKey = cval.toUpperCase();
  476. TrapKey = TrapKey.charCodeAt(0);
  477. console.log(TrapKey);
  478. }
  479. });
  480.  
  481. var styleItem = document.createElement("style");
  482. styleItem.type = "text/css";
  483. styleItem.appendChild(document.createTextNode(`
  484. .keyPressLow {
  485. margin-left: 8px;
  486. font-size: 16px;
  487. margin-right: 8px;
  488. height: 25px;
  489. width: 50px;
  490. background-color: #fcfcfc;
  491. border-radius: 3.5px;
  492. border: none;
  493. text-align: center;
  494. color: #4A4A4A;
  495. border: 0.5px solid #f2f2f2;
  496. }
  497.  
  498. .menuPrompt {
  499. font-size: 17px;
  500. font-family: 'Hammersmith One';
  501. color: #4A4A4A;
  502. flex: 0.2;
  503. text-align: center;
  504. margin-top: 10px;
  505. display: inline-block;
  506. }
  507.  
  508. .modal {
  509. display: none;
  510. position: fixed;
  511. z-index: 1;
  512. left: 0;
  513. top: 0;
  514. overflow: auto;
  515. height: 100%;
  516. width: 100%;
  517. }
  518.  
  519. .modal-content {
  520. margin: 10% auto;
  521. width: 40%;
  522. box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 7px 20px 0 rgba(0, 0, 0, 0.17);
  523. font-size: 14px;
  524. line-height: 1.6;
  525. }
  526.  
  527. .modal-header h2,
  528. .modal-footer h3 {
  529. margin: 0;
  530. }
  531.  
  532. .modal-header {
  533. background: #000000;
  534. padding: 15px;
  535. color: #fff;
  536. border-top-left-radius: 5px;
  537. border-top-right-radius: 5px;
  538. }
  539.  
  540. .modal-body {
  541. padding: 10px 20px;
  542. background: #fff;
  543. }
  544.  
  545. .modal-footer {
  546. background: #000000;
  547. padding: 10px;
  548. color: #fff;
  549. text-align: center;
  550. border-bottom-left-radius: 5px;
  551. border-bottom-right-radius: 5px;
  552. }
  553.  
  554. .closeBtn {
  555. color: #ccc;
  556. float: right;
  557. font-size: 30px;
  558. color: #fff;
  559. }
  560.  
  561. .closeBtn:hover,
  562. .closeBtn:focus {
  563. color: #e01313;
  564. text-decoration: none;
  565. cursor: pointer;
  566. }
  567.  
  568. /* Customize the label (the container) */
  569. .container {
  570. display: block;
  571. position: relative;
  572. padding-left: 35px;
  573. margin-bottom: 12px;
  574. cursor: pointer;
  575. font-size: 16px;
  576. -webkit-user-select: none;
  577. -moz-user-select: none;
  578. -ms-user-select: none;
  579. user-select: none;
  580. }
  581.  
  582. /* Hide the browser's default checkbox */
  583. .container input {
  584. position: absolute;
  585. opacity: 0;
  586. cursor: pointer;
  587. height: 0;
  588. width: 0;
  589. }
  590.  
  591. /* Create a custom checkbox */
  592. .checkmark {
  593. position: absolute;
  594. top: 0;
  595. left: 0;
  596. height: 25px;
  597. width: 25px;
  598. background-color: #eee;
  599. }
  600.  
  601. /* On mouse-over, add a grey background color */
  602. .container:hover input ~ .checkmark {
  603. background-color: #ccc;
  604. }
  605.  
  606. /* When the checkbox is checked, add a blue background */
  607. .container input:checked ~ .checkmark {
  608. background-color: #ec6b20;
  609. }
  610.  
  611. .checkmark:after {
  612. content: "";
  613. position: absolute;
  614. display: none;
  615. }
  616.  
  617. .container input:checked ~ .checkmark:after {
  618. display: block;
  619. }
  620.  
  621. /* Style the checkmark/indicator */
  622. .container .checkmark:after {
  623. left: 9px;
  624. top: 5px;
  625. width: 5px;
  626. height: 10px;
  627. border: solid white;
  628. border-width: 0 3px 3px 0;
  629. -webkit-transform: rotate(45deg);
  630. -ms-transform: rotate(45deg);
  631. transform: rotate(45deg);
  632. }
  633.  
  634. `))
  635. document.head.appendChild(styleItem);
  636.  
  637.  
  638. $("#adCard").css({display: "none"});
  639.  
  640.  
  641. document.addEventListener('keydown', function(e) {
  642. if (e.keyCode == uneqiup && document.activeElement.id.toLowerCase() !== 'chatbox'){
  643. console.log("done")
  644. storeEquip(0);
  645. } else if (e.keyCode == 27){
  646. if (modal.style.display = "none") {
  647. modal.style.display = "block";
  648. } else {
  649. modal.style.display = "none";
  650. }
  651. } else if (e.keyCode == TankGearKey && document.activeElement.id.toLowerCase() !== 'chatbox'){
  652. storeEquip(ID_TankGear);
  653. } else if (e.keyCode == SoldierHelmetKey && document.activeElement.id.toLowerCase() !== 'chatbox'){
  654. storeEquip(ID_SoldierHelmet);
  655. } else if (e.keyCode == BullHelmetKey && document.activeElement.id.toLowerCase() !== 'chatbox'){
  656. storeEquip(ID_BullHelmet);
  657. } else if (e.keyCode == BoosterHatKey && document.activeElement.id.toLowerCase() !== 'chatbox'){
  658. storeEquip(ID_BoosterHat);
  659. } else if (e.keyCode == BarabarianKey && document.activeElement.id.toLowerCase() !== 'chatbox'){
  660. storeEquip(ID_BarbarianArmor);
  661. } else if (e.keyCode == SpikeGearKey && document.activeElement.id.toLowerCase() !== 'chatbox'){
  662. storeEquip(ID_SpikeGear);
  663. } else if (e.keyCode == TurretKey && document.activeElement.id.toLowerCase() !== 'chatbox'){
  664. storeEquip(ID_TurretGear);
  665. }
  666. })
  667.  
  668. // Get modal element
  669. var modal = document.getElementById("simpleModal");
  670. // Get close button
  671. var closeBtn = document.getElementsByClassName('closeBtn')[0];
  672.  
  673. // Events
  674. closeBtn.addEventListener('click', closeModal);
  675. window.addEventListener('click', outsideClick);
  676.  
  677. // Close
  678. function closeModal() {
  679. modal.style.display = 'none';
  680. }
  681.  
  682. // Close If Outside Click
  683. function outsideClick(e) {
  684. if (e.target == modal) {
  685. modal.style.display = 'none';
  686. }
  687. }
  688.  
  689. var checkbox = document.querySelector("#myCheck")
  690.  
  691. checkbox.addEventListener('change', function() {
  692. if (this.checked) {
  693. $("#mapDisplay").css({background: `url('https://i.imgur.com/fgFsQJp.png')`});
  694. console.log('checked')
  695. } else {
  696. $("#mapDisplay").css({background: `rgba(0, 0, 0, 0.25)`})
  697. console.log('unchecked')
  698. }
  699. })
  700.  
  701.  
  702. $("#mapDisplay").css({background: `url('https://i.imgur.com/fgFsQJp.png')`});
  703.  
  704. document.getElementById("moomooio_728x90_home").style.display = "none";
  705. $("#moomooio_728x90_home").parent().css({display: "none"});
  706.  
  707. window.onbeforeunload = null;
  708.  
  709. let mouseX;
  710. let mouseY;
  711.  
  712. let width;
  713. let height;
  714.  
  715. setInterval(() => {
  716. if(clanToggle == 1) {
  717. doNewSend(["9", [null]]);
  718. doNewSend(["8", [animate(false, 5)]])
  719. }
  720. doNewSend(["testing", [6]]);
  721. }, 200);
  722.  
  723. setInterval(() => {
  724. if(messageToggle == 1) {
  725. doNewSend(["ch", [animate(true, 5)]])
  726. }
  727. }, 200);
  728.  
  729. setInterval(() => {
  730. if(autoaim == true) {
  731. doNewSend(["2", [nearestEnemyAngle]]);
  732. }
  733. }, 0);
  734.  
  735. setInterval(() => {
  736. if(hatToggle == 1) {
  737. if(oldHat != normalHat) {
  738. hat(normalHat);
  739. console.log("Tried. - Hat")
  740. }
  741. if(oldAcc != normalAcc) {
  742. acc(normalAcc);
  743. console.log("Tried. - Acc")
  744. }
  745. oldHat = normalHat;
  746. oldAcc = normalAcc
  747. }
  748. }, 25);
  749.  
  750. function normal() {
  751. hat(normalHat);
  752. acc(normalAcc);
  753. }
  754.  
  755. function aim(x, y){
  756. var cvs = document.getElementById("gameCanvas");
  757. cvs.dispatchEvent(new MouseEvent("mousemove", {
  758. clientX: x,
  759. clientY: y
  760.  
  761. }));
  762. }
  763.  
  764. let coreURL = new URL(window.location.href);
  765. window.sessionStorage.force = coreURL.searchParams.get("fc");
  766.  
  767. var nearestEnemy;
  768. var nearestEnemyAngle;
  769. var isEnemyNear;
  770. var instaSpeed = 200;
  771. var primary;
  772. var secondary;
  773. var foodType;
  774. var wallType;
  775. var spikeType;
  776. var millType;
  777. var mineType;
  778. var boostType;
  779. var turretType;
  780. var spawnpadType;
  781. var autoaim = false;
  782. var tick = 1;
  783. var oldHat;
  784. var oldAcc;
  785. var enemiesNear;
  786. var normalHat;
  787. var normalAcc;
  788. var ws;
  789. var msgpack5 = msgpack;
  790. var boostDir;
  791. let myPlayer = {
  792. id: null,
  793. x: null,
  794. y: null,
  795. dir: null,
  796. object: null,
  797. weapon: null,
  798. clan: null,
  799. isLeader: null,
  800. hat: null,
  801. accessory: null,
  802. isSkull: null
  803. };
  804.  
  805. let healSpeed = 70;
  806. var messageToggle = 0;
  807. var clanToggle = 0;
  808. let healToggle = 1;
  809. let hatToggle = 1;
  810.  
  811. document.msgpack = msgpack;
  812. function n(){
  813. this.buffer = new Uint8Array([0]);
  814. this.buffer.__proto__ = new Uint8Array;
  815. this.type = 0;
  816. }
  817.  
  818. WebSocket.prototype.oldSend = WebSocket.prototype.send;
  819. WebSocket.prototype.send = function(m){
  820. if (!ws){
  821. document.ws = this;
  822.  
  823. ws = this;
  824. socketFound(this);
  825. }
  826. this.oldSend(m);
  827. };
  828.  
  829.  
  830. function socketFound(socket){
  831. socket.addEventListener('message', function(message){
  832. handleMessage(message);
  833. });
  834. }
  835.  
  836. function handleMessage(m){
  837. let temp = msgpack5.decode(new Uint8Array(m.data));
  838. let data;
  839. if(temp.length > 1) {
  840. data = [temp[0], ...temp[1]];
  841. if (data[1] instanceof Array){
  842. data = data;
  843. }
  844. } else {
  845. data = temp;
  846. }
  847. let item = data[0];
  848. if(!data) {return};
  849.  
  850. if(item === "io-init") {
  851. let cvs = document.getElementById("gameCanvas");
  852. width = cvs.clientWidth;
  853. height = cvs.clientHeight;
  854. $(window).resize(function() {
  855. width = cvs.clientWidth;
  856. height = cvs.clientHeight;
  857. });
  858. cvs.addEventListener("mousemove", e => {
  859. mouseX = e.clientX;
  860. mouseY = e.clientY;
  861. });
  862. }
  863.  
  864. if (item == "1" && myPlayer.id == null){
  865. myPlayer.id = data[1];
  866. }
  867.  
  868. if (item == "33") {
  869. enemiesNear = [];
  870. for(let i = 0; i < data[1].length / 13; i++) {
  871. let playerInfo = data[1].slice(13*i, 13*i+13);
  872. if(playerInfo[0] == myPlayer.id) {
  873. myPlayer.x = playerInfo[1];
  874. myPlayer.y = playerInfo[2];
  875. myPlayer.dir = playerInfo[3];
  876. myPlayer.object = playerInfo[4];
  877. myPlayer.weapon = playerInfo[5];
  878. myPlayer.clan = playerInfo[7];
  879. myPlayer.isLeader = playerInfo[8];
  880. myPlayer.hat = playerInfo[9];
  881. myPlayer.accessory = playerInfo[10];
  882. myPlayer.isSkull = playerInfo[11];
  883. } else if(playerInfo[7] != myPlayer.clan || playerInfo[7] === null) {
  884. enemiesNear.push(playerInfo);
  885. }
  886. }
  887. }
  888.  
  889. isEnemyNear = false;
  890. if(enemiesNear) {
  891. nearestEnemy = enemiesNear.sort((a,b) => dist(a, myPlayer) - dist(b, myPlayer))[0];
  892. }
  893.  
  894. if(nearestEnemy) {
  895. nearestEnemyAngle = Math.atan2(nearestEnemy[2]-myPlayer.y, nearestEnemy[1]-myPlayer.x);
  896. if(Math.sqrt(Math.pow((myPlayer.y-nearestEnemy[2]), 2) + Math.pow((myPlayer.x-nearestEnemy[1]), 2)) < 300) {
  897. isEnemyNear = true;
  898. if(autoaim == false && myPlayer.hat != 7 && myPlayer.hat != 53) {
  899. normalHat = 6;
  900. if(primary != 8) {
  901. normalAcc = 19
  902. }
  903. };
  904. }
  905. }
  906. if(isEnemyNear == false && autoaim == false) {
  907. normalAcc = 11;
  908. if (myPlayer.y < 2400){
  909. normalHat = 15;
  910. } else if (myPlayer.y > 6850 && myPlayer.y < 7550){
  911. normalHat = 31;
  912. } else {
  913. normalHat = 12;
  914. }
  915. }
  916. if (!nearestEnemy) {
  917. nearestEnemyAngle = myPlayer.dir;
  918. }
  919. if(item == "h" && data[1] == myPlayer.id) {
  920. if(data[2] < 100 && data[2] > 0 && healToggle == 1) {
  921. setTimeout( () => {
  922. place(foodType, null);
  923. }, healSpeed);
  924.  
  925. }
  926. }
  927. update();
  928. }
  929.  
  930.  
  931. function doNewSend(sender){
  932. ws.send(new Uint8Array(Array.from(msgpack5.encode(sender))));
  933. }
  934.  
  935. function acc(id) {
  936. doNewSend(["13c", [0, 0, 1]]);
  937. doNewSend(["13c", [0, id, 1]]);
  938. }
  939.  
  940. function hat(id) {
  941. doNewSend(["13c", [0, id, 0]]);
  942. }
  943.  
  944.  
  945. function place(id, angle = Math.atan2(mouseY - height / 2, mouseX - width / 2)) {
  946. doNewSend(["5", [id, null]]);
  947. doNewSend(["c", [1, angle]]);
  948. doNewSend(["c", [0, angle]]);
  949. doNewSend(["5", [myPlayer.weapon, true]]);
  950. }
  951.  
  952. function boostSpike() {
  953. if(boostDir == null) {
  954. boostDir = nearestEnemyAngle;
  955. }
  956. place(spikeType, boostDir + toRad(90));
  957. place(spikeType, boostDir - toRad(90));
  958. place(boostType, boostDir);
  959. doNewSend(["33", [boostDir]]);
  960. }
  961.  
  962.  
  963. var repeater = function(key, action, interval) {
  964. let _isKeyDown = false;
  965. let _intervalId = undefined;
  966.  
  967. return {
  968. start(keycode) {
  969. if(keycode == key && document.activeElement.id.toLowerCase() !== 'chatbox') {
  970. _isKeyDown = true;
  971. if(_intervalId === undefined) {
  972. _intervalId = setInterval(() => {
  973. action();
  974. if(!_isKeyDown){
  975. clearInterval(_intervalId);
  976. _intervalId = undefined;
  977. console.log("claered");
  978. }
  979. }, interval);
  980. }
  981. }
  982. },
  983.  
  984. stop(keycode) {
  985. if(keycode == key && document.activeElement.id.toLowerCase() !== 'chatbox') {
  986. _isKeyDown = false;
  987. }
  988. }
  989. };
  990.  
  991.  
  992. }
  993.  
  994. const healer = repeater(81, () => {place(foodType)}, 0);
  995. const boostPlacer = repeater(70, () => {place(boostType)}, 0);
  996. const spikePlacer = repeater(86, () => {place(spikeType)}, 0);
  997. const millPlacer = repeater(78, () => {place(millType)}, 0);
  998. const turretPlacer = repeater(72, () => {place(turretType)}, 0);
  999. const boostSpiker = repeater(71, boostSpike, 0);
  1000.  
  1001. document.addEventListener('keydown', (e)=>{
  1002. spikePlacer.start(e.keyCode);
  1003. healer.start(e.keyCode);
  1004. boostPlacer.start(e.keyCode);
  1005. boostSpiker.start(e.keyCode);
  1006. millPlacer.start(e.keyCode);
  1007. turretPlacer.start(e.keyCode);
  1008.  
  1009. if (e.keyCode == 79 && document.activeElement.id.toLowerCase() !== 'chatbox') {
  1010. for (let i=0;i<5;i++){
  1011. let angle = myPlayer.dir + toRad(i * 72);
  1012. place(millType, angle)
  1013. }
  1014. }
  1015. if (e.keyCode == 80 && document.activeElement.id.toLowerCase() !== 'chatbox') {
  1016. for (let i=0;i<4;i++){
  1017. let angle = myPlayer.dir + toRad(i * 90);
  1018. place(wallType, angle)
  1019. }
  1020. }
  1021. if (e.keyCode == 73 && document.activeElement.id.toLowerCase() !== 'chatbox') {
  1022. for (let i=0;i<4;i++){
  1023. let angle = myPlayer.dir + toRad(i * 90);
  1024. place(boostType, angle)
  1025. }
  1026. }
  1027. if (e.keyCode == 186 && document.activeElement.id.toLowerCase() !== 'chatbox') {
  1028. for (let i=0;i<4;i++){
  1029. let angle = myPlayer.dir + toRad(i * 90);
  1030. place(spikeType, angle)
  1031. }
  1032. }
  1033. if (e.keyCode == 72 && document.activeElement.id.toLowerCase() !== 'chatbox') {
  1034. place(turretType, myPlayer.dir + toRad(45));
  1035. place(turretType, myPlayer.dir - toRad(45));
  1036. }
  1037.  
  1038. if (e.keyCode == 77 && document.activeElement.id.toLowerCase() !== 'chatbox') {
  1039. if (myPlayer.y < 2400){
  1040. hat(15);
  1041. } else if (myPlayer.y > 6850 && myPlayer.y < 7550){
  1042. hat(31);
  1043. } else {
  1044. hat(12);
  1045. }
  1046. acc(11);
  1047. }
  1048. if (e.keyCode == 85 && document.activeElement.id.toLowerCase() !== 'chatbox') {
  1049. hat(20);
  1050. }
  1051.  
  1052. if(e.keyCode == 82 && document.activeElement.id.toLowerCase() !== 'chatbox') {
  1053. autoaim = true;
  1054. doNewSend(["5", [primary, true]]);
  1055. doNewSend(["13c", [0, 7, 0]]);
  1056. doNewSend(["13c", [0, 0, 1]]);
  1057. doNewSend(["13c", [0, 19, 1]]);
  1058. doNewSend(["c", [1]]);
  1059. setTimeout( () => {
  1060. doNewSend(["13c", [0, 53, 0]]);
  1061. doNewSend(["5", [secondary, true]]);
  1062. }, instaSpeed - 130);
  1063.  
  1064. setTimeout( () => {
  1065. doNewSend(["5", [primary, true]]);
  1066. doNewSend(["c", [0, null]]);
  1067. doNewSend(["13c", [0, 6, 0]]);
  1068. autoaim = false;
  1069. }, instaSpeed);
  1070. }
  1071.  
  1072. if(e.keyCode == 32 && document.activeElement.id.toLowerCase() !== 'chatbox') {
  1073. autoaim = true;
  1074. doNewSend(["5", [primary, true]]);
  1075. doNewSend(["13c", [0, 7, 0]]);
  1076. doNewSend(["13c", [0, 0, 1]]);
  1077. doNewSend(["13c", [0, 19, 1]]);
  1078. place(spikeType);
  1079. doNewSend(["c", [1]]);
  1080.  
  1081. setTimeout( () => {
  1082. doNewSend(["13c", [0, 53, 0]]);
  1083. }, 100);
  1084.  
  1085. setTimeout( () => {
  1086. doNewSend(["c", [0, null]]);
  1087. doNewSend(["13c", [0, 6, 0]]);
  1088. autoaim = false;
  1089. }, 200);
  1090. }
  1091.  
  1092. if(e.keyCode == 38 && document.activeElement.id.toLowerCase() !== 'chatbox') {
  1093. messageToggle = (messageToggle + 1) % 2;
  1094. }
  1095.  
  1096. if(e.keyCode == 40 && document.activeElement.id.toLowerCase() !== 'chatbox') {
  1097. clanToggle = (clanToggle + 1) % 2;
  1098. }
  1099.  
  1100. if(e.keyCode == 106 && document.activeElement.id.toLowerCase() !== 'chatbox') {
  1101. healToggle = (healToggle + 1) % 2;
  1102. if(healToggle == 0) {
  1103. if(hatToggle == 0) {
  1104. document.title = "Heal: OFF | Hat: OFF"
  1105. } else {
  1106. document.title = "Heal: OFF | Hat: ON"
  1107. }
  1108. } else {
  1109. if(hatToggle == 0) {
  1110. document.title = "MooMod|u a proe:3"
  1111. } else {
  1112. document.title = "MooMod|u a proe:3"
  1113. }
  1114. }
  1115. }
  1116. if(e.keyCode == 76 && document.activeElement.id.toLowerCase() !== 'chatbox') {
  1117. autoaim = true;
  1118. doNewSend(["5", [secondary, true]]);
  1119. doNewSend(["13c", [0, 53, 0]]);
  1120. doNewSend(["c", [1]]);
  1121.  
  1122. setTimeout( () => {
  1123. doNewSend(["6", [12]]);
  1124. }, 300);
  1125.  
  1126. setTimeout( () => {
  1127. doNewSend(["6", [15]]);
  1128. }, 300);
  1129.  
  1130. setTimeout( () => {
  1131. doNewSend(["c", [0]]);
  1132. doNewSend(["13c", [0, 6, 0]]);
  1133. doNewSend(["5", [primary, true]]);
  1134. autoaim = false;
  1135. }, 300);
  1136. }
  1137.  
  1138. if(e.keyCode == 97 && document.activeElement.id.toLowerCase() !== 'chatbox') {
  1139. doNewSend(["6", [4]]);
  1140. }
  1141.  
  1142. if(e.keyCode == 98 && document.activeElement.id.toLowerCase() !== 'chatbox') {
  1143. doNewSend(["6", [15]]);
  1144. }
  1145. if(e.keyCode == 99 && document.activeElement.id.toLowerCase() !== 'chatbox') {
  1146. doNewSend(["6", [28]]);
  1147. }
  1148. if(e.keyCode == 105 && document.activeElement.id.toLowerCase() !== 'chatbox') {
  1149. doNewSend(["6", [28]]);
  1150. doNewSend(["6", [25]]);
  1151. }
  1152. if(e.keyCode == 111 && document.activeElement.id.toLowerCase() !== 'chatbox') {
  1153. hatToggle = (hatToggle + 1) % 2;
  1154. if(healToggle == 0) {
  1155. if(hatToggle == 0) {
  1156. document.title = "Heal - off|♡•Ƙαїʑø•ƤƘ• ๖ۣۜSρℓσĭт♡"
  1157. } else {
  1158. document.title = "Heal - off|♡•Ƙαїʑø•ƤƘ• ๖ۣۜSρℓσĭт♡"
  1159. }
  1160. } else {
  1161. if(hatToggle == 0) {
  1162. document.title = "Heal - on|♡•Ƙαїʑø•ƤƘ• ๖ۣۜSρℓσĭт♡"
  1163. } else {
  1164. document.title = "Heal - on|♡•Ƙαїʑø•ƤƘ• ๖ۣۜSρℓσĭт♡"
  1165. }
  1166. }
  1167. }
  1168. })
  1169.  
  1170. document.addEventListener('keyup', (e)=>{
  1171. spikePlacer.stop(e.keyCode);
  1172. boostPlacer.stop(e.keyCode);
  1173. boostSpiker.stop(e.keyCode);
  1174. millPlacer.stop(e.keyCode);
  1175. turretPlacer.stop(e.keyCode);
  1176. healer.stop(e.keyCode);
  1177. if(e.keyCode == 71 && document.activeElement.id.toLowerCase() !== 'chatbox') {
  1178. setTimeout( () => {
  1179. doNewSend(["33", [null]]);
  1180. boostDir = null;
  1181. }, 10);
  1182. }
  1183. })
  1184.  
  1185.  
  1186. function isElementVisible(e) {
  1187. return (e.offsetParent !== null);
  1188. }
  1189.  
  1190.  
  1191. function toRad(angle) {
  1192. return angle * 0.01745329251;
  1193. }
  1194.  
  1195. function dist(a, b){
  1196. return Math.sqrt( Math.pow((b.y-a[2]), 2) + Math.pow((b.x-a[1]), 2) );
  1197. }
  1198.  
  1199. function animate(space, chance) {
  1200. let result = '';
  1201. let characters;
  1202. if(space) {
  1203. characters = 'HoLy BOoM HeadShot !';
  1204. } else {
  1205. characters = '♡•Ƙαїʑø•ƤƘ• ๖ۣۜSρℓσĭт♡'
  1206. }
  1207. if(space) {
  1208. characters = characters.padStart((30 - characters.length) / 2 + characters.length)
  1209. characters = characters.padEnd(30);
  1210. }
  1211. let count = 0;
  1212. for (let i = 0; i < characters.length; i++ ) {
  1213. if(Math.floor(Math.random() * chance) == 1 && characters.charAt(i) != "-" && count < 2 && characters.charAt(i) != " ") {
  1214. result += "_";
  1215. count++
  1216. } else {
  1217. result += characters.charAt(i);
  1218. }
  1219. }
  1220. return result;
  1221. }
  1222.  
  1223. document.title = "♡•Ƙαїʑø•ƤƘ• ๖ۣۜSρℓσĭт♡"
  1224.  
  1225. function update() {
  1226. for (let i=0;i<9;i++){
  1227. if (isElementVisible(document.getElementById("actionBarItem" + i.toString()))){
  1228. primary = i;
  1229. }
  1230. }
  1231.  
  1232. for (let i=9;i<16;i++){
  1233. if (isElementVisible(document.getElementById("actionBarItem" + i.toString()))){
  1234. secondary = i;
  1235. }
  1236. }
  1237.  
  1238. for (let i=16;i<19;i++){
  1239. if (isElementVisible(document.getElementById("actionBarItem" + i.toString()))){
  1240. foodType = i - 16;
  1241. }
  1242. }
  1243.  
  1244. for (let i=19;i<22;i++){
  1245. if (isElementVisible(document.getElementById("actionBarItem" + i.toString()))){
  1246. wallType = i - 16;
  1247. }
  1248. }
  1249.  
  1250. for (let i=22;i<26;i++){
  1251. if (isElementVisible(document.getElementById("actionBarItem" + i.toString()))){
  1252. spikeType = i - 16;
  1253. }
  1254. }
  1255.  
  1256. for (let i=26;i<29;i++){
  1257. if (isElementVisible(document.getElementById("actionBarItem" + i.toString()))){
  1258. millType = i - 16;
  1259. }
  1260. }
  1261.  
  1262. for (let i=29;i<31;i++){
  1263. if (isElementVisible(document.getElementById("actionBarItem" + i.toString()))){
  1264. mineType = i - 16;
  1265. }
  1266. }
  1267.  
  1268. for (let i=31;i<33;i++){
  1269. if (isElementVisible(document.getElementById("actionBarItem" + i.toString()))){
  1270. boostType = i - 16;
  1271. }
  1272. }
  1273.  
  1274. for (let i=33;i<39;i++){
  1275. if (isElementVisible(document.getElementById("actionBarItem" + i.toString())) && i != 36){
  1276. turretType = i - 16;
  1277. }
  1278. }
  1279.  
  1280. spawnpadType = 36;
  1281. }