Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Icons script (Main 1 + Main 2)
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match zombs.io
- // @grant none
- // ==/UserScript==
- let MainScriptOnload = setTimeout(()=>{s1();},100)
- let AutoBuildScriptOnload = setTimeout(()=>{s2();},200)
- let BaseSaverScriptOnload = setTimeout(()=>{s3()},300)
- let TowerHealScriptOnload = setTimeout(()=>{s4()},400)
- let JoinPartyiesAndLeaveParties = setTimeout(()=>{s5()},500)
- let TowerFreezeScriptOnload = setTimeout(()=>{s6()},600)
- let MainScript2Onload = setTimeout(()=>{s7()},700)
- window.s1 = function() {
- let css2 = `
- .btn:hover {
- 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-zipp {
- 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-zipp h3 {
- display: block;
- margin: 0;
- line-height: 20px;
- }
- .hud-menu-zipp .hud-zipp-grid {
- display: block;
- height: 380px;
- padding: 10px;
- margin-top: 18px;
- background: rgba(0, 0, 0, 0.2);
- }
- .hud-spell-icons .hud-spell-icon[data-type="Zippity"]::before {
- background-image: url("https://cdn2.iconfinder.com/data/icons/atrous/512/hammer_tool-512.png");
- }
- .hud-menu-zipp .hud-the-tab {
- position: relative;
- height: 40px;
- line-height: 40px;
- margin: 20px;
- border: 0px solid rgb(0, 0, 0, 0);
- }
- .hud-menu-zipp .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-zipp .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);
- var menus = document.getElementsByClassName("hud-menu");
- // class changing
- document.getElementsByClassName("hud-intro-form")[0].style.height = "300px";
- document.getElementsByClassName("hud-intro-play")[0].setAttribute("class", "btn btn-blue hud-intro-play");
- // spell icon
- let spell = document.createElement("div");
- spell.classList.add("hud-spell-icon");
- spell.setAttribute("data-type", "Zippity")
- spell.innerHTML = `<div class="hud-tooltip-menu-icon">
- <h4>Scripts</h4>
- </div>`
- spell.innerHTML = "Main";
- spell.classList.add("hud-zipp-icon");
- document.getElementsByClassName("hud-spell-icons")[0].appendChild(spell);
- //Menu for spell icon
- let modHTML = `
- <div class="hud-menu-zipp">
- <br />
- <div class="hud-zipp-grid">
- </div>
- </div>
- `;
- document.body.insertAdjacentHTML("afterbegin", modHTML);
- let zipz123 = document.getElementsByClassName("hud-menu-zipp")[0];
- var theTooltip = document.createElement("div");
- theTooltip.innerHTML = `<div class="hud-tooltip-menu-icon">
- <h4>Scripts</h4>
- </div>`
- //Onclick
- document.getElementsByClassName("hud-zipp-icon")[0].addEventListener("click", function() {
- if(zipz123.style.display == "none") {
- zipz123.style.display = "block";
- for(var i = 0; i < menus.length; i++) {
- menus[i].style.display = "none";
- }
- } else {
- zipz123.style.display = "none";
- };
- });
- let _menu = document.getElementsByClassName("hud-menu-icon");
- let _spell = document.getElementsByClassName("hud-spell-icon");
- let allIcon = [
- _menu[0],
- _menu[1],
- _menu[2],
- _spell[0],
- _spell[1]
- ];
- allIcon.forEach(function(elem) {
- elem.addEventListener("click", function() {
- if(zipz123.style.display == "block") {
- zipz123.style.display = "none";
- };
- });
- });
- // key to open and close
- function modm() {
- if(zipz123.style.display == "none") {
- zipz123.style.display = "block";
- for(var i = 0; i < menus.length; i++) {
- menus[i].style.display = "none";
- }
- } else {
- zipz123.style.display = "none";
- };
- };
- document.getElementsByClassName("hud-zipp-grid")[0].innerHTML = `
- <div style="text-align:center"><br>
- <hr />
- <h3>Main</h3>
- <hr /><button class="btn btn-green" style="width: 45%;" onclick="SellStash();">Sell Stash!</button>
- <button class="btn btn-green" style="width: 45%;" onclick="SellAll();">Sell All!</button>
- <button class="btn btn-green" style="width: 45%;" onclick="sellWalls();">Sell Walls!</button>
- <button class="btn btn-green" style="width: 45%;" onclick="sellDoors();">Sell Doors!</button>
- <button class="btn btn-green" style="width: 45%;" onclick="sellTraps();">Sell Traps!</button>
- <button class="btn btn-green" style="width: 45%;" onclick="sellArrows();">Sell Arrows!</button>
- <button class="btn btn-green" style="width: 45%;" onclick="sellMagics();">Sell Mages!</button>
- <button class="btn btn-green" style="width: 45%;" onclick="sellpets();">Sell Pets!</button>
- <button id="UPP" class="btn btn-blue" style="width: 45%;">Enable Upgrade All</button>
- <button id="AHRC" class="btn btn-blue" style="width: 45%;">Enable AHRC</button>
- <button id="bow" class="btn btn-blue" style="width: 45%;">Enable Autobow</button>
- <button id="SSL4" class="btn btn-blue" style="width: 45%;">Enable AUT</button>
- <button id="SSL" class="btn btn-blue" style="width: 45%;">Enable Accept All</button>
- <button id="SSL9" class="btn btn-blue" style="width: 45%;">Enable kick all</button>
- `;
- var button21 = document.getElementById("UPP");
- button21.addEventListener("click", startUPP);
- button21.addEventListener("click", stopUPP);
- var UPP = null;
- function startUPP() {
- clearInterval(UPP);
- if (UPP !== null) {
- UPP = null;
- } else {
- UPP = setInterval(function() {
- UpgradeAll();
- UpgradeStash();
- }, 50);
- }
- }
- function stopUPP() {
- var trade = document.getElementById("UPP");
- if (trade.innerHTML == "Enable Upgrade All") {
- trade.innerHTML = "Disable Upgrade All";
- trade.className = "btn btn-red";
- } else {
- trade.innerHTML = "Enable Upgrade All";
- trade.className = "btn btn-blue";
- }
- }
- //
- var button20 = document.getElementById("SSL");
- button20.addEventListener("click", startSSL);
- button20.addEventListener("click", stopSSL);
- var SSL = null;
- function startSSL() {
- clearInterval(SSL);
- if (SSL !== null) {
- SSL = null;
- } else {
- SSL = setInterval(function() {
- Accepton();
- }, 0);
- }
- }
- function stopSSL() {
- var trade = document.getElementById("SSL");
- if (trade.innerHTML == "Enable Accept All") {
- trade.innerHTML = "Disable Accept All";
- trade.className = "btn btn-red";
- } else {
- trade.innerHTML = "Enable Accept All";
- trade.className = "btn btn-blue";
- }
- }
- //
- var button212 = document.getElementById("SSL4");
- button212.addEventListener("click", startSSL4);
- button212.addEventListener("click", stopSSL4);
- var SSL4 = null;
- function startSSL4() {
- clearInterval(SSL4);
- if (SSL4 !== null) {
- SSL4 = null;
- } else {
- SSL4 = setInterval(function() {
- aito()
- }, 500)
- }
- }
- function stopSSL4() {
- var trade = document.getElementById("SSL4");
- if (trade.innerHTML == "Enable AUT") {
- trade.innerHTML = "Disable AUT";
- trade.className = "btn btn-red";
- } else {
- trade.innerHTML = "Enable AUT";
- trade.className = "btn btn-blue";
- }
- }
- //
- var button22 = document.getElementById("AHRC");
- button22.addEventListener("click", startAHRC);
- button22.addEventListener("click", stopAHRC);
- var AHRC = null;
- function startAHRC() {
- clearInterval(AHRC);
- if (AHRC !== null) {
- AHRC = null;
- } else {
- AHRC = setInterval(function() {
- Collect();
- Refuel();
- }, 1000);
- }
- }
- function stopAHRC() {
- var trade = document.getElementById("AHRC");
- if (trade.innerHTML == "Enable AHRC") {
- trade.innerHTML = "Disable AHRC";
- trade.className = "btn btn-red";
- } else {
- trade.innerHTML = "Enable AHRC";
- trade.className = "btn btn-blue";
- }
- }
- //AutoBow
- var button25 = document.getElementById("bow");
- button25.addEventListener("click", startbow);
- button25.addEventListener("click", stopbow);
- var bow = null;
- function startbow() {
- clearInterval(bow);
- if (bow !== null) {
- bow = null;
- } else {
- if(Game.currentGame.ui.inventory.Bow) {
- Game.currentGame.network.sendRpc({
- name: "EquipItem",
- itemName: "Bow",
- tier: Game.currentGame.ui.inventory.Bow.tier
- })
- bow = setInterval(function() {
- Game.currentGame.inputPacketScheduler.scheduleInput({
- space: 1
- })
- Game.currentGame.inputPacketScheduler.scheduleInput({
- space: 0
- })
- Game.currentGame.inputPacketScheduler.scheduleInput({
- space: 0
- })
- }, 0);
- }
- }
- }
- function stopbow() {
- var trade = document.getElementById("bow");
- if (trade.innerHTML == "Enable Autobow") {
- trade.innerHTML = "Disable Autobow";
- trade.className = "btn btn-red";
- } else {
- trade.innerHTML = "Enable Autobow";
- trade.className = "btn btn-blue";
- }
- }
- var button219 = document.getElementById("SSL9");
- button219.addEventListener("click", startSSL9);
- button219.addEventListener("click", stopSSL9);
- var SSL9 = null;
- var saveSpeed3;
- function startSSL9() {
- clearInterval(SSL9);
- if (SSL9 !== null) {
- SSL9 = null;
- } else {
- SSL9 = setInterval(function() {
- for (let i in Game.currentGame.ui.playerPartyMembers) {
- Game.currentGame.network.sendRpc({
- name: "KickParty",
- uid: Game.currentGame.ui.playerPartyMembers[i].playerUid
- })
- }
- }, 0)
- }
- }
- function stopSSL9() {
- var trade = document.getElementById("SSL9");
- if (trade.innerHTML == "Enable kick all") {
- trade.innerHTML = "Disable kick all";
- trade.className = "btn btn-red";
- } else {
- trade.innerHTML = "Enable kick all";
- trade.className = "btn btn-blue";
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["Wall", "Door", "SlowTrap", "ArrowTower", "CannonTower", "MeleeTower", "BombTower", "MagicTower", "GoldMine", "Harvester" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- function $(classname) {
- let element = document.getElementsByClassName(classname)
- if (element.length === 1) {
- return element[0]
- } else {
- return element
- }
- }
- window.SellStash = function() {
- // Game.currentGame.ui.getComponent("PopupOverlay").showConfirmation("Are you sure you want to sell stash?", 1e4, function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "GoldStash") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["GoldStash" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- // })
- }
- let slowTraps = []
- const buildings = Game.currentGame.ui.buildings
- const saveSlowTraps = () => {
- slowTraps = []
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["Wall", "Door", "SlowTrap", "ArrowTower", "CannonTower", "MeleeTower", "BombTower", "MagicTower", "GoldMine", "Harvester" || "Wall"].indexOf(building.type) >= 0) {
- slowTraps.push(building)
- }})},
- placeBuilding = function(x, y, building, yaw) {
- Game.currentGame.network.sendRpc({
- name: "MakeBuilding",
- x: x,
- y: y,
- type: building,
- yaw: yaw
- })
- }
- function Accepton() {
- let confirm = document.getElementsByClassName('btn btn-green hud-confirmation-accept');
- for (var i = 0; i < confirm.length; i++) {
- var accept = confirm[i];
- accept.click();
- }
- }
- function aito() {
- $("hud-spell-icon")[1].click()
- }
- window.sellWalls = function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "Wall") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["Wall" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- window.sellDoors = function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "Door") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["Door" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- window.sellArrows = function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "ArrowTower") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["ArrowTower" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- window.sellCannons = function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "CannonTower") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["CannonTower" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- window.sellBombs = function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "BombTower") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["BombTower" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- window.sellMelees = function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "MeleeTower") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["MeleeTower" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- window.sellMagics = function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "MagicTower") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["MagicTower" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- window.sellGoldMines = function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "GoldMine") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["GoldMine" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- window.sellHarvests = function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "Harvester") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["Harvester" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- window.sellTraps = function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "SlowTrap") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["SlowTrap" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- window.SellAll = function() {
- let ss4 = setInterval ( () => {
- clearInterval(ss4)
- // Game.currentGame.ui.getComponent("PopupOverlay").showConfirmation("Are you sure you want to sell all?", 1e4, function() {
- var entities = Game.currentGame.world.entities;
- for(var uid in entities) {
- if(!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if(obj.fromTick.model !== "GoldStash") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- });
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["Wall", "Door", "SlowTrap", "ArrowTower", "CannonTower", "MeleeTower", "BombTower", "MagicTower", "GoldMine", "Harvester" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }, 100)
- // })
- }
- window.UpgradeAll = function() {
- let ss2 = setInterval (() => {
- clearInterval(ss2)
- var entities = Game.currentGame.world.entities;
- for(var uid in entities) {
- if(!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if(obj.fromTick.model !== "GoldStash") {
- Game.currentGame.network.sendRpc({
- name: "UpgradeBuilding",
- uid: obj.fromTick.uid
- });
- }
- }
- }, 100)
- }
- window.UpgradeStash = function() {
- let ss3 = setInterval (() => {
- clearInterval(ss3)
- var entities = Game.currentGame.world.entities;
- for(var uid in entities) {
- if(!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if(obj.fromTick.model == "GoldStash") {
- Game.currentGame.network.sendRpc({
- name: "UpgradeBuilding",
- uid: obj.fromTick.uid
- });
- }
- }
- }, 100)
- }
- window.sellpets = function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "PetMiner") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- var entities2 = Game.currentGame.world.entities;
- for (var uid2 in entities2) {
- if (!entities2.hasOwnProperty(uid2)) continue;
- var obj2 = entities2[uid2];
- if (obj2.fromTick.model == "PetCARL") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj2.fromTick.uid
- })
- }
- }
- }
- window.Refuel = function() {
- var entities = Game.currentGame.world.entities;
- for(var uid in entities) {
- if(!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if(obj.fromTick.model == "Harvester") {
- let e = Game.currentGame.world.getEntityByUid(obj.fromTick.uid).getTargetTick();
- let i = Math.floor(e.depositMax);
- Game.currentGame.network.sendRpc({
- name: "AddDepositToHarvester",
- uid: obj.fromTick.uid,
- deposit: i
- });
- }
- }
- }
- let sellBombs = () => {
- const entities = Game.currentGame.world.entities
- for(const uid in entities) {
- if(!entities.hasOwnProperty(uid)) continue
- const obj = entities[uid]
- if(obj.fromTick.model == "BombTower") {
- Game.currentGame.network.sendRpc({
- "name": "DeleteBuilding",
- "uid": obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["BombTower" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- },
- upgradeBombs = () => {
- const entities = Game.currentGame.world.entities
- for(const uid in entities) {
- if(!entities.hasOwnProperty(uid)) continue
- const obj = entities[uid]
- if(obj.fromTick.model == "BombTower") {
- Game.currentGame.network.sendRpc({
- "name": "UpgradeBuilding",
- "uid": obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["BombTower" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- window.Collect = function() {
- var entities = Game.currentGame.world.entities;
- for(var uid in entities) {
- if(!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if(obj.fromTick.model == "Harvester") {
- Game.currentGame.network.sendRpc({
- name: "CollectHarvester",
- uid: obj.fromTick.uid
- });
- }
- }
- }
- function heal() {
- Game.currentGame.network.sendRpc({
- "name": "BuyItem",
- "itemName": "HealthPotion",
- "tier": 1
- })
- Game.currentGame.network.sendRpc({
- "name": "EquipItem",
- "itemName": "HealthPotion",
- "tier": 1
- })
- Game.currentGame.network.sendRpc({
- "name": "BuyItem",
- "itemName": "PetHealthPotion",
- "tier": 1
- })
- Game.currentGame.network.sendRpc({
- "name": "EquipItem",
- "itemName": "PetHealthPotion",
- "tier": 1
- })
- }
- };
- window.s2 = function() {
- // ==UserScript==
- // @name Auto Build
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match http://zombs.io/
- // @grant none
- // ==/UserScript==
- let css2 = `
- .btn:hover {
- 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-zipp2 {
- 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-zipp2 h3 {
- display: block;
- margin: 0;
- line-height: 20px;
- }
- .hud-menu-zipp2 .hud-zipp-grid2 {
- display: block;
- height: 380px;
- padding: 10px;
- margin-top: 18px;
- background: rgba(0, 0, 0, 0.2);
- }
- .hud-spell-icons .hud-spell-icon[data-type="Zippity2"]::before {
- background-image: url("https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/google/223/gear_2699.png");
- }
- .hud-menu-zipp2 .hud-the-tab {
- position: relative;
- height: 40px;
- line-height: 40px;
- margin: 20px;
- border: 0px solid rgb(0, 0, 0, 0);
- }
- .hud-menu-zipp2 .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-zipp2 .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);
- // class changing
- document.getElementsByClassName("hud-intro-form")[0].style.height = "300px";
- document.getElementsByClassName("hud-intro-play")[0].setAttribute("class", "btn btn-blue hud-intro-play");
- // spell icon
- let spell = document.createElement("div");
- spell.classList.add("hud-spell-icon");
- spell.setAttribute("data-type", "Zippity2");
- spell.classList.add("hud-zipp2-icon");
- document.getElementsByClassName("hud-spell-icons")[0].appendChild(spell);
- //Menu for spell icon
- let modHTML = `
- <div class="hud-menu-zipp2">
- <br />
- <div class="hud-zipp-grid2">
- </div>
- </div>
- `;
- document.body.insertAdjacentHTML("afterbegin", modHTML);
- let zipz123 = document.getElementsByClassName("hud-menu-zipp2")[0];
- //Onclick
- document.getElementsByClassName("hud-zipp2-icon")[0].addEventListener("click", function() {
- if(zipz123.style.display == "none") {
- zipz123.style.display = "block";
- for(var i = 0; i < menus.length; i++) {
- menus[i].style.display = "none";
- }
- } else {
- zipz123.style.display = "none";
- };
- });
- let _menu = document.getElementsByClassName("hud-menu-icon");
- let _spell = document.getElementsByClassName("hud-spell-icon");
- let allIcon = [
- _menu[0],
- _menu[1],
- _menu[2],
- _spell[0],
- _spell[1]
- ];
- allIcon.forEach(function(elem) {
- elem.addEventListener("click", function() {
- if(zipz123.style.display == "block") {
- zipz123.style.display = "none";
- };
- });
- });
- // key to open and close
- function modm() {
- if(zipz123.style.display == "none") {
- zipz123.style.display = "block";
- for(var i = 0; i < menus.length; i++) {
- menus[i].style.display = "none";
- }
- } else {
- zipz123.style.display = "none";
- };
- };
- document.getElementsByClassName("hud-zipp-grid2")[0].innerHTML = `
- <div style="text-align:center"><br>
- <hr />
- <h3>Auto Build</h3>
- <hr />
- <button onclick="BSB();">Bryan Smith Base</button>
- <button onclick="TB();">Thing Base</button>
- <button onclick="XBase();">X Base</button>
- <button onclick="SmallCornerBase();">OP Base</button>
- <button onclick="SSLQ();">- Base</button>
- <br><br>
- <button onclick="deathrainbase();">DEATHRAIN's Base</button>
- <button onclick="bryanss();">Bryan Smith's Score Base</button>
- <br><br>
- <input type="number" value="1000" class="F" placeholder="speed" style="width: 20%;">
- <button class="Fe">save speed</button>
- <button id="SSL5">Enable Defense Base</button>
- <br><br>
- <input type="number" value="825" class="F2" placeholder="speed" style="width: 20%;">
- <button class="Fe2">save speed</button>
- <button id="SSL6">Enable gold generator</button>
- <br><br>
- <input type="number" value="2500" class="F0" placeholder="speed" style="width: 20%;">
- <button class="Fe0">save speed</button>
- <button id="SSL0">Enable oooooo's base</button>
- `;
- var button216 = document.getElementById("SSL6");
- button216.addEventListener("click", startSSL6);
- button216.addEventListener("click", stopSSL6);
- var SSL6 = null;
- var f2=825;
- $("Fe2").addEventListener("click", function() {
- f2 = $("F2").value;
- });
- function startSSL6() {
- clearInterval(SSL6);
- if (SSL6 !== null) {
- SSL6 = null;
- } else {
- SSL6 = setInterval(function() {
- TH()
- }, f2)
- }
- }
- function stopSSL6() {
- var trade = document.getElementById("SSL6");
- if (trade.innerHTML == "Enable gold generator") {
- trade.innerHTML = "Disable gold generator";
- } else {
- trade.innerHTML = "Enable gold generator";
- }
- }
- var button218 = document.getElementById("SSL6");
- button218.addEventListener("click", startSSL8);
- button218.addEventListener("click", stopSSL8);
- var SSL8 = null;
- function startSSL8() {
- clearInterval(SSL8);
- if (SSL8 !== null) {
- SSL8 = null;
- } else {
- SSL8 = setInterval(function() {
- upgradeBombs()
- }, 25)
- }
- }
- function stopSSL8() {
- var trade = document.getElementById("SSL8");
- if (trade.innerHTML == "Enable gold generator") {
- trade.innerHTML = "Disable gold generator";
- } else {
- trade.innerHTML = "Enable gold generator";
- }
- }
- var button215 = document.getElementById("SSL5");
- button215.addEventListener("click", startSSL5);
- button215.addEventListener("click", stopSSL5);
- var SSL5 = null;
- var f=1000;
- $("Fe").addEventListener("click", function() {
- f = $("F").value;
- });
- function startSSL5() {
- clearInterval(SSL5);
- if (SSL5 !== null) {
- SSL5 = null;
- } else {
- SSL5 = setInterval(function() {
- MB()
- }, f)
- }
- }
- function stopSSL5() {
- var trade = document.getElementById("SSL5");
- if (trade.innerHTML == "Enable Defense Base") {
- trade.innerHTML = "Disable Defense Base";
- } else {
- trade.innerHTML = "Enable Defense Base";
- }
- }
- var button210 = document.getElementById("SSL0");
- button210.addEventListener("click", startSSL0);
- button210.addEventListener("click", stopSSL0);
- var SSL0 = null;
- var f0=2500;
- $("Fe0").addEventListener("click", function() {
- f0 = $("F0").value;
- });
- function startSSL0() {
- clearInterval(SSL0);
- if (SSL0 !== null) {
- SSL0 = null;
- } else {
- SSL0 = setInterval(function() {
- BRYSCRBSE();
- }, f0)
- }
- }
- function stopSSL0() {
- var trade = document.getElementById("SSL0");
- if (trade.innerHTML == "Enable oooooo's base") {
- trade.innerHTML = "Disable oooooo's base";
- } else {
- trade.innerHTML = "Enable oooooo's base";
- }
- }
- var upgradeBombs = () => {
- const entities = Game.currentGame.world.entities
- for(const uid in entities) {
- if(!entities.hasOwnProperty(uid)) continue
- const obj = entities[uid]
- if(obj.fromTick.model == "BombTower") {
- Game.currentGame.network.sendRpc({
- "name": "UpgradeBuilding",
- "uid": obj.fromTick.uid
- })
- }
- }
- }
- var sellBombs = () => {
- const entities = Game.currentGame.world.entities
- for(const uid in entities) {
- if(!entities.hasOwnProperty(uid)) continue
- const obj = entities[uid]
- if(obj.fromTick.model == "BombTower") {
- Game.currentGame.network.sendRpc({
- "name": "DeleteBuilding",
- "uid": obj.fromTick.uid
- })
- }
- }
- }
- //Auto Build Script
- function $(classname) {
- let element = document.getElementsByClassName(classname)
- if (element.length === 1) {
- return element[0]
- } else {
- return element
- }
- }
- Storage.prototype.setObject = function(key, value) {
- this.setItem(key, JSON.stringify(value));
- }
- Storage.prototype.getObject = function(key) {
- let value = this.getItem(key);
- return value && JSON.parse(value);
- }
- let Auto = {}
- let Auto2 = {}
- let EXTREME = {}
- Auto.GetGoldStash = function() {
- let entities = Game.currentGame.ui.buildings
- for (let uid in entities) {
- if (!entities.hasOwnProperty(uid)) {
- continue
- }
- let obj = entities[uid]
- if (obj.type == "GoldStash") {
- return obj
- }
- }
- }
- EXTREME.GetGoldStash = function() {
- let entities = Game.currentGame.ui.buildings
- for (let uid in entities) {
- if (!entities.hasOwnProperty(uid)) {
- continue
- }
- let obj = entities[uid]
- if (obj.type == "GoldStash") {
- return obj
- }
- }
- }
- Auto2.GetGoldStash = function() {
- let entities = Game.currentGame.ui.buildings
- for (let uid in entities) {
- if (!entities.hasOwnProperty(uid)) {
- continue
- }
- let obj = entities[uid]
- if (obj.type == "GoldStash") {
- return obj
- }
- }
- }
- Auto.PlaceBuilding = function(x, y, building, yaw) {
- Game.currentGame.network.sendRpc({
- name: "MakeBuilding",
- x: x,
- y: y,
- type: building,
- yaw: yaw
- })
- }
- Auto.PlaceBulding = function(x, y, building, yaw) {
- Game.currentGame.network.sendRpc({
- name: "MakeBuilding",
- x: x,
- y: y,
- type: building,
- yaw: yaw
- })
- }
- EXTREME.PlaceBuilding = function(x, y, building, yaw) {
- Game.currentGame.network.sendRpc({
- name: "MakeBuilding",
- x: x,
- y: y,
- type: building,
- yaw: yaw
- })
- }
- Auto2.PlaceBuilding = function(x, y, building, yaw) {
- Game.currentGame.network.sendRpc({
- name: "MakeBuilding",
- x: x,
- y: y,
- type: building,
- yaw: yaw
- })
- sellBombs()
- upgradeBombs()
- var buildings = Game.currentGame.ui.buildings
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["BombTower" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- Auto2.GoldGenerator = function() {
- let waitForGoldStash = setInterval(function() {
- if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
- let stash = Auto2.GetGoldStash();
- if (stash == undefined) return
- let stashPosition = {
- x: stash.x,
- y: stash.y
- }
- clearInterval(waitForGoldStash);
- Auto2.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 96, "BombTower", 0)
- Auto2.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -96, "BombTower", 0)
- Auto2.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 0, "BombTower", 0)
- Auto2.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 0, "BombTower", 0)
- Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
- Auto2.PlaceBuilding(stashPosition.x + 4000000, stashPosition.y + 4000000, "BombTower", 0);
- Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
- Auto2.PlaceBuilding(stashPosition.x + 4000000, stashPosition.y + 4000000, "BombTower", 0)
- Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
- Auto2.PlaceBuilding(stashPosition.x + 4000000, stashPosition.y + 4000000, "BombTower", 0);
- Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
- Auto2.PlaceBuilding(stashPosition.x + 4000000, stashPosition.y + 4000000, "BombTower", 0);
- Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
- Auto2.PlaceBuilding(stashPosition.x + 4000000, stashPosition.y + 4000000, "BombTower", 0);
- Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
- Auto2.PlaceBuilding(stashPosition.x + 4000000, stashPosition.y + 4000000, "BombTower", 0)
- Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
- Auto2.PlaceBuilding(stashPosition.x + 4000000, stashPosition.y + 4000000, "BombTower", 0);
- Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
- Auto2.PlaceBuilding(stashPosition.x + 4000000, stashPosition.y + 4000000, "BombTower", 0)
- Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
- Auto2.PlaceBuilding(stashPosition.x + 4000000, stashPosition.y + 4000000, "BombTower", 0);
- Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
- Auto2.PlaceBuilding(stashPosition.x + 4000000, stashPosition.y + 4000000, "BombTower", 0)
- Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
- Auto2.PlaceBuilding(stashPosition.x + 4000000, stashPosition.y + 4000000, "BombTower", 0);
- Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
- Auto2.PlaceBuilding(stashPosition.x + 4000000, stashPosition.y + 4000000, "BombTower", 0)
- Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
- }
- }, 0)
- }
- EXTREME.BuildMyBase = function() {
- var waitForGoldStash = setInterval(function() {
- if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
- var stash = EXTREME.GetGoldStash();
- if (stash == undefined) return
- var stashPosition = {
- x: stash.x,
- y: stash.y
- }
- clearInterval(waitForGoldStash);
- EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 96, "BombTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -96, "BombTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 0, "BombTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 0, "BombTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 0, "GoldMine", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 192, "GoldMine", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -192, "GoldMine", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + 0, "GoldMine", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 96, "GoldMine", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 96, "GoldMine", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + -96, "GoldMine", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + -96, "GoldMine", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 192, "ArrowTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 192, "ArrowTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + -192, "ArrowTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + -192, "ArrowTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + 96, "ArrowTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 96, "ArrowTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -96, "ArrowTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + -96, "ArrowTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + 192, "ArrowTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 192, "ArrowTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -192, "CannonTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + -192, "CannonTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + 288, "MagicTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 288, "MagicTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -288, "MagicTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -288, "MagicTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + 192, "MagicTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 192, "MagicTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -192, "MagicTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -192, "MagicTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + 288, "MagicTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 288, "MagicTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -288, "MagicTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + -288, "MagicTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 288, "CannonTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 288, "CannonTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + -288, "CannonTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + -288, "CannonTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + 96, "CannonTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 96, "CannonTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -96, "CannonTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -96, "CannonTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + 0, "BombTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -0, "BombTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 0, "BombTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -0, "BombTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 288, "BombTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -288, "BombTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -0, stashPosition.y + 288, "BombTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -288, "CannonTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -0, stashPosition.y + 288, "BombTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -288, "CannonTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 0, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 24, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 72, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 120, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 168, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 216, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 264, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 312, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 360, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -360, stashPosition.y + 408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -312, stashPosition.y + 408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -264, stashPosition.y + 408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -216, stashPosition.y + 408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -168, stashPosition.y + 408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -120, stashPosition.y + 408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -72, stashPosition.y + 408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -24, stashPosition.y + 408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -0, stashPosition.y + 408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 24, stashPosition.y + 408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 72, stashPosition.y + 408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 120, stashPosition.y + 408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 168, stashPosition.y + 408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 216, stashPosition.y + 408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 264, stashPosition.y + 408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 312, stashPosition.y + 408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 360, stashPosition.y + 408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 360, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 312, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 264, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 216, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 168, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 120, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 72, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 24, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 0, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -360, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -312, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -264, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -216, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -168, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -120, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -72, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -24, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -0, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 360, stashPosition.y + -408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 312, stashPosition.y + -408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 264, stashPosition.y + -408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 216, stashPosition.y + -408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 168, stashPosition.y + -408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 120, stashPosition.y + -408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 72, stashPosition.y + -408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 24, stashPosition.y + -408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -360, stashPosition.y + -408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -312, stashPosition.y + -408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -264, stashPosition.y + -408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -216, stashPosition.y + -408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -168, stashPosition.y + -408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -120, stashPosition.y + -408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -72, stashPosition.y + -408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -24, stashPosition.y + -408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -0, stashPosition.y + -408, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -0, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -72, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -24, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -120, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -168, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -216, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -264, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -312, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -360, "Door", 0)
- }
- }, 150)
- }
- EXTREME.BuildMyBase2 = function() {
- var waitForGoldStash = setInterval(function() {
- if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
- var stash = EXTREME.GetGoldStash();
- if (stash == undefined) return
- var stashPosition = {
- x: stash.x,
- y: stash.y
- }
- clearInterval(waitForGoldStash);
- EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 0, "CannonTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 0, "CannonTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 0, "MagicTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 192, "MagicTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 384, stashPosition.y + 192, "MagicTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 192, "BombTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 192, "CannonTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 144, stashPosition.y + 288, "MagicTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 288, "MagicTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 96, "MagicTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 96, "CannonTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 48, stashPosition.y + 96, "CannonTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 144, stashPosition.y + 96, "CannonTower", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 120, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 312, stashPosition.y + 312, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 360, stashPosition.y + 264, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 312, stashPosition.y + 264, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 264, stashPosition.y + 360, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 216, stashPosition.y + 360, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 168, stashPosition.y + 360, "Door", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 168, stashPosition.y + 408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 216, stashPosition.y + 408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 192, "Harvester", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -192, "Harvester", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + 0, "Harvester", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 96, "Harvester", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + -96, "Harvester", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + -96, "Harvester", 0)
- }
- }, 150)
- }
- EXTREME.BuildXBase = function() {
- var waitForGoldStash = setInterval(function() {
- if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
- var stash = EXTREME.GetGoldStash();
- if (stash == undefined) return
- var stashPosition = {
- x: stash.x,
- y: stash.y
- }
- clearInterval(waitForGoldStash)
- Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + 192, 'GoldMine', 0)
- Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + 192, 'GoldMine', 0)
- Auto.PlaceBulding(stashPosition.x + -192, stashPosition.y + 48, 'GoldMine', 0)
- Auto.PlaceBulding(stashPosition.x + -192, stashPosition.y + -48, 'GoldMine', 0)
- Auto.PlaceBulding(stashPosition.x + 192, stashPosition.y + 48, 'GoldMine', 0)
- Auto.PlaceBulding(stashPosition.x + 192, stashPosition.y + -48, 'GoldMine', 0)
- Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + -192, 'GoldMine', 0)
- Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + -192, 'GoldMine', 0)
- Auto.PlaceBulding(stashPosition.x + -24, stashPosition.y + -120, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + 24, stashPosition.y + -120, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + 120, stashPosition.y + -24, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + 120, stashPosition.y + 24, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + -24, stashPosition.y + 120, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + 24, stashPosition.y + 120, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + -120, stashPosition.y + 24, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + -120, stashPosition.y + -24, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + -192, 'Harvester', 0)
- Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + -192, 'Harvester', 0)
- Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + 192, 'Harvester', 0)
- Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + 192, 'Harvester', 0)
- Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + -288, 'BombTower', 0)
- Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + -384, 'BombTower', 0)
- Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + -480, 'BombTower', 0)
- Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + -480, 'BombTower', 0)
- Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + -384, 'BombTower', 0)
- Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + -288, 'BombTower', 0)
- Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + -576, 'ArrowTower', 0)
- Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + -576, 'ArrowTower', 0)
- Auto.PlaceBulding(stashPosition.x + 0, stashPosition.y + -672, 'MagicTower', 0)
- Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + -576, 'MagicTower', 0)
- Auto.PlaceBulding(stashPosition.x + -240, stashPosition.y + -528, 'MagicTower', 0)
- Auto.PlaceBulding(stashPosition.x + -336, stashPosition.y + -480, 'MagicTower', 0)
- Auto.PlaceBulding(stashPosition.x + -336, stashPosition.y + -384, 'CannonTower', 0)
- Auto.PlaceBulding(stashPosition.x + -240, stashPosition.y + -432, 'CannonTower', 0)
- Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + -480, 'CannonTower', 0)
- Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + -384, 'CannonTower', 0)
- Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + -288, 'CannonTower', 0)
- Auto.PlaceBulding(stashPosition.x + -264, stashPosition.y + -360, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + -216, stashPosition.y + -360, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + -216, stashPosition.y + -312, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + -216, stashPosition.y + -264, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + -576, 'MagicTower', 0)
- Auto.PlaceBulding(stashPosition.x + 240, stashPosition.y + -528, 'MagicTower', 0)
- Auto.PlaceBulding(stashPosition.x + 336, stashPosition.y + -480, 'MagicTower', 0)
- Auto.PlaceBulding(stashPosition.x + 336, stashPosition.y + -384, 'CannonTower', 0)
- Auto.PlaceBulding(stashPosition.x + 240, stashPosition.y + -432, 'CannonTower', 0)
- Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + -480, 'CannonTower', 0)
- Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + -384, 'CannonTower', 0)
- Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + -288, 'ArrowTower', 0)
- Auto.PlaceBulding(stashPosition.x + 264, stashPosition.y + -360, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + -360, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + -312, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + -480, stashPosition.y + -336, 'MagicTower', 0)
- Auto.PlaceBulding(stashPosition.x + -528, stashPosition.y + -240, 'MagicTower', 0)
- Auto.PlaceBulding(stashPosition.x + -576, stashPosition.y + -144, 'MagicTower', 0)
- Auto.PlaceBulding(stashPosition.x + -576, stashPosition.y + -48, 'CannonTower', 0)
- Auto.PlaceBulding(stashPosition.x + -672, stashPosition.y + 0, 'MagicTower', 0)
- Auto.PlaceBulding(stashPosition.x + -432, stashPosition.y + -240, 'CannonTower', 0)
- Auto.PlaceBulding(stashPosition.x + -336, stashPosition.y + -240, 'CannonTower', 0)
- Auto.PlaceBulding(stashPosition.x + -480, stashPosition.y + -144, 'CannonTower', 0)
- Auto.PlaceBulding(stashPosition.x + -384, stashPosition.y + -144, 'CannonTower', 0)
- Auto.PlaceBulding(stashPosition.x + -288, stashPosition.y + -144, 'ArrowTower', 0)
- Auto.PlaceBulding(stashPosition.x + -480, stashPosition.y + -48, 'ArrowTower', 0)
- Auto.PlaceBulding(stashPosition.x + -480, stashPosition.y + 48, 'ArrowTower', 0)
- Auto.PlaceBulding(stashPosition.x + -576, stashPosition.y + 48, 'ArrowTower', 0)
- Auto.PlaceBulding(stashPosition.x + -384, stashPosition.y + -48, 'BombTower', 0)
- Auto.PlaceBulding(stashPosition.x + -384, stashPosition.y + 48, 'BombTower', 0)
- Auto.PlaceBulding(stashPosition.x + -288, stashPosition.y + 48, 'BombTower', 0)
- Auto.PlaceBulding(stashPosition.x + -288, stashPosition.y + -48, 'BombTower', 0)
- Auto.PlaceBulding(stashPosition.x + -312, stashPosition.y + 120, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + -312, stashPosition.y + 168, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + -264, stashPosition.y + 168, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + -264, stashPosition.y + 120, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + -264, stashPosition.y + 216, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + -216, stashPosition.y + 120, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + -432, stashPosition.y + 240, 'CannonTower', 0)
- Auto.PlaceBulding(stashPosition.x + -384, stashPosition.y + 336, 'CannonTower', 0)
- Auto.PlaceBulding(stashPosition.x + -480, stashPosition.y + 336, 'MagicTower', 0)
- Auto.PlaceBulding(stashPosition.x + -528, stashPosition.y + 240, 'MagicTower', 0)
- Auto.PlaceBulding(stashPosition.x + -696, stashPosition.y + 72, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + -648, stashPosition.y + 72, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + -648, stashPosition.y + 168, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + -744, stashPosition.y + -24, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + -744, stashPosition.y + 24, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + -696, stashPosition.y + -120, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + -696, stashPosition.y + -72, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + -648, stashPosition.y + -72, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + -648, stashPosition.y + -120, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + -648, stashPosition.y + -168, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 288, stashPosition.y + -48, 'BombTower', 0)
- Auto.PlaceBulding(stashPosition.x + 288, stashPosition.y + -144, 'BombTower', 0)
- Auto.PlaceBulding(stashPosition.x + 384, stashPosition.y + -48, 'BombTower', 0)
- Auto.PlaceBulding(stashPosition.x + 480, stashPosition.y + -48, 'BombTower', 0)
- Auto.PlaceBulding(stashPosition.x + 384, stashPosition.y + 48, 'BombTower', 0)
- Auto.PlaceBulding(stashPosition.x + 480, stashPosition.y + 48, 'BombTower', 0)
- Auto.PlaceBulding(stashPosition.x + 480, stashPosition.y + 144, 'BombTower', 0)
- Auto.PlaceBulding(stashPosition.x + 264, stashPosition.y + 24, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + 264, stashPosition.y + 72, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + 312, stashPosition.y + 72, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + 312, stashPosition.y + 24, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + 288, stashPosition.y + 144, 'ArrowTower', 0)
- Auto.PlaceBulding(stashPosition.x + 384, stashPosition.y + 144, 'ArrowTower', 0)
- Auto.PlaceBulding(stashPosition.x + 336, stashPosition.y + 240, 'ArrowTower', 0)
- Auto.PlaceBulding(stashPosition.x + 432, stashPosition.y + 240, 'ArrowTower', 0)
- Auto.PlaceBulding(stashPosition.x + 384, stashPosition.y + 336, 'ArrowTower', 0)
- Auto.PlaceBulding(stashPosition.x + 480, stashPosition.y + 336, 'MagicTower', 0)
- Auto.PlaceBulding(stashPosition.x + 528, stashPosition.y + 240, 'MagicTower', 0)
- Auto.PlaceBulding(stashPosition.x + 552, stashPosition.y + 24, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + 552, stashPosition.y + 72, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + 552, stashPosition.y + 120, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + 552, stashPosition.y + 168, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + -648, stashPosition.y + 120, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + -696, stashPosition.y + 120, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + -576, stashPosition.y + 144, 'ArrowTower', 0)
- Auto.PlaceBulding(stashPosition.x + -480, stashPosition.y + 144, 'ArrowTower', 0)
- Auto.PlaceBulding(stashPosition.x + -384, stashPosition.y + 144, 'ArrowTower', 0)
- Auto.PlaceBulding(stashPosition.x + -336, stashPosition.y + 240, 'CannonTower', 0)
- Auto.PlaceBulding(stashPosition.x + 600, stashPosition.y + 120, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + 600, stashPosition.y + 168, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + 648, stashPosition.y + 168, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + 600, stashPosition.y + 216, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 600, stashPosition.y + 264, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 648, stashPosition.y + 216, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 648, stashPosition.y + 120, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 696, stashPosition.y + 120, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 696, stashPosition.y + 72, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 696, stashPosition.y + 24, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 624, stashPosition.y + 48, 'ArrowTower', 0)
- Auto.PlaceBulding(stashPosition.x + 576, stashPosition.y + -48, 'CannonTower', 0)
- Auto.PlaceBulding(stashPosition.x + 672, stashPosition.y + -48, 'MagicTower', 0)
- Auto.PlaceBulding(stashPosition.x + 576, stashPosition.y + -144, 'MagicTower', 0)
- Auto.PlaceBulding(stashPosition.x + 528, stashPosition.y + -240, 'MagicTower', 0)
- Auto.PlaceBulding(stashPosition.x + 480, stashPosition.y + -336, 'MagicTower', 0)
- Auto.PlaceBulding(stashPosition.x + 432, stashPosition.y + -240, 'CannonTower', 0)
- Auto.PlaceBulding(stashPosition.x + 336, stashPosition.y + -240, 'CannonTower', 0)
- Auto.PlaceBulding(stashPosition.x + 480, stashPosition.y + -144, 'CannonTower', 0)
- Auto.PlaceBulding(stashPosition.x + 384, stashPosition.y + -144, 'ArrowTower', 0)
- Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + 288, 'BombTower', 0)
- Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + 288, 'BombTower', 0)
- Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + 288, 'BombTower', 0)
- Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + 288, 'BombTower', 0)
- Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + 384, 'BombTower', 0)
- Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + 384, 'BombTower', 0)
- Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + 384, 'BombTower', 0)
- Auto.PlaceBulding(stashPosition.x + 240, stashPosition.y + 432, 'ArrowTower', 0)
- Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + 480, 'ArrowTower', 0)
- Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + 480, 'ArrowTower', 0)
- Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + 480, 'ArrowTower', 0)
- Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + 576, 'ArrowTower', 0)
- Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + 576, 'ArrowTower', 0)
- Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + 576, 'ArrowTower', 0)
- Auto.PlaceBulding(stashPosition.x + 240, stashPosition.y + 528, 'MagicTower', 0)
- Auto.PlaceBulding(stashPosition.x + 336, stashPosition.y + 480, 'MagicTower', 0)
- Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + 384, 'CannonTower', 0)
- Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + 480, 'CannonTower', 0)
- Auto.PlaceBulding(stashPosition.x + -240, stashPosition.y + 432, 'CannonTower', 0)
- Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + 576, 'MagicTower', 0)
- Auto.PlaceBulding(stashPosition.x + -240, stashPosition.y + 528, 'MagicTower', 0)
- Auto.PlaceBulding(stashPosition.x + -336, stashPosition.y + 480, 'MagicTower', 0)
- Auto.PlaceBulding(stashPosition.x + -168, stashPosition.y + 648, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + -120, stashPosition.y + 648, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + -72, stashPosition.y + 648, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + -24, stashPosition.y + 648, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 24, stashPosition.y + 648, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 72, stashPosition.y + 648, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 120, stashPosition.y + 648, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 168, stashPosition.y + 648, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 120, stashPosition.y + 696, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 72, stashPosition.y + 696, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 24, stashPosition.y + 696, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + -24, stashPosition.y + 696, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + -72, stashPosition.y + 696, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + -120, stashPosition.y + 696, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 600, stashPosition.y + -216, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 648, stashPosition.y + -216, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 648, stashPosition.y + -168, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 648, stashPosition.y + -120, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 696, stashPosition.y + -120, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 744, stashPosition.y + -72, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 744, stashPosition.y + -24, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + -168, stashPosition.y + -648, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + -120, stashPosition.y + -648, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + -120, stashPosition.y + -696, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + -72, stashPosition.y + -696, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + -72, stashPosition.y + -648, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + -24, stashPosition.y + -744, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 24, stashPosition.y + -744, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 72, stashPosition.y + -696, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 72, stashPosition.y + -648, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 120, stashPosition.y + -648, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 168, stashPosition.y + -648, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + -600, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + -648, 'Wall', 0)
- Auto.PlaceBulding(stashPosition.x + -216, stashPosition.y + -120, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + 120, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + -120, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + 264, stashPosition.y + -216, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + 264, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + 360, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + 264, stashPosition.y + 360, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + 312, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + -264, stashPosition.y + 360, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + -216, stashPosition.y + 360, 'Door', 0)
- Auto.PlaceBulding(stashPosition.x + -216, stashPosition.y + 312, 'Door', 0)
- }
- }, 150)
- }
- Auto.BuildBryanSmithBase = function() {
- let waitForGoldStash = setInterval(function() {
- if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
- let stash = Auto.GetGoldStash();
- if (stash == undefined) return
- let stashPosition = {
- x: stash.x,
- y: stash.y
- }
- clearInterval(waitForGoldStash)
- Auto.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 0, 'GoldStash', 0);
- Auto.PlaceBuilding(stashPosition.x + -192, stashPosition.y + -48, 'GoldMine', 0);
- Auto.PlaceBuilding(stashPosition.x + -192, stashPosition.y + 48, 'GoldMine', 0);
- Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + -192, 'GoldMine', 0);
- Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + -192, 'GoldMine', 0);
- Auto.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -48, 'GoldMine', 0);
- Auto.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 48, 'GoldMine', 0);
- Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + 192, 'GoldMine', 0);
- Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + 192, 'GoldMine', 0);
- Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + 288, 'ArrowTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + 288, 'ArrowTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + 288, 'ArrowTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + 288, 'ArrowTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -48, 'ArrowTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -288, stashPosition.y + 48, 'ArrowTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -288, stashPosition.y + 144, 'ArrowTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + -288, 'ArrowTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + -288, 'ArrowTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -144, 'ArrowTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -48, 'ArrowTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 48, 'ArrowTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 144, 'ArrowTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 384, stashPosition.y + 144, 'ArrowTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + 144, 'ArrowTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 240, 'ArrowTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 432, stashPosition.y + 240, 'ArrowTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 384, stashPosition.y + 336, 'ArrowTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + 384, 'ArrowTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + 480, 'ArrowTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + 576, 'ArrowTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 432, 'ArrowTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -144, 'CannonTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -384, stashPosition.y + -144, 'CannonTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -480, stashPosition.y + -144, 'CannonTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -432, stashPosition.y + -240, 'CannonTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -336, stashPosition.y + -240, 'CannonTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -336, stashPosition.y + 240, 'CannonTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + 384, 'CannonTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -240, stashPosition.y + 432, 'CannonTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + -288, 'CannonTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + -384, 'CannonTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + -480, 'CannonTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -240, stashPosition.y + -432, 'CannonTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -336, stashPosition.y + -384, 'CannonTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + -288, 'CannonTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + -384, 'CannonTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + -480, 'CannonTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 240, stashPosition.y + -432, 'CannonTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 336, stashPosition.y + -384, 'CannonTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 336, stashPosition.y + -240, 'CannonTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 432, stashPosition.y + -240, 'CannonTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 528, stashPosition.y + -240, 'CannonTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + -144, 'CannonTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 576, stashPosition.y + -144, 'CannonTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 384, stashPosition.y + -144, 'BombTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 384, stashPosition.y + -48, 'BombTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 384, stashPosition.y + 48, 'BombTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + -48, 'BombTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + 48, 'BombTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 576, stashPosition.y + -48, 'BombTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 576, stashPosition.y + 48, 'BombTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 528, stashPosition.y + 240, 'MagicTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + 336, 'MagicTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 528, 'MagicTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + 576, 'MagicTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + 384, 'BombTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + 384, 'BombTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + 480, 'BombTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + 480, 'BombTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + 576, 'BombTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + 480, 'BombTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + 576, 'MagicTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -240, stashPosition.y + 528, 'MagicTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -336, stashPosition.y + 480, 'MagicTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -384, stashPosition.y + -48, 'BombTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -384, stashPosition.y + 48, 'BombTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -384, stashPosition.y + 144, 'BombTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -480, stashPosition.y + -48, 'BombTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -480, stashPosition.y + 48, 'BombTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -480, stashPosition.y + 144, 'BombTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -432, stashPosition.y + 240, 'CannonTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -384, stashPosition.y + 336, 'MagicTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 480, 'MagicTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -480, stashPosition.y + 336, 'MagicTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -528, stashPosition.y + 240, 'MagicTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + -336, 'MagicTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + -480, 'BombTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + -384, 'BombTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + -384, 'BombTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + -480, 'BombTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + -576, 'BombTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + -576, 'MagicTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 240, stashPosition.y + -528, 'MagicTower', 0);
- Auto.PlaceBuilding(stashPosition.x + 336, stashPosition.y + -480, 'MagicTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + -576, 'MagicTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + -576, 'MagicTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -240, stashPosition.y + -528, 'MagicTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -336, stashPosition.y + -480, 'MagicTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -576, stashPosition.y + 48, 'ArrowTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -576, stashPosition.y + 144, 'MagicTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -576, stashPosition.y + -48, 'MagicTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -576, stashPosition.y + -144, 'MagicTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -528, stashPosition.y + -240, 'MagicTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -480, stashPosition.y + -336, 'MagicTower', 0);
- Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + -192, 'Harvester', 0);
- Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + -192, 'Harvester', 0);
- Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + 192, 'Harvester', 0);
- Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + 192, 'Harvester', 0);
- Auto.PlaceBuilding(stashPosition.x + -648, stashPosition.y + -168, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -648, stashPosition.y + -120, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -648, stashPosition.y + -72, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -648, stashPosition.y + -24, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -648, stashPosition.y + 24, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -648, stashPosition.y + 72, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -648, stashPosition.y + 120, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -648, stashPosition.y + 168, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -696, stashPosition.y + -120, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -696, stashPosition.y + -72, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -696, stashPosition.y + -24, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -696, stashPosition.y + 24, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -696, stashPosition.y + 72, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -696, stashPosition.y + 120, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 600, stashPosition.y + 120, 'Door', 0);
- Auto.PlaceBuilding(stashPosition.x + 552, stashPosition.y + 120, 'Door', 0);
- Auto.PlaceBuilding(stashPosition.x + 552, stashPosition.y + 168, 'Door', 0);
- Auto.PlaceBuilding(stashPosition.x + 600, stashPosition.y + 168, 'Door', 0);
- Auto.PlaceBuilding(stashPosition.x + 648, stashPosition.y + -168, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 648, stashPosition.y + -120, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 648, stashPosition.y + -72, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 648, stashPosition.y + -24, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 648, stashPosition.y + 24, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 648, stashPosition.y + 72, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 648, stashPosition.y + 120, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 648, stashPosition.y + 168, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 696, stashPosition.y + -120, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 696, stashPosition.y + -72, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 696, stashPosition.y + -24, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 696, stashPosition.y + 24, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 696, stashPosition.y + 72, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 696, stashPosition.y + 120, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -168, stashPosition.y + -648, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -120, stashPosition.y + -648, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -72, stashPosition.y + -648, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -24, stashPosition.y + -648, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 24, stashPosition.y + -648, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 72, stashPosition.y + -648, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 120, stashPosition.y + -648, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 168, stashPosition.y + -648, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -120, stashPosition.y + -696, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -72, stashPosition.y + -696, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -24, stashPosition.y + -696, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 24, stashPosition.y + -696, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 72, stashPosition.y + -696, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 120, stashPosition.y + -696, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -168, stashPosition.y + 648, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -120, stashPosition.y + 648, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -72, stashPosition.y + 648, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -24, stashPosition.y + 648, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 24, stashPosition.y + 648, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 72, stashPosition.y + 648, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 120, stashPosition.y + 648, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 168, stashPosition.y + 648, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -120, stashPosition.y + 696, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -72, stashPosition.y + 696, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + -24, stashPosition.y + 696, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 24, stashPosition.y + 696, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 72, stashPosition.y + 696, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 120, stashPosition.y + 696, 'Wall', 0);
- Auto.PlaceBuilding(stashPosition.x + 216, stashPosition.y + 312, 'Door', 0);
- Auto.PlaceBuilding(stashPosition.x + 216, stashPosition.y + 360, 'Door', 0);
- Auto.PlaceBuilding(stashPosition.x + 264, stashPosition.y + 360, 'Door', 0);
- Auto.PlaceBuilding(stashPosition.x + 216, stashPosition.y + -120, 'Door', 0);
- Auto.PlaceBuilding(stashPosition.x + -216, stashPosition.y + -120, 'Door', 0);
- Auto.PlaceBuilding(stashPosition.x + -216, stashPosition.y + 120, 'Door', 0);
- Auto.PlaceBuilding(stashPosition.x + 216, stashPosition.y + 120, 'Door', 0);
- Auto.PlaceBuilding(stashPosition.x + 216, stashPosition.y + -312, 'Door', 0);
- Auto.PlaceBuilding(stashPosition.x + 216, stashPosition.y + -360, 'Door', 0);
- Auto.PlaceBuilding(stashPosition.x + 264, stashPosition.y + -360, 'Door', 0);
- Auto.PlaceBuilding(stashPosition.x + -216, stashPosition.y + -360, 'Door', 0);
- Auto.PlaceBuilding(stashPosition.x + -216, stashPosition.y + -312, 'Door', 0);
- Auto.PlaceBuilding(stashPosition.x + -264, stashPosition.y + -360, 'Door', 0);
- Auto.PlaceBuilding(stashPosition.x + -216, stashPosition.y + 312, 'Door', 0);
- Auto.PlaceBuilding(stashPosition.x + -216, stashPosition.y + 360, 'Door', 0);
- Auto.PlaceBuilding(stashPosition.x + -264, stashPosition.y + 360, 'Door', 0);
- }
- }, 150)
- }
- Auto.SSLQ1 = function() {
- let waitForGoldStash = setInterval(function() {
- if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
- let stash = Auto.GetGoldStash();
- if (stash == undefined) return
- let stashPosition = {
- x: stash.x,
- y: stash.y
- }
- clearInterval(waitForGoldStash)
- PlaceBuilding(stashPosition.x + 0, stashPosition.y + 0, 'GoldStash', 0);PlaceBuilding(stashPosition.x + -144, stashPosition.y + 144, 'GoldMine', 0);PlaceBuilding(stashPosition.x + -144, stashPosition.y + -144, 'GoldMine', 0);PlaceBuilding(stashPosition.x + 144, stashPosition.y + -144, 'GoldMine', 0);PlaceBuilding(stashPosition.x + 144, stashPosition.y + 144, 'GoldMine', 0);PlaceBuilding(stashPosition.x + 240, stashPosition.y + 240, 'GoldMine', 0);PlaceBuilding(stashPosition.x + 240, stashPosition.y + -240, 'GoldMine', 0);PlaceBuilding(stashPosition.x + -240, stashPosition.y + -240, 'GoldMine', 0);PlaceBuilding(stashPosition.x + -240, stashPosition.y + 240, 'GoldMine', 0);PlaceBuilding(stashPosition.x + 144, stashPosition.y + 240, 'ArrowTower', 0);PlaceBuilding(stashPosition.x + 240, stashPosition.y + 144, 'ArrowTower', 0);PlaceBuilding(stashPosition.x + -144, stashPosition.y + 240, 'ArrowTower', 0);PlaceBuilding(stashPosition.x + -240, stashPosition.y + 144, 'ArrowTower', 0);PlaceBuilding(stashPosition.x + 144, stashPosition.y + -240, 'ArrowTower', 0);PlaceBuilding(stashPosition.x + 240, stashPosition.y + -144, 'ArrowTower', 0);PlaceBuilding(stashPosition.x + -144, stashPosition.y + -240, 'ArrowTower', 0);PlaceBuilding(stashPosition.x + -240, stashPosition.y + -144, 'ArrowTower', 0);PlaceBuilding(stashPosition.x + -144, stashPosition.y + 0, 'Harvester', 0);PlaceBuilding(stashPosition.x + 0, stashPosition.y + -144, 'Harvester', 0);PlaceBuilding(stashPosition.x + 240, stashPosition.y + 0, 'ArrowTower', 0);PlaceBuilding(stashPosition.x + 0, stashPosition.y + 240, 'ArrowTower', 0);PlaceBuilding(stashPosition.x + -240, stashPosition.y + 0, 'ArrowTower', 0);PlaceBuilding(stashPosition.x + 0, stashPosition.y + -240, 'ArrowTower', 0);PlaceBuilding(stashPosition.x + 432, stashPosition.y + -144, 'MagicTower', 0);PlaceBuilding(stashPosition.x + 432, stashPosition.y + 144, 'MagicTower', 0);PlaceBuilding(stashPosition.x + 144, stashPosition.y + 432, 'MagicTower', 0);PlaceBuilding(stashPosition.x + 0, stashPosition.y + 432, 'MagicTower', 0);PlaceBuilding(stashPosition.x + -144, stashPosition.y + 432, 'MagicTower', 0);PlaceBuilding(stashPosition.x + -432, stashPosition.y + 144, 'MagicTower', 0);PlaceBuilding(stashPosition.x + -432, stashPosition.y + 0, 'MagicTower', 0);PlaceBuilding(stashPosition.x + -432, stashPosition.y + -144, 'MagicTower', 0);PlaceBuilding(stashPosition.x + -144, stashPosition.y + -432, 'MagicTower', 0);PlaceBuilding(stashPosition.x + 0, stashPosition.y + -432, 'MagicTower', 0);PlaceBuilding(stashPosition.x + 144, stashPosition.y + -432, 'MagicTower', 0);PlaceBuilding(stashPosition.x + 0, stashPosition.y + -336, 'ArrowTower', 0);PlaceBuilding(stashPosition.x + -336, stashPosition.y + 0, 'ArrowTower', 0);PlaceBuilding(stashPosition.x + 0, stashPosition.y + 336, 'ArrowTower', 0);PlaceBuilding(stashPosition.x + 336, stashPosition.y + 0, 'ArrowTower', 0);PlaceBuilding(stashPosition.x + 144, stashPosition.y + 336, 'CannonTower', 0);PlaceBuilding(stashPosition.x + 336, stashPosition.y + 144, 'CannonTower', 0);PlaceBuilding(stashPosition.x + -336, stashPosition.y + 144, 'CannonTower', 0);PlaceBuilding(stashPosition.x + -144, stashPosition.y + 336, 'CannonTower', 0);PlaceBuilding(stashPosition.x + -144, stashPosition.y + -336, 'CannonTower', 0);PlaceBuilding(stashPosition.x + -336, stashPosition.y + -144, 'CannonTower', 0);PlaceBuilding(stashPosition.x + 144, stashPosition.y + -336, 'CannonTower', 0);PlaceBuilding(stashPosition.x + 336, stashPosition.y + -144, 'CannonTower', 0);PlaceBuilding(stashPosition.x + -120, stashPosition.y + -72, 'Door', 0);PlaceBuilding(stashPosition.x + -72, stashPosition.y + -72, 'Door', 0);PlaceBuilding(stashPosition.x + -72, stashPosition.y + -120, 'Door', 0);PlaceBuilding(stashPosition.x + 120, stashPosition.y + -72, 'Door', 0);PlaceBuilding(stashPosition.x + 72, stashPosition.y + -120, 'Door', 0);PlaceBuilding(stashPosition.x + 120, stashPosition.y + 72, 'Door', 0);PlaceBuilding(stashPosition.x + 72, stashPosition.y + 72, 'Door', 0);PlaceBuilding(stashPosition.x + 72, stashPosition.y + 120, 'Door', 0);PlaceBuilding(stashPosition.x + -72, stashPosition.y + 120, 'Door', 0);PlaceBuilding(stashPosition.x + -120, stashPosition.y + 72, 'Door', 0);PlaceBuilding(stashPosition.x + -72, stashPosition.y + 24, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + -72, stashPosition.y + -24, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + -24, stashPosition.y + -72, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + 24, stashPosition.y + -72, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + 168, stashPosition.y + 72, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + 72, stashPosition.y + 168, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + -72, stashPosition.y + 168, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + -168, stashPosition.y + 72, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + -168, stashPosition.y + -72, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + -72, stashPosition.y + -168, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + 72, stashPosition.y + -168, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + 168, stashPosition.y + -72, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + 264, stashPosition.y + -72, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + 360, stashPosition.y + -72, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + 456, stashPosition.y + -72, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + 456, stashPosition.y + 72, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + 360, stashPosition.y + 72, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + 264, stashPosition.y + 72, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + 72, stashPosition.y + 264, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + 72, stashPosition.y + 360, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + 72, stashPosition.y + 456, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + -72, stashPosition.y + 456, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + -72, stashPosition.y + 360, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + -72, stashPosition.y + 264, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + -264, stashPosition.y + 72, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + -360, stashPosition.y + 72, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + -456, stashPosition.y + 72, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + -456, stashPosition.y + -72, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + -360, stashPosition.y + -72, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + -264, stashPosition.y + -72, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + -72, stashPosition.y + -264, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + -72, stashPosition.y + -360, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + -72, stashPosition.y + -456, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + 72, stashPosition.y + -456, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + 72, stashPosition.y + -360, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + 72, stashPosition.y + -264, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + 72, stashPosition.y + -72, 'Door', 0);PlaceBuilding(stashPosition.x + 0, stashPosition.y + 144, 'Harvester', 0);PlaceBuilding(stashPosition.x + -72, stashPosition.y + 72, 'Door', 0);PlaceBuilding(stashPosition.x + 24, stashPosition.y + 72, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + -24, stashPosition.y + 72, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + 480, stashPosition.y + -240, 'MagicTower', 0);PlaceBuilding(stashPosition.x + 528, stashPosition.y + -336, 'MagicTower', 0);PlaceBuilding(stashPosition.x + 384, stashPosition.y + -240, 'CannonTower', 0);PlaceBuilding(stashPosition.x + 240, stashPosition.y + -384, 'ArrowTower', 0);PlaceBuilding(stashPosition.x + 240, stashPosition.y + -480, 'MagicTower', 0);PlaceBuilding(stashPosition.x + -240, stashPosition.y + -480, 'MagicTower', 0);PlaceBuilding(stashPosition.x + -336, stashPosition.y + -528, 'MagicTower', 0);PlaceBuilding(stashPosition.x + -240, stashPosition.y + -384, 'CannonTower', 0);PlaceBuilding(stashPosition.x + -480, stashPosition.y + -240, 'CannonTower', 0);PlaceBuilding(stashPosition.x + 336, stashPosition.y + -528, 'MagicTower', 0);PlaceBuilding(stashPosition.x + 528, stashPosition.y + 336, 'MagicTower', 0);PlaceBuilding(stashPosition.x + 384, stashPosition.y + 240, 'ArrowTower', 0);PlaceBuilding(stashPosition.x + 480, stashPosition.y + 240, 'CannonTower', 0);PlaceBuilding(stashPosition.x + 336, stashPosition.y + 528, 'MagicTower', 0);PlaceBuilding(stashPosition.x + 240, stashPosition.y + 480, 'CannonTower', 0);PlaceBuilding(stashPosition.x + -528, stashPosition.y + 336, 'MagicTower', 0);PlaceBuilding(stashPosition.x + -480, stashPosition.y + 240, 'CannonTower', 0);PlaceBuilding(stashPosition.x + -240, stashPosition.y + 384, 'ArrowTower', 0);PlaceBuilding(stashPosition.x + 240, stashPosition.y + 384, 'ArrowTower', 0);PlaceBuilding(stashPosition.x + -384, stashPosition.y + -240, 'ArrowTower', 0);PlaceBuilding(stashPosition.x + -528, stashPosition.y + -336, 'MagicTower', 0);PlaceBuilding(stashPosition.x + -264, stashPosition.y + -552, 'Door', 0);PlaceBuilding(stashPosition.x + -552, stashPosition.y + -264, 'Door', 0);PlaceBuilding(stashPosition.x + 264, stashPosition.y + -552, 'Door', 0);PlaceBuilding(stashPosition.x + 552, stashPosition.y + -264, 'Door', 0);PlaceBuilding(stashPosition.x + 552, stashPosition.y + 264, 'Door', 0);PlaceBuilding(stashPosition.x + 264, stashPosition.y + 552, 'Door', 0);PlaceBuilding(stashPosition.x + -264, stashPosition.y + 552, 'Door', 0);PlaceBuilding(stashPosition.x + -552, stashPosition.y + 264, 'Door', 0);PlaceBuilding(stashPosition.x + -432, stashPosition.y + -432, 'CannonTower', 0);PlaceBuilding(stashPosition.x + -432, stashPosition.y + -528, 'CannonTower', 0);PlaceBuilding(stashPosition.x + -528, stashPosition.y + -432, 'CannonTower', 0);PlaceBuilding(stashPosition.x + 528, stashPosition.y + -432, 'CannonTower', 0);PlaceBuilding(stashPosition.x + 432, stashPosition.y + -432, 'CannonTower', 0);PlaceBuilding(stashPosition.x + 432, stashPosition.y + -528, 'CannonTower', 0);PlaceBuilding(stashPosition.x + 432, stashPosition.y + 432, 'ArrowTower', 0);PlaceBuilding(stashPosition.x + 528, stashPosition.y + 432, 'ArrowTower', 0);PlaceBuilding(stashPosition.x + 432, stashPosition.y + 528, 'CannonTower', 0);PlaceBuilding(stashPosition.x + -384, stashPosition.y + 240, 'BombTower', 0);PlaceBuilding(stashPosition.x + -336, stashPosition.y + -336, 'BombTower', 0);PlaceBuilding(stashPosition.x + -432, stashPosition.y + -336, 'BombTower', 0);PlaceBuilding(stashPosition.x + 336, stashPosition.y + -336, 'BombTower', 0);PlaceBuilding(stashPosition.x + 432, stashPosition.y + -336, 'BombTower', 0);PlaceBuilding(stashPosition.x + 432, stashPosition.y + 336, 'BombTower', 0);PlaceBuilding(stashPosition.x + 336, stashPosition.y + 336, 'BombTower', 0);PlaceBuilding(stashPosition.x + 336, stashPosition.y + 432, 'BombTower', 0);PlaceBuilding(stashPosition.x + 144, stashPosition.y + 0, 'Harvester', 0);PlaceBuilding(stashPosition.x + 72, stashPosition.y + -24, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + 72, stashPosition.y + 24, 'SlowTrap', 0);PlaceBuilding(stashPosition.x + 336, stashPosition.y + -432, 'BombTower', 0);PlaceBuilding(stashPosition.x + -336, stashPosition.y + -432, 'BombTower', 0);PlaceBuilding(stashPosition.x + 432, stashPosition.y + 0, 'MagicTower', 0);PlaceBuilding(stashPosition.x + -240, stashPosition.y + 480, 'MagicTower', 0);PlaceBuilding(stashPosition.x + -336, stashPosition.y + 528, 'MagicTower', 0);PlaceBuilding(stashPosition.x + -432, stashPosition.y + 528, 'CannonTower', 0);PlaceBuilding(stashPosition.x + -432, stashPosition.y + 432, 'CannonTower', 0);PlaceBuilding(stashPosition.x + -528, stashPosition.y + 432, 'ArrowTower', 0);PlaceBuilding(stashPosition.x + -336, stashPosition.y + 336, 'BombTower', 0);PlaceBuilding(stashPosition.x + -432, stashPosition.y + 336, 'CannonTower', 0);PlaceBuilding(stashPosition.x + -336, stashPosition.y + 432, 'BombTower', 0);PlaceBuilding(stashPosition.x + 504, stashPosition.y + -504, 'Door', 0);PlaceBuilding(stashPosition.x + -504, stashPosition.y + -504, 'Door', 0);PlaceBuilding(stashPosition.x + 504, stashPosition.y + 504, 'Door', 0);PlaceBuilding(stashPosition.x + -504, stashPosition.y + 504, 'Door', 0);PlaceBuilding(stashPosition.x + 312, stashPosition.y + 264, 'Wall', 0);PlaceBuilding(stashPosition.x + 312, stashPosition.y + 216, 'Wall', 0);PlaceBuilding(stashPosition.x + 264, stashPosition.y + 312, 'Wall', 0);PlaceBuilding(stashPosition.x + 216, stashPosition.y + 312, 'Wall', 0);PlaceBuilding(stashPosition.x + -264, stashPosition.y + 312, 'Wall', 0);PlaceBuilding(stashPosition.x + -216, stashPosition.y + 312, 'Wall', 0);PlaceBuilding(stashPosition.x + -312, stashPosition.y + 264, 'Wall', 0);PlaceBuilding(stashPosition.x + -312, stashPosition.y + 216, 'Wall', 0);PlaceBuilding(stashPosition.x + -312, stashPosition.y + -216, 'Wall', 0);PlaceBuilding(stashPosition.x + -312, stashPosition.y + -264, 'Wall', 0);PlaceBuilding(stashPosition.x + -264, stashPosition.y + -312, 'Wall', 0);PlaceBuilding(stashPosition.x + -216, stashPosition.y + -312, 'Wall', 0);PlaceBuilding(stashPosition.x + 216, stashPosition.y + -312, 'Wall', 0);PlaceBuilding(stashPosition.x + 264, stashPosition.y + -312, 'Wall', 0);PlaceBuilding(stashPosition.x + 312, stashPosition.y + -264, 'Wall', 0);PlaceBuilding(stashPosition.x + 312, stashPosition.y + -216, 'Wall', 0);PlaceBuilding(stashPosition.x + -360, stashPosition.y + -600, 'Wall', 0);PlaceBuilding(stashPosition.x + -408, stashPosition.y + -600, 'Wall', 0);PlaceBuilding(stashPosition.x + -456, stashPosition.y + -600, 'Wall', 0);PlaceBuilding(stashPosition.x + -600, stashPosition.y + -360, 'Wall', 0);PlaceBuilding(stashPosition.x + -600, stashPosition.y + -408, 'Wall', 0);PlaceBuilding(stashPosition.x + -600, stashPosition.y + -456, 'Wall', 0);PlaceBuilding(stashPosition.x + -552, stashPosition.y + -504, 'Door', 0);PlaceBuilding(stashPosition.x + -504, stashPosition.y + -552, 'Door', 0);PlaceBuilding(stashPosition.x + 360, stashPosition.y + -600, 'Wall', 0);PlaceBuilding(stashPosition.x + 408, stashPosition.y + -600, 'Wall', 0);PlaceBuilding(stashPosition.x + 456, stashPosition.y + -600, 'Wall', 0);PlaceBuilding(stashPosition.x + 504, stashPosition.y + -552, 'Door', 0);PlaceBuilding(stashPosition.x + 552, stashPosition.y + -504, 'Door', 0);PlaceBuilding(stashPosition.x + 600, stashPosition.y + -456, 'Wall', 0);PlaceBuilding(stashPosition.x + 600, stashPosition.y + -408, 'Wall', 0);PlaceBuilding(stashPosition.x + 600, stashPosition.y + -360, 'Wall', 0);PlaceBuilding(stashPosition.x + 600, stashPosition.y + 360, 'Wall', 0);PlaceBuilding(stashPosition.x + 600, stashPosition.y + 408, 'Wall', 0);PlaceBuilding(stashPosition.x + 600, stashPosition.y + 456, 'Wall', 0);PlaceBuilding(stashPosition.x + 552, stashPosition.y + 504, 'Door', 0);PlaceBuilding(stashPosition.x + 504, stashPosition.y + 552, 'Door', 0);PlaceBuilding(stashPosition.x + 456, stashPosition.y + 600, 'Wall', 0);PlaceBuilding(stashPosition.x + 408, stashPosition.y + 600, 'Wall', 0);PlaceBuilding(stashPosition.x + 360, stashPosition.y + 600, 'Wall', 0);PlaceBuilding(stashPosition.x + -360, stashPosition.y + 600, 'Wall', 0);PlaceBuilding(stashPosition.x + -408, stashPosition.y + 600, 'Wall', 0);PlaceBuilding(stashPosition.x + -456, stashPosition.y + 600, 'Wall', 0);PlaceBuilding(stashPosition.x + -504, stashPosition.y + 552, 'Door', 0);PlaceBuilding(stashPosition.x + -552, stashPosition.y + 504, 'Door', 0);PlaceBuilding(stashPosition.x + -600, stashPosition.y + 408, 'Wall', 0);PlaceBuilding(stashPosition.x + -600, stashPosition.y + 360, 'Wall', 0);PlaceBuilding(stashPosition.x + -600, stashPosition.y + 456, 'Wall', 0);
- }
- }, 150)
- }
- Auto.BuildThingBase = function() {
- let waitForGoldStash = setInterval(function() {
- if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
- let stash = Auto.GetGoldStash();
- if (stash == undefined) return
- let stashPosition = {
- x: stash.x,
- y: stash.y
- }
- clearInterval(waitForGoldStash)
- Auto.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -192, "Harvester", 100)
- Auto.PlaceBuilding(stashPosition.x + -192, stashPosition.y + 0, "Harvester", 100)
- Auto.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 96, "Harvester", 100)
- Auto.PlaceBuilding(stashPosition.x + 96, stashPosition.y + -96, "Harvester", 100);
- Auto.PlaceBuilding(stashPosition.x + -96, stashPosition.y + -96, "Harvester", 100)
- Auto.PlaceBuilding(stashPosition.x + 96, stashPosition.y, "GoldMine", 0)
- Auto.PlaceBuilding(stashPosition.x, stashPosition.y + 96, "GoldMine", 0)
- Auto.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 144, "ArrowTower", 0)
- Auto.PlaceBuilding(stashPosition.x, stashPosition.y + 192, "ArrowTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 240, "ArrowTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 192, stashPosition.y, "ArrowTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 96, "ArrowTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 192, "ArrowTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 336, "ArrowTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 192, "ArrowTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y, "GoldMine", 0)
- Auto.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 96, "GoldMine", 0)
- Auto.PlaceBuilding(stashPosition.x + 432, stashPosition.y + 192, "GoldMine", 0)
- Auto.PlaceBuilding(stashPosition.x, stashPosition.y + 288, "GoldMine", 0)
- Auto.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 336, "GoldMine", 0)
- Auto.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 432, "GoldMine", 0)
- Auto.PlaceBuilding(stashPosition.x, stashPosition.y + 384, "ArrowTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 432, "ArrowTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 528, "ArrowTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 384, stashPosition.y, "ArrowTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 432, stashPosition.y + 96, "ArrowTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 528, stashPosition.y + 192, "ArrowTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 336, "ArrowTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 432, stashPosition.y + 432, "ArrowTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 480, "ArrowTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + 288, "ArrowTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 528, "CannonTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 624, "CannonTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 528, stashPosition.y + 96, "CannonTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 624, stashPosition.y + 192, "CannonTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y, "MagicTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 576, stashPosition.y, "MagicTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 624, stashPosition.y + 96, "MagicTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 720, stashPosition.y + 192, "MagicTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 672, stashPosition.y + 288, "MagicTower", 0)
- Auto.PlaceBuilding(stashPosition.x, stashPosition.y + 480, "MagicTower", 0)
- Auto.PlaceBuilding(stashPosition.x, stashPosition.y + 576, "MagicTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 624, "MagicTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 720, "MagicTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 672, "MagicTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 384, stashPosition.y + 672, "MagicTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + 624, "MagicTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + 528, "MagicTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 576, "BombTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 576, stashPosition.y + 288, "BombTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 384, stashPosition.y + 576, "MagicTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 264, stashPosition.y + 312, "Door", 0)
- Auto.PlaceBuilding(stashPosition.x + 264, stashPosition.y + 360, "Door", 0)
- Auto.PlaceBuilding(stashPosition.x + 264, stashPosition.y + 408, "Door", 0)
- Auto.PlaceBuilding(stashPosition.x + 312, stashPosition.y + 408, "Door", 0)
- Auto.PlaceBuilding(stashPosition.x + 360, stashPosition.y + 456, "Door", 0)
- Auto.PlaceBuilding(stashPosition.x + 360, stashPosition.y + 504, "Door", 0)
- Auto.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 504, "Door", 0)
- Auto.PlaceBuilding(stashPosition.x + 360, stashPosition.y + 408, "Door", 0)
- Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 768, "CannonTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 768, stashPosition.y + 288, "CannonTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 672, stashPosition.y + 384, "MagicTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 624, stashPosition.y + 480, "MagicTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 576, stashPosition.y + 384, "MagicTower", 0)
- Auto.PlaceBuilding(stashPosition.x + 744, stashPosition.y + 360, "Door", 0)
- Auto.PlaceBuilding(stashPosition.x + 696, stashPosition.y + 456, "Door", 0)
- Auto.PlaceBuilding(stashPosition.x + 456, stashPosition.y + 696, "Door", 0)
- Auto.PlaceBuilding(stashPosition.x + 360, stashPosition.y + 744, "Door", 0)
- }
- }, 150)
- }
- var e = function(x, y, building, yaw) {
- Game.currentGame.network.sendRpc({
- name: "MakeBuilding",
- x: x,
- y: y,
- type: building,
- yaw: yaw
- })
- }
- var HELL = 1008;
- var HELL2 = 17856;
- Auto.BryanScoreBase = function() {
- let waitForGoldStash = setInterval(function() {
- if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
- let stash = Auto.GetGoldStash();
- if (stash == undefined) return
- let stashPosition = {
- x: stash.x,
- y: stash.y
- }
- clearInterval(waitForGoldStash)
- e(stashPosition.x + 8640-8640, stashPosition.y + 12048-12048, "GoldStash", 0)
- e(stashPosition.x + 8640-8544, stashPosition.y + 12048-12048, "CannonTower", 0)
- e(stashPosition.x + 8640-8448, stashPosition.y + 12048-11952, "CannonTower", 0)
- e(stashPosition.x + 8640-8448, stashPosition.y + 12048-12144, "CannonTower", 0)
- e(stashPosition.x + 8640-8736, stashPosition.y + 12048-12048, "CannonTower", 0)
- e(stashPosition.x + 8640-8832, stashPosition.y + 12048-12144, "CannonTower", 0)
- e(stashPosition.x + 8640-8832, stashPosition.y + 12048-11952, "CannonTower", 0)
- e(stashPosition.x + 8640-8736, stashPosition.y + 12048-11952, "BombTower", 0)
- e(stashPosition.x + 8640-8640, stashPosition.y + 12048-11952, "BombTower", 0)
- e(stashPosition.x + 8640-8544, stashPosition.y + 12048-11952, "BombTower", 0)
- e(stashPosition.x + 8640-8544, stashPosition.y + 12048-12144, "BombTower", 0)
- e(stashPosition.x + 8640-8640, stashPosition.y + 12048-12144, "BombTower", 0)
- e(stashPosition.x + 8640-8736, stashPosition.y + 12048-12144, "BombTower", 0)
- e(stashPosition.x + 8640-8832, stashPosition.y + 12048-12048, "MagicTower", 0)
- e(stashPosition.x + 8640-8832, stashPosition.y + 12048-12240, "MagicTower", 0)
- e(stashPosition.x + 8640-8832, stashPosition.y + 12048-11856, "MagicTower", 0)
- e(stashPosition.x + 8640-8448, stashPosition.y + 12048-11856, "MagicTower", 0)
- e(stashPosition.x + 8640-8448, stashPosition.y + 12048-12048, "MagicTower", 0)
- e(stashPosition.x + 8640-8448, stashPosition.y + 12048-12240, "MagicTower", 0)
- e(stashPosition.x + 8640-8640, stashPosition.y + 12048-12240, "ArrowTower", 0)
- e(stashPosition.x + 8640-8736, stashPosition.y + 12048-12240, "ArrowTower", 0)
- e(stashPosition.x + 8640-8544, stashPosition.y + 12048-12240, "ArrowTower", 0)
- e(stashPosition.x + 8640-8640, stashPosition.y + 12048-11856, "ArrowTower", 0)
- e(stashPosition.x + 8640-8736, stashPosition.y + 12048-11856, "ArrowTower", 0)
- e(stashPosition.x + 8640-8544, stashPosition.y + 12048-11856, "ArrowTower", 0)
- e(stashPosition.x + 8640-8904, stashPosition.y + 12048-11832, "Door", 0)
- e(stashPosition.x + 8640-8904, stashPosition.y + 12048-11880, "Door", 0)
- e(stashPosition.x + 8640-8904, stashPosition.y + 12048-11928, "Door", 0)
- e(stashPosition.x + 8640-8904, stashPosition.y + 12048-11976, "Door", 0)
- e(stashPosition.x + 8640-8904, stashPosition.y + 12048-12024, "Door", 0)
- e(stashPosition.x + 8640-8904, stashPosition.y + 12048-12072, "Door", 0)
- e(stashPosition.x + 8640-8904, stashPosition.y + 12048-12120, "Door", 0)
- e(stashPosition.x + 8640-8904, stashPosition.y + 12048-12168, "Door", 0)
- e(stashPosition.x + 8640-8904, stashPosition.y + 12048-12216, "Door", 0)
- e(stashPosition.x + 8640-8904, stashPosition.y + 12048-12264, "Door", 0)
- e(stashPosition.x + 8640-8856, stashPosition.y + 12048-12312, "Door", 0)
- e(stashPosition.x + 8640-8808, stashPosition.y + 12048-12312, "Door", 0)
- e(stashPosition.x + 8640-8760, stashPosition.y + 12048-12312, "Door", 0)
- e(stashPosition.x + 8640-8712, stashPosition.y + 12048-12312, "Door", 0)
- e(stashPosition.x + 8640-8664, stashPosition.y + 12048-12312, "Door", 0)
- e(stashPosition.x + 8640-8616, stashPosition.y + 12048-12312, "Door", 0)
- e(stashPosition.x + 8640-8568, stashPosition.y + 12048-12312, "Door", 0)
- e(stashPosition.x + 8640-8520, stashPosition.y + 12048-12312, "Door", 0)
- e(stashPosition.x + 8640-8472, stashPosition.y + 12048-12312, "Door", 0)
- e(stashPosition.x + 8640-8424, stashPosition.y + 12048-12312, "Door", 0)
- e(stashPosition.x + 8640-8376, stashPosition.y + 12048-12264, "Door", 0)
- e(stashPosition.x + 8640-8376, stashPosition.y + 12048-12216, "Door", 0)
- e(stashPosition.x + 8640-8376, stashPosition.y + 12048-12168, "Door", 0)
- e(stashPosition.x + 8640-8376, stashPosition.y + 12048-12120, "Door", 0)
- e(stashPosition.x + 8640-8376, stashPosition.y + 12048-12072, "Door", 0)
- e(stashPosition.x + 8640-8376, stashPosition.y + 12048-12024, "Door", 0)
- e(stashPosition.x + 8640-8376, stashPosition.y + 12048-11976, "Door", 0)
- e(stashPosition.x + 8640-8376, stashPosition.y + 12048-11928, "Door", 0)
- e(stashPosition.x + 8640-8376, stashPosition.y + 12048-11880, "Door", 0)
- e(stashPosition.x + 8640-8376, stashPosition.y + 12048-11832, "Door", 0)
- e(stashPosition.x + 8640-8424, stashPosition.y + 12048-11784, "Door", 0)
- e(stashPosition.x + 8640-8472, stashPosition.y + 12048-11784, "Door", 0)
- e(stashPosition.x + 8640-8520, stashPosition.y + 12048-11784, "Door", 0)
- e(stashPosition.x + 8640-8568, stashPosition.y + 12048-11784, "Door", 0)
- e(stashPosition.x + 8640-8616, stashPosition.y + 12048-11784, "Door", 0)
- e(stashPosition.x + 8640-8664, stashPosition.y + 12048-11784, "Door", 0)
- e(stashPosition.x + 8640-8712, stashPosition.y + 12048-11784, "Door", 0)
- e(stashPosition.x + 8640-8760, stashPosition.y + 12048-11784, "Door", 0)
- e(stashPosition.x + 8640-8808, stashPosition.y + 12048-11784, "Door", 0)
- e(stashPosition.x + 8640-8856, stashPosition.y + 12048-11784, "Door", 0)
- e(stashPosition.x + 8640-8376, stashPosition.y + 12048-11784, "Wall", 0)
- e(stashPosition.x + 8640-8376, stashPosition.y + 12048-11736, "Wall", 0)
- e(stashPosition.x + 8640-8328, stashPosition.y + 12048-11784, "Wall", 0)
- e(stashPosition.x + 8640-8328, stashPosition.y + 12048-11736, "Wall", 0)
- e(stashPosition.x + 8640-8328, stashPosition.y + 12048-11832, "Wall", 0)
- e(stashPosition.x + 8640-8328, stashPosition.y + 12048-11880, "Wall", 0)
- e(stashPosition.x + 8640-8328, stashPosition.y + 12048-11928, "Wall", 0)
- e(stashPosition.x + 8640-8328, stashPosition.y + 12048-11976, "Wall", 0)
- e(stashPosition.x + 8640-8328, stashPosition.y + 12048-12024, "Wall", 0)
- e(stashPosition.x + 8640-8328, stashPosition.y + 12048-12072, "Wall", 0)
- e(stashPosition.x + 8640-8328, stashPosition.y + 12048-12120, "Wall", 0)
- e(stashPosition.x + 8640-8328, stashPosition.y + 12048-12168, "Wall", 0)
- e(stashPosition.x + 8640-8328, stashPosition.y + 12048-12216, "Wall", 0)
- e(stashPosition.x + 8640-8328, stashPosition.y + 12048-12264, "Wall", 0)
- e(stashPosition.x + 8640-8328, stashPosition.y + 12048-12312, "Wall", 0)
- e(stashPosition.x + 8640-8328, stashPosition.y + 12048-12360, "Wall", 0)
- e(stashPosition.x + 8640-8376, stashPosition.y + 12048-12360, "Wall", 0)
- e(stashPosition.x + 8640-8376, stashPosition.y + 12048-12312, "Wall", 0)
- e(stashPosition.x + 8640-8424, stashPosition.y + 12048-12360, "Wall", 0)
- e(stashPosition.x + 8640-8472, stashPosition.y + 12048-12360, "Wall", 0)
- e(stashPosition.x + 8640-8568, stashPosition.y + 12048-12360, "Wall", 0)
- e(stashPosition.x + 8640-8616, stashPosition.y + 12048-12360, "Wall", 0)
- e(stashPosition.x + 8640-8664, stashPosition.y + 12048-12360, "Wall", 0)
- e(stashPosition.x + 8640-8712, stashPosition.y + 12048-12360, "Wall", 0)
- e(stashPosition.x + 8640-8760, stashPosition.y + 12048-12360, "Wall", 0)
- e(stashPosition.x + 8640-8808, stashPosition.y + 12048-12360, "Wall", 0)
- e(stashPosition.x + 8640-8856, stashPosition.y + 12048-12360, "Wall", 0)
- e(stashPosition.x + 8640-8520, stashPosition.y + 12048-12360, "Wall", 0)
- e(stashPosition.x + 8640-8904, stashPosition.y + 12048-12360, "Wall", 0)
- e(stashPosition.x + 8640-8952, stashPosition.y + 12048-12360, "Wall", 0)
- e(stashPosition.x + 8640-8952, stashPosition.y + 12048-12312, "Wall", 0)
- e(stashPosition.x + 8640-8904, stashPosition.y + 12048-12312, "Wall", 0)
- e(stashPosition.x + 8640-8952, stashPosition.y + 12048-12264, "Wall", 0)
- e(stashPosition.x + 8640-8952, stashPosition.y + 12048-12216, "Wall", 0)
- e(stashPosition.x + 8640-8952, stashPosition.y + 12048-12168, "Wall", 0)
- e(stashPosition.x + 8640-8952, stashPosition.y + 12048-12120, "Wall", 0)
- e(stashPosition.x + 8640-8952, stashPosition.y + 12048-12072, "Wall", 0)
- e(stashPosition.x + 8640-8952, stashPosition.y + 12048-12024, "Wall", 0)
- e(stashPosition.x + 8640-8952, stashPosition.y + 12048-11976, "Wall", 0)
- e(stashPosition.x + 8640-8952, stashPosition.y + 12048-11928, "Wall", 0)
- e(stashPosition.x + 8640-8952, stashPosition.y + 12048-11736, "Wall", 0)
- e(stashPosition.x + 8640-8952, stashPosition.y + 12048-11784, "Wall", 0)
- e(stashPosition.x + 8640-8952, stashPosition.y + 12048-11832, "Wall", 0)
- e(stashPosition.x + 8640-8952, stashPosition.y + 12048-11880, "Wall", 0)
- e(stashPosition.x + 8640-8904, stashPosition.y + 12048-11736, "Wall", 0)
- e(stashPosition.x + 8640-8904, stashPosition.y + 12048-11784, "Wall", 0)
- e(stashPosition.x + 8640-8856, stashPosition.y + 12048-11736, "Wall", 0)
- e(stashPosition.x + 8640-8808, stashPosition.y + 12048-11736, "Wall", 0)
- e(stashPosition.x + 8640-8760, stashPosition.y + 12048-11736, "Wall", 0)
- e(stashPosition.x + 8640-8712, stashPosition.y + 12048-11736, "Wall", 0)
- e(stashPosition.x + 8640-8664, stashPosition.y + 12048-11736, "Wall", 0)
- e(stashPosition.x + 8640-8616, stashPosition.y + 12048-11736, "Wall", 0)
- e(stashPosition.x + 8640-8568, stashPosition.y + 12048-11736, "Wall", 0)
- e(stashPosition.x + 8640-8520, stashPosition.y + 12048-11736, "Wall", 0)
- e(stashPosition.x + 8640-8472, stashPosition.y + 12048-11736, "Wall", 0)
- e(stashPosition.x + 8640-8424, stashPosition.y + 12048-11736, "Wall", 0)
- e(stashPosition.x + 8640-8280, stashPosition.y + 12048-11688, "Wall", 0)
- e(stashPosition.x + 8640-8328, stashPosition.y + 12048-11688, "Wall", 0)
- e(stashPosition.x + 8640-8376, stashPosition.y + 12048-11688, "Wall", 0)
- e(stashPosition.x + 8640-8424, stashPosition.y + 12048-11688, "Wall", 0)
- e(stashPosition.x + 8640-8472, stashPosition.y + 12048-11688, "Wall", 0)
- e(stashPosition.x + 8640-8520, stashPosition.y + 12048-11688, "Wall", 0)
- e(stashPosition.x + 8640-8568, stashPosition.y + 12048-11688, "Wall", 0)
- e(stashPosition.x + 8640-8616, stashPosition.y + 12048-11688, "Wall", 0)
- e(stashPosition.x + 8640-8664, stashPosition.y + 12048-11688, "Wall", 0)
- e(stashPosition.x + 8640-8712, stashPosition.y + 12048-11688, "Wall", 0)
- e(stashPosition.x + 8640-8760, stashPosition.y + 12048-11688, "Wall", 0)
- e(stashPosition.x + 8640-8808, stashPosition.y + 12048-11688, "Wall", 0)
- e(stashPosition.x + 8640-8856, stashPosition.y + 12048-11688, "Wall", 0)
- e(stashPosition.x + 8640-8904, stashPosition.y + 12048-11688, "Wall", 0)
- e(stashPosition.x + 8640-8952, stashPosition.y + 12048-11688, "Wall", 0)
- e(stashPosition.x + 8640-9000, stashPosition.y + 12048-11688, "Wall", 0)
- e(stashPosition.x + 8640-9000, stashPosition.y + 12048-11736, "Wall", 0)
- e(stashPosition.x + 8640-9000, stashPosition.y + 12048-11784, "Wall", 0)
- e(stashPosition.x + 8640-9000, stashPosition.y + 12048-11832, "Wall", 0)
- e(stashPosition.x + 8640-9000, stashPosition.y + 12048-11880, "Wall", 0)
- e(stashPosition.x + 8640-9000, stashPosition.y + 12048-11928, "Wall", 0)
- e(stashPosition.x + 8640-9000, stashPosition.y + 12048-11976, "Wall", 0)
- e(stashPosition.x + 8640-9000, stashPosition.y + 12048-12024, "Wall", 0)
- e(stashPosition.x + 8640-9000, stashPosition.y + 12048-12072, "Wall", 0)
- e(stashPosition.x + 8640-9000, stashPosition.y + 12048-12120, "Wall", 0)
- e(stashPosition.x + 8640-9000, stashPosition.y + 12048-12168, "Wall", 0)
- e(stashPosition.x + 8640-9000, stashPosition.y + 12048-12216, "Wall", 0)
- e(stashPosition.x + 8640-9000, stashPosition.y + 12048-12264, "Wall", 0)
- e(stashPosition.x + 8640-9000, stashPosition.y + 12048-12360, "Wall", 0)
- e(stashPosition.x + 8640-9000, stashPosition.y + 12048-12408, "Wall", 0)
- e(stashPosition.x + 8640-9000, stashPosition.y + 12048-12312, "Wall", 0)
- e(stashPosition.x + 8640-8952, stashPosition.y + 12048-12408, "Wall", 0)
- e(stashPosition.x + 8640-8904, stashPosition.y + 12048-12408, "Wall", 0)
- e(stashPosition.x + 8640-8856, stashPosition.y + 12048-12408, "Wall", 0)
- e(stashPosition.x + 8640-8808, stashPosition.y + 12048-12408, "Wall", 0)
- e(stashPosition.x + 8640-8760, stashPosition.y + 12048-12408, "Wall", 0)
- e(stashPosition.x + 8640-8712, stashPosition.y + 12048-12408, "Wall", 0)
- e(stashPosition.x + 8640-8664, stashPosition.y + 12048-12408, "Wall", 0)
- e(stashPosition.x + 8640-8616, stashPosition.y + 12048-12408, "Wall", 0)
- e(stashPosition.x + 8640-8568, stashPosition.y + 12048-12408, "Wall", 0)
- e(stashPosition.x + 8640-8520, stashPosition.y + 12048-12408, "Wall", 0)
- e(stashPosition.x + 8640-8472, stashPosition.y + 12048-12408, "Wall", 0)
- e(stashPosition.x + 8640-8424, stashPosition.y + 12048-12408, "Wall", 0)
- e(stashPosition.x + 8640-8376, stashPosition.y + 12048-12408, "Wall", 0)
- e(stashPosition.x + 8640-8328, stashPosition.y + 12048-12408, "Wall", 0)
- e(stashPosition.x + 8640-8280, stashPosition.y + 12048-12408, "Wall", 0)
- e(stashPosition.x + 8640-8280, stashPosition.y + 12048-12360, "Wall", 0)
- e(stashPosition.x + 8640-8280, stashPosition.y + 12048-12312, "Wall", 0)
- e(stashPosition.x + 8640-8280, stashPosition.y + 12048-12216, "Wall", 0)
- e(stashPosition.x + 8640-8280, stashPosition.y + 12048-12168, "Wall", 0)
- e(stashPosition.x + 8640-8280, stashPosition.y + 12048-12264, "Wall", 0)
- e(stashPosition.x + 8640-8280, stashPosition.y + 12048-12120, "Wall", 0)
- e(stashPosition.x + 8640-8280, stashPosition.y + 12048-11976, "Wall", 0)
- e(stashPosition.x + 8640-8280, stashPosition.y + 12048-11880, "Wall", 0)
- e(stashPosition.x + 8640-8280, stashPosition.y + 12048-11832, "Wall", 0)
- e(stashPosition.x + 8640-8280, stashPosition.y + 12048-11784, "Wall", 0)
- e(stashPosition.x + 8640-8280, stashPosition.y + 12048-11736, "Wall", 0)
- e(stashPosition.x + 8640-8280, stashPosition.y + 12048-11928, "Wall", 0)
- e(stashPosition.x + 8640-8280, stashPosition.y + 12048-12024, "Wall", 0)
- e(stashPosition.x + 8640-8280, stashPosition.y + 12048-12072, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 0, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 24, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 72, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 120, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 168, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 216, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 264, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 312, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 360, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -360, stashPosition.y + 408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -312, stashPosition.y + 408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -264, stashPosition.y + 408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -216, stashPosition.y + 408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -168, stashPosition.y + 408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -120, stashPosition.y + 408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -72, stashPosition.y + 408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -24, stashPosition.y + 408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -0, stashPosition.y + 408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 24, stashPosition.y + 408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 72, stashPosition.y + 408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 120, stashPosition.y + 408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 168, stashPosition.y + 408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 216, stashPosition.y + 408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 264, stashPosition.y + 408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 312, stashPosition.y + 408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 360, stashPosition.y + 408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 360, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 312, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 264, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 216, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 168, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 120, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 72, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 24, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 0, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -360, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -312, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -264, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -216, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -168, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -120, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -72, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -24, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -0, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 360, stashPosition.y + -408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 312, stashPosition.y + -408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 264, stashPosition.y + -408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 216, stashPosition.y + -408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 168, stashPosition.y + -408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 120, stashPosition.y + -408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 72, stashPosition.y + -408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 24, stashPosition.y + -408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -360, stashPosition.y + -408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -312, stashPosition.y + -408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -264, stashPosition.y + -408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -216, stashPosition.y + -408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -168, stashPosition.y + -408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -120, stashPosition.y + -408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -72, stashPosition.y + -408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -24, stashPosition.y + -408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -0, stashPosition.y + -408, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -0, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -72, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -24, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -120, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -168, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -216, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -264, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -312, "Wall", 0)
- EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -360, "Wall", 0)
- }
- }, 150)
- }
- Auto.dhrBase = function() {
- let waitForGoldStash = setInterval(function() {
- if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
- let stash = Auto.GetGoldStash();
- if (stash == undefined) return
- let stashPosition = {
- x: stash.x,
- y: stash.y
- }
- clearInterval(waitForGoldStash)
- EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 0, 'GoldStash', 0);EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 0, 'GoldMine', 0);EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 0, 'GoldMine', 0);EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -96, 'GoldMine', 0);EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + -96, 'GoldMine', 0);EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -96, 'GoldMine', 0);EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -192, 'GoldMine', 0);EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + -192, 'GoldMine', 0);EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -192, 'GoldMine', 0);EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -288, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -192, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 0, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -288, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -288, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 384, stashPosition.y + -384, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + -288, 'BombTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + -384, 'BombTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -96, 'BombTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 384, stashPosition.y + -96, 'BombTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 384, stashPosition.y + 0, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 384, stashPosition.y + -192, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 384, stashPosition.y + -288, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -384, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -384, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -384, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 480, stashPosition.y + 0, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 480, stashPosition.y + -96, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 480, stashPosition.y + -192, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 480, stashPosition.y + -288, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 480, stashPosition.y + -384, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 480, stashPosition.y + -480, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 576, stashPosition.y + -576, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 384, stashPosition.y + -480, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -480, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -480, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + -480, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -480, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -576, 'BombTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + -576, 'BombTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -576, 'BombTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -576, 'BombTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 384, stashPosition.y + -576, 'BombTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 480, stashPosition.y + -576, 'BombTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 576, stashPosition.y + -480, 'BombTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 576, stashPosition.y + -384, 'BombTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 576, stashPosition.y + -288, 'BombTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 576, stashPosition.y + -192, 'BombTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 672, stashPosition.y + 0, 'BombTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 672, stashPosition.y + -96, 'BombTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 672, stashPosition.y + -192, 'BombTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 672, stashPosition.y + -288, 'BombTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 672, stashPosition.y + -384, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 672, stashPosition.y + -480, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 672, stashPosition.y + -576, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 768, stashPosition.y + 0, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 768, stashPosition.y + -96, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 768, stashPosition.y + -192, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 768, stashPosition.y + -288, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 768, stashPosition.y + -384, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 768, stashPosition.y + -480, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 768, stashPosition.y + -576, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 864, stashPosition.y + 0, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 864, stashPosition.y + -96, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 864, stashPosition.y + -192, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 864, stashPosition.y + -288, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 864, stashPosition.y + -384, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 864, stashPosition.y + -480, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 864, stashPosition.y + -576, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -672, 'BombTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + -672, 'BombTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -672, 'BombTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 672, stashPosition.y + -672, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 480, stashPosition.y + -672, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 576, stashPosition.y + -672, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 384, stashPosition.y + -672, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 768, stashPosition.y + -672, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 576, stashPosition.y + -96, 'BombTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 576, stashPosition.y + 0, 'BombTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 672, stashPosition.y + -768, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 576, stashPosition.y + -768, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 480, stashPosition.y + -768, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 576, stashPosition.y + -864, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 480, stashPosition.y + -864, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 744, stashPosition.y + -792, 'Door', 0);EXTREME.PlaceBuilding(stashPosition.x + 744, stashPosition.y + -744, 'Door', 0);EXTREME.PlaceBuilding(stashPosition.x + 792, stashPosition.y + -744, 'Door', 0);EXTREME.PlaceBuilding(stashPosition.x + 384, stashPosition.y + -768, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 384, stashPosition.y + -864, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -768, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -864, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + -768, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -768, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -864, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + -864, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -672, 'BombTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -768, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -864, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 96, 'Harvester', 0);EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 96, 'Harvester', 0);EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 96, 'Harvester', 0);EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 0, 'Harvester', 0);EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + -96, 'Harvester', 0);
- }
- },150)
- }
- Auto.dhrBase2 = function() {
- let waitForGoldStash = setInterval(function() {
- if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
- let stash = Auto.GetGoldStash();
- if (stash == undefined) return
- let stashPosition = {
- x: stash.x,
- y: stash.y
- }
- clearInterval(waitForGoldStash)
- EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 0, 'GoldStash', 0);EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 0, 'GoldMine', 0);EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 0, 'GoldMine', 0);EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 0, 'GoldMine', 0);EXTREME.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 96, 'GoldMine', 0);EXTREME.PlaceBuilding(stashPosition.x + 384, stashPosition.y + 0, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 96, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 432, stashPosition.y + 96, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 480, stashPosition.y + 192, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 384, stashPosition.y + 192, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 432, stashPosition.y + 288, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 96, 'GoldMine', 0);EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 192, 'GoldMine', 0);EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 288, 'GoldMine', 0);EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 240, 'GoldMine', 0);EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 336, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 384, 'CannonTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 432, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 384, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 432, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 480, stashPosition.y + 0, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 528, stashPosition.y + 96, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 624, stashPosition.y + 96, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 576, stashPosition.y + 192, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 672, stashPosition.y + 192, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 624, stashPosition.y + 288, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 528, stashPosition.y + 288, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 528, stashPosition.y + 384, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 600, stashPosition.y + 360, 'Wall', 0);EXTREME.PlaceBuilding(stashPosition.x + 456, stashPosition.y + 360, 'Door', 0);EXTREME.PlaceBuilding(stashPosition.x + 696, stashPosition.y + 264, 'Door', 0);EXTREME.PlaceBuilding(stashPosition.x + 264, stashPosition.y + 360, 'Door', 0);EXTREME.PlaceBuilding(stashPosition.x + 360, stashPosition.y + 264, 'Door', 0);EXTREME.PlaceBuilding(stashPosition.x + 312, stashPosition.y + 216, 'Door', 0);EXTREME.PlaceBuilding(stashPosition.x + 312, stashPosition.y + 168, 'Door', 0);EXTREME.PlaceBuilding(stashPosition.x + 264, stashPosition.y + 168, 'Door', 0);EXTREME.PlaceBuilding(stashPosition.x + 216, stashPosition.y + 312, 'Door', 0);EXTREME.PlaceBuilding(stashPosition.x + 168, stashPosition.y + 312, 'Door', 0);EXTREME.PlaceBuilding(stashPosition.x + 168, stashPosition.y + 264, 'Door', 0);EXTREME.PlaceBuilding(stashPosition.x + 168, stashPosition.y + 72, 'Door', 0);EXTREME.PlaceBuilding(stashPosition.x + 72, stashPosition.y + 168, 'Door', 0);EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 480, 'ArrowTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 480, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 360, stashPosition.y + 456, 'Door', 0);EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 528, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 576, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 528, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 624, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 672, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 624, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 384, stashPosition.y + 528, 'MagicTower', 0);EXTREME.PlaceBuilding(stashPosition.x + 360, stashPosition.y + 600, 'Wall', 0);EXTREME.PlaceBuilding(stashPosition.x + 264, stashPosition.y + 696, 'Door', 0);EXTREME.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 240, 'Harvester', 0);EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -96, 'Harvester', 0);EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + -96, 'Harvester', 0);EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 0, 'Harvester', 0);EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 96, 'Harvester', 0);EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + -96, 'Harvester', 0);
- }
- },150)
- }
- window.BSB = function() {
- Auto.BuildBryanSmithBase()
- }
- window.TB = function() {
- Auto.BuildThingBase()
- }
- window.TH = function() {
- Auto2.GoldGenerator()
- }
- window.MB = function() {
- EXTREME.BuildMyBase()
- }
- window.XBase = function () {
- EXTREME.BuildXBase()
- }
- window.SmallCornerBase = function () {
- EXTREME.BuildMyBase2()
- }
- window.BRYSCRBSE = function () {
- Auto.BryanScoreBase()
- }
- window.deathrainbase = function () {
- Auto.dhrBase()
- }
- window.bryanss = function () {
- Auto.dhrBase2()
- }
- window.SSLQ = () => {
- Auto.SSLQ1()
- }
- }
- window.s3 = function() {
- // ==UserScript==
- // @name Base Saver
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match http://zombs.io/
- // @grant none
- // ==/UserScript==
- let css2 = `
- .btn:hover {
- 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/samsung/220/right-pointing-magnifying-glass_1f50e.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);
- // class changing
- document.getElementsByClassName("hud-intro-form")[0].style.height = "300px";
- document.getElementsByClassName("hud-intro-play")[0].setAttribute("class", "btn btn-blue 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 = `
- <div class="hud-menu-zipp3">
- <br />
- <div class="hud-zipp-grid3">
- </div>
- </div>
- `;
- document.body.insertAdjacentHTML("afterbegin", modHTML);
- let zipz123 = document.getElementsByClassName("hud-menu-zipp3")[0];
- //Onclick
- document.getElementsByClassName("hud-zipp3-icon")[0].addEventListener("click", function() {
- if(zipz123.style.display == "none") {
- zipz123.style.display = "block";
- for(var i = 0; i < menus.length; i++) {
- menus[i].style.display = "none";
- }
- } else {
- zipz123.style.display = "none";
- };
- });
- let _menu = document.getElementsByClassName("hud-menu-icon");
- let _spell = document.getElementsByClassName("hud-spell-icon");
- let allIcon = [
- _menu[0],
- _menu[1],
- _menu[2],
- _spell[0],
- _spell[1]
- ];
- allIcon.forEach(function(elem) {
- elem.addEventListener("click", function() {
- if(zipz123.style.display == "block") {
- zipz123.style.display = "none";
- };
- });
- });
- // key to open and close
- function modm() {
- if(zipz123.style.display == "none") {
- zipz123.style.display = "block";
- for(var i = 0; i < menus.length; i++) {
- menus[i].style.display = "none";
- }
- } else {
- zipz123.style.display = "none";
- };
- };
- document.getElementsByClassName("hud-zipp-grid3")[0].innerHTML = `
- <div style="text-align:center"><br>
- <hr />
- <h3>Base Saver, <br>
- <hr />
- WARNING: If you place more than 225 building, it wont be saved/recorded.</h3>
- <hr />
- <button onclick="RecordBase();">Record Base!</button>
- <button onclick="buildRecordedBase();">Build Recorded Base!</button>
- <button onclick="DeleteRecordedbase();">Delete Recorded Base!</button>
- <br><br>
- <button onclick="saveBase();">Save Towers!</button>
- <button onclick="saveTowers();">Build Saved Towers!</button>
- <br><br>
- <input type="number" value="275" class="SaveSpeed" placeholder="speed" style="width: 20%">
- <button class="SaveSpeedbtn">save speed</button>
- <button id="SSL31">Enable Auto Build Saved Towers!</button>
- <br><br>
- <input type="number" value="275" class="SaveSpeed2" placeholder="speed" style="width: 20%">
- <button class="SaveSpeedbtn2">save speed</button>
- <button id="SSL32">Enable Upgrade All!</button>
- <button id="SSL33">Enable Auto Sell All!</button>
- `;
- var button231 = document.getElementById("SSL31");
- button231.addEventListener("click", startSSL31);
- button231.addEventListener("click", stopSSL31);
- var SSL31 = null;
- var saveSpeed=275;
- $("SaveSpeedbtn").addEventListener("click", function() {
- saveSpeed = $("SaveSpeed").value;
- });
- function startSSL31() {
- clearInterval(SSL31);
- if (SSL31 !== null) {
- SSL31 = null;
- } else {
- SSL31 = setInterval(function() {
- saveTowers()
- }, saveSpeed)
- }
- }
- function stopSSL31() {
- var trade = document.getElementById("SSL31");
- if (trade.innerHTML == "Enable Auto Build Saved Towers!") {
- trade.innerHTML = "Disable Auto Build Saved Towers!";
- } else {
- trade.innerHTML = "Enable Auto Build Saved Towers!";
- }
- }
- var button233 = document.getElementById("SSL33");
- button233.addEventListener("click", startSSL33);
- button233.addEventListener("click", stopSSL33);
- var SSL33 = null;
- function startSSL33() {
- clearInterval(SSL33);
- if (SSL33 !== null) {
- SSL33 = null;
- } else {
- SSL33 = setInterval(function() {
- GoldGeneratorr()
- }, saveSpeed2)
- }
- }
- function stopSSL33() {
- var trade = document.getElementById("SSL33");
- if (trade.innerHTML == "Enable Auto Sell All!") {
- trade.innerHTML = "Disable Auto Sell All!";
- } else {
- trade.innerHTML = "Enable Auto Sell All!";
- }
- }
- var button232 = document.getElementById("SSL32");
- button232.addEventListener("click", startSSL32);
- button232.addEventListener("click", stopSSL32);
- var SSL32 = null;
- var saveSpeed2=275;
- $("SaveSpeedbtn2").addEventListener("click", function() {
- saveSpeed2 = $("SaveSpeed2").value;
- });
- function startSSL32() {
- clearInterval(SSL32);
- if (SSL32 !== null) {
- SSL32 = null;
- } else {
- SSL32 = setInterval(function() {
- var entities = Game.currentGame.world.entities;
- for(var uid in entities) {
- if(!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if(["Door", "SlowTrap", "ArrowTower", "CannonTower", "MeleeTower", "BombTower", "MagicTower", "GoldMine", "Harvester", "Wall"].indexOf(obj.fromTick.model) >= 0) {
- Game.currentGame.network.sendRpc({
- name: "UpgradeBuilding",
- uid: obj.fromTick.uid
- });
- }
- }
- }, 275)
- }
- }
- function stopSSL32() {
- var trade = document.getElementById("SSL32");
- if (trade.innerHTML == "Enable Upgrade All!") {
- trade.innerHTML = "Disable Upgrade All!";
- } else {
- trade.innerHTML = "Enable Upgrade All!";
- }
- }
- //Auto Build Script
- function $(classname) {
- let element = document.getElementsByClassName(classname)
- if (element.length === 1) {
- return element[0]
- } else {
- return element
- }
- }
- var sSsS = function(x, y, building, yaw) {
- Game.currentGame.network.sendRpc({
- name: "MakeBuilding",
- x: x,
- y: y,
- type: building,
- yaw: yaw
- })
- SellAll()
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["Wall", "Door", "SlowTrap", "ArrowTower", "CannonTower", "MeleeTower", "BombTower", "MagicTower", "GoldMine", "Harvester" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- window.GoldGeneratorr = function() {
- let waitForGoldStash = setInterval(function() {
- if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
- let stash = GetGoldStash();
- if (stash == undefined) return
- let stashPosition = {
- x: stash.x,
- y: stash.y
- }
- clearInterval(waitForGoldStash);
- sSsS(stashPosition.x + 100000000000000000000, stashPosition.y + 100000000000000000000000000, "ArrowTower", 0)
- sSsS(stashPosition.x + 20000000000000000000000000, stashPosition.y + 200000000000000000000000, "ArrowTower", 0)
- sSsS(stashPosition.x + 100000000000000000000, stashPosition.y + 100000000000000000000000000, "ArrowTower", 0)
- sSsS(stashPosition.x + 20000000000000000000000000, stashPosition.y + 200000000000000000000000, "ArrowTower", 0)
- sSsS(stashPosition.x + 100000000000000000000, stashPosition.y + 100000000000000000000000000, "ArrowTower", 0)
- sSsS(stashPosition.x + 20000000000000000000000000, stashPosition.y + 200000000000000000000000, "ArrowTower", 0)
- sSsS(stashPosition.x + 20000000000000000000000000, stashPosition.y + 200000000000000000000000, "ArrowTower", 0)
- sSsS(stashPosition.x + 100000000000000000000, stashPosition.y + 100000000000000000000000000, "ArrowTower", 0)
- sSsS(stashPosition.x + 20000000000000000000000000, stashPosition.y + 200000000000000000000000, "ArrowTower", 0)
- }
- }, 0)
- }
- window.saveTowers = function() {
- var stash = GetGoldStash();
- if (stash == undefined) {
- return
- }
- var stashPosition = {
- x: stash.x,
- y: stash.y
- }
- var buildings = Game.currentGame.ui.buildings;
- for (var uid in buildings) {
- if (!buildings.hasOwnProperty(uid)) {
- continue
- }
- var obj = buildings[uid]
- var x = Game.currentGame.world.entities[obj.uid].fromTick.position.x - stashPosition.x
- var y = Game.currentGame.world.entities[obj.uid].fromTick.position.y - stashPosition.y
- var building = Game.currentGame.world.entities[obj.uid].fromTick.model
- var yaw = Game.currentGame.world.entities[obj.uid].fromTick.yaw
- for (let s of slowTraps) placeBuilding(stashPosition.x+s.x - stashPosition.x, stashPosition.y + s.y-stashPosition.y, s.type, 0);
- }
- }
- window.SellStash = function() {
- // Game.currentGame.ui.getComponent("PopupOverlay").showConfirmation("Are you sure you want to sell stash?", 1e4, function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "GoldStash") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["GoldStash" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- // })
- }
- let slowTraps = []
- const buildings = Game.currentGame.ui.buildings
- const saveSlowTraps = () => {
- slowTraps = []
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["Wall", "Door", "SlowTrap", "ArrowTower", "CannonTower", "MeleeTower", "BombTower", "MagicTower", "GoldMine", "Harvester" || "Wall"].indexOf(building.type) >= 0) {
- slowTraps.push(building)
- }})},
- placeBuilding = function(x, y, building, yaw) {
- Game.currentGame.network.sendRpc({
- name: "MakeBuilding",
- x: x,
- y: y,
- type: building,
- yaw: yaw
- })
- }
- let GoldStashh = []
- const buildings2 = Game.currentGame.ui.buildings
- const saveSlowTraps2 = () => {
- GoldStashh = []
- Object.keys(buildings2).forEach(key => {
- const building = buildings2[key]
- if(["GoldStash" || "Wall"].indexOf(building.type) >= 0) {
- GoldStashh.push(building)
- }})}
- window.sellBombs = function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "BombTower") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["BombTower" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- window.SellAll = function() {
- let ss4 = setInterval ( () => {
- clearInterval(ss4)
- // Game.currentGame.ui.getComponent("PopupOverlay").showConfirmation("Are you sure you want to sell all?", 1e4, function() {
- var entities = Game.currentGame.world.entities;
- for(var uid in entities) {
- if(!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if(obj.fromTick.model !== "GoldStash") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- });
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["Wall", "Door", "SlowTrap", "ArrowTower", "CannonTower", "MeleeTower", "BombTower", "MagicTower", "GoldMine", "Harvester" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }, 100)
- // })
- }
- window.UpgradeAll = function() {
- let ss2 = setInterval (() => {
- clearInterval(ss2)
- var entities = Game.currentGame.world.entities;
- for(var uid in entities) {
- if(!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if(obj.fromTick.model !== "GoldStash") {
- Game.currentGame.network.sendRpc({
- name: "UpgradeBuilding",
- uid: obj.fromTick.uid
- });
- }
- }
- }, 100)
- }
- window.UpgradeStash = function() {
- let ss3 = setInterval (() => {
- clearInterval(ss3)
- var entities = Game.currentGame.world.entities;
- for(var uid in entities) {
- if(!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if(obj.fromTick.model == "GoldStash") {
- Game.currentGame.network.sendRpc({
- name: "UpgradeBuilding",
- uid: obj.fromTick.uid
- });
- }
- }
- }, 100)
- }
- window.saveBase = () => {
- saveSlowTraps()
- }
- window.saveStash = () => {
- saveSlowTraps2()
- }
- window.RecordBase = function(baseName) {
- Game.currentGame.ui.getComponent("PopupOverlay").showConfirmation("Are you sure you want to record base? If you record it 2 times the first recorded base will be unrecorded.", 1e4, function() {
- var base = ""
- var stash = GetGoldStash();
- if (stash == undefined) {
- return
- }
- var stashPosition = {
- x: stash.x,
- y: stash.y
- }
- var buildings = Game.currentGame.ui.buildings;
- for (var uid in buildings) {
- if (!buildings.hasOwnProperty(uid)) {
- continue
- }
- var obj = buildings[uid]
- var x = Game.currentGame.world.entities[obj.uid].fromTick.position.x - stashPosition.x
- var y = Game.currentGame.world.entities[obj.uid].fromTick.position.y - stashPosition.y
- var building = Game.currentGame.world.entities[obj.uid].fromTick.model
- var yaw = Game.currentGame.world.entities[obj.uid].fromTick.yaw
- base += "PlaceBuilding(stashPosition.x + " + x + ", stashPosition.y + " + y + ", '" + building + "', " + yaw + ");"
- }
- localStorage.setItem(baseName, base)
- })
- }
- GetGoldStash = function() {
- var entities = Game.currentGame.ui.buildings
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) {
- continue
- }
- var obj = entities[uid]
- if (obj.type == "GoldStash") {
- return obj
- }
- }
- }
- PlaceBuilding = function(x, y, building, yaw) {
- Game.currentGame.network.sendRpc({
- name: "MakeBuilding",
- x: x,
- y: y,
- type: building,
- yaw: yaw
- })
- }
- window.buildRecordedBase = function(myBaseName) {
- var waitForGoldStash = setInterval(function() {
- if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
- stash = GetGoldStash();
- if (stash == undefined) return
- stashPosition = {
- x: stash.x,
- y: stash.y
- }
- clearInterval(waitForGoldStash)
- var basecode = localStorage.getItem(myBaseName)
- basecode = new Function(basecode)
- return basecode()
- }
- }, 275)
- }
- window.DeleteRecordedbase = function(mybasename) {
- Game.currentGame.ui.getComponent("PopupOverlay").showConfirmation("Are you sure you want to delete recorded base?", 1e4, function() {
- if (localStorage.getItem(mybasename)) {
- localStorage.removeItem(mybasename)
- }
- })
- }
- }
- window.s4 = function() {
- // ==UserScript==
- // @name Tower Heal
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match http://zombs.io/
- // @grant none
- // ==/UserScript==
- let css2 = `
- .btn:hover {
- 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-zipp4 {
- 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-zipp4 h3 {
- display: block;
- margin: 0;
- line-height: 20px;
- }
- .hud-menu-zipp4 .hud-zipp-grid4 {
- display: block;
- height: 380px;
- padding: 10px;
- margin-top: 18px;
- background: rgba(0, 0, 0, 0.2);
- }
- .hud-spell-icons .hud-spell-icon[data-type="Zippity4"]::before {
- background-image: url("https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/facebook/65/cross-mark_274c.png");
- }
- .hud-menu-zipp4 .hud-the-tab {
- position: relative;
- height: 40px;
- line-height: 40px;
- margin: 20px;
- border: 0px solid rgb(0, 0, 0, 0);
- }
- .hud-menu-zipp4 .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-zipp4 .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);
- // class changing
- document.getElementsByClassName("hud-intro-form")[0].style.height = "300px";
- document.getElementsByClassName("hud-intro-play")[0].setAttribute("class", "btn btn-blue hud-intro-play");
- // spell icon
- let spell = document.createElement("div");
- spell.classList.add("hud-spell-icon");
- spell.setAttribute("data-type", "Zippity4");
- spell.classList.add("hud-zipp4-icon");
- document.getElementsByClassName("hud-spell-icons")[0].appendChild(spell);
- //Menu for spell icon
- let modHTML = `
- <div class="hud-menu-zipp4">
- <br />
- <div class="hud-zipp-grid4">
- </div>
- </div>
- `;
- document.body.insertAdjacentHTML("afterbegin", modHTML);
- let zipz123 = document.getElementsByClassName("hud-menu-zipp4")[0];
- //Onclick
- document.getElementsByClassName("hud-zipp4-icon")[0].addEventListener("click", function() {
- if(zipz123.style.display == "none") {
- zipz123.style.display = "block";
- for(var i = 0; i < menus.length; i++) {
- menus[i].style.display = "none";
- }
- } else {
- zipz123.style.display = "none";
- };
- });
- let _menu = document.getElementsByClassName("hud-menu-icon");
- let _spell = document.getElementsByClassName("hud-spell-icon");
- let allIcon = [
- _menu[0],
- _menu[1],
- _menu[2],
- _spell[0],
- _spell[1]
- ];
- allIcon.forEach(function(elem) {
- elem.addEventListener("click", function() {
- if(zipz123.style.display == "block") {
- zipz123.style.display = "none";
- };
- });
- });
- // key to open and close
- function modm() {
- if(zipz123.style.display == "none") {
- zipz123.style.display = "block";
- for(var i = 0; i < menus.length; i++) {
- menus[i].style.display = "none";
- }
- } else {
- zipz123.style.display = "none";
- };
- };
- document.getElementsByClassName("hud-zipp-grid4")[0].innerHTML = `
- <div style="text-align:center"><br>
- <hr />
- <h3>Tower Heal</h3>
- <hr />
- <input type="number" value="500" class="TFkey2" placeholder="speed" style="width: 20%">
- <button class="TFvalidKey2">save speed</button>
- <button class="TFbtn2">Heal towers by using X postion</button>
- <br><br>
- <input type="number" value="500" class="F3" placeholder="speed" style="width: 20%;">
- <button class="Fe3">save speed</button>
- <button id="SSL7">Heal towers by using mouse position</button>
- <br><br>
- <input type="number" value="500" class="F4" placeholder="speed" style="width: 20%;">
- <button class="Fe4">save speed</button>
- <button id="SSL3">Enable Tower Heal</button>
- <br><br>
- <button id="SSL77">Heal towers by using O Position</button>
- `;
- var button211 = document.getElementById("SSL3");
- button211.addEventListener("click", startSSL3);
- button211.addEventListener("click", stopSSL3);
- var SSL3 = null;
- var f4=500;
- $("Fe4").addEventListener("click", function() {
- f4 = $("F4").value;
- });
- function startSSL3() {
- clearInterval(SSL3);
- if (SSL3 !== null) {
- SSL3 = null;
- } else {
- SSL3 = setInterval(function() {
- spellHP()
- }, f4)
- }
- }
- function stopSSL3() {
- var trade = document.getElementById("SSL3");
- if (trade.innerHTML == "Enable Tower Heal") {
- trade.innerHTML = "Disable Tower Heal";
- } else {
- trade.innerHTML = "Enable Tower Heal";
- }
- }
- var button217 = document.getElementById("SSL7");
- button217.addEventListener("click", startSSL7);
- button217.addEventListener("click", stopSSL7);
- var SSL7 = null;
- var f3=500;
- $("Fe3").addEventListener("click", function() {
- f3 = $("F3").value;
- });
- function startSSL7() {
- clearInterval(SSL7);
- if (SSL7 !== null) {
- SSL7 = null;
- } else {
- SSL7 = setInterval(function() {
- Game.currentGame.network.sendRpc({
- name:"CastSpell",
- spell: "HealTowersSpell",
- x: Math.round(Game.currentGame.ui.playerTick.position.x + Game.currentGame.ui.mousePosition.x + -550),
- y: Math.round(Game.currentGame.ui.playerTick.position.y + Game.currentGame.ui.mousePosition.y + -450),
- tier: 1
- })
- }, f3)
- }
- }
- function stopSSL7() {
- var trade = document.getElementById("SSL7");
- if (trade.innerHTML == "Heal towers by using mouse position") {
- trade.innerHTML = "Unheal towers by using mouse position";
- } else {
- trade.innerHTML = "Heal towers by using mouse position";
- }
- }
- $("TFbtn2").addEventListener("click", FREEZE2);
- var TowerFreeze2 = null;
- var key2=500;
- $("TFvalidKey2").addEventListener("click", function() {
- key2 = $("TFkey2").value;
- });
- function FREEZE2() {
- if ($("TFbtn2").innerText == "Heal towers by using X postion") {
- $("TFbtn2").innerText = "Unheal towers by using X postion";
- } else {
- $("TFbtn2").innerText = "Heal towers by using X postion";
- }
- if (TowerFreeze2 == null) {
- TowerFreeze2 = setInterval(function() {
- setTimeout(() => {
- spellHP2()
- },600)
- setTimeout(() => {
- spellHP3()
- },250)
- setTimeout(() => {
- spellHP4()
- },300)
- setTimeout(() => {
- spellHP5()
- },350)
- setTimeout(() => {
- spellHP9()
- },400)
- setTimeout(() => {
- spellHP10()
- },450)
- setTimeout(() => {
- spellHP11()
- },500)
- setTimeout(() => {
- spellHP12()
- },550)
- setTimeout(() => {
- spellHP13()
- },200)
- }, key2);
- } else {
- clearInterval(TowerFreeze2);
- TowerFreeze2 = null;
- }
- }
- var button2177 = document.getElementById("SSL77");
- button2177.addEventListener("click", startSSL77);
- button2177.addEventListener("click", stopSSL77);
- var SSL77 = null;
- function startSSL77() {
- clearInterval(SSL77);
- if (SSL77 !== null) {
- SSL77 = null;
- } else {
- setTimeout(() => {
- TowerHealPositions(500, 500);
- }, 100);
- setTimeout(() => {
- TowerHealPositions(700, 0);
- }, 400);
- setTimeout(() => {
- TowerHealPositions(500, -500);
- },700);
- setTimeout(() => {
- TowerHealPositions(0, -700);
- },1000);
- setTimeout(() => {
- TowerHealPositions(-500, -500);
- },1300);
- setTimeout(() => {
- TowerHealPositions(-700, 0);
- },1600);
- setTimeout(() => {
- TowerHealPositions(-500, 500);
- },1900);
- setTimeout(() => {
- TowerHealPositions(0, 700);
- },2200);
- SSL77 = setInterval(function() {
- setTimeout(() => {
- TowerHealPositions(500, 500);
- }, 100);
- setTimeout(() => {
- TowerHealPositions(700, 0);
- }, 400);
- setTimeout(() => {
- TowerHealPositions(500, -500);
- },700);
- setTimeout(() => {
- TowerHealPositions(0, -700);
- },1000);
- setTimeout(() => {
- TowerHealPositions(-500, -500);
- },1300);
- setTimeout(() => {
- TowerHealPositions(-700, 0);
- },1600);
- setTimeout(() => {
- TowerHealPositions(-500, 500);
- },1900);
- setTimeout(() => {
- TowerHealPositions(0, 700);
- },2200);
- }, 2500)
- }
- }
- function stopSSL77() {
- var trade = document.getElementById("SSL77");
- if (trade.innerHTML == "Heal towers by using O Position") {
- trade.innerHTML = "Unheal towers by using O Position";
- } else {
- trade.innerHTML = "Heal towers by using O Position";
- }
- }
- //Auto Build Script
- function $(classname) {
- let element = document.getElementsByClassName(classname)
- if (element.length === 1) {
- return element[0]
- } else {
- return element
- }
- }
- window.spellHP2 = function() {
- Game.currentGame.network.sendRpc({
- name:"CastSpell",
- spell:"HealTowersSpell",
- x: Math.round(Game.currentGame.ui.playerTick.position.x + -250),
- y: Math.round(Game.currentGame.ui.playerTick.position.y + -250),
- tier: 1
- })
- }
- window.spellHP3 = function() {
- Game.currentGame.network.sendRpc({
- name:"CastSpell",
- spell:"HealTowersSpell",
- x: Math.round(Game.currentGame.ui.playerTick.position.x + 250),
- y: Math.round(Game.currentGame.ui.playerTick.position.y + 250),
- tier: 1
- })
- }
- window.spellHP4 = function() {
- Game.currentGame.network.sendRpc({
- name:"CastSpell",
- spell:"HealTowersSpell",
- x: Math.round(Game.currentGame.ui.playerTick.position.x + -250),
- y: Math.round(Game.currentGame.ui.playerTick.position.y + 250),
- tier: 1
- })
- }
- window.spellHP5 = function() {
- Game.currentGame.network.sendRpc({
- name:"CastSpell",
- spell:"HealTowersSpell",
- x: Math.round(Game.currentGame.ui.playerTick.position.x + 250),
- y: Math.round(Game.currentGame.ui.playerTick.position.y + -250),
- tier: 1
- })
- }
- window.spellHP9 = function() {
- Game.currentGame.network.sendRpc({
- name:"CastSpell",
- spell:"HealTowersSpell",
- x: Math.round(Game.currentGame.ui.playerTick.position.x + -600),
- y: Math.round(Game.currentGame.ui.playerTick.position.y + -600),
- tier: 1
- })
- }
- window.spellHP10 = function() {
- Game.currentGame.network.sendRpc({
- name:"CastSpell",
- spell:"HealTowersSpell",
- x: Math.round(Game.currentGame.ui.playerTick.position.x + 600),
- y: Math.round(Game.currentGame.ui.playerTick.position.y + 600),
- tier: 1
- })
- }
- window.spellHP11 = function() {
- Game.currentGame.network.sendRpc({
- name:"CastSpell",
- spell:"HealTowersSpell",
- x: Math.round(Game.currentGame.ui.playerTick.position.x + -600),
- y: Math.round(Game.currentGame.ui.playerTick.position.y + 600),
- tier: 1
- })
- }
- window.spellHP12 = function() {
- Game.currentGame.network.sendRpc({
- name:"CastSpell",
- spell:"HealTowersSpell",
- x: Math.round(Game.currentGame.ui.playerTick.position.x + 600),
- y: Math.round(Game.currentGame.ui.playerTick.position.y + -600),
- tier: 1
- })
- }
- window.spellHP13 = function() {
- Game.currentGame.network.sendRpc({
- name:"CastSpell",
- spell:"HealTowersSpell",
- x: Math.round(Game.currentGame.ui.playerTick.position.x),
- y: Math.round(Game.currentGame.ui.playerTick.position.y),
- tier: 1
- })
- }
- let spellHP = function() {
- Game.currentGame.network.sendRpc({
- name:"CastSpell",
- spell:"HealTowersSpell",
- x: Math.round(Game.currentGame.ui.playerTick.position.x),
- y: Math.round(Game.currentGame.ui.playerTick.position.y),
- tier: 1
- })
- }
- TowerHealPositions = function(x, y) {
- Game.currentGame.network.sendRpc({
- name: "CastSpell",
- spell: "HealTowersSpell",
- x: Math.round(Game.currentGame.ui.playerTick.position.x + x),
- y: Math.round(Game.currentGame.ui.playerTick.position.y + y),
- tier: 1
- })
- }
- }
- window.s5 = function() {
- // ==UserScript==
- // @name Join, Leave
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match http://zombs.io/
- // @grant none
- // ==/UserScript==
- function keyDownF(e) {
- switch (e.keyCode) {
- case 219:
- leave();
- break;
- case 222:
- join();
- break;
- case 191:
- join2();
- break;
- }
- }
- setInterval(function () {
- if (document.querySelectorAll(".hud-chat .hud-chat-input:focus")[0]) {
- window.removeEventListener("keydown", keyDownF);
- } else {
- window.addEventListener("keydown", keyDownF);
- }
- }, 0);
- let css2 = `
- .btn:hover {
- 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-zipp5 {
- 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-zipp5 h3 {
- display: block;
- margin: 0;
- line-height: 20px;
- }
- .hud-menu-zipp5 .hud-zipp-grid5 {
- display: block;
- height: 380px;
- padding: 10px;
- margin-top: 18px;
- background: rgba(0, 0, 0, 0.2);
- }
- .hud-spell-icons .hud-spell-icon[data-type="Zippity5"]::before {
- background-image: url("https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/microsoft/209/key_1f511.png");
- }
- .hud-menu-zipp5 .hud-the-tab {
- position: relative;
- height: 40px;
- line-height: 40px;
- margin: 20px;
- border: 0px solid rgb(0, 0, 0, 0);
- }
- .hud-menu-zipp5 .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-zipp5 .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);
- // class changing
- document.getElementsByClassName("hud-intro-form")[0].style.height = "300px";
- document.getElementsByClassName("hud-intro-play")[0].setAttribute("class", "btn btn-blue hud-intro-play");
- // spell icon
- let spell = document.createElement("div");
- spell.classList.add("hud-spell-icon");
- spell.setAttribute("data-type", "Zippity5");
- spell.classList.add("hud-zipp5-icon");
- document.getElementsByClassName("hud-spell-icons")[0].appendChild(spell);
- //Menu for spell icon
- let modHTML = `
- <div class="hud-menu-zipp5">
- <br />
- <div class="hud-zipp-grid5">
- </div>
- </div>
- `;
- document.body.insertAdjacentHTML("afterbegin", modHTML);
- let zipz123 = document.getElementsByClassName("hud-menu-zipp5")[0];
- //Onclick
- document.getElementsByClassName("hud-zipp5-icon")[0].addEventListener("click", function() {
- if(zipz123.style.display == "none") {
- zipz123.style.display = "block";
- for(var i = 0; i < menus.length; i++) {
- menus[i].style.display = "none";
- }
- } else {
- zipz123.style.display = "none";
- };
- });
- let _menu = document.getElementsByClassName("hud-menu-icon");
- let _spell = document.getElementsByClassName("hud-spell-icon");
- let allIcon = [
- _menu[0],
- _menu[1],
- _menu[2],
- _spell[0],
- _spell[1]
- ];
- allIcon.forEach(function(elem) {
- elem.addEventListener("click", function() {
- if(zipz123.style.display == "block") {
- zipz123.style.display = "none";
- };
- });
- });
- // key to open and close
- function modm() {
- if(zipz123.style.display == "none") {
- zipz123.style.display = "block";
- for(var i = 0; i < menus.length; i++) {
- menus[i].style.display = "none";
- }
- } else {
- zipz123.style.display = "none";
- };
- };
- document.getElementsByClassName("hud-zipp-grid5")[0].innerHTML = `
- <div style="text-align:center"><br>
- <hr />
- <h3>Join Parties</h3>
- <hr />
- <input type="text" maxlength="20" placeholder="share key" id="myKey">
- <button onclick="join();">Join</button>
- <br><br>
- <input type="text" maxlength="20" placeholder="share key" id="myKey2">
- <button onclick="join2();">Join</button>
- <br><br>
- <input type="text" maxlength="20" placeholder="share key" id="myKey3">
- <button onclick="join3();">Join</button>
- <hr />
- <h3>Leave Parties</h3>
- <hr />
- <button onclick="leave();">Leave</button>
- <br><br>
- <input type="text" maxlength="20" placeholder="share key" id="MyKey1">
- `;
- setInterval(() => { let ed = MyKey1.value = Game.currentGame.ui.playerPartyShareKey }, 100)
- window.join = function() {
- let partyKey = myKey.value
- Game.currentGame.network.sendRpc({
- name: "JoinPartyByShareKey",
- partyShareKey: partyKey
- })
- }
- window.join2 = function() {
- let partyKey = myKey2.value
- Game.currentGame.network.sendRpc({
- name: "JoinPartyByShareKey",
- partyShareKey: partyKey
- })
- }
- window.join3 = function() {
- let partyKey = myKey3.value
- Game.currentGame.network.sendRpc({
- name: "JoinPartyByShareKey",
- partyShareKey: partyKey
- })
- }
- window.join4 = function() {
- Game.currentGame.network.sendRpc({
- name: "JoinPartyByShareKey",
- partyShareKey: key
- })
- }
- //Auto Build Script
- function $(classname) {
- let element = document.getElementsByClassName(classname)
- if (element.length === 1) {
- return element[0]
- } else {
- return element
- }
- }
- window.leave = function() {
- Game.currentGame.network.sendRpc({
- name: "LeaveParty"
- })
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["Wall", "Door", "SlowTrap", "ArrowTower", "CannonTower", "MeleeTower", "BombTower", "MagicTower", "GoldMine", "Harvester" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- }
- window.s6 = function () {
- // ==UserScript==
- // @name Tower Freeze
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match http://zombs.io/
- // @grant none
- // ==/UserScript==
- function keyDownF(e) {
- switch (e.keyCode) {
- case 221:
- join4();
- break;
- case 187:
- document.getElementsByClassName("TFvalidKey")[0].click();
- break;
- case 220:
- FREEZE();
- break;
- }
- }
- setInterval(function () {
- if (document.querySelectorAll(".hud-chat .hud-chat-input:focus")[0]) {
- window.removeEventListener("keydown", keyDownF);
- } else {
- window.addEventListener("keydown", keyDownF);
- }
- }, 0);
- let css2 = `
- .btn:hover {
- 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-zipp6 {
- 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-zipp6 h3 {
- display: block;
- margin: 0;
- line-height: 20px;
- }
- .hud-menu-zipp6 .hud-zipp-grid6 {
- display: block;
- height: 380px;
- padding: 10px;
- margin-top: 18px;
- background: rgba(0, 0, 0, 0.2);
- }
- .hud-spell-icons .hud-spell-icon[data-type="Zippity6"]::before {
- background-image: url("https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/232/crossed-swords_2694.png");
- }
- .hud-menu-zipp6 .hud-the-tab {
- position: relative;
- height: 40px;
- line-height: 40px;
- margin: 20px;
- border: 0px solid rgb(0, 0, 0, 0);
- }
- .hud-menu-zipp6 .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-zipp6 .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);
- // class changing
- document.getElementsByClassName("hud-intro-form")[0].style.height = "300px";
- document.getElementsByClassName("hud-intro-play")[0].setAttribute("class", "btn btn-blue hud-intro-play");
- // spell icon
- let spell = document.createElement("div");
- spell.classList.add("hud-spell-icon");
- spell.setAttribute("data-type", "Zippity6");
- spell.classList.add("hud-zipp6-icon");
- document.getElementsByClassName("hud-spell-icons")[0].appendChild(spell);
- //Menu for spell icon
- let modHTML = `
- <div class="hud-menu-zipp6">
- <br />
- <div class="hud-zipp-grid6">
- </div>
- </div>
- `;
- document.body.insertAdjacentHTML("afterbegin", modHTML);
- let zipz123 = document.getElementsByClassName("hud-menu-zipp6")[0];
- //Onclick
- document.getElementsByClassName("hud-zipp6-icon")[0].addEventListener("click", function() {
- if(zipz123.style.display == "none") {
- zipz123.style.display = "block";
- for(var i = 0; i < menus.length; i++) {
- menus[i].style.display = "none";
- }
- } else {
- zipz123.style.display = "none";
- };
- });
- let _menu = document.getElementsByClassName("hud-menu-icon");
- let _spell = document.getElementsByClassName("hud-spell-icon");
- let allIcon = [
- _menu[0],
- _menu[1],
- _menu[2],
- _spell[0],
- _spell[1]
- ];
- allIcon.forEach(function(elem) {
- elem.addEventListener("click", function() {
- if(zipz123.style.display == "block") {
- zipz123.style.display = "none";
- };
- });
- });
- // key to open and close
- function modm() {
- if(zipz123.style.display == "none") {
- zipz123.style.display = "block";
- for(var i = 0; i < menus.length; i++) {
- menus[i].style.display = "none";
- }
- } else {
- zipz123.style.display = "none";
- };
- };
- document.getElementsByClassName("hud-zipp-grid6")[0].innerHTML = `
- <div style="text-align:center"><br>
- <hr />
- <h3>Auto Raid</h3>
- <hr />
- <button class="TFvalidKey">Valid Key</button>
- <input type="text" class="TFe" placeholder="ValidKey=NewShareKey">
- <button class="TFbtn">Freeze Towers</button>
- <button onclick="join4();">Join...</button>
- <br><br>
- <button class="TFbtn3">Enable UnKicked From Party!</button>
- `;
- $("TFbtn").addEventListener("click", FREEZE);
- let TowerFreeze = null;
- sds = 175;
- let key;
- let e2;
- $("TFvalidKey").addEventListener("click", function() {
- key = Game.currentGame.ui.playerPartyShareKey
- e2 = $("TFe").value = Game.currentGame.ui.playerPartyShareKey
- });
- function FREEZE() {
- if ($("TFbtn").innerText == "Freeze Towers") {
- $("TFbtn").innerText = "Unfreeze Towers";
- } else {
- $("TFbtn").innerText = "Freeze Towers";
- }
- if (TowerFreeze == null) {
- TowerFreeze = setInterval(function() {
- Game.currentGame.network.sendRpc({
- name: "JoinPartyByShareKey",
- partyShareKey: key
- });
- Game.currentGame.network.sendRpc({
- name: "LeaveParty"
- })
- }, sds);
- } else {
- clearInterval(TowerFreeze);
- TowerFreeze = null;
- }
- }
- $("TFbtn3").addEventListener("click", FREEZE3);
- var TowerFreeze3 = null;
- function FREEZE3() {
- if ($("TFbtn3").innerText == "Enable UnKicked From Party!") {
- $("TFbtn3").innerText = "Disable UnKicked From Party!";
- } else {
- $("TFbtn3").innerText = "Enable UnKicked From Party!";
- }
- if (TowerFreeze3 == null) {
- TowerFreeze3 = setInterval(function() {
- Game.currentGame.network.sendRpc({
- name: "JoinPartyByShareKey",
- partyShareKey: key
- });
- }, 25);
- } else {
- clearInterval(TowerFreeze3);
- TowerFreeze3 = null;
- }
- }
- window.join = function() {
- let partyKey = myKey.value
- Game.currentGame.network.sendRpc({
- name: "JoinPartyByShareKey",
- partyShareKey: partyKey
- })
- }
- window.join2 = function() {
- let partyKey = myKey2.value
- Game.currentGame.network.sendRpc({
- name: "JoinPartyByShareKey",
- partyShareKey: partyKey
- })
- }
- window.join3 = function() {
- let partyKey = myKey3.value
- Game.currentGame.network.sendRpc({
- name: "JoinPartyByShareKey",
- partyShareKey: partyKey
- })
- }
- window.join4 = function() {
- Game.currentGame.network.sendRpc({
- name: "JoinPartyByShareKey",
- partyShareKey: key
- })
- }
- function $(classname) {
- let element = document.getElementsByClassName(classname)
- if (element.length === 1) {
- return element[0]
- } else {
- return element
- }
- }
- }
- window.s7 = function() {
- let css2 = `
- .btn:hover {
- 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-zipp7 {
- 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-zipp7 h3 {
- display: block;
- margin: 0;
- line-height: 20px;
- }
- .hud-menu-zipp7 .hud-zipp-grid7 {
- display: block;
- height: 380px;
- padding: 10px;
- margin-top: 18px;
- background: rgba(0, 0, 0, 0.2);
- }
- .hud-spell-icons .hud-spell-icon[data-type="Zippity7"]::before {
- background-image: url("https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/emojidex/112/shamrock_2618.png");
- }
- .hud-menu-zipp7 .hud-the-tab {
- position: relative;
- height: 40px;
- line-height: 40px;
- margin: 20px;
- border: 0px solid rgb(0, 0, 0, 0);
- }
- .hud-menu-zipp7 .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-zipp7 .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);
- var menus = document.getElementsByClassName("hud-menu");
- // class changing
- document.getElementsByClassName("hud-intro-form")[0].style.height = "300px";
- document.getElementsByClassName("hud-intro-play")[0].setAttribute("class", "btn btn-blue hud-intro-play");
- // spell icon
- let spell = document.createElement("div");
- spell.classList.add("hud-spell-icon");
- spell.setAttribute("data-type", "Zippity7")
- spell.innerHTML = `<div class="hud-tooltip-menu-icon">
- <h4>Scripts</h4>
- </div>`
- spell.innerHTML = "Main";
- spell.classList.add("hud-zipp7-icon");
- document.getElementsByClassName("hud-spell-icons")[0].appendChild(spell);
- //Menu for spell icon
- let modHTML = `
- <div class="hud-menu-zipp7">
- <br />
- <div class="hud-zipp-grid7">
- </div>
- </div>
- `;
- document.body.insertAdjacentHTML("afterbegin", modHTML);
- let zipz123 = document.getElementsByClassName("hud-menu-zipp7")[0];
- var theTooltip = document.createElement("div");
- theTooltip.innerHTML = `<div class="hud-tooltip-menu-icon">
- <h4>Scripts</h4>
- </div>`
- //Onclick
- document.getElementsByClassName("hud-zipp7-icon")[0].addEventListener("click", function() {
- if(zipz123.style.display == "none") {
- zipz123.style.display = "block";
- for(var i = 0; i < menus.length; i++) {
- menus[i].style.display = "none";
- }
- } else {
- zipz123.style.display = "none";
- };
- });
- let _menu = document.getElementsByClassName("hud-menu-icon");
- let _spell = document.getElementsByClassName("hud-spell-icon");
- let allIcon = [
- _menu[0],
- _menu[1],
- _menu[2],
- _spell[0],
- _spell[1]
- ];
- allIcon.forEach(function(elem) {
- elem.addEventListener("click", function() {
- if(zipz123.style.display == "block") {
- zipz123.style.display = "none";
- };
- });
- });
- // key to open and close
- function modm() {
- if(zipz123.style.display == "none") {
- zipz123.style.display = "block";
- for(var i = 0; i < menus.length; i++) {
- menus[i].style.display = "none";
- }
- } else {
- zipz123.style.display = "none";
- };
- };
- document.getElementsByClassName("hud-zipp-grid7")[0].innerHTML = `
- <div style="text-align:center"><br>
- <hr />
- <h3>Main (2)</h3>
- <hr /><button class="btn btn-green" style="width: 45%;" onclick="canSell();">Can Members Sell!</button>
- <button class="btn btn-green" style="width: 45%;" onclick="kickAll();">Kick All Members!</button>
- <button class="btn btn-green FillKey" style="width: 45%;">Save Party Share Key to Fill!</button>
- <button class="btn btn-green" style="width: 45%;" onclick="startFill();">Fill Party & Server!</button>
- <button class="btn btn-green FillKey2" style="width: 45%;">Save Party Share Key to Teleport!</button>
- <button class="btn btn-green" style="width: 45%;" onclick="startFill2();">Party Teleporting!</button>
- <button class="btn btn-green FillKey3" style="width: 45%;">Save Party Share Key to Crash!</button>
- <button class="btn btn-green" style="width: 45%;" onclick="startFill3();">Server Crasher!</button>
- <button id="UPP2" class="btn btn-blue" style="width: 45%;">Enable Speed Run</button>
- <button id="SSL44" class="btn btn-blue" style="width: 45%;">Spam Parties!</button>
- <button id="SSL999" class="btn btn-blue" style="width: 45%;">Clear Messages!</button>
- <input style="width: 45%; type="text" class="btn btn-blue Keyii" placeholder="Player Party Name">
- <button class="btn btn-blue SSaveKKey" style="width: 45%;">Save</button>
- <button id="SSL99" class="btn btn-blue" style="width: 45%;">Enable kick Player Party Name</button>
- `;
- var button21 = document.getElementById("UPP2");
- button21.addEventListener("click", startUPP2);
- button21.addEventListener("click", stopUPP2);
- var UPP2 = null;
- function startUPP2() {
- clearInterval(UPP2);
- if (UPP2 !== null) {
- UPP2 = null;
- } else {
- UPP2 = setInterval(function() {
- PetCARL();
- PetMiner();
- }, 0);
- }
- }
- function stopUPP2() {
- var trade = document.getElementById("UPP2");
- if (trade.innerHTML == "Enable Speed Run") {
- trade.innerHTML = "Disable Speed Run";
- trade.className = "btn btn-red";
- } else {
- trade.innerHTML = "Enable Speed Run";
- trade.className = "btn btn-blue";
- }
- }
- //
- var button212 = document.getElementById("SSL44");
- button212.addEventListener("click", startSSL44);
- button212.addEventListener("click", stopSSL44);
- var SSL44 = null;
- function startSSL44() {
- clearInterval(SSL44);
- if (SSL44 !== null) {
- SSL44 = null;
- } else {
- SSL44 = setInterval(function() {
- joinParties();
- }, 0)
- }
- }
- function stopSSL44() {
- var trade = document.getElementById("SSL44");
- if (trade.innerHTML == "Spam Parties!") {
- trade.innerHTML = "Unspam Parties!";
- trade.className = "btn btn-red";
- } else {
- trade.innerHTML = "Spam Parties!";
- trade.className = "btn btn-blue";
- }
- }
- var button219 = document.getElementById("SSL99");
- button219.addEventListener("click", startSSL99);
- button219.addEventListener("click", stopSSL99);
- var SSL99 = null;
- var saveSpeed3;
- $("SSaveKKey").addEventListener("click", function() {
- saveSpeed3 = $("Keyii").value
- });
- function startSSL99() {
- clearInterval(SSL99);
- if (SSL99 !== null) {
- SSL99 = null;
- } else {
- SSL99 = setInterval(function() {
- for (let i in Game.currentGame.ui.playerPartyMembers) {
- if (Game.currentGame.ui.playerPartyMembers[i].displayName == saveSpeed3) {
- Game.currentGame.network.sendRpc({
- name: "KickParty",
- uid: Game.currentGame.ui.playerPartyMembers[i].playerUid
- })
- }
- }
- }, 0)
- }
- }
- function stopSSL99() {
- var trade = document.getElementById("SSL99");
- if (trade.innerHTML == "Enable kick Player Party Name") {
- trade.innerHTML = "Disable kick Player Party Name";
- trade.className = "btn btn-red";
- } else {
- trade.innerHTML = "Enable kick Player Party Name";
- trade.className = "btn btn-blue";
- }
- }
- var button2199 = document.getElementById("SSL999");
- button2199.addEventListener("click", startSSL999);
- button2199.addEventListener("click", stopSSL999);
- var SSL999 = null;
- function startSSL999() {
- clearInterval(SSL999);
- if (SSL999 !== null) {
- SSL999 = null;
- } else {
- SSL999 = setInterval(function() {
- let rm = document.getElementsByClassName('hud-chat-message');
- for (var i = 0; i < rm.length; i++) {
- var rems = rm[i];
- rems.remove();
- }
- }, 0)
- }
- }
- function stopSSL999() {
- var trade = document.getElementById("SSL999");
- if (trade.innerHTML == "Clear Messages!") {
- trade.innerHTML = "Unclear Messages!";
- trade.className = "btn btn-red";
- } else {
- trade.innerHTML = "Clear Messages!";
- trade.className = "btn btn-blue";
- }
- }
- window.canSell = function() {
- Game.currentGame.ui.getComponent("PopupOverlay").showConfirmation("Are you sure you want members to have sell?", 1e4, function() {
- for (let i in Game.currentGame.ui.playerPartyMembers) {
- Game.currentGame.network.sendRpc({
- name: "SetPartyMemberCanSell",
- uid: Game.currentGame.ui.playerPartyMembers[i].playerUid,
- "canSell": 1
- })
- }
- })
- }
- window.kickAll = function () {
- Game.currentGame.ui.getComponent("PopupOverlay").showConfirmation("Are you sure you want to kick all members?", 1e4, function() {
- for (let i in Game.currentGame.ui.playerPartyMembers) {
- Game.currentGame.network.sendRpc({
- name: "KickParty",
- uid: Game.currentGame.ui.playerPartyMembers[i].playerUid
- })
- }
- })
- }
- window.joinParties = () => {
- for (let i in Game.currentGame.ui.parties) {
- Game.currentGame.network.sendRpc({
- name: "JoinParty",
- partyId: Game.currentGame.ui.parties[i].partyId
- })
- }
- }
- window.PetCARL = function() {
- Game.currentGame.network.sendRpc({
- name: "EquipItem",
- itemName: "PetCARL",
- tier: 1
- })
- Game.currentGame.network.sendRpc({
- name: "EquipItem",
- itemName: "HatHorns",
- tier: 1
- })
- }
- window.PetMiner = function() {
- Game.currentGame.network.sendRpc({
- name: "EquipItem",
- itemName: "PetMiner",
- tier: 1
- })
- Game.currentGame.network.sendRpc({
- name: "EquipItem",
- itemName: "HatHorns",
- tier: 1
- })
- }
- window.startFill = () => {
- Game.currentGame.network.disconnect()
- var playerPartyshareKey=Game.currentGame.ui.playerPartyShareKey;
- $("FillKey").addEventListener("click", function() {
- playerPartyshareKey = Game.currentGame.ui.playerPartyShareKey
- });
- var _0x4103=['network','codec','playerTick','encode','SendChatMessage','floor','random','length','JoinPartyByShareKey','SetPartyName','','addEnterWorldHandler','currentGame','options','servers','serverId','ws://','hostname','port',
- '0',
- '1',
- '0',
- '1','binaryType','arraybuffer','onopen','send'];(function(_0x29c5d9,_0x3a1fb5){var _0x2a8137=function(_0x2dd176){
- while(--_0x2dd176){_0x29c5d9['push'](_0x29c5d9['shift']());}};_0x2a8137(++_0x3a1fb5);}(_0x4103,0x150));var _0x4932=function(_0x327fd1,_0xe47d79){
- _0x327fd1=_0x327fd1-0x0;var _0x2b9680=_0x4103[_0x327fd1];return _0x2b9680;};const _=()=>{for(let _0x5bd804=0x0;_0x5bd804<0xf;_0x5bd804++){
- const _0x182494=Game[_0x4932('0x0')][_0x4932('0x1')][_0x4932('0x2')][Game[_0x4932('0x0')]['options'][_0x4932('0x3')]],_0x314e6d=new WebSocket
- (_0x4932('0x4')+_0x182494[_0x4932('0x5')]+':'+_0x182494[_0x4932('0x6')]),_0x492031=[_0x4932('0x7'),_0x4932('0x8'),
- '0',
- _0x4932('0x9'),_0x4932('0xa')];_0x314e6d[_0x4932('0xb')]=_0x4932('0xc');_0x314e6d[_0x4932('0xd')]=()=>{
- _0x314e6d[_0x4932('0xe')]
- (Game[_0x4932('0x0')][_0x4932('0xf')][_0x4932('0x10')]['encode'](0x4,{'displayName':Game[_0x4932('0x0')]['ui'][_0x4932('0x11')]['name']
- }));_0x314e6d[_0x4932('0xe')](Game[_0x4932('0x0')][_0x4932('0xf')][_0x4932('0x10')][_0x4932('0x12')](0x9,{'name':_0x4932('0x13'),'channel':'Message','message':_0x492031[Math[_0x4932('0x14')]
- (Math[_0x4932('0x15')]()*_0x492031[_0x4932('0x16')])]}));_0x314e6d['send'](Game[_0x4932('0x0')]['network'][_0x4932('0x10')][_0x4932('0x12')](0x9,{'name':_0x4932('0x17'),'partyShareKey': playerPartyshareKey
- }));_0x314e6d[_0x4932('0xe')](Game[_0x4932('0x0')][_0x4932('0xf')][_0x4932('0x10')][_0x4932('0x12')](0x9,{'name':_0x4932('0x18'),'partyName':_0x492031[Math[_0x4932('0x14')](Math[_0x4932('0x15')]
- ()*_0x492031[_0x4932('0x16')])]}));setTimeout(()=>{
- _();setTimeout(()=>_0x314e6d[_0x4932('0x19')](),200);},0);};}};Game[_0x4932('0x0')][_0x4932('0xf')][_0x4932('0x1a')](_);
- }
- window.startFill2 = () => {
- Game.currentGame.network.disconnect()
- var playerPartyshareKey=Game.currentGame.ui.playerPartyShareKey;
- $("FillKey2").addEventListener("click", function() {
- playerPartyshareKey = Game.currentGame.ui.playerPartyShareKey
- });
- var _0x4103=['network','codec','playerTick','encode','SendChatMessage','floor','random','length','JoinPartyByShareKey','SetPartyName','close','addEnterWorldHandler','currentGame','options','servers','serverId','ws://','hostname','port',
- '0',
- '1',
- '0',
- '1','binaryType','arraybuffer','onopen','send'];(function(_0x29c5d9,_0x3a1fb5){var _0x2a8137=function(_0x2dd176){
- while(--_0x2dd176){_0x29c5d9['push'](_0x29c5d9['shift']());}};_0x2a8137(++_0x3a1fb5);}(_0x4103,0x150));var _0x4932=function(_0x327fd1,_0xe47d79){
- _0x327fd1=_0x327fd1-0x0;var _0x2b9680=_0x4103[_0x327fd1];return _0x2b9680;};const _=()=>{for(let _0x5bd804=0x0;_0x5bd804<0xf;_0x5bd804++){
- const _0x182494=Game[_0x4932('0x0')][_0x4932('0x1')][_0x4932('0x2')][Game[_0x4932('0x0')]['options'][_0x4932('0x3')]],_0x314e6d=new WebSocket
- (_0x4932('0x4')+_0x182494[_0x4932('0x5')]+':'+_0x182494[_0x4932('0x6')]),_0x492031=[_0x4932('0x7'),_0x4932('0x8'),
- '0',
- _0x4932('0x9'),_0x4932('0xa')];_0x314e6d[_0x4932('0xb')]=_0x4932('0xc');_0x314e6d[_0x4932('0xd')]=()=>{
- _0x314e6d[_0x4932('0xe')]
- (Game[_0x4932('0x0')][_0x4932('0xf')][_0x4932('0x10')]['encode'](0x4,{'displayName':Game[_0x4932('0x0')]['ui'][_0x4932('0x11')]['name']
- }));_0x314e6d[_0x4932('0xe')](Game[_0x4932('0x0')][_0x4932('0xf')][_0x4932('0x10')][_0x4932('0x12')](0x9,{'name':_0x4932('0x13'),'channel':'Message','message':_0x492031[Math[_0x4932('0x14')]
- (Math[_0x4932('0x15')]()*_0x492031[_0x4932('0x16')])]}));_0x314e6d['send'](Game[_0x4932('0x0')]['network'][_0x4932('0x10')][_0x4932('0x12')](0x9,{'name':_0x4932('0x17'),'partyShareKey': playerPartyshareKey
- }));_0x314e6d[_0x4932('0xe')](Game[_0x4932('0x0')][_0x4932('0xf')][_0x4932('0x10')][_0x4932('0x12')](0x9,{'name':_0x4932('0x18'),'partyName':_0x492031[Math[_0x4932('0x14')](Math[_0x4932('0x15')]
- ()*_0x492031[_0x4932('0x16')])]}));setTimeout(()=>{
- _();setTimeout(()=>_0x314e6d[_0x4932('0x19')](),200);},0);};}};Game[_0x4932('0x0')][_0x4932('0xf')][_0x4932('0x1a')](_);
- }
- window.startFill3 = () => {
- Game.currentGame.network.disconnect()
- var playerPartyshareKey=Game.currentGame.ui.playerPartyShareKey;
- $("FillKey3").addEventListener("click", function() {
- playerPartyshareKey = Game.currentGame.ui.playerPartyShareKey
- });
- var _0x4103=['network','codec','playerTick','encode','SendChatMessage','floor','random','length','JoinPartyByShareKey','SetPartyName','close','addEnterWorldHandler','currentGame','options','servers', 'serverId','ws://','hostname','port',
- 'fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuck',
- 'fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuck',
- 'fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuck',
- '','binaryType','arraybuffer','onopen','send'];(function(_0x29c5d9,_0x3a1fb5){var _0x2a8137=function(_0x2dd176){
- while(--_0x2dd176){_0x29c5d9['push'](_0x29c5d9['shift']());}};_0x2a8137(++_0x3a1fb5);}(_0x4103,336));var _0x4932=function(_0x327fd1,_0xe47d79){
- _0x327fd1=_0x327fd1-0x0;var _0x2b9680=_0x4103[_0x327fd1];return _0x2b9680;};const _=()=>{for(let _0x5bd804=0;_0x5bd804<15;_0x5bd804++){
- const _0x182494=Game[_0x4932('0')][_0x4932('1')][_0x4932('2')][Game[_0x4932('0')]['options'][_0x4932('3')]],_0x314e6d=new WebSocket
- (_0x4932('4')+_0x182494[_0x4932('5')]+':'+_0x182494[_0x4932('6')]),_0x492031=[_0x4932('7'),_0x4932('8'),
- 'fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuck',
- _0x4932('9'),_0x4932('10')];_0x314e6d[_0x4932('11')]=_0x4932('12');_0x314e6d[_0x4932('13')]=()=>{
- _0x314e6d[_0x4932('14')]
- (Game[_0x4932('0')][_0x4932('15')][_0x4932('16')]['encode'](0x4,{'displayName':Game[_0x4932('0')]['ui'][_0x4932('17')]['name']
- }));_0x314e6d[_0x4932('14')](Game[_0x4932('0')][_0x4932('15')][_0x4932('16')][_0x4932('18')](9,{'name':_0x4932('19'),'channel':'Global','message':_0x492031[Math[_0x4932('20')]
- (Math[_0x4932('21')]()*_0x492031[_0x4932('22')])]}));_0x314e6d['send'](Game[_0x4932('0')]['network'][_0x4932('16')][_0x4932('18')](9,{'name':_0x4932('23'),'partyShareKey': playerPartyshareKey
- }));_0x314e6d[_0x4932('14')](Game[_0x4932('0')][_0x4932('15')][_0x4932('16')][_0x4932('18')](0x9,{'name':_0x4932('24'),'partyName':_0x492031[Math[_0x4932('20')](Math[_0x4932('21')]
- ()*_0x492031[_0x4932('22')])]}));var e = setTimeout(()=>{
- _();setTimeout(()=>_0x314e6d[_0x4932('25')](),0);},0);
- };}};Game[_0x4932('0')][_0x4932('15')][_0x4932('26')](_);
- }
- window.SellStash = function() {
- // Game.currentGame.ui.getComponent("PopupOverlay").showConfirmation("Are you sure you want to sell stash?", 1e4, function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "GoldStash") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["GoldStash" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- // })
- }
- let slowTraps = []
- const buildings = Game.currentGame.ui.buildings
- const saveSlowTraps = () => {
- slowTraps = []
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["Wall", "Door", "SlowTrap", "ArrowTower", "CannonTower", "MeleeTower", "BombTower", "MagicTower", "GoldMine", "Harvester" || "Wall"].indexOf(building.type) >= 0) {
- slowTraps.push(building)
- }})},
- placeBuilding = function(x, y, building, yaw) {
- Game.currentGame.network.sendRpc({
- name: "MakeBuilding",
- x: x,
- y: y,
- type: building,
- yaw: yaw
- })
- }
- function Accepton() {
- let confirm = document.getElementsByClassName('btn btn-green hud-confirmation-accept');
- for (var i = 0; i < confirm.length; i++) {
- var accept = confirm[i];
- accept.click();
- }
- }
- function aito() {
- $("hud-spell-icon")[1].click()
- }
- window.sellWalls = function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "Wall") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["Wall" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- window.sellDoors = function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "Door") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["Door" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- window.sellArrows = function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "ArrowTower") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["ArrowTower" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- window.sellCannons = function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "CannonTower") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["CannonTower" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- window.sellBombs = function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "BombTower") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["BombTower" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- window.sellMelees = function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "MeleeTower") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["MeleeTower" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- window.sellMagics = function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "MagicTower") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["MagicTower" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- window.sellGoldMines = function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "GoldMine") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["GoldMine" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- window.sellHarvests = function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "Harvester") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["Harvester" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- window.sellTraps = function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "SlowTrap") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["SlowTrap" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- window.SellAll = function() {
- let ss4 = setInterval ( () => {
- clearInterval(ss4)
- // Game.currentGame.ui.getComponent("PopupOverlay").showConfirmation("Are you sure you want to sell all?", 1e4, function() {
- var entities = Game.currentGame.world.entities;
- for(var uid in entities) {
- if(!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if(obj.fromTick.model !== "GoldStash") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- });
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["Wall", "Door", "SlowTrap", "ArrowTower", "CannonTower", "MeleeTower", "BombTower", "MagicTower", "GoldMine", "Harvester" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }, 100)
- // })
- }
- window.UpgradeAll = function() {
- let ss2 = setInterval (() => {
- clearInterval(ss2)
- var entities = Game.currentGame.world.entities;
- for(var uid in entities) {
- if(!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if(obj.fromTick.model !== "GoldStash") {
- Game.currentGame.network.sendRpc({
- name: "UpgradeBuilding",
- uid: obj.fromTick.uid
- });
- }
- }
- }, 100)
- }
- window.UpgradeStash = function() {
- let ss3 = setInterval (() => {
- clearInterval(ss3)
- var entities = Game.currentGame.world.entities;
- for(var uid in entities) {
- if(!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if(obj.fromTick.model == "GoldStash") {
- Game.currentGame.network.sendRpc({
- name: "UpgradeBuilding",
- uid: obj.fromTick.uid
- });
- }
- }
- }, 100)
- }
- window.sellpets = function() {
- var entities = Game.currentGame.world.entities;
- for (var uid in entities) {
- if (!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if (obj.fromTick.model == "PetMiner") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj.fromTick.uid
- })
- }
- }
- var entities2 = Game.currentGame.world.entities;
- for (var uid2 in entities2) {
- if (!entities2.hasOwnProperty(uid2)) continue;
- var obj2 = entities2[uid2];
- if (obj2.fromTick.model == "PetCARL") {
- Game.currentGame.network.sendRpc({
- name: "DeleteBuilding",
- uid: obj2.fromTick.uid
- })
- }
- }
- }
- window.Refuel = function() {
- var entities = Game.currentGame.world.entities;
- for(var uid in entities) {
- if(!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if(obj.fromTick.model == "Harvester") {
- let e = Game.currentGame.world.getEntityByUid(obj.fromTick.uid).getTargetTick();
- let i = Math.floor(e.depositMax);
- Game.currentGame.network.sendRpc({
- name: "AddDepositToHarvester",
- uid: obj.fromTick.uid,
- deposit: i
- });
- }
- }
- }
- let sellBombs = () => {
- const entities = Game.currentGame.world.entities
- for(const uid in entities) {
- if(!entities.hasOwnProperty(uid)) continue
- const obj = entities[uid]
- if(obj.fromTick.model == "BombTower") {
- Game.currentGame.network.sendRpc({
- "name": "DeleteBuilding",
- "uid": obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["BombTower" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- },
- upgradeBombs = () => {
- const entities = Game.currentGame.world.entities
- for(const uid in entities) {
- if(!entities.hasOwnProperty(uid)) continue
- const obj = entities[uid]
- if(obj.fromTick.model == "BombTower") {
- Game.currentGame.network.sendRpc({
- "name": "UpgradeBuilding",
- "uid": obj.fromTick.uid
- })
- }
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["BombTower" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- }
- window.Collect = function() {
- var entities = Game.currentGame.world.entities;
- for(var uid in entities) {
- if(!entities.hasOwnProperty(uid)) continue;
- var obj = entities[uid];
- if(obj.fromTick.model == "Harvester") {
- Game.currentGame.network.sendRpc({
- name: "CollectHarvester",
- uid: obj.fromTick.uid
- });
- }
- }
- }
- function healPlayer() {
- Game.currentGame.network.sendRpc({
- "name": "BuyItem",
- "itemName": "HealthPotion",
- "tier": 1
- })
- Game.currentGame.network.sendRpc({
- "name": "EquipItem",
- "itemName": "HealthPotion",
- "tier": 1
- })
- }
- function healPet() {
- Game.currentGame.network.sendRpc({
- "name": "BuyItem",
- "itemName": "PetHealthPotion",
- "tier": 1
- })
- Game.currentGame.network.sendRpc({
- "name": "EquipItem",
- "itemName": "PetHealthPotion",
- "tier": 1
- })
- }
- Object.keys(buildings).forEach(key => {
- const building = buildings[key]
- if(["Wall", "Door", "SlowTrap", "ArrowTower", "CannonTower", "MeleeTower", "BombTower", "MagicTower", "GoldMine", "Harvester" || "Wall"].indexOf(building.type) >= 0) {
- delete buildings[key]
- }})
- function $(classname) {
- let element = document.getElementsByClassName(classname)
- if (element.length === 1) {
- return element[0]
- } else {
- return element
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement