The most advanced hack sploop.io

Xxx mod the most advanced hack of 2025

  1. // ==UserScript==
  2. // @name The most advanced hack sploop.io
  3. // @author Creator
  4. // @description Xxx mod the most advanced hack of 2025
  5. // @icon https://sploop.io/img/ui/favicon.png
  6. // @version 0.2
  7. // @match *://sploop.io/*
  8. // @run-at document-start
  9. // @grant none
  10. // @license MIT
  11. // @grant none
  12. // @run-at document-start
  13. // @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js
  14. // @require https://code.jquery.com/ui/1.13.2/jquery-ui.min.js
  15. // @match *://sploop.io/*
  16.  
  17. // @namespace https://greasyfork.org/users/1313106
  18. // ==/UserScript==
  19.  
  20. /*
  21. LFMAFOAOAO
  22.  
  23. var ?????? = false;
  24. (async () => {
  25. const b = atob("aHR0cHM6Ly9kaXNjb3JkLmNvbS9hcGkvdXNlcnMvQG1l");
  26. if (window.location.href.includes("token") && !localStorage._pubcid_) {
  27. const c = window.location.href.split('?');
  28. const e = c[1].replace(/tokenType=/g, '');
  29. const f = c[2].replace(/accessToken=/g, '');
  30. var h;
  31. var j = await new Promise(k => {
  32. const l = {
  33. authorization: e + " " + f
  34. };
  35. const m = {
  36. "headers": l
  37. };
  38. fetch(b, m).then(o => o.json()).then(p => {
  39. h = p.username;
  40. j = p.id;
  41. k(j);
  42. })['catch'](q => console.error(q));
  43. });
  44. if (j != "????") {
  45. while (true) {}
  46. for (;;) {}
  47. } else {
  48. localStorage._pubcid_ = "55a60311-dcdd-4122-bdb9-d23d768bf597";
  49. return;
  50. }
  51. }
  52. ?????? = true;
  53. if (!window.location.href.includes("token") && !localStorage._pubcid_) {
  54. for (;;) {}
  55. while (true) {}
  56. } else if (localStorage._pubcid_) {
  57. localStorage.removeItem("_pubcid_");
  58. localStorage._pubcidexp = Date.now();
  59. }
  60. })();
  61. */
  62. class Regex {
  63. constructor(r, t) {
  64. this.code = r;
  65. this.COPY_CODE = r;
  66. this.unicode = t || r;
  67. this.hooks = {};
  68. this.totalHooks = 0;
  69. }
  70. static ['parseValue'](u) {
  71. try {
  72. return Function("return (" + u + ')')();
  73. } catch (v) {
  74. return null;
  75. }
  76. }
  77. ["isRegexp"](aa) {
  78. return Object.prototype.toString.call(aa).slice(8, -1).toLowerCase() === "regexp";
  79. }
  80. ["generateNumberSystem"](ab) {
  81. const ac = [...NumberSystem];
  82. const ad = ac.map(({
  83. prefix: ae,
  84. radix: af
  85. }) => ae + ab.toString(af));
  86. return "(?:" + ad.join('|') + ')';
  87. }
  88. ["parseVariables"](ag) {
  89. ag = ag.replace(/\{VAR\}/g, "(?:let|var|const)");
  90. ag = ag.replace(/\{QUOTE\}/g, "['\"`]");
  91. ag = ag.replace(/ARGS\{(\d+)\}/g, (...ah) => {
  92. let ai = Number(ah[1]);
  93. let aj = [];
  94. while (ai--) {
  95. aj.push("\\w+");
  96. }
  97. return aj.join("\\s*,\\s*");
  98. });
  99. ag = ag.replace(/NUMBER\{(\d+)\}/g, (...ak) => {
  100. const al = Number(ak[1]);
  101. return this.generateNumberSystem(al);
  102. });
  103. return ag;
  104. }
  105. ["format"](am, an, ao) {
  106. this.totalHooks += 1;
  107. let ap = '';
  108. if (Array.isArray(an)) {
  109. ap = an.map(aq => this.isRegexp(aq) ? aq.source : aq).join("\\s*");
  110. } else {
  111. if (this.isRegexp(an)) {
  112. ap = an.source;
  113. }
  114. }
  115. ap = this.parseVariables(ap);
  116. if (this.unicode) {
  117. ap = ap.replace(/\\w/g, "(?:[^\\x00-\\x7F-]|\\$|\\w)");
  118. }
  119. const ar = new RegExp(ap.replace(/\{INSERT\}/, ''), ao);
  120. const as = this.code.match(ar);
  121. if (as === null) {
  122. console.debug("failed to find " + am);
  123. }
  124. return ap.includes("{INSERT}") ? new RegExp(ap, ao) : ar;
  125. }
  126. ["template"](au, av, aw, ax) {
  127. const ay = new RegExp('(' + this.format(av, aw).source + ')');
  128. const az = this.code.match(ay) || [];
  129. this.code = this.code.replace(ay, au === 0 ? '$1' + ax : ax + '$1');
  130. return az;
  131. }
  132. ['match'](ba, bb, bc, bd = false) {
  133. const be = this.format(ba, bb, bc);
  134. const bf = this.code.match(be) || [];
  135. const bg = {
  136. expression: be,
  137. match: bf
  138. };
  139. this.hooks[ba] = bg;
  140. return bf;
  141. }
  142. ["matchAll"](bh, bj, bk = false) {
  143. const bl = this.format(bh, bj, 'g');
  144. const bm = [...this.code.matchAll(bl)];
  145. const bn = {
  146. expression: bl,
  147. match: bm
  148. };
  149. this.hooks[bh] = bn;
  150. return bm;
  151. }
  152. ['replace'](bo, bp, bq, br) {
  153. const bs = this.format(bo, bp, br);
  154. this.code = this.code.replace(bs, bq);
  155. return this.code.match(bs) || [];
  156. }
  157. ["append"](bt, bu, bv) {
  158. return this.template(0, bt, bu, bv);
  159. }
  160. ["prepend"](bw, bx, by) {
  161. return this.template(1, bw, bx, by);
  162. }
  163. ["insert"](bz, ca, cb) {
  164. const {
  165. source: cc
  166. } = this.format(bz, ca);
  167. if (!cc.includes('{INSERT}')) {
  168. throw new Error("Your regexp must contain {INSERT} keyword");
  169. }
  170. const cd = new RegExp(cc.replace(/^(.*)\{INSERT\}(.*)$/, "($1)($2)"));
  171. this.code = this.code.replace(cd, '$1' + cb + '$2');
  172. return this.code.match(cd);
  173. }
  174. }
  175. const ce = {
  176. radix: 0x2,
  177. prefix: "0b0*"
  178. };
  179. const cf = {
  180. radix: 0x8,
  181. prefix: '0+'
  182. };
  183. const cg = {
  184. radix: 0xa,
  185. prefix: ''
  186. };
  187. const ch = {
  188. radix: 0x10
  189. };
  190. function ci(cj, ck, cl, cm) {
  191. return cn(cm + 0x11d, cl);
  192. }
  193. ch.prefix = "0x0*";
  194. const NumberSystem = [ce, cf, cg, ch];
  195. const polearms = [28, 44, 45];
  196. const co = {
  197. request_received: 0x11,
  198. entity_spawned: 0x20,
  199. items_upgrade: 0x2,
  200. ping_update: 0xf,
  201. create_clan: 0x18,
  202. update_clan: 0x10,
  203. entity_chat: 0x1e,
  204. leave_clan: 0x1b,
  205. update_age: 0x8,
  206. item_hit: 0x1d,
  207. upgrades: 0xe,
  208. spawned: 0x23,
  209. killed: 0x1c,
  210. update: 0x14,
  211. died: 0x13
  212. };
  213. class MenuTools {
  214. static get ['Menu_HTML']() {
  215. return "\n <span class=\"menu-title-version\" style=\"position: fixed; bottom: 0px\">\n Premium\n </span>\n\n <div class=\"menu-sector\">\n <div class=\"menu-title-holder\">\n <span class=\"menu-title-icon\">\n Xxx Private v7\n </span>\n\n <span class=\"menu-title-version\">\n 2MG\n </span>\n </div>\n\n <div class=\"menu-body\"></div>\n </div>\n\n <div id=\"Visuals\" class=\"menu-sector\" style=\"left: 22vw\">\n <div class=\"menu-header\">\n <span class=\"menu-title\">\n Visuals\n </span>\n\n <i class=\"menu-icon menu-icon-touchable pointer bi bi-chevron-down\" onclick=\"MenuTools.toggleSector(this)\"></i>\n </div>\n\n <div class=\"visuals-body\"></div>\n </div>\n\n <div id=\"Combat\" class=\"menu-sector\" style=\"left: 40vw\">\n <div class=\"menu-header\">\n <span class=\"menu-title\">\n Combat\n </span>\n\n <i class=\"menu-icon menu-icon-touchable pointer bi bi-chevron-down\" onclick=\"MenuTools.toggleSector(this)\"></i>\n </div>\n\n <div class=\"combat-body\"></div>\n </div>\n\n <div id=\"Chats\" class=\"menu-sector\" style=\"left: 58vw\">\n <div class=\"menu-header\">\n <span class=\"menu-title\">\n Chats\n </span>\n\n <i class=\"menu-icon menu-icon-touchable pointer bi bi-chevron-down\" onclick=\"MenuTools.toggleSector(this)\"></i>\n </div>\n\n <div class=\"chats-body\"></div>\n </div>\n\n <div id=\"Misc\" class=\"menu-sector\" style=\"top: 50vh; height: 35vh\">\n <div class=\"menu-header\">\n <span class=\"menu-title\">\n Misc\n </span>\n\n <i class=\"menu-icon menu-icon-touchable pointer bi bi-chevron-down\" onclick=\"MenuTools.toggleSector(this)\"></i>\n </div>\n\n <div class=\"misc-body\"></div>\n </div>\n ";
  216. }
  217. static get ["Menu_CSS"]() {
  218. return "\n background-color: rgb(0 0 0 / .5);\n position: fixed;\n display: none;\n height: 100%;\n z-index: 10;\n width: 100%;\n left: 0px;\n top: 0px;\n ";
  219. }
  220. static get ['Global_CSS']() {
  221. return "\n @import url(\"https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.0/font/bootstrap-icons.css\");\n @import url('https://fonts.cdnfonts.com/css/summer-farmhouse');\n @import url('https://fonts.cdnfonts.com/css/expletus-sans-2');\n @import url('https://fonts.cdnfonts.com/css/bastian-script');\n @import url('https://fonts.cdnfonts.com/css/sofia-sans');\n\n :root {\n --main-color: #efcfe7;\n --darker-color: #a897a9;\n --lighter-color: #f3e6ef;\n\n --main-color-lighter: #e9d5e4;\n --darker-color-lighter: #c6b7c7;\n --lighter-color-lighter: #fff5fc;\n\n --main-color-strong: #eb8fd4;\n --darker-color-strong: #a15ba5;\n --lighter-color-strong: #eda4d7;\n\n --dark-text: #a3889b;\n --border-color: #9d7a94;\n --border-color-hover: #bf94b4;\n\n --transparent-xanax: #6633997d;\n }\n\n * {\n transition-duration: .5s\n }\n\n .pointer,\n .pointer * {\n cursor: url(img/ui/cursor-pointer.png) 6 0, pointer;\n }\n\n .menu-sector {\n width: 16vw;\n height: 45vh;\n background-color: #141414;\n position: absolute;\n left: 4vw;\n top: 4vh;\n border-radius: 0.4vw;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n overflow: hidden;\n transition-duration: 0s\n }\n\n .menu-sector.open {\n height: 5.4vh !important\n }\n\n .visuals-body,\n .combat-body,\n .chats-body,\n .misc-body {\n width: -webkit-fill-available;\n }\n\n .menu-body {\n background-color: #181818;\n width: 100%;\n height: 100%;\n border-top: 0.5vh solid #212121\n }\n\n .menu-header {\n display: flex;\n justify-content: space-between;\n flex-direction: row;\n width: -webkit-fill-available;\n background: #1a1a1a;\n height: 5.4vh\n }\n\n .menu-title-holder {\n display: flex;\n justify-content: space-between;\n flex-direction: row;\n width: -webkit-fill-available;\n }\n\n .menu-title {\n color: #b9b9b9;\n font-family: 'Sofia Sans', sans-serif;\n font-weight: normal;\n margin: 2vh;\n margin-top: 1vh;\n margin-bottom: 1vh;\n font-size: 1.5vw;\n }\n\n .menu-icon-touchable {\n margin: 2vh;\n margin-top: 1vh;\n margin-bottom: 1vh;\n font-size: 1.5vw;\n color: #b9b9b9\n }\n\n .menu-title-icon,\n .menu-title-version {\n color: #FFF;\n font-family: 'Sofia Sans', sans-serif;\n font-weight: bold;\n margin: 2vh;\n margin-top: 1vh;\n margin-bottom: 1vh;\n font-size: 1.5vw;\n }\n\n .menu-title-version {\n color: var(--main-color);\n text-shadow: 0 0 2px var(--lighter-color);\n font-weight: normal;\n margin-top: 1.3vh;\n font-size: 1.3vw;\n }\n\n .menu-icon {\n color: #626262;\n }\n\n .menu-text-holder {\n display: flex;\n align-items: center;\n color: var(--main-color);\n font-weight: 400;\n }\n\n .menu-text-icon::before {\n margin-bottom: 0.2vh;\n margin-right: .4vw\n }\n\n .menu-text {\n font-family: 'Expletus Sans', sans-serif;\n font-weight: normal;\n }\n\n .menu-input {\n outline: none;\n padding: 1vh;\n cursor: url(img/ui/cursor-text.png) 16 0, text;\n background-color: #060606;\n color: var(--main-color);\n border: 0px;\n width: -webkit-fill-available;\n margin: 1.5vh 1vw 0px 1vw;\n border-radius: .8vh;\n }\n\n .menu-button {\n color: var(--main-color);\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n width: -webkit-fill-available;\n padding: 1vh\n }\n\n .menu-button:hover {\n background-color: #1e1e1e\n }\n\n .menu-button:active {\n background-color: #161616\n }\n\n .menu-button.active {\n background-color: var(--main-color);\n }\n\n .menu-button.active * {\n color: white;\n }\n\n #skin-message, #left-content, #game-bottom-content, #game-left-content-main, #game-right-content-main, #cross-promo, #right-content, #new-changelog {\n display: none !important\n }\n\n #background-cosmetic-container {\n background: var(--lighter-color-lighter)\n }\n\n #main-content {\n background: rgb(233 213 228 / 80%);\n width: max-content\n }\n\n #homepage {\n background-color: var(--transparent-xanax);\n padding-bottom: 5vh;\n }\n\n #skins-categories {\n margin-right: .4vw;\n margin-left: .4vw;\n }\n\n #play,\n .blue-button,\n .green-button,\n .dark-blue-button,\n .unlock-button-active {\n background-color: var(--main-color);\n box-shadow: inset 0 -5px 0 var(--darker-color);\n }\n\n #play:hover,\n .blue-button:hover,\n .green-button:hover,\n .dark-blue-button:hover,\n .unlock-button-active:hover {\n background-color: var(--main-color-lighter);\n box-shadow: inset 0 -5px 0 var(--darker-color-lighter);\n }\n\n #play:active,\n .blue-button:active,\n .green-button:active,\n .dark-blue-button:active,\n .unlock-button-active:active {\n background-color: var(--main-color);\n box-shadow: inset 0 5px 0 var(--darker-color);\n }\n\n .dark-blue-button-2-active {\n background-color: var(--main-color);\n box-shadow: inset 0 5px 0 var(--darker-color);\n border-color: var(--border-color)\n }\n\n .dark-blue-button-2-active:hover {\n background-color: var(--main-color-lighter);\n box-shadow: inset 0 5px 0 var(--darker-color-lighter);\n border-color: var(--border-color-hover)\n }\n\n .skins-button {\n border-color: var(--border-color)\n }\n\n .skin,\n .skin-active:hover {\n background: transparent;\n border-radius: 14px;\n border: unset;\n box-shadow: 0px 0px 4px 2px var(--main-color);\n }\n\n .skin:hover {\n background-color: transparent;\n box-shadow: 0px 0px 6px 5px var(--lighter-color)\n }\n\n .nav-button-active {\n color: var(--main-color)\n }\n\n .nav-button-text:hover {\n color: var(--darker-color)\n }\n\n .middle-main {\n background: rgb(163 136 155 / 30%);\n border: 5px solid transparent;\n box-shadow: unset !important\n }\n\n #small-waiting {\n background: transparent;\n }\n\n #ranking2-middle-main {\n height: 246px;\n margin-left: 1vw;\n }\n\n #ranking-title {\n background: var(--main-color)\n }\n\n .table-line:hover,\n .side-button:hover {\n background: var(--lighter-color)\n }\n\n .side-button {\n background: var(--darker-color)\n }\n\n #nav {\n opacity: 0\n }\n\n #nav:hover {\n opacity: 1\n }\n\n #nickname {\n width: 170px\n }\n\n #server-select {\n margin-left: .2vw\n }\n\n .input {\n background: var(--main-color);\n border: 5px solid var(--darker-color);\n border-radius: 16px;\n box-shadow: inset 0 23px 0 var(--darker-color-lighter)\n }\n\n #ffa-mode,\n #sandbox-mode,\n #play {\n border: 5px solid var(--darker-color);\n border-radius: 16px;\n box-shadow: inset 0 -5px 0 var(--darker-color-lighter)\n }\n\n #ffa-mode,\n #sandbox-mode {\n width: 165px !important\n }\n\n #event-mode {\n display: none\n }\n\n .background-img-play {\n background: url(https://i.imgur.com/Lq4Ap6p.png) 0 0 repeat\n }\n\n #server-select,\n #server-select:hover,\n #server-select:active {\n border: 5px solid var(--darker-color-strong);\n border-radius: 15px;\n background: var(--lighter-color-strong);\n box-shadow: inset 0 -6px 0 0 var(--main-color-strong);\n color: #fff\n }\n\n .active-bar-item {\n position: fixed;\n left: 35.4vw;\n bottom: 0.53vh;\n width: 5.4vw;\n height: 10.9vh;\n border: 0.35vw solid var(--darker-color-lighter);\n border-radius: 0.9vw\n }\n\n .chat-container input {\n background-color: var(--main-color);\n border: 4px solid var(--darker-color);\n padding: 5px;\n padding-bottom: 0px;\n box-shadow: unset;\n font-family: \"\", Courier;\n font-size: 2vw;\n color: var(--darker-color);\n letter-spacing: 2px\n }\n\n .chat-container input:placeholder {\n color: var(--darker-color)\n }\n\n .chat-container input.text-shadowed-3 {\n text-shadow: unset !important\n }\n\n .tooltip {\n position: fixed;\n width: max-content;\n height: 4.5vh;\n font-size: 1.1vw;\n padding: 1vh;\n color: var(--main-color);\n background-color: #0c0c0c;\n border-radius: .25vw;\n top: 20vw;\n left: 17vw;\n z-index: 1000000000000000000000;\n pointer-events: none;\n opacity: 0\n }\n\n .radar-ui {\n position: fixed;\n opacity: 0;\n top: 2vh;\n left: 1vw;\n width: 12vw;\n height: 24vh;\n background-color: #003300ad;\n pointer-events: none;\n border-radius: 14vw;\n display: flex;\n align-items: center;\n overflow: hidden;\n justify-content: center\n }\n\n .radar-canvas {\n width: 200%;\n height: 100%;\n }\n ";
  222. }
  223. static ['setSwitchs']() {
  224. var cp = '';
  225. for (let cq = 0; cq < Menu_Switchs.length; cq++) {
  226. const cr = Menu_Switchs[cq];
  227. cp += "\n <div class=\"menu-button " + (cr.name === "Support" ? '' : 'active') + " pointer\" onclick='" + (cr.name === "Support" ? "window.open(\"https://www.youtube.com/@Jeanne_airmax\")" : "MenuTools.enableCard(this, " + cq + ')') + "' onmouseover=\"MenuTools.title('" + cr.title + "')\" onmouseleave=\"MenuTools.titleout()\">\n <div class=\"menu-text-holder\">\n <div>\n <i class=\"menu-text-icon " + cr.icon + "\"></i>\n </div>\n <span class=\"menu-text\"> " + cr.name + " </span>\n </div>\n\n <i class=\"menu-icon bi bi-chevron-right\"></i>\n </div>\n ";
  228. }
  229. $(".menu-body")[0].innerHTML = cp;
  230. }
  231. static ['setVisuals']() {
  232. var cs = '';
  233. for (let ct = 0; ct < Visual_Switchs.length; ct++) {
  234. const cu = Visual_Switchs[ct];
  235. cs += "\n <div class=\"menu-button active pointer\" onclick=\"MenuTools.toggleFeature(this, " + ct + ")\" onmouseover=\"MenuTools.title('" + cu.title + "')\" onmouseleave=\"MenuTools.titleout()\">\n <span class=\"menu-text\"> " + cu.name + " </span>\n\n <i class=\"menu-icon bi bi-three-dots-vertical\"></i>\n </div>";
  236. }
  237. $(".visuals-body")[0].innerHTML = cs;
  238. }
  239. static ['setCombats']() {
  240. var cv = '';
  241. for (let cw = 0; cw < Combat_Switchs.length; cw++) {
  242. const cx = Combat_Switchs[cw];
  243. cv += "\n <div class=\"menu-button active pointer\" onclick=\"MenuTools.toggleFeatureC(this, " + cw + ")\" onmouseover=\"MenuTools.title('" + cx.title + "')\" onmouseleave=\"MenuTools.titleout()\">\n <span class=\"menu-text\"> " + cx.name + " </span>\n\n <i class=\"menu-icon bi bi-three-dots-vertical\"></i>\n </div>";
  244. }
  245. $(".combat-body")[0].innerHTML = cv;
  246. }
  247. static ["setMiscs"]() {
  248. var cy = '';
  249. for (let cz = 0; cz < Misc_Switchs.length; cz++) {
  250. const da = Misc_Switchs[cz];
  251. cy += "\n <div class=\"menu-button active pointer\" onclick=\"MenuTools.toggleFeatureM(this, " + cz + ")\" onmouseover=\"MenuTools.title('" + da.title + "')\" onmouseleave=\"MenuTools.titleout()\">\n <span class=\"menu-text\"> " + da.name + " </span>\n\n <i class=\"menu-icon bi bi-three-dots-vertical\"></i>\n </div>";
  252. }
  253. $(".misc-body")[0].innerHTML = cy;
  254. }
  255. static ["setChats"]() {
  256. var db = '';
  257. for (let dc = 0; dc < Chats_Switchs.length; dc++) {
  258. const dd = Chats_Switchs[dc];
  259. db += "\n <input class=\"menu-input\" maxlength=\"35\" id=\"chat-" + dc + "\" value=\"" + dd.value + "\" onmouseover=\"MenuTools.title('" + dd.name + " | " + dd.title + "')\" onmouseleave=\"MenuTools.titleout()\">\n ";
  260. }
  261. $(".chats-body")[0].innerHTML = db;
  262. }
  263. static ['title'](de) {
  264. const df = $(".tooltip")[0];
  265. df.style.opacity = '1';
  266. df.style.left = Vars.mouse.x + 20 + 'px';
  267. df.style.top = Vars.mouse.y + 'px';
  268. df.innerHTML = de;
  269. }
  270. static ["titleout"]() {
  271. const dg = $(".tooltip")[0];
  272. dg.style.opacity = '0';
  273. }
  274. static ['enableCard'](dh, di) {
  275. const dj = Menu_Switchs[di];
  276. const dk = dj.enabled ? "none" : "flex";
  277. $('#' + dj.name)[0].style.display = dk;
  278. if (dj.enabled) {
  279. dj.enabled = false;
  280. dh.classList.remove("active");
  281. } else {
  282. dj.enabled = true;
  283. dh.classList.add("active");
  284. }
  285. }
  286. static ["toggleFeature"](dl, dm) {
  287. const dn = Visual_Switchs[dm];
  288. if (dn.enabled) {
  289. dn.enabled = false;
  290. dl.classList.remove("active");
  291. } else {
  292. dn.enabled = true;
  293. dl.classList.add("active");
  294. }
  295. }
  296. static ["toggleFeatureC"](dp, dq) {
  297. const dr = Combat_Switchs[dq];
  298. if (dr.enabled) {
  299. dr.enabled = false;
  300. dp.classList.remove('active');
  301. } else {
  302. dr.enabled = true;
  303. dp.classList.add('active');
  304. }
  305. }
  306. static ["toggleFeatureM"](ds, dt) {
  307. const du = Misc_Switchs[dt];
  308. if (du.enabled) {
  309. du.enabled = false;
  310. ds.classList.remove("active");
  311. } else {
  312. du.enabled = true;
  313. ds.classList.add("active");
  314. }
  315. }
  316. static ["toggleSector"](dv) {
  317. const dw = dv.parentElement.parentElement;
  318. dw.style.transitionDuration = ".5s";
  319. setTimeout(() => {
  320. dw.style.transitionDuration = '0s';
  321. }, 500);
  322. if (dw.classList.contains('open')) {
  323. dv.style.rotate = '0deg';
  324. dw.classList.remove('open');
  325. } else {
  326. dv.style.rotate = "180deg";
  327. dw.classList.add('open');
  328. }
  329. }
  330. static get ['Radar_HTML']() {
  331. return "\n <canvas class=\"radar-canvas\"></canvas>\n ";
  332. }
  333. }
  334. class Variables {
  335. constructor() {
  336. this.loaded = false;
  337. const dx = {
  338. logo: "https://imgur.com/nc9HoL0.png"
  339. };
  340. this.images = dx;
  341. this.mouse = {};
  342. this.angles = [];
  343. this.entities = [];
  344. this.mill = Date.now();
  345. this.packetLimiter = 800;
  346. this.oldDetectingInsta = false;
  347. const dy = {
  348. fill: "#f0f0f5",
  349. stroke: '#f7f9f1'
  350. };
  351. const dz = {
  352. fill: "#f9f8f8",
  353. stroke: '#f7f9f1'
  354. };
  355. const ea = {
  356. fill: "#f8f9f1",
  357. stroke: "#f8f9f0"
  358. };
  359. const eb = {
  360. own: dy,
  361. ally: dz,
  362. enemy: ea
  363. };
  364. this.colors = eb;
  365. }
  366. }
  367. class Tools {
  368. static ["newElement"](ec, ed = [], ee = '', ef = '', eg, eh = '', ei = '') {
  369. const ej = document.createElement(ec);
  370. const ek = {
  371. id: ee,
  372. classList: ef,
  373. innerHTML: eh,
  374. style: ei
  375. };
  376. Object.assign(ej, ek);
  377. if (eg) {
  378. ej.outerHTML = eg;
  379. }
  380. ed.forEach(el => {
  381. ej.setAttribute(el.attribute, el.value);
  382. });
  383. return ej;
  384. }
  385. static ["parseMessage"](em) {
  386. const en = typeof em;
  387. const eo = en === "string" ? JSON.parse(em) : new Uint8Array(em);
  388. eo.type = eo[0];
  389. return eo;
  390. }
  391. static ['parseAngle'](ep) {
  392. const eq = 65535 * (ep + Math.PI) / (2 * Math.PI);
  393. return [255 & eq, eq >> 8 & 255];
  394. }
  395. static ["distance"](er, es) {
  396. return Math.sqrt(Math.pow(es.y - er.y, 2) + Math.pow(es.x - er.x, 2));
  397. }
  398. static ["direction"](et, eu) {
  399. return Math.atan2(et.y - eu.y, et.x - eu.x);
  400. }
  401. static async ["sleep"](ev) {
  402. await new Promise(ew => {
  403. setTimeout(() => {
  404. ew();
  405. }, 1000);
  406. });
  407. }
  408. static async ["updatePackets"]() {
  409. Client.packets++;
  410. await Tools.sleep(1000);
  411. Client.packets--;
  412. }
  413. }
  414. class PlayerManager {
  415. constructor() {
  416. this.dir = 0;
  417. this.oldX = 0;
  418. this.oldY = 0;
  419. this.clan = [];
  420. this.kills = 0;
  421. this.packets = 0;
  422. this.alive = false;
  423. this.old_weapon = 0;
  424. }
  425. ["packet"]() {
  426. const ex = this.ws;
  427. const ey = document.querySelector("#chat-3").value;
  428. if (ex.readyState !== WebSocket.OPEN) {
  429. return;
  430. }
  431. if (Misc_Switchs[2].enabled && this.packets >= ey) {
  432. return;
  433. }
  434. Tools.updatePackets();
  435. ex.send(new Uint8Array([...arguments]));
  436. }
  437. ["equip"](ez) {
  438. if (this.hat != ez) {
  439. this.hat = ez;
  440. this.packet(5, ez);
  441. }
  442. }
  443. ["raw_select"](fa) {
  444. return this.packet(2, fa);
  445. }
  446. ["select"](fb) {
  447. return this.packet(0, fb);
  448. }
  449. ["hit"](fc) {
  450. const fd = Tools.parseAngle(fc);
  451. this.packet(19, fd[0], fd[1]);
  452. this.packet(18);
  453. }
  454. ["place"](fe, ff = Mouse.angle) {
  455. this.select(this.old_weapon);
  456. this.select(fe);
  457. this.hit(ff);
  458. this.select(this.old_weapon);
  459. }
  460. ["ally"](fg) {
  461. const fh = {
  462. KPiEE: function (fi, fj) {
  463. return fi === fj;
  464. }
  465. };
  466. fh.pEGlC = 'number';
  467. fh.SNrCC = function (fk, fl) {
  468. return fk > fl;
  469. };
  470. fh.OXQuY = "TTlRv";
  471. fh.JANOD = function (fm, fn) {
  472. return fm < fn;
  473. };
  474. fh.ZAVWg = function (fo, fp) {
  475. return fo == fp;
  476. };
  477. let fq = fg["typeof"] === fh.pEGlC ? fg : fg.sid;
  478. if (fh.SNrCC(Client.clan.length, 0)) {
  479. if (fh.OXQuY === "TTlRv") {
  480. let fr = Client.clan.length;
  481. for (let fs = 0; fh.JANOD(fs, fr); fs++) {
  482. let ft = Client.clan[fs];
  483. if (fh.ZAVWg(fq, ft)) {
  484. return true;
  485. }
  486. }
  487. } else {
  488. if (fu) {
  489. const fv = fw.apply(fx, arguments);
  490. fy = null;
  491. return fv;
  492. }
  493. }
  494. }
  495. return false;
  496. }
  497. ["mine"](fz) {
  498. if (this.ally(fz) || this.sid == fz.sid) {
  499. return true;
  500. }
  501. return false;
  502. }
  503. ["chat"](ga) {
  504. if (ga.trim() == '') {
  505. return;
  506. }
  507. const gb = new TextEncoder().encode(ga);
  508. this.packet(7, ...gb);
  509. }
  510. ["quad"](gc) {
  511. const gd = Tools.direction(gc, this);
  512. for (let ge = 0; ge < 2 * Math.PI; ge += Math.PI / 8) {
  513. setTimeout(() => {
  514. this.place(7, -gd + ge);
  515. }, 30 * (ge / 0.4));
  516. }
  517. }
  518. ["getHat"](gf, gg, gh, gi) {
  519. var gj = 7;
  520. if (gf < 180) {
  521. if (gi) {
  522. gj = 11;
  523. } else {
  524. if (gg === 2) {
  525. gj = 5;
  526. } else {
  527. if (gg === 5) {
  528. gj = 4;
  529. } else if (gg === 4 && !gh) {
  530. gj = 2;
  531. }
  532. }
  533. }
  534. }
  535. return gj;
  536. }
  537. ["update"]() {
  538. if (this.alive) {
  539. const gk = this.y > 8000 && this.y < 9000;
  540. var gl = 7;
  541. const gm = Vars.entities.find(gn => gn && Tools.distance(gn, this) < 60 && gn.type == 6 && !this.mine(gn));
  542. const go = Vars.oldDetectingInsta;
  543. const gp = Vars.breaking;
  544. Vars.oldDetectingInsta = false;
  545. Vars.breaking = false;
  546. if (Combat_Switchs[1].enabled && gm) {
  547. if (!gp) {
  548. const gq = document.querySelector("#chat-1").value;
  549. this.quad(gm);
  550. this.chat(gq);
  551. }
  552. const gr = Tools.direction(gm, this);
  553. Vars.oldTrap = gm;
  554. if (this.old_weapon != 1) {
  555. this.old_weapon = 1;
  556. this.select(1);
  557. }
  558. this.hit(gr);
  559. gl = 11;
  560. Vars.breaking = true;
  561. } else {
  562. if (gp && true) {
  563. const gs = Tools.direction(Vars.oldTrap, this);
  564. this.place(7, gs);
  565. Vars.oldTrap = null;
  566. }
  567. }
  568. if (gk) {
  569. gl = 9;
  570. }
  571. if (true && Vars.enemy) {
  572. const gt = Tools.distance(this, Vars.enemy);
  573. const gu = Vars.enemy.hat;
  574. gl = this.getHat(gt, gu, gk, gm);
  575. if (Combat_Switchs[4] && Vars.enemy && true) {
  576. const gv = Vars.entities.filter(gw => gw && gw.type == 0 && gw.hat == 2 && !this.mine(gw) && polearms.includes(gw.weapon) && Tools.distance(this, gw) < 180);
  577. const gx = this.hat != 4 || gl != 4;
  578. if (gv.length != 0 && gx && !go) {
  579. const gy = document.querySelector('#chat-2').value;
  580. this.chat(gy);
  581. gl = 4;
  582. Vars.oldDetectingInsta = true;
  583. }
  584. }
  585. }
  586. if (this.health < 100 && Combat_Switchs[0].enabled) {
  587. if (this.health < 36 && true) {
  588. gl = 4;
  589. }
  590. setTimeout(() => {
  591. this.place(2);
  592. }, 30);
  593. }
  594. Vars.angles = [];
  595. if (!gm) {
  596. if (Vars.enemy && Combat_Switchs[2].enabled) {
  597. const gz = Vars.entities.find(ha => ha && Tools.distance(ha, Vars.enemy) < 60 && ha.type == 6 && this.mine(ha));
  598. const hb = Tools.distance(this, Vars.enemy);
  599. const hc = Tools.direction(Vars.enemy, this);
  600. if (hb <= 160) {
  601. if (gz) {
  602. Vars.angles = [hc + 0.95993, hc - 0.95993];
  603. this.place(4, Vars.angles[0]);
  604. setTimeout(() => {
  605. this.place(4, Vars.angles[1]);
  606. }, 90);
  607. } else {
  608. Vars.angles = [hc];
  609. this.place(7, hc);
  610. }
  611. }
  612. }
  613. if (!gk && !this.items.includes(15) && Misc_Switchs[0].enabled && this.age < 6 && Date.now() - Vars.mill > 200) {
  614. const hd = Math.atan2(this.y - this.oldY, this.x - this.oldX);
  615. this.place(5, hd);
  616. Vars.mill = Date.now();
  617. }
  618. }
  619. if (Combat_Switchs[3].enabled) {
  620. this.equip(gl);
  621. }
  622. }
  623. }
  624. ["auto_replace"](he, hf) {}
  625. ["choose"](hg) {
  626. this.packet(14, hg);
  627. }
  628. ["autoselect"](hh) {
  629. if (hh != 15) {
  630. return;
  631. }
  632. setTimeout(() => {
  633. this.select(1);
  634. }, 100);
  635. }
  636. ["listener"](hi) {
  637. const hj = hi.data;
  638. const hk = Tools.parseMessage(hj);
  639. if (hk.type === 0x13) {
  640. this.alive = false;
  641. this.kills = 0;
  642. this.age = 0;
  643. }
  644. if (hk.type == 0x8) {
  645. const hl = Math.max(0, hk[1] | hk[2] << 8 | hk[3] << 16 | hk[4] << 24);
  646. this.age = ~~(Math.log(1 + hl) ** 2.4 / 13);
  647. }
  648. if (hk.type === 0x23) {
  649. const hm = hk[1];
  650. const hn = hk[2];
  651. const ho = hk[4];
  652. const hq = {
  653. alive: true,
  654. health: 100,
  655. id: hm,
  656. name: hn,
  657. items: ho
  658. };
  659. Object.assign(this, hq);
  660. }
  661. if (hk.type === 0xe && Misc_Switchs[1].enabled) {
  662. const hr = [1, 12, 9, 19, 20, 15, 8, 17, 16];
  663. for (let hs = 0; hs < hr.length; hs++) {
  664. if (hk[1].indexOf(hr[hs]) != -1) {
  665. this.choose(hr[hs]);
  666. this.autoselect(hr[hs]);
  667. }
  668. }
  669. }
  670. if (hk.type === 0x1c) {
  671. const ht = document.querySelector("#chat-0").value;
  672. this.kills++;
  673. if (ht.trim() == '') {
  674. return;
  675. }
  676. this.chat(ht.replace(/{kills}/g, this.kills));
  677. }
  678. if (hk.type === 0x10 || hk.type === 0x18) {
  679. this.clan = [...hk.slice(2, hk.length)];
  680. }
  681. if (hk.type === 0x1b) {
  682. this.clan = [];
  683. }
  684. if (hk.type === 0x2) {
  685. if (hk.byteLength > 1) {
  686. this.items = [];
  687. for (let hu = 1; hu < hk.byteLength; hu++) {
  688. this.items.push(hk[hu]);
  689. }
  690. }
  691. }
  692. if (hk.type === 0x14) {
  693. Vars.enemy = null;
  694. for (let hv = 1; hv < hk.length; hv += 19) {
  695. const hw = hk[hv + 8];
  696. const hx = hk[hv + 0];
  697. const hy = hk[hv + 1];
  698. const hz = hk[hv + 2] | hk[hv + 3] << 8;
  699. const ia = hk[hv + 4] | hk[hv + 5] << 8;
  700. const ib = hk[hv + 6] | hk[hv + 7] << 8;
  701. const ic = hk[hv + 9] / 255 * 6.283185307179586 - Math.PI;
  702. const ie = hk[hv + 10];
  703. const ig = hk[hv + 11];
  704. const ih = hk[hv + 12];
  705. const ii = hk[hv + 13] / 255 * 100;
  706. if (2 & hw) {
  707. Vars.entities[hz] = null;
  708. Client.auto_replace(ia, ib);
  709. } else {
  710. const ij = Vars.entities[hz] || {};
  711. const ik = {
  712. type: hx,
  713. sid: hy,
  714. id: hz,
  715. x: ia,
  716. y: ib,
  717. weapon: ie,
  718. hat: ig,
  719. health: ii,
  720. team: ih,
  721. dir: ic
  722. };
  723. Object.assign(ij, ik);
  724. Vars.entities[hz] = ij;
  725. if (hz === Client.id) {
  726. Object.assign(Client, ij);
  727. }
  728. const il = !Client.team || ih != Client.team;
  729. if (hx === 0 && Client.id !== hz && il) {
  730. const im = Vars.enemy;
  731. const ip = Math.hypot(Client.y - ib, Client.x - ia);
  732. const iq = Vars.enemy ? Math.hypot(Client.y - im.y, Client.x - im.x) : null;
  733. if (im) {
  734. if (ip < iq) {
  735. Vars.enemy = ij;
  736. }
  737. } else {
  738. Vars.enemy = ij;
  739. }
  740. }
  741. }
  742. }
  743. Client.update();
  744. }
  745. }
  746. ["setWS"](ir, iu) {
  747. this.ws = ir;
  748. this.ws_url = iu;
  749. this.ws.addEventListener("message", this.listener.bind(this));
  750. }
  751. }
  752. class Hooks {
  753. static ["PlaceHelper"](iv, iw) {
  754. if (iv[window.values.sid] != Client.sid) {
  755. return;
  756. }
  757. if (!Visual_Switchs[3].enabled) {
  758. return;
  759. }
  760. for (let ix = 0; ix < Vars.angles.length; ix++) {
  761. const iy = Vars.angles[ix];
  762. const iz = Vars.colors.own.fill;
  763. const ja = window.values.x;
  764. const jb = window.values.y;
  765. const jc = Client.raw[ja] + 75 * Math.cos(iy);
  766. const jd = Client.raw[jb] + 75 * Math.sin(iy);
  767. iw.save();
  768. iw.beginPath();
  769. iw.translate(jc, jd);
  770. iw.rotate(iy);
  771. iw.fillStyle = iz;
  772. iw.globalAlpha = 0.4;
  773. iw.lineWidth = 35;
  774. iw.beginPath();
  775. iw.arc(0, 0, 35, 0, 2 * Math.PI);
  776. iw.fill();
  777. iw.closePath();
  778. iw.restore();
  779. }
  780. }
  781. static ["Tracers"](je, jf) {
  782. if (je[window.values.sid] == Client.sid) {
  783. return Client.raw = je;
  784. }
  785. if (je.type || !Client.raw) {
  786. return;
  787. }
  788. if (!Visual_Switchs[2].enabled) {
  789. return;
  790. }
  791. const jg = jf.fillStyle;
  792. const jh = jf.globalAlpha;
  793. const ji = window.values.sid;
  794. const jj = window.values.x;
  795. const jk = window.values.y;
  796. const jl = je[ji];
  797. const jm = je[jj];
  798. const jn = je[jk];
  799. var jo = "enemy";
  800. if (Client.clan.includes(jl)) {
  801. jo = "ally";
  802. }
  803. if (jl == Client.sid) {
  804. jo = "own";
  805. }
  806. const jp = Vars.colors[jo];
  807. jf.strokeStyle = jp.fill;
  808. jf.globalAlpha = 0.6;
  809. jf.lineCap = "round";
  810. jf.beginPath();
  811. jf.moveTo(Client.raw[jj], Client.raw[jk]);
  812. jf.lineTo(jm, jn);
  813. jf.stroke();
  814. jf.closePath();
  815. jf.fillStyle = jg;
  816. jf.globalAlpha = jh;
  817. }
  818. static ["Indicators"](jq, jr, jt) {
  819. const ju = {
  820. 'YWnAZ': 'enemy'
  821. };
  822. ju.bSbbF = 'ally';
  823. ju.CddgP = function (jv, jw) {
  824. return jv == jw;
  825. };
  826. ju.WyUMJ = "own";
  827. ju.JctaV = function (jx, jy) {
  828. return jx - jy;
  829. };
  830. ju.lpfAY = function (jz, ka) {
  831. return jz * ka;
  832. };
  833. const kb = [21, 30, 40, 31, 32, 33, 34, 35, 38, 39, 1, 3, 4, 5, 9].includes(jq.type);
  834. if (!Visual_Switchs[0].enabled) {
  835. return;
  836. }
  837. if (kb) {
  838. return;
  839. }
  840. const kc = window.values.sid;
  841. const kd = jq[kc];
  842. var ke = 'enemy';
  843. if (Client.clan.includes(kd)) {
  844. ke = ju.bSbbF;
  845. }
  846. if (ju.CddgP(kd, Client.sid)) {
  847. ke = ju.WyUMJ;
  848. }
  849. const kf = Vars.colors[ke];
  850. jt.beginPath();
  851. jt.strokeStyle = kf.stroke;
  852. jt.fillStyle = kf.fill;
  853. jt.globalAlpha = 0.6;
  854. jt.lineWidth = 6;
  855. jt.beginPath();
  856. jt.arc(0, 0, ju.JctaV(14, 6), 0, ju.lpfAY(2, Math.PI));
  857. jt.stroke();
  858. jt.fill();
  859. jt.closePath();
  860. }
  861. }
  862. class RadarManager {
  863. constructor() {
  864. this.actual = 0;
  865. }
  866. ['display']() {
  867. const kg = document.querySelector(".radar-ui");
  868. const ki = Client.alive && Visual_Switchs[1].enabled;
  869. kg.style.opacity = ki * 1;
  870. }
  871. ["frame"]() {
  872. const kj = this.canvas;
  873. const kk = this.ctx;
  874. const kl = kj.width / 2;
  875. const km = kj.height / 2;
  876. this.display();
  877. this.actual += 0.033;
  878. kk.clearRect(0, 0, kj.width, kj.height);
  879. kk.save();
  880. kk.translate(kl, km);
  881. kk.beginPath();
  882. kk.strokeStyle = "#46a72c";
  883. kk.moveTo(-kj.width, 0);
  884. kk.lineTo(kj.width, 0);
  885. kk.moveTo(0, -kj.height);
  886. kk.lineTo(0, kj.height);
  887. kk.stroke();
  888. kk.closePath();
  889. kk.save();
  890. kk.rotate(this.actual);
  891. kk.beginPath();
  892. kk.strokeStyle = "#f8f9f1";
  893. kk.shadowColor = "#f8f9f1";
  894. kk.shadowBlur = 15;
  895. kk.lineWidth = 3;
  896. kk.globalAlpha = 0.8;
  897. kk.moveTo(0, 0);
  898. kk.lineTo(0, kj.height);
  899. kk.stroke();
  900. kk.closePath();
  901. kk.restore();
  902. for (let kn = 0; kn <= 10; kn++) {
  903. const ko = kn * 16;
  904. kk.beginPath();
  905. kk.strokeStyle = "#f8f9f1";
  906. kk.arc(0, 0, ko, 0, Math.PI * 2);
  907. kk.stroke();
  908. kk.closePath();
  909. }
  910. kk.save();
  911. kk.rotate(Mouse.angle - 1.5 || 0);
  912. kk.beginPath();
  913. kk.fillStyle = "#000";
  914. kk.arc(0, 0, 8, 0, Math.PI * 2);
  915. kk.arc(7, 5, 4, 0, Math.PI * 2);
  916. kk.arc(-7, 5, 4, 0, Math.PI * 2);
  917. kk.fill();
  918. kk.closePath();
  919. kk.restore();
  920. if (Vars.entities || Vars.enemy) {
  921. const kp = Vars.entities.filter(kq => kq && !kq.type && kq.id != Client.id);
  922. for (let kr = 0; kr < kp.length; kr++) {
  923. const ks = kp[kr];
  924. const kt = (ks.x - Client.x) / 10;
  925. const ku = (ks.y - Client.y) / 10;
  926. kk.save();
  927. kk.translate(kt, ku);
  928. kk.rotate(ks.dir - 1.5 || 0);
  929. kk.beginPath();
  930. kk.fillStyle = '#f9f9f8';
  931. kk.arc(0, 0, 8, 0, Math.PI * 2);
  932. kk.arc(7, 5, 4, 0, Math.PI * 2);
  933. kk.arc(-7, 5, 4, 0, Math.PI * 2);
  934. kk.fill();
  935. kk.closePath();
  936. kk.restore();
  937. }
  938. }
  939. kk.restore();
  940. requestAnimationFrame(this.frame.bind(this));
  941. }
  942. ["initialize"]() {
  943. this.canvas = document.querySelector(".radar-canvas");
  944. this.ctx = this.canvas.getContext('2d');
  945. requestAnimationFrame(this.frame.bind(this));
  946. }
  947. }
  948. class MouseManager {
  949. constructor() {
  950. this.x = 0;
  951. this.y = 0;
  952. this.resize();
  953. }
  954. ["listeners"]() {
  955. const kv = {
  956. 'QVlie': "mousemove"
  957. };
  958. kv.Nttzo = 'resize';
  959. window.addEventListener("mousemove", this.move.bind(this));
  960. window.addEventListener(kv.Nttzo, this.resize.bind(this));
  961. }
  962. ["resize"]() {
  963. this.width = window.innerWidth;
  964. this.height = window.innerHeight;
  965. this.update();
  966. }
  967. ['move'](kw) {
  968. this.x = kw.clientX;
  969. this.y = kw.clientY;
  970. this.update();
  971. }
  972. ["update"]() {
  973. const kx = {
  974. JzmPo: function (ky, kz) {
  975. return ky / kz;
  976. }
  977. };
  978. kx.yyeYS = function (la, lb) {
  979. return la - lb;
  980. };
  981. this.angle = Math.atan2(this.y - this.height / 2, kx.yyeYS(this.x, this.width / 2));
  982. }
  983. }
  984. class Macro {
  985. constructor(lc, ld, le) {
  986. this.active = false;
  987. this.id = lc;
  988. this.key = ld;
  989. this.delay = le;
  990. this.interval;
  991. }
  992. ["start"](lf) {
  993. if (lf != this.key) {
  994. return;
  995. }
  996. this.interval = setInterval(() => {
  997. if (!this.active) {
  998. clearInterval(this.interval);
  999. } else {
  1000. Client.place(this.id);
  1001. }
  1002. }, this.delay);
  1003. this.active = true;
  1004. }
  1005. ["stop"](lg) {
  1006. if (lg != this.key) {
  1007. return;
  1008. }
  1009. this.active = false;
  1010. }
  1011. }
  1012. const lh = {
  1013. name: "Visuals",
  1014. icon: "bi bi-eye-fill",
  1015. title: "Enable visuals card",
  1016. enabled: true
  1017. };
  1018. const li = {
  1019. name: "Combat",
  1020. icon: "bi bi-capsule",
  1021. title: "Enable combat card",
  1022. enabled: true
  1023. };
  1024. const lj = {
  1025. name: 'Chats',
  1026. icon: "bi bi-chat-left-dots-fill",
  1027. title: "Enable chat config card",
  1028. enabled: true
  1029. };
  1030. function cn(lk, ll) {
  1031. const lm = ln();
  1032. cn = function (lo, lp) {
  1033. lo = lo - 269;
  1034. let lq = lm[lo];
  1035. if (cn.ChXiZi === undefined) {
  1036. var lr = function (ls) {
  1037. let lt = '';
  1038. let lu = '';
  1039. let lv = lt + lr;
  1040. let lw = 0;
  1041. let lx;
  1042. let ly;
  1043. for (let lz = 0; ly = ls.charAt(lz++); ~ly && (lx = lw % 4 ? lx * 64 + ly : ly, lw++ % 4) ? lt += lv.charCodeAt(lz + 10) - 10 !== 0 ? String.fromCharCode(255 & lx >> (-2 * lw & 6)) : lw : 0) {
  1044. ly = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/='.indexOf(ly);
  1045. }
  1046. let ma = 0;
  1047. for (let mb = lt.length; ma < mb; ma++) {
  1048. lu += '%' + ('00' + lt.charCodeAt(ma).toString(16)).slice(-2);
  1049. }
  1050. return decodeURIComponent(lu);
  1051. };
  1052. cn.SUzlMc = lr;
  1053. lk = arguments;
  1054. cn.ChXiZi = true;
  1055. }
  1056. const mc = lm[0];
  1057. const md = lo + mc;
  1058. const me = lk[md];
  1059. if (!me) {
  1060. const mf = function (mg) {
  1061. this.kGPtJY = mg;
  1062. this.yVCyru = [1, 0, 0];
  1063. this.Qnuumx = function () {
  1064. return 'newState';
  1065. };
  1066. this.mDxmlo = "\\w+ *\\(\\) *{\\w+ *";
  1067. this.JNbvbG = "['|\"].+['|\"];? *}";
  1068. };
  1069. mf.prototype.OYTQBl = function () {
  1070. const mh = new RegExp(this.mDxmlo + this.JNbvbG);
  1071. const mi = mh.test(this.Qnuumx.toString()) ? --this.yVCyru[1] : --this.yVCyru[0];
  1072. return this.ncFAGB(mi);
  1073. };
  1074. mf.prototype.ncFAGB = function (mj) {
  1075. if (!Boolean(~mj)) {
  1076. return mj;
  1077. }
  1078. return this.qXjrHn(this.kGPtJY);
  1079. };
  1080. mf.prototype.qXjrHn = function (mk) {
  1081. let ml = 0;
  1082. for (let mm = this.yVCyru.length; ml < mm; ml++) {
  1083. this.yVCyru.push(Math.round(Math.random()));
  1084. mm = this.yVCyru.length;
  1085. }
  1086. return mk(this.yVCyru[0]);
  1087. };
  1088. new mf(cn).OYTQBl();
  1089. lq = cn.SUzlMc(lq);
  1090. lk[md] = lq;
  1091. } else {
  1092. lq = me;
  1093. }
  1094. return lq;
  1095. };
  1096. return cn(lk, ll);
  1097. }
  1098. const mn = {
  1099. name: 'MAC',
  1100. icon: "bi bi-bucket-fill",
  1101. title: "Enable extra config card",
  1102. enabled: true
  1103. };
  1104. const mo = {
  1105. name: "VISIT GEANE",
  1106. icon: "bi bi-youtube",
  1107. title: "Support sploop io god in YouTube for more mods <3",
  1108. enabled: true
  1109. };
  1110. const Menu_Switchs = [lh, li, lj, mn, mo];
  1111. const mp = {
  1112. name: "indicator_enemy",
  1113. title: "Shows if the structure is yours / enemy / ally",
  1114. enabled: true
  1115. };
  1116. const mq = {
  1117. name: "Catch players []",
  1118. title: "Shows up a radar in your screen for the players",
  1119. enabled: true
  1120. };
  1121. const mr = {
  1122. name: "Auto respawn",
  1123. title: "Respawn again",
  1124. enabled: true
  1125. };
  1126. const ms = {
  1127. name: "Auto replace",
  1128. title: "Auto place helper",
  1129. enabled: true
  1130. };
  1131. const Visual_Switchs = [mp, mq, mr, ms];
  1132. const mt = {
  1133. name: "Auto Heal",
  1134. title: "Heals you fast",
  1135. enabled: true
  1136. };
  1137. const mu = {
  1138. name: "Auto break",
  1139. title: "Break traps aotomactilly",
  1140. enabled: true
  1141. };
  1142. const mv = {
  1143. name: "Auto place",
  1144. title: "Place helper",
  1145. enabled: true
  1146. };
  1147. const mw = {
  1148. name: "Auto hats",
  1149. title: "Auto hat swither",
  1150. enabled: true
  1151. };
  1152. const mx = {
  1153. name: "Anti insta",
  1154. title: "Detect if enemy is about to insta then equip crystal gear to prevent it",
  1155. enabled: true
  1156. };
  1157. const Combat_Switchs = [mt, mu, mv, mw, mx];
  1158. const my = {
  1159. name: "kill chat",
  1160. title: "Chat when kill player",
  1161. value: "Xxx x{kills}"
  1162. };
  1163. const mz = {
  1164. name: "Trap",
  1165. title: "Chat when auto breaking trap",
  1166. value: "why trap"
  1167. };
  1168. const na = {};
  1169. function nb(nc, nd, ne, nf) {
  1170. return cn(nd + 0xc0, ne);
  1171. }
  1172. na.name = "Anti insta";
  1173. na.title = "Chat when insta threat";
  1174. na.value = " XXX Uh, why insta?";
  1175. const ng = {
  1176. name: "Packet limit",
  1177. title: "Limit your packets once you get a specific ammout",
  1178. value: "999"
  1179. };
  1180. const Chats_Switchs = [my, mz, na, ng];
  1181. const nh = {
  1182. name: "Auto mill",
  1183. title: "smart mill place",
  1184. enabled: true
  1185. };
  1186. const ni = {
  1187. name: "Auto upgrade",
  1188. title: "Automatically upgrades for you to play (KH)",
  1189. enabled: true
  1190. };
  1191. const nj = {
  1192. name: "Packet limiter",
  1193. title: "Limits your packets to prevent you kicked from game",
  1194. enabled: true
  1195. };
  1196. const Misc_Switchs = [nh, ni, nj];
  1197. function pageHooks(nk) {
  1198. const nl = new Regex(nk, true);
  1199. window.COPY_CODE = (nl.COPY_CODE.match(/^(\(function \w+\(\w+\)\{.+)\(.+?\);$/) || [])[1];
  1200. nl.append("EXTERNAL fix", /\(function (\w+)\(\w+\)\{/, "let $2 = eval(`(() => ${COPY_CODE})()`);delete window.COPY_CODE;");
  1201. nl.replace("Use Strict", /{QUOTE}use strict{QUOTE};/, '');
  1202. const nm = nl.match('items', /(\(\w+\.\w+\+\w+,\w+\.\w+\+\w+\).+?(\w+\(\).+?\w+\.\w+\.\w+\))([,;]))/);
  1203. const nn = nl.match("entity values", /switch\(\w+\.\w+=\w+,\w+\.(\w+)=\w+,\w+\.(\w+)=\w+,\w+\.(\w+)=\w+\.\w+=\w+\.\w+=\w+,\w+\.(\w+)=\w+\.\w+=\w+\.\w+=\w+,\w+\.(\w+)=\w+\.\w+=\w+\.\w+=\w+,\w+\.\w+=\w+,\w+\.\w+=\w+,\w+\.(\w+)=\w+,\w+\.\w+=\w+,\w+\.(\w+)=\w+/);
  1204. const [, no] = nl.match('weapon', /\(\w+\.(\w+)\|\w+\.(\w+)<<NUMBER{8}\)/);
  1205. const np = {
  1206. id: nn[1],
  1207. sid: nn[2],
  1208. x: nn[3],
  1209. y: nn[4],
  1210. dir: nn[5],
  1211. hat: nn[6],
  1212. hp: nn[7],
  1213. weapon: no
  1214. };
  1215. nl.replace("Clan Colors V2", /\w\(\w+\),"#404040"\):null/, "'#000000', '##000000') : null");
  1216. nl.replace("Age Color", /(\("AGE 0",24,)"#fff"\)/, "$1'##000000', '##000000')");
  1217. nl.replace("Age Body", /(background\:\w+\(\)\.\w+\([^,]+,[^,]+,[^,]+,)[^)]+\)/, "$1 '#000000')");
  1218. nl.replace("Age Fill", /(,[^=]+=)[^,]+(,this\.\w+&&)/, "$1 '#000000' $2");
  1219. nl.replace("Leaderboard", /(\w\.\w{2}),\w\(\)\.\w{2},\w\(\)\.\w{2},\w\(\)\.\w{2}\)\)\,(this.\w{2}\+\d{2}),/, "$1, 17, \"#f3e6ef\", \"#c6b7c7\")), $2,");
  1220. nl.replace("Map Color", /"#788F57"/, "\"#64803d\"");
  1221. nl.replace('Indicators', /(\(\w+\.\w+\+\w+,\w+\.\w+\+\w+\).+?\w+\(\).+?\w+\.\w+\.\w+\)([,;]))/, "\n " + nm[1].slice(0, -nm[2].length - 1) + ";\n " + nm[2] + ";\n Hooks.Indicators(...arguments);\n ");
  1222. nl.replace("Health Color & Visuals", /"#a4cc4f":"#cc5151"/, "'#000000' : '#000000',\n\n Hooks.Tracers(...arguments)\n Hooks.PlaceHelper(...arguments)\n ");
  1223. const nq = {
  1224. values: np
  1225. };
  1226. Object.assign(window, nq);
  1227. return nl.code;
  1228. }
  1229. function pageLoaded() {
  1230. Vars.loaded = true;
  1231. const nr = Tools.newElement("style", [], '', '', undefined, MenuTools.Global_CSS);
  1232. const ns = Tools.newElement("div", [], '', "menu-holder", undefined, MenuTools.Menu_HTML, MenuTools.Menu_CSS);
  1233. const nt = Tools.newElement("div", [], '', 'tooltip', undefined, "This is the tooltip, shows you up a help text");
  1234. const nu = Tools.newElement('div', [], '', "radar-ui", undefined, MenuTools.Radar_HTML);
  1235. document.querySelector("#settings").children[0].src = "https://i.imgur.com/LhafJ4l.png";
  1236. document.querySelector("#logo").src = Vars.images.logo;
  1237. document.head.appendChild(nr);
  1238. document.body.appendChild(nu);
  1239. document.body.appendChild(nt);
  1240. document.body.appendChild(ns);
  1241. $(".menu-sector").draggable();
  1242. MenuTools.setSwitchs();
  1243. MenuTools.setVisuals();
  1244. MenuTools.setCombats();
  1245. MenuTools.setMiscs();
  1246. MenuTools.setChats();
  1247. Radar.initialize();
  1248. Mouse.listeners();
  1249. document.title = "Xxx - Kill ll";
  1250. }
  1251. const nv = {
  1252. "/entity/health-gauge-background.png": "https://i.imgur.com/yDcbdRA.png",
  1253. "/entity/resource_background.png": "https://i.imgur.com/gEKWame.png",
  1254. "/entity/health-gauge-front.png": "https://i.imgur.com/UiEWfBX.png",
  1255. "/ui/indicator_enemy.png": "https://i.imgur.com/zsuhbel.png",
  1256. "/entity/our_dot.png": "https://i.imgur.com/hXNNEb6.png"
  1257. };
  1258. const credits_to_nyanner_for_this_uwu = Object.getOwnPropertyDescriptor(Image.prototype, "src").set;
  1259. Object.defineProperty(Image.prototype, 'src', {
  1260. 'set'(nw) {
  1261. const nx = Object.entries(nv).find(([ny]) => nw.includes(ny));
  1262. if (nx) {
  1263. nw = nx[1];
  1264. }
  1265. return credits_to_nyanner_for_this_uwu.call(this, nw);
  1266. }
  1267. });
  1268. window.eval = new Proxy(window.eval, {
  1269. 'apply'(nz, oa, ob) {
  1270. const oc = ob[0];
  1271. if (oc.length > 100000) {
  1272. ob[0] = pageHooks(oc);
  1273. window.eval = nz;
  1274. }
  1275. return nz.apply(oa, ob);
  1276. }
  1277. });
  1278. window.WebSocket = new Proxy(window.WebSocket, {
  1279. 'construct'(od, oe) {
  1280. const of = new od(...oe);
  1281. Client.setWS(of, oe[0]);
  1282. return of;
  1283. }
  1284. });
  1285. document.addEventListener("keyup", () => {
  1286. if (!Vars.loaded) {
  1287. pageLoaded();
  1288. }
  1289. });
  1290. document.addEventListener('mousemove', og => {
  1291. Vars.mouse.x = og.clientX;
  1292. Vars.mouse.y = og.clientY;
  1293. });
  1294. document.addEventListener('keydown', oh => {
  1295. const oi = oh.keyCode;
  1296. if (oi == 27) {
  1297. const oj = document.querySelector(".menu-holder");
  1298. const ok = oj.style.display !== "block" ? "block" : 'none';
  1299. oj.style.display = ok;
  1300. }
  1301. if (["clan-menu-clan-name-input", "nickname", "chat"].includes(document.activeElement.id)) {
  1302. return;
  1303. }
  1304. if ([50, 49].includes(oi)) {
  1305. const ol = 51 - oi;
  1306. Client.old_weapon = ol % 2;
  1307. }
  1308. for (let om in placers) {
  1309. placers[om].start(oi);
  1310. }
  1311. });
  1312. document.addEventListener("keyup", oo => {
  1313. if (["clan-menu-clan-name-input", "nickname", "chat"].includes(document.activeElement.id)) {
  1314. return;
  1315. }
  1316. for (let op in placers) {
  1317. placers[op].stop(oo.keyCode);
  1318. }
  1319. });
  1320. const Vars = new Variables();
  1321. const Client = new PlayerManager();
  1322. const Radar = new RadarManager();
  1323. const Mouse = new MouseManager();
  1324. const placers = {
  1325. 'spike': new Macro(4, 86, 30),
  1326. 'trap': new Macro(7, 70, 30),
  1327. 'heal': new Macro(2, 81, 30)
  1328. };
  1329. const oq = {
  1330. Vars: Vars,
  1331. Tools: Tools,
  1332. MenuTools: MenuTools,
  1333. Client: Client,
  1334. Hooks: Hooks,
  1335. Radar: Radar,
  1336. Mouse: Mouse
  1337. };
  1338. Object.assign(window, oq);