// ==UserScript== // @name 𝔐𝙤໓ but better // @namespace - // @version v1 // @description send alt part of this is patched // @author me // @match zombs.io // @grant none // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAAMFBMVEX///8AAADw8PCamprp6emysrJNTU18fHzHx8doaGjZ2dnQ0NC9vb3h4eGnp6eMjIzCSNxaAAAErElEQVR4nO2c6baqMAyFKTKIOLz/214v6lF2SidaYK+V77dD04xNA1WlKIqiKIqiKIqiKIqiKIqiKIqiKIqiKIqiKIqiKIqiKIqiKFmp26Heew0ZqFtjTLv3KlYzifGk2Xsh6/iIYcxp76Ws4SvGk9veq0lmJoYx/d7rSaU2wGXvFaVyB0GGvReUilDJOe13RtO3ZR2sPrljaguCdGlZ8aXZx7lYAG+9MbUDSdKy4vC3EfexQIEwdn4HPqNxpaxjbqFDmzdmNH2QA/cgSEpWHAvGjPobkK7OD15QJQl2jsHP/Y9RXMOt5QGrSMiK6GjZAthlmP2u21oaVEm0heMvdMkLn1PjHnuWdoJPR1s4Box78tIB9F/P0oRKYrMi7kQ2y7rhyjxLw4XEmka37usOMIp4/F2oZIz6N9y3bJb19BIMI54fR5XEBS4sc+K2wQ1mKI/drivnB/jyuqUDwt/dm4ybGqMSNMy8B2Zh9m5/FyqJSO9X+GpOy6rkHnv8HT8esa2YtdauHJD+7izQhQaDVYLKzN6Kkf7uXBsGruAYimk9/7E/zt9FERx6LoEdyJgNP8j87twslDv0qJiqyQjQWtwlV+JRES24RAtCxFR3CMboEFY6wm6V6SdhhHf3SERDJeQvcLMyng1/iQrBST0uNMhC/SARipyGn1LNQzYs1qkUIdiVrhLOvPiVxEalHxmCXbpHsf2lI3phuds7EYIfjg9DKH34yz+o4AveFMkq2GUvP8GhuwbsLv56yT62qIJd9vJnKaewigmO1AXKky9RWfH14eEcaOobJZE3Mis6Pvx0qVO4fWASKXxRL7KiY+OaUGVMbOfqE/JgkmnnMN0Wv4AUWTHTiEP5kwggC5UsFdG2rj4hVJKl0YGBfYOZHFCJ5340FAgiJY6Ggl9r7jOl340K+DnfUmLIFlpAIRsN5LxV0uUrs8t3gay8VJJzsgwUstk4zrO8a3OGFcyyxU5UiG+UIxaI6OWTYSEwx26QDMuAKZZ1QBU9hHY+FU8GrArBKotVIeL0zKoQvMVnVYjoMLEqJPVG6GiIFgCpQnIN2O7O6uGugyAaGaRD6GIMwdXcPzJiEIz02RlhWKShV3b2SUNvmUbf9ggHIfX0yHGjwyJvIzkP6jWOYLI+WSbuuUkNS8rBaVhy1JPTsMRQGmkqtMhBWfTKyRxOB7HIQZnSZUJPfepyXyz+Qfm0uE0OxppXTOQYzraJzOeUAau2yUH4XohG1LuccljCrjGEL4GRZSKlHPIp2f/0dHLcxPggp39YzYpPjpstWhHKYVcHnRwL6mDL5/WCOtjqxLM1WD3TB1fdfhE96jdc6aOxpsD/bDI+motavpPgA9PxY9HHudzDIYa587hHYzs9feCJuk4xeKLVuBRwJ1iSedMupD8uLx8X0waTOprlrPHiwXAb1VwXCtw/OoI7A78UmWfoi3Br/VKY/vBWNTqD1MeqCCor+cYXSjEq680Tm3O8sd0REIpRydcV/ZD5OZnCLLoJlxiV7WHXyajYxKgsM3BcvvEFVUIScC3M/H2gFWM2BxfxToQj8nnYNeRtIYdmUkng20KOzanjjFOKoiiKoiiKwss/2hcaejBPt/YAAAAASUVORK5CYII= // @downloadURL https://update.greasyfork.icu/scripts/435124/%F0%9D%94%90%F0%9D%99%A4%E0%BB%93%20but%20better.user.js // @updateURL https://update.greasyfork.icu/scripts/435124/%F0%9D%94%90%F0%9D%99%A4%E0%BB%93%20but%20better.meta.js // ==/UserScript== /*v2 added auto fix shield v3 added auto heal (R for heal spam) */ function FixShield() { if (Game.currentGame.ui.playerTick.zombieShieldHealth < 85000) { Game.currentGame.network.sendRpc({name: "EquipItem", itemName: "ZombieShield", tier: Game.currentGame.ui.inventory.ZombieShield.tier}); } } Game.currentGame.network.addRpcHandler("DayCycle", FixShield); let css2 = ` cursor: pointer; } .btn-blue { background-color: #144b7a; } .btn-blue:hover .btn-blue:active { background-color: #4fa7ee; } .box { display: block; width: 100%; height: 50px; line-height: 34px; padding: 8px 14px; margin: 0 0 10px; background: #eee; border: 0; font-size: 14px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); border-radius: 4px; } .codeIn, .joinOut { height: 50px; } .hud-menu-zipp3 { display: none; position: fixed; top: 48%; left: 50%; width: 600px; height: 470px; margin: -270px 0 0 -300px; padding: 20px; background: rgba(0, 0, 0, 0.6); color: #eee; border-radius: 4px; z-index: 15; } .hud-menu-zipp3 h3 { display: block; margin: 0; line-height: 20px; } .hud-menu-zipp3 .hud-zipp-grid3 { display: block; height: 380px; padding: 10px; margin-top: 18px; background: rgba(0, 0, 0, 0.2); } .hud-spell-icons .hud-spell-icon[data-type="Zippity3"]::before { background-image: url("https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/au-kddi/190/sparkles_2728.png"); } .hud-menu-zipp3 .hud-the-tab { position: relative; height: 40px; line-height: 40px; margin: 20px; border: 0px solid rgb(0, 0, 0, 0); } .hud-menu-zipp3 .hud-the-tab { display: block; float: left; padding: 0 14px; margin: 0 1px 0 0; font-size: 14px; background: rgba(0, 0, 0, 0.4); color: rgba(255, 255, 255, 0.4); transition: all 0.15s ease-in-out; } .hud-menu-zipp3 .hud-the-tab:hover { background: rgba(0, 0, 0, 0.2); color: #eee; cursor: pointer; } `; let styles = document.createElement("style"); styles.appendChild(document.createTextNode(css2)); document.head.appendChild(styles); styles.type = "text/css"; // class changing document.getElementsByClassName("hud-intro-form")[0].style.height = "300px"; document.getElementsByClassName("hud-intro-play")[0].setAttribute("class", "btn btn-Bc hud-intro-play"); // spell icon let spell = document.createElement("div"); spell.classList.add("hud-spell-icon"); spell.setAttribute("data-type", "Zippity3"); spell.classList.add("hud-zipp3-icon"); document.getElementsByClassName("hud-spell-icons")[0].appendChild(spell); //Menu for spell icon let modHTML = `
` x.style.textAlign = "center" document.querySelector("#hud > div.hud-bottom-left").append(x) } let mapMouseX; let mapMouseY; let hasBeenInWorld = false; const uAgent = navigator.userAgent; const isChromeOS = uAgent.includes('CrOS'); const isMac = uAgent.includes('Macintosh'); const isWindows = uAgent.includes('Windows'); function blurText(path) { document.querySelector(path) .style.color = "transparent"; document.querySelector(path) .style.textShadow = "0 0 5px rgba(0,0,0,0.5)"; } function focusText(path, originalColor) { document.querySelector(path) .style.color = originalColor; document.querySelector(path) .style.textShadow = "none"; } setInterval(() => { try { if (window.isInMenu) { blurText('#scorelog') blurCanvas() } else { focusText('#scorelog', 'black') focusCanvas() } } catch (err) { // console.log('Cannot blur or focus canvas. This is most likely because the score logger has not been loaded yet. Error: ' + err); } _isInChatbox = document.querySelector('.hud-chat') .classList.contains('is-focused') if (botMode) { if (parseInt((getEntitiesByModel('Tree')[0][1].targetTick.position.x - game.world.getEntityByUid(game.world.getMyUid()) .targetTick.position.x) .toString() .replaceAll('-', '')) < 250) { game.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "Tree @ Angle (in radians): " + getNearestTreeAngle() }) danceRandom = false; } else { danceRandom = true; } if (parseInt((getEntitiesByModel('Stone')[0][1].targetTick.position.x - game.world.getEntityByUid(game.world.getMyUid()) .targetTick.position.x) .toString() .replaceAll('-', '')) < 250) { game.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "Stone @ Angle (in radians): " + getNearestStoneAngle() }) } } }, 2.5) function blurCanvas() { document.querySelector('canvas') .style.filter = "blur(8px)"; } function focusCanvas() { document.querySelector('canvas') .style.filter = "none"; } const version = "1"; const authors = "me of course hahaaaaa"; document.getElementsByClassName('hud-intro-name')[0].setAttribute('maxlength', 29); console.log('%ceHaxx', 'color: green; background: yellow; font-size: 30px'); game.network.addEnterWorldHandler(function () { setTimeout(() => { game.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "ッ hax v" + version + " (✓) made by " + authors }) }, 500) document.querySelector("#hud > div.hud-bottom-center").style.textAlign = "center" document.querySelector("#hud > div.hud-bottom-center").style.color = "rgba(192, 192, 192, 0.75)" document.querySelector("#hud > div.hud-bottom-center").style.fontSize = "30px" setInterval(() => { document.querySelector("#hud > div.hud-top-right") .style.backgroundColor = "rgba(0, 0, 0, 0.25)"; document.querySelector("#hud > div.hud-top-right") .style.border = "5px solid rgba(0, 0, 0, 0.30)"; document.querySelector("#hud-spell-icons") .style.border = "5px solid rgba(0, 0, 0, 0.30)"; document.querySelector("#hud-menu-icons") .style.border = "5px solid rgba(0, 0, 0, 0.30)"; document.querySelector("#hud-menu-icons") .childNodes.forEach((item) => (item.innerHTML = "")); document.querySelectorAll(".hud-toolbar-building") .forEach((item) => { (item.style.border = "5px solid rgba(0, 0, 0, 0.30)"), (item.style.babsdsd = "25%"); }); document.querySelector("#hud-debug") .style.color = "grey"; document.querySelector("#hud-toolbar > div.hud-toolbar-inventory > a:nth-child(1)") .style.backgroundColor = "rgba(0, 0, 0, 0.45)"; document.querySelector("#hud-toolbar > div.hud-toolbar-inventory > a:nth-child(2)") .style.backgroundColor = "rgba(0, 0, 0, 0.45)"; document.querySelector("#hud-toolbar > div.hud-toolbar-inventory > a:nth-child(3)") .style.backgroundColor = "rgba(0, 0, 0, 0.45)"; document.querySelector("#hud-toolbar > div.hud-toolbar-inventory > a:nth-child(4)") .style.backgroundColor = "rgba(0, 0, 0, 0.45)"; document.querySelector("#hud-toolbar > div.hud-toolbar-inventory > a:nth-child(5)") .style.backgroundColor = "rgba(0, 0, 0, 0.45)"; document.querySelector("#hud-toolbar > div.hud-toolbar-inventory > a:nth-child(6)") .style.backgroundColor = "rgba(0, 0, 0, 0.25)"; document.querySelector("#hud-toolbar > div.hud-toolbar-inventory > a:nth-child(1)") .style.border = "3px solid lightBlue"; document.querySelector("#hud-toolbar > div.hud-toolbar-inventory > a:nth-child(2)") .style.border = "3px solid lightBlue"; document.querySelector("#hud-toolbar > div.hud-toolbar-inventory > a:nth-child(3)") .style.border = "3px solid lightBlue"; document.querySelector("#hud-toolbar > div.hud-toolbar-inventory > a:nth-child(4)") .style.border = "3px solid lightBlue"; document.querySelector("#hud-toolbar > div.hud-toolbar-inventory > a:nth-child(5)") .style.border = "3px solid lightBlue"; document.querySelector("#hud-toolbar > div.hud-toolbar-inventory > a:nth-child(6)") .style.border = "3px solid lightBlue"; if (isChromeOS) { document.querySelector("#hud-menu-icons") .style.marginBottom = "120px"; } document.querySelector("#hud-map") .style.backgroundColor = "rgba(0, 0, 0, 0.25)"; document.querySelector("#hud-map") .style.border = "5px solid rgba(0, 0, 0, 0.40)"; }, 250); setTimeout(() => { if (!hasBeenInWorld) { var scoreLogged = 0; if(!hasBeenInWorld) { hasBeenInWorld = true setInterval(() => { document.querySelector('#scorelog') .innerText = `Score in Last Wave: ${scoreLogged}` document.querySelector("#coords") .innerText = `X: ${game.world.localPlayer.entity.targetTick.position.x}, Y: ${game.world.localPlayer.entity.targetTick.position.y}` }, 100) createCoordinates() } hasBeenInWorld = true; document.querySelector("#hud > div.hud-bottom-center").append('ッ hax ') var oldScore = Game.currentGame.ui.playerTick.score, newScore = 0; Game.currentGame.network.addRpcHandler("DayCycle", () => { newScore = Game.currentGame.ui.playerTick.score; scoreLogged = ((newScore - oldScore) .toLocaleString("en")); oldScore = Game.currentGame.ui.playerTick.score; }); const topCenter = document.querySelector("#hud > div.hud-top-center"); let logElem; logElem = document.createElement('div'); logElem.innerHTML = `
Use default insults?
Show private parties?
Noob chat?
Advanced Player Info?
Zoom On Scroll?
CopyCat?
Death Chat?
Enable/Disable Chat?
Loaded Player Info:
` // aka mod menu settingsHTML.id = "modmenu" document.getElementsByClassName("hud-settings-grid")[0].innerHTML = settingsHTML; document.querySelector('#clearchatbtn') .addEventListener('click', function () { document.querySelector('.hud-chat-messages') .innerHTML = "" console.clear() Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "✨ Cleared Chat ✨" }) }) document.querySelector('#sellbombs') .addEventListener('click', sellBombTowers) document.querySelector('#sellarrows') .addEventListener('click', sellArrowTowers) document.querySelector('#sellcannons') .addEventListener('click', sellCannonTowers) document.querySelector('#sellmages') .addEventListener('click', sellMageTowers) document.querySelector('#sellall') .addEventListener('click', sellAll) document.querySelector('#selltraps') .addEventListener('click', sellSlowTraps) document.querySelector('#selldoors') .addEventListener('click', sellDoors) document.querySelector('#sellmines') .addEventListener('click', sellGoldMines) document.querySelector('#sellwalls') .addEventListener('click', sellWalls) document.querySelector('#sellmelees') .addEventListener('click', sellMeleeTowers) document.querySelector('#sellharvesters') .addEventListener('click', sellHarvesters) function onLeaveParty() { Game.currentGame.network.sendRpc({ name: "LeaveParty" }) } document.querySelector('#use-di') .addEventListener('change', function () { var THIS_DI_EVENT = this game.ui.getComponent('PopupOverlay') .showConfirmation('Are you sure you want to change default insults? This will reset all custom insults', 1e4, function () { if (THIS_DI_EVENT.checked) { insults = ["you smooth brained potato", "you rotten pumpkin brain", "you soggy zuicini", "you watered down banana" , "you're orange juice toothpaste flavored"] game.ui.getComponent('PopupOverlay') .showHint('Successfully activated default insults.', 1e4) window.use_di = true if (changeChat) { doNewSend(['ch', ['âš™ï¸ Activated Use Default Insults âš™ï¸']]) } } else { insults = ["There are no insults, use !addinsult to add one!"] game.ui.getComponent('PopupOverlay') .showHint('Successfully deactivated default insults.', 1e4) window.use_di = false if (changeChat) { doNewSend(['ch', ['âš™ï¸ Deactivated Use Default Insults âš™ï¸']]) } } }, function () { game.ui.getComponent('PopupOverlay') .showHint('OK!', 1e4) }) }) document.querySelector('#menu-leaveparty-btn') .addEventListener('click', onLeaveParty) document.querySelector('#showpp') .addEventListener('change', function () { var THIS_PP_EVENT = this; if (THIS_PP_EVENT.checked) { if (changeChat) { doNewSend(['ch', ['âš™ï¸ Activated Show Private Parties âš™ï¸']]) } } else { if (changeChat) { doNewSend(['ch', ['âš™ï¸ Deactivated Show Private Parties âš™ï¸']]) } } }) document.querySelector('#copycat') .addEventListener('change', function () { var THIS_CC_EVENT = this; if (THIS_CC_EVENT.checked) { if (changeChat) { doNewSend(['ch', ['âš™ï¸ Activated CopyCat âš™ï¸']]) } } else { if (changeChat) { doNewSend(['ch', ['âš™ï¸ Deactivated CopyCat âš™ï¸']]) } } }) document.querySelector('#deadchat') .addEventListener('change', function () { var THIS_DC_EVENT = this; if (THIS_DC_EVENT.checked) { if (changeChat) { doNewSend(['ch', ['âš™ï¸ Activated Death Chat âš™ï¸']]) } } else { if (changeChat) { doNewSend(['ch', ['âš™ï¸ Deactivated Death Chat âš™ï¸']]) } } }) document.querySelector('#noobchat') .addEventListener('change', function () { var THIS_NC_EVENT = this; if (THIS_NC_EVENT.checked) { if (changeChat) { doNewSend(['ch', ['âš™ï¸ Activated Noob Chat âš™ï¸']]) } } else { if (changeChat) { doNewSend(['ch', ['âš™ï¸ Deactivated Noob Chat âš™ï¸']]) } } }) // <--- end of menu stuff (defining & appending) // also event listeners on the menu forgot to add that at start of script var removeDeleted = function (e) { // remove deleted/empty/undefined/null items in an array let fp = [] for (let i = 0; i < e.length; i++) { if (e[i] !== undefined) { fp.push(e[i]) } } return fp; } function loadedPlayers() { // loaded player names var returns = [] Object.entries(Game.currentGame.world.entities) .forEach((stuff => { if (stuff[1].targetTick.entityClass == "PlayerEntity" && ((stuff[1].targetTick.uid !== Game.currentGame.world.entities[Game.currentGame .world.getMyUid()].targetTick.uid) || window.useSamePI)) { returns.push(stuff[1].targetTick.name) } })) return returns; } window.loadedIDS = function () { var returns = [] Object.entries(Game.currentGame.world.entities) .forEach((stuff => { if (stuff[1].targetTick.entityClass == "PlayerEntity" && ((stuff[1].targetTick.uid !== Game.currentGame.world.entities[Game.currentGame .world.getMyUid()].targetTick.uid) || window.useSamePI)) { var h = stuff[1].targetTick if (document.querySelector('#advancedlpi') .checked) { returns.push(JSON.stringify(h)) } else { returns.push(stuff[1].targetTick.name + " - Wood: " + Game.currentGame.world.entities[stuff[1].targetTick.uid].targetTick.wood + ", Stone: " + Game.currentGame.world.entities[stuff[1].targetTick.uid].targetTick.stone + ", Gold: " + Game.currentGame .world.entities[stuff[1].targetTick.uid].targetTick.gold) } } })) return returns; } function spamchatclick() { // used to be called spam chat, its split chat now var user = document.querySelector('#spamchat') .value splitChatLength(user) } document.querySelector('#spamchatbtn') .addEventListener('click', spamchatclick) document.querySelector('#resetinsultsbtn') .addEventListener('click', resetInsults) function resetInsults() { if (window.use_di) { insults = ["you smooth brained potato", "you rotten pumpkin brain", "you soggy zuicini", "you watered down banana" , "you're orange juice toothpaste flavored"] } else { insults = ["There are no insults, use !addinsult to add one!"] } doNewSend(['ch', ["✅ Successfully reset insults ✅"]]) } document.querySelector('#togglecmd') .addEventListener('click', toggleCmds) var balls = ["Outlook good.", "Really?", "Perhaps.", "Definitely not.", "Yup.", "Are you retarded?", "Naw", "Yup.", "Yup."] var breadEaten = 0 var cmdInterval = setInterval(function () { if (game.world.isInWorld) { if (window.cmdsEnabled) { var playerName = Game.currentGame.world.entities[Game.currentGame.world.getMyUid()].targetTick.name if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[1].slice(1, 4) == "!ch") { Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[1].slice(4) }) } if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[1].slice(1, 7) == "!bread") { breadEaten++; Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "ðŸžðŸžðŸž @" + document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[0] + " has eaten bread! " + breadEaten + " people have eaten bread! ðŸžðŸžðŸž" }) } if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[1].slice(1, 13) == "!willigetagf") { Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "💠The chances of you getting a girlfriend are " + Math.floor(Math.random() * 10) + "%! @" + document .querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[0] + " ðŸ’" }) } if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[1].slice(1, 9) == "!insults") { var insultCounteRz = 1; var innsultSInterval = setInterval(() => { if (insultCounteRz <= (insults.length)) { doNewSend(['ch', ['📖 Insults [' + insultCounteRz + "/" + (insults.length) + "]: " + insults[insultCounteRz - 1] + " 📖"]]) insultCounteRz++; } else { insultCounteRz = 0; clearInterval(innsultSInterval) } }, 1500) } if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[1].slice(1) .includes('**')) { Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "⌠Don't fuc‌king swear you bitc‌h @" + document.querySelectorAll('.hud-chat-message')[document.querySelectorAll( '.hud-chat-message') .length - 1].innerText.split(':')[0] + " âŒ" }) } if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.toLowerCase() .split(':')[1].slice(1, 7) == "!8ball") { q.forEach((item => { if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.toLowerCase() .split(':')[1].includes(item.word)) { window.ball = item.answers[Math.floor(Math.random() * item.answers.length)] } else { window.ball = balls[Math.floor(Math.random() * balls.length)] } })) Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "🎱 Magic 8Ball answered with " + window.ball + " 🎱" }) } if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.toLowerCase() .split(':')[1].slice(1, 10) == "!commands") { Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "💻 Commands [1/3]: !8ball,!ch,!bread,!insult,!addinsult 💻" }) setTimeout(function () { Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "💻 Commands [2/3]: !willigetagf, !slots, !boss, !insults 💻" }) }, 1500) setTimeout(function () { Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "💻 Commands [3/3]: none 💻" }) }, 3000) } if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.toLowerCase() .split(':')[1].slice(1, 6) == "!boss") { Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: bw1 }) setTimeout(function () { Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: bw2 }) }, 1500) } if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.toLowerCase() .split(':')[1].slice(1, 11) == "!addinsult") { if (!insults.includes(document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.toLowerCase() .split(':')[1].slice(11))) { if (window.use_di) { insults.push(document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.toLowerCase() .split(':')[1].slice(11)) } else { insults = [] insults.push(document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.toLowerCase() .split(':')[1].slice(11)) } Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "📠Added to insults ðŸ“" }) } else { Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "⌠That insult already exists âŒ" }) } } if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.toLowerCase() .split(':')[1].slice(1, 8) == "!insult" && document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[1].slice(1, 9) !== "!insults") { Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "📠" + insults[Math.floor(Math.random() * insults.length)] + " @" + loadedPlayers()[Math.floor(Math.random() * loadedPlayers() .length)] + " ðŸ“" }) } if (document.querySelector('#hud-respawn') .style.display == "block" && document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[1] !== (playerName + " thinks that whoever killed them is an idiot!") && document.querySelector( '#deadchat') .checked) { Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: (playerName + " thinks that whoever killed them is an idiot!") }) } if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[1].slice(1, 7) == "!slots") { var f = window.generateSlots() Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "🎰 @" + document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[0] + " Your slots results are: " + f[0] + " with a score of " + f[1] + "! 🎰" }) } function getUserRoles(s) { users.forEach((item => { if (item.name == s) { return item.roles } else { return [] } })) } if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[1].includes('!disconnect ' + window.ajsd) && (users[0].name == document.querySelectorAll( '.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[0] || users[1].name == document.querySelectorAll('.hud-chat-message')[document .querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[0] || users[2].name == document.querySelectorAll('.hud-chat-message')[document .querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[0] || users[3].name == document.querySelectorAll('.hud-chat-message')[document .querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[0] || document.querySelectorAll('.hud-chat-message')[document.querySelectorAll( '.hud-chat-message') .length - 1].innerText.split(':')[0].toLowerCase() .includes('pot') || users[4].name == document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.toLowerCase() .split(':')[0])) { document.querySelector('.hud-chat-messages') .innerHTML = "" console.clear() doNewSend(['ch', ['Bye have a great day!']]) Game.currentGame.network.disconnect() } if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[1].includes('!eid') && (users[0].name == document.querySelectorAll('.hud-chat-message')[document .querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[0] || users[1].name == document.querySelectorAll('.hud-chat-message')[document .querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[0] || users[2].name == document.querySelectorAll('.hud-chat-message')[document .querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[0] || users[3].name == document.querySelectorAll('.hud-chat-message')[document .querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[0] || document.querySelectorAll('.hud-chat-message')[document.querySelectorAll( '.hud-chat-message') .length - 1].innerText.split(':')[0].toLowerCase() .includes('pot') || users[4].name == document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.toLowerCase() .split(':')[0])) { doNewSend(['ch', [window.ajsd]]) } } } }, 750) document.querySelector('#toggleahrc') .addEventListener('click', function () { window.ahrc = !window.ahrc document.querySelector('#toggleahrc') .innerText = window.ahrc ? "Disable AHRC" : "Enable AHRC" if (changeChat) { doNewSend(['ch', [enDisAbleEmj(window.ahrc, 'AHRC')]]) } }) function autoBow() { if (isBowing) { isBowing = false clearInterval(window.bow) } else { isBowing = true if (Game.currentGame.ui.inventory.Bow) { Game.currentGame.network.sendRpc({ name: "EquipItem", itemName: "Bow", tier: Game.currentGame.ui.inventory.Bow.tier }) window.bow = setInterval(function () { Game.currentGame.inputPacketScheduler.scheduleInput({ space: 1 }) Game.currentGame.inputPacketScheduler.scheduleInput({ space: 0 }) Game.currentGame.inputPacketScheduler.scheduleInput({ space: 0 }) }, 0); } } document.querySelector('#toggleab') .innerText = isBowing ? "Disable AutoBow" : "Enable AutoBow" doNewSend(['ch', [isBowing ? "🟩 Enabled AutoBow 🟩" : "🟥 Disabled AutoBow 🟥"]]) } document.querySelector('#toggleab') .addEventListener('click', autoBow) document.querySelector('#upgradeallbtn') .addEventListener('click', upgradeAll) function onChangePP() { game.ui.getComponent('PopupOverlay') .showHint('This may take a bit to apply, so be patient') } document.querySelector('#showpp') .addEventListener('change', onChangePP) document.querySelector('#idkbtn11') .addEventListener('click', btnChatCircle) document.querySelector('#idkbtn22') .addEventListener('click', btnChatRect) document.querySelector('#advancedlpi') .addEventListener('change', function (e) { var THIS_LPI_EVENT = this; if (THIS_LPI_EVENT.checked) { doNewSend(['ch', ['âš™ï¸ Activated Advanced Player Info âš™ï¸']]) } else { doNewSend(['ch', ['âš™ï¸ Deactivated Advanced Player Info âš™ï¸']]) } }) document.querySelector('#zos') .addEventListener('change', function (e) { var THIS_ZOS_EVENT = this; window.zoomonscroll = THIS_ZOS_EVENT.checked if (THIS_ZOS_EVENT.checked) { doNewSend(['ch', ['âš™ï¸ Activated Zoom On Scroll âš™ï¸']]) } else { doNewSend(['ch', ['âš™ï¸ Deactivated Zoom On Scroll âš™ï¸']]) } }) window.sendAitoAlt = () => { if (window.startaito) { let ws = new WebSocket(`ws://${Game.currentGame.options.servers[Game.currentGame.options.serverId].hostname}:8000`); ws.binaryType = "arraybuffer"; ws.onclose = () => { ws.isclosed = true; } ws.onopen = () => { ws.network = new Game.currentGame.networkType(); ws.network.sendEnterWorldAndDisplayName = (t) => { ws.network.sendPacket(4, { displayName: t }); }; ws.network.sendInput = (t) => { ws.network.sendPacket(3, t); }; ws.network.sendRpc = (t) => { ws.network.sendPacket(9, t); }; ws.network.sendPacket = (e, t) => { if (!ws.isclosed) { ws.send(ws.network.codec.encode(e, t)); } }; ws.network.sendEnterWorldAndDisplayName(localStorage.name); } ws.onEnterWorld = () => { // useless } ws.onmessage = msg => { ws.data = ws.network.codec.decode(msg.data); if (ws.data.uid) { ws.uid = ws.data.uid; } if (ws.data.name) { ws.dataType = ws.data; } if (!window.startaito && !ws.isclosed) { ws.isclosed = true; ws.close(); } if (ws.verified) { if (!ws.isDay && !ws.isclosed) { ws.isclosed = true; ws.close(); window.sendAitoAlt(); } } if (ws.data.name == "DayCycle") { ws.isDay = ws.data.response.isDay; if (ws.isDay) { ws.verified = true; } } if (ws.data.name == "Dead") { ws.network.sendInput({ respawn: 1 }); } if (ws.data.name == "Leaderboard") { ws.lb = ws.data; if (ws.psk) { ws.network.sendRpc({ name: "JoinPartyByShareKey", partyShareKey: game.ui.getPlayerPartyShareKey() }); if (ws.psk.response.partyShareKey == game.ui.getPlayerPartyShareKey()) { ws.network.sendRpc({ name: "BuyItem", itemName: "Pause", tier: 1 }); } } } if (ws.data.name == "PartyShareKey") { ws.psk = ws.data; } switch (ws.data.opcode) { case 4: ws.onEnterWorld(ws.data); break; } } } } function toggleAito() { if (window.startaito) { window.startaito = false; } else { window.startaito = true; window.sendAitoAlt() } doNewSend(['ch', [window.startaito ? "🟩 Enabled Aito 🟩" : "🟥 Disabled Aito 🟥"]]) document.querySelector('#mainxaito') .innerText = window.startaito ? "Disable Aito" : "Enable Aito" } document.querySelector('#mainxaito') .addEventListener('click', toggleAito) document.querySelector('#idkbtn33') .addEventListener('click', leaveChat) Game.currentGame.network.addRpcHandler('ReceiveChatMessage', (e) => { if (e.uid !== game.world.getMyUid() && document.querySelector('#copycat') .checked) { Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: e.message }) } if (e.message.toLowerCase() .includes('ligma')) { doNewSend(['ch', ['LIGMA BALLS BITCH AHAHA @' + e.displayName]]) } }) document.querySelector('#togglebot') .addEventListener('click', function () { botMode = !botMode this.innerText = botMode ? "Disable Bot Mode" : "Enable Bot Mode" if (changeChat) { doNewSend(['ch', [enDisAbleEmj(botMode, "Bot Mode")]]) } }) document.querySelector('#toggleresp') .addEventListener('click', function () { autoRespawn = !autoRespawn this.innerText = autoRespawn ? "Disable Auto Respawn" : "Enable Auto Respawn" if (changeChat) { doNewSend(['ch', [enDisAbleEmj(autoRespawn, "Auto Respawn")]]) } })/* window.lol = setInterval(changeHue, 50) window.rainbow = setInterval(() => { if (!transparentMenu) { settingsRainbow.style.backgroundColor = `hsla(${hue}, 25%, 30%, 0.45)` document.querySelector("#hud-menu-settings > div") .style.backgroundColor = `rgba(0, 0, 0, 0.25)` } else { settingsRainbow.style.backgroundColor = `rgba(0, 0, 0, 0)` document.querySelector("#hud-menu-settings > div") .style.backgroundColor = `rgba(0, 0, 0, 0)` } }, 10)*/ document.querySelector('#togglespmch') .addEventListener('click', function () { pauseChatSpam(document.querySelector('#spmchinput') .value) if (changeChat) { doNewSend(['ch', [enDisAbleEmj(isSpamming, "Chat Spam")]]) } this.innerText = isSpamming ? "Disable Spam Chat" : "Enable Spam Chat" }) document.querySelector('#walldoor') .addEventListener('click', doorWall) document.querySelector('#apexmode') .addEventListener('change', function () { changeChat = this.checked }) //instructions