Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 221.87 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Icons script (Main 1 + Main 2)
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author You
  7. // @match zombs.io
  8. // @grant none
  9. // ==/UserScript==
  10. let MainScriptOnload = setTimeout(()=>{s1();},100)
  11. let AutoBuildScriptOnload = setTimeout(()=>{s2();},200)
  12. let BaseSaverScriptOnload = setTimeout(()=>{s3()},300)
  13. let TowerHealScriptOnload = setTimeout(()=>{s4()},400)
  14. let JoinPartyiesAndLeaveParties = setTimeout(()=>{s5()},500)
  15. let TowerFreezeScriptOnload = setTimeout(()=>{s6()},600)
  16. let MainScript2Onload = setTimeout(()=>{s7()},700)
  17.  
  18. window.s1 = function() {
  19. let css2 = `
  20. .btn:hover {
  21. cursor: pointer;
  22. }
  23. .btn-blue {
  24. background-color: #144b7a;
  25. }
  26. .btn-blue:hover .btn-blue:active {
  27. background-color: #4fa7ee;
  28. }
  29. .box {
  30. display: block;
  31. width: 100%;
  32. height: 50px;
  33. line-height: 34px;
  34. padding: 8px 14px;
  35. margin: 0 0 10px;
  36. background: #eee;
  37. border: 0;
  38. font-size: 14px;
  39. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  40. border-radius: 4px;
  41. }
  42. .codeIn, .joinOut {
  43. height: 50px;
  44. }
  45. .hud-menu-zipp {
  46. display: none;
  47. position: fixed;
  48. top: 48%;
  49. left: 50%;
  50. width: 600px;
  51. height: 470px;
  52. margin: -270px 0 0 -300px;
  53. padding: 20px;
  54. background: rgba(0, 0, 0, 0.6);
  55. color: #eee;
  56. border-radius: 4px;
  57. z-index: 15;
  58. }
  59. .hud-menu-zipp h3 {
  60. display: block;
  61. margin: 0;
  62. line-height: 20px;
  63. }
  64. .hud-menu-zipp .hud-zipp-grid {
  65. display: block;
  66. height: 380px;
  67. padding: 10px;
  68. margin-top: 18px;
  69. background: rgba(0, 0, 0, 0.2);
  70. }
  71. .hud-spell-icons .hud-spell-icon[data-type="Zippity"]::before {
  72. background-image: url("https://cdn2.iconfinder.com/data/icons/atrous/512/hammer_tool-512.png");
  73. }
  74.  
  75. .hud-menu-zipp .hud-the-tab {
  76. position: relative;
  77. height: 40px;
  78. line-height: 40px;
  79. margin: 20px;
  80. border: 0px solid rgb(0, 0, 0, 0);
  81. }
  82. .hud-menu-zipp .hud-the-tab {
  83. display: block;
  84. float: left;
  85. padding: 0 14px;
  86. margin: 0 1px 0 0;
  87. font-size: 14px;
  88. background: rgba(0, 0, 0, 0.4);
  89. color: rgba(255, 255, 255, 0.4);
  90. transition: all 0.15s ease-in-out;
  91. }
  92. .hud-menu-zipp .hud-the-tab:hover {
  93. background: rgba(0, 0, 0, 0.2);
  94. color: #eee;
  95. cursor: pointer;
  96. }
  97. `;
  98.  
  99. let styles = document.createElement("style");
  100. styles.appendChild(document.createTextNode(css2));
  101. document.head.appendChild(styles);
  102. var menus = document.getElementsByClassName("hud-menu");
  103.  
  104. // class changing
  105. document.getElementsByClassName("hud-intro-form")[0].style.height = "300px";
  106. document.getElementsByClassName("hud-intro-play")[0].setAttribute("class", "btn btn-blue hud-intro-play");
  107.  
  108. // spell icon
  109. let spell = document.createElement("div");
  110. spell.classList.add("hud-spell-icon");
  111. spell.setAttribute("data-type", "Zippity")
  112. spell.innerHTML = `<div class="hud-tooltip-menu-icon">
  113. <h4>Scripts</h4>
  114. </div>`
  115. spell.innerHTML = "Main";
  116. spell.classList.add("hud-zipp-icon");
  117. document.getElementsByClassName("hud-spell-icons")[0].appendChild(spell);
  118.  
  119. //Menu for spell icon
  120. let modHTML = `
  121. <div class="hud-menu-zipp">
  122. <br />
  123. <div class="hud-zipp-grid">
  124. </div>
  125. </div>
  126. `;
  127. document.body.insertAdjacentHTML("afterbegin", modHTML);
  128. let zipz123 = document.getElementsByClassName("hud-menu-zipp")[0];
  129. var theTooltip = document.createElement("div");
  130. theTooltip.innerHTML = `<div class="hud-tooltip-menu-icon">
  131. <h4>Scripts</h4>
  132. </div>`
  133. //Onclick
  134. document.getElementsByClassName("hud-zipp-icon")[0].addEventListener("click", function() {
  135. if(zipz123.style.display == "none") {
  136. zipz123.style.display = "block";
  137. for(var i = 0; i < menus.length; i++) {
  138. menus[i].style.display = "none";
  139. }
  140. } else {
  141. zipz123.style.display = "none";
  142. };
  143. });
  144.  
  145. let _menu = document.getElementsByClassName("hud-menu-icon");
  146. let _spell = document.getElementsByClassName("hud-spell-icon");
  147. let allIcon = [
  148. _menu[0],
  149. _menu[1],
  150. _menu[2],
  151. _spell[0],
  152. _spell[1]
  153. ];
  154.  
  155. allIcon.forEach(function(elem) {
  156. elem.addEventListener("click", function() {
  157. if(zipz123.style.display == "block") {
  158. zipz123.style.display = "none";
  159. };
  160. });
  161. });
  162.  
  163. // key to open and close
  164. function modm() {
  165. if(zipz123.style.display == "none") {
  166. zipz123.style.display = "block";
  167. for(var i = 0; i < menus.length; i++) {
  168. menus[i].style.display = "none";
  169. }
  170. } else {
  171. zipz123.style.display = "none";
  172. };
  173. };
  174. document.getElementsByClassName("hud-zipp-grid")[0].innerHTML = `
  175. <div style="text-align:center"><br>
  176. <hr />
  177. <h3>Main</h3>
  178. <hr /><button class="btn btn-green" style="width: 45%;" onclick="SellStash();">Sell Stash!</button>
  179.  
  180. <button class="btn btn-green" style="width: 45%;" onclick="SellAll();">Sell All!</button>
  181.  
  182. <button class="btn btn-green" style="width: 45%;" onclick="sellWalls();">Sell Walls!</button>
  183.  
  184. <button class="btn btn-green" style="width: 45%;" onclick="sellDoors();">Sell Doors!</button>
  185.  
  186. <button class="btn btn-green" style="width: 45%;" onclick="sellTraps();">Sell Traps!</button>
  187. <button class="btn btn-green" style="width: 45%;" onclick="sellArrows();">Sell Arrows!</button>
  188. <button class="btn btn-green" style="width: 45%;" onclick="sellMagics();">Sell Mages!</button>
  189.  
  190. <button class="btn btn-green" style="width: 45%;" onclick="sellpets();">Sell Pets!</button>
  191.  
  192. <button id="UPP" class="btn btn-blue" style="width: 45%;">Enable Upgrade All</button>
  193.  
  194. <button id="AHRC" class="btn btn-blue" style="width: 45%;">Enable AHRC</button>
  195.  
  196. <button id="bow" class="btn btn-blue" style="width: 45%;">Enable Autobow</button>
  197. <button id="SSL4" class="btn btn-blue" style="width: 45%;">Enable AUT</button>
  198.  
  199. <button id="SSL" class="btn btn-blue" style="width: 45%;">Enable Accept All</button>
  200.  
  201. <button id="SSL9" class="btn btn-blue" style="width: 45%;">Enable kick all</button>
  202.  
  203. `;
  204. var button21 = document.getElementById("UPP");
  205. button21.addEventListener("click", startUPP);
  206. button21.addEventListener("click", stopUPP);
  207. var UPP = null;
  208. function startUPP() {
  209. clearInterval(UPP);
  210. if (UPP !== null) {
  211. UPP = null;
  212. } else {
  213.  
  214. UPP = setInterval(function() {
  215. UpgradeAll();
  216. UpgradeStash();
  217. }, 50);
  218. }
  219. }
  220. function stopUPP() {
  221. var trade = document.getElementById("UPP");
  222. if (trade.innerHTML == "Enable Upgrade All") {
  223. trade.innerHTML = "Disable Upgrade All";
  224. trade.className = "btn btn-red";
  225. } else {
  226. trade.innerHTML = "Enable Upgrade All";
  227. trade.className = "btn btn-blue";
  228. }
  229. }
  230. //
  231. var button20 = document.getElementById("SSL");
  232. button20.addEventListener("click", startSSL);
  233. button20.addEventListener("click", stopSSL);
  234. var SSL = null;
  235. function startSSL() {
  236. clearInterval(SSL);
  237. if (SSL !== null) {
  238. SSL = null;
  239. } else {
  240.  
  241. SSL = setInterval(function() {
  242. Accepton();
  243. }, 0);
  244. }
  245. }
  246. function stopSSL() {
  247. var trade = document.getElementById("SSL");
  248. if (trade.innerHTML == "Enable Accept All") {
  249. trade.innerHTML = "Disable Accept All";
  250. trade.className = "btn btn-red";
  251.  
  252. } else {
  253. trade.innerHTML = "Enable Accept All";
  254. trade.className = "btn btn-blue";
  255. }
  256. }
  257. //
  258.  
  259. var button212 = document.getElementById("SSL4");
  260. button212.addEventListener("click", startSSL4);
  261. button212.addEventListener("click", stopSSL4);
  262. var SSL4 = null;
  263. function startSSL4() {
  264. clearInterval(SSL4);
  265. if (SSL4 !== null) {
  266. SSL4 = null;
  267. } else {
  268.  
  269. SSL4 = setInterval(function() {
  270. aito()
  271. }, 500)
  272. }
  273. }
  274.  
  275. function stopSSL4() {
  276. var trade = document.getElementById("SSL4");
  277. if (trade.innerHTML == "Enable AUT") {
  278. trade.innerHTML = "Disable AUT";
  279. trade.className = "btn btn-red";
  280. } else {
  281. trade.innerHTML = "Enable AUT";
  282. trade.className = "btn btn-blue";
  283. }
  284. }
  285. //
  286. var button22 = document.getElementById("AHRC");
  287. button22.addEventListener("click", startAHRC);
  288. button22.addEventListener("click", stopAHRC);
  289. var AHRC = null;
  290. function startAHRC() {
  291. clearInterval(AHRC);
  292. if (AHRC !== null) {
  293. AHRC = null;
  294. } else {
  295.  
  296. AHRC = setInterval(function() {
  297. Collect();
  298. Refuel();
  299. }, 1000);
  300. }
  301. }
  302. function stopAHRC() {
  303. var trade = document.getElementById("AHRC");
  304. if (trade.innerHTML == "Enable AHRC") {
  305. trade.innerHTML = "Disable AHRC";
  306. trade.className = "btn btn-red";
  307. } else {
  308. trade.innerHTML = "Enable AHRC";
  309. trade.className = "btn btn-blue";
  310. }
  311. }
  312.  
  313. //AutoBow
  314. var button25 = document.getElementById("bow");
  315. button25.addEventListener("click", startbow);
  316. button25.addEventListener("click", stopbow);
  317. var bow = null;
  318. function startbow() {
  319. clearInterval(bow);
  320. if (bow !== null) {
  321. bow = null;
  322. } else {
  323. if(Game.currentGame.ui.inventory.Bow) {
  324. Game.currentGame.network.sendRpc({
  325. name: "EquipItem",
  326. itemName: "Bow",
  327. tier: Game.currentGame.ui.inventory.Bow.tier
  328. })
  329. bow = setInterval(function() {
  330. Game.currentGame.inputPacketScheduler.scheduleInput({
  331. space: 1
  332. })
  333. Game.currentGame.inputPacketScheduler.scheduleInput({
  334. space: 0
  335. })
  336. Game.currentGame.inputPacketScheduler.scheduleInput({
  337. space: 0
  338. })
  339. }, 0);
  340. }
  341. }
  342. }
  343. function stopbow() {
  344. var trade = document.getElementById("bow");
  345. if (trade.innerHTML == "Enable Autobow") {
  346. trade.innerHTML = "Disable Autobow";
  347. trade.className = "btn btn-red";
  348. } else {
  349. trade.innerHTML = "Enable Autobow";
  350. trade.className = "btn btn-blue";
  351. }
  352. }
  353. var button219 = document.getElementById("SSL9");
  354. button219.addEventListener("click", startSSL9);
  355. button219.addEventListener("click", stopSSL9);
  356. var SSL9 = null;
  357. var saveSpeed3;
  358. function startSSL9() {
  359. clearInterval(SSL9);
  360. if (SSL9 !== null) {
  361. SSL9 = null;
  362. } else {
  363.  
  364. SSL9 = setInterval(function() {
  365. for (let i in Game.currentGame.ui.playerPartyMembers) {
  366. Game.currentGame.network.sendRpc({
  367. name: "KickParty",
  368. uid: Game.currentGame.ui.playerPartyMembers[i].playerUid
  369. })
  370. }
  371. }, 0)
  372. }
  373. }
  374.  
  375. function stopSSL9() {
  376. var trade = document.getElementById("SSL9");
  377. if (trade.innerHTML == "Enable kick all") {
  378. trade.innerHTML = "Disable kick all";
  379. trade.className = "btn btn-red";
  380. } else {
  381. trade.innerHTML = "Enable kick all";
  382. trade.className = "btn btn-blue";
  383. }
  384. }
  385.  
  386. Object.keys(buildings).forEach(key => {
  387. const building = buildings[key]
  388. if(["Wall", "Door", "SlowTrap", "ArrowTower", "CannonTower", "MeleeTower", "BombTower", "MagicTower", "GoldMine", "Harvester" || "Wall"].indexOf(building.type) >= 0) {
  389. delete buildings[key]
  390. }})
  391. function $(classname) {
  392. let element = document.getElementsByClassName(classname)
  393. if (element.length === 1) {
  394. return element[0]
  395. } else {
  396. return element
  397. }
  398. }
  399. window.SellStash = function() {
  400. // Game.currentGame.ui.getComponent("PopupOverlay").showConfirmation("Are you sure you want to sell stash?", 1e4, function() {
  401. var entities = Game.currentGame.world.entities;
  402. for (var uid in entities) {
  403. if (!entities.hasOwnProperty(uid)) continue;
  404.  
  405. var obj = entities[uid];
  406. if (obj.fromTick.model == "GoldStash") {
  407. Game.currentGame.network.sendRpc({
  408. name: "DeleteBuilding",
  409. uid: obj.fromTick.uid
  410. })
  411. }
  412. }
  413. Object.keys(buildings).forEach(key => {
  414. const building = buildings[key]
  415. if(["GoldStash" || "Wall"].indexOf(building.type) >= 0) {
  416. delete buildings[key]
  417. }})
  418. // })
  419. }
  420. let slowTraps = []
  421. const buildings = Game.currentGame.ui.buildings
  422. const saveSlowTraps = () => {
  423. slowTraps = []
  424. Object.keys(buildings).forEach(key => {
  425. const building = buildings[key]
  426. if(["Wall", "Door", "SlowTrap", "ArrowTower", "CannonTower", "MeleeTower", "BombTower", "MagicTower", "GoldMine", "Harvester" || "Wall"].indexOf(building.type) >= 0) {
  427. slowTraps.push(building)
  428. }})},
  429. placeBuilding = function(x, y, building, yaw) {
  430. Game.currentGame.network.sendRpc({
  431. name: "MakeBuilding",
  432. x: x,
  433. y: y,
  434. type: building,
  435. yaw: yaw
  436. })
  437. }
  438. function Accepton() {
  439. let confirm = document.getElementsByClassName('btn btn-green hud-confirmation-accept');
  440. for (var i = 0; i < confirm.length; i++) {
  441. var accept = confirm[i];
  442. accept.click();
  443. }
  444. }
  445.  
  446. function aito() {
  447. $("hud-spell-icon")[1].click()
  448. }
  449. window.sellWalls = function() {
  450. var entities = Game.currentGame.world.entities;
  451. for (var uid in entities) {
  452. if (!entities.hasOwnProperty(uid)) continue;
  453.  
  454. var obj = entities[uid];
  455. if (obj.fromTick.model == "Wall") {
  456. Game.currentGame.network.sendRpc({
  457. name: "DeleteBuilding",
  458. uid: obj.fromTick.uid
  459. })
  460. }
  461. }
  462. Object.keys(buildings).forEach(key => {
  463. const building = buildings[key]
  464. if(["Wall" || "Wall"].indexOf(building.type) >= 0) {
  465. delete buildings[key]
  466. }})
  467. }
  468. window.sellDoors = function() {
  469. var entities = Game.currentGame.world.entities;
  470. for (var uid in entities) {
  471. if (!entities.hasOwnProperty(uid)) continue;
  472.  
  473. var obj = entities[uid];
  474. if (obj.fromTick.model == "Door") {
  475. Game.currentGame.network.sendRpc({
  476. name: "DeleteBuilding",
  477. uid: obj.fromTick.uid
  478. })
  479. }
  480. }
  481. Object.keys(buildings).forEach(key => {
  482. const building = buildings[key]
  483. if(["Door" || "Wall"].indexOf(building.type) >= 0) {
  484. delete buildings[key]
  485. }})
  486. }
  487. window.sellArrows = function() {
  488. var entities = Game.currentGame.world.entities;
  489. for (var uid in entities) {
  490. if (!entities.hasOwnProperty(uid)) continue;
  491.  
  492. var obj = entities[uid];
  493. if (obj.fromTick.model == "ArrowTower") {
  494. Game.currentGame.network.sendRpc({
  495. name: "DeleteBuilding",
  496. uid: obj.fromTick.uid
  497. })
  498. }
  499. }
  500. Object.keys(buildings).forEach(key => {
  501. const building = buildings[key]
  502. if(["ArrowTower" || "Wall"].indexOf(building.type) >= 0) {
  503. delete buildings[key]
  504. }})
  505. }
  506. window.sellCannons = function() {
  507. var entities = Game.currentGame.world.entities;
  508. for (var uid in entities) {
  509. if (!entities.hasOwnProperty(uid)) continue;
  510.  
  511. var obj = entities[uid];
  512. if (obj.fromTick.model == "CannonTower") {
  513. Game.currentGame.network.sendRpc({
  514. name: "DeleteBuilding",
  515. uid: obj.fromTick.uid
  516. })
  517. }
  518. }
  519. Object.keys(buildings).forEach(key => {
  520. const building = buildings[key]
  521. if(["CannonTower" || "Wall"].indexOf(building.type) >= 0) {
  522. delete buildings[key]
  523. }})
  524. }
  525. window.sellBombs = function() {
  526. var entities = Game.currentGame.world.entities;
  527. for (var uid in entities) {
  528. if (!entities.hasOwnProperty(uid)) continue;
  529.  
  530. var obj = entities[uid];
  531. if (obj.fromTick.model == "BombTower") {
  532. Game.currentGame.network.sendRpc({
  533. name: "DeleteBuilding",
  534. uid: obj.fromTick.uid
  535. })
  536. }
  537. }
  538. Object.keys(buildings).forEach(key => {
  539. const building = buildings[key]
  540. if(["BombTower" || "Wall"].indexOf(building.type) >= 0) {
  541. delete buildings[key]
  542. }})
  543. }
  544. window.sellMelees = function() {
  545. var entities = Game.currentGame.world.entities;
  546. for (var uid in entities) {
  547. if (!entities.hasOwnProperty(uid)) continue;
  548.  
  549. var obj = entities[uid];
  550. if (obj.fromTick.model == "MeleeTower") {
  551. Game.currentGame.network.sendRpc({
  552. name: "DeleteBuilding",
  553. uid: obj.fromTick.uid
  554. })
  555. }
  556. }
  557. Object.keys(buildings).forEach(key => {
  558. const building = buildings[key]
  559. if(["MeleeTower" || "Wall"].indexOf(building.type) >= 0) {
  560. delete buildings[key]
  561. }})
  562. }
  563. window.sellMagics = function() {
  564. var entities = Game.currentGame.world.entities;
  565. for (var uid in entities) {
  566. if (!entities.hasOwnProperty(uid)) continue;
  567.  
  568. var obj = entities[uid];
  569. if (obj.fromTick.model == "MagicTower") {
  570. Game.currentGame.network.sendRpc({
  571. name: "DeleteBuilding",
  572. uid: obj.fromTick.uid
  573. })
  574. }
  575. }
  576. Object.keys(buildings).forEach(key => {
  577. const building = buildings[key]
  578. if(["MagicTower" || "Wall"].indexOf(building.type) >= 0) {
  579. delete buildings[key]
  580. }})
  581. }
  582. window.sellGoldMines = function() {
  583. var entities = Game.currentGame.world.entities;
  584. for (var uid in entities) {
  585. if (!entities.hasOwnProperty(uid)) continue;
  586.  
  587. var obj = entities[uid];
  588. if (obj.fromTick.model == "GoldMine") {
  589. Game.currentGame.network.sendRpc({
  590. name: "DeleteBuilding",
  591. uid: obj.fromTick.uid
  592. })
  593. }
  594. }
  595. Object.keys(buildings).forEach(key => {
  596. const building = buildings[key]
  597. if(["GoldMine" || "Wall"].indexOf(building.type) >= 0) {
  598. delete buildings[key]
  599. }})
  600. }
  601. window.sellHarvests = function() {
  602. var entities = Game.currentGame.world.entities;
  603. for (var uid in entities) {
  604. if (!entities.hasOwnProperty(uid)) continue;
  605.  
  606. var obj = entities[uid];
  607. if (obj.fromTick.model == "Harvester") {
  608. Game.currentGame.network.sendRpc({
  609. name: "DeleteBuilding",
  610. uid: obj.fromTick.uid
  611. })
  612. }
  613. }
  614. Object.keys(buildings).forEach(key => {
  615. const building = buildings[key]
  616. if(["Harvester" || "Wall"].indexOf(building.type) >= 0) {
  617. delete buildings[key]
  618. }})
  619. }
  620. window.sellTraps = function() {
  621. var entities = Game.currentGame.world.entities;
  622. for (var uid in entities) {
  623. if (!entities.hasOwnProperty(uid)) continue;
  624.  
  625. var obj = entities[uid];
  626. if (obj.fromTick.model == "SlowTrap") {
  627. Game.currentGame.network.sendRpc({
  628. name: "DeleteBuilding",
  629. uid: obj.fromTick.uid
  630. })
  631. }
  632. }
  633. Object.keys(buildings).forEach(key => {
  634. const building = buildings[key]
  635. if(["SlowTrap" || "Wall"].indexOf(building.type) >= 0) {
  636. delete buildings[key]
  637. }})
  638. }
  639. window.SellAll = function() {
  640. let ss4 = setInterval ( () => {
  641. clearInterval(ss4)
  642. // Game.currentGame.ui.getComponent("PopupOverlay").showConfirmation("Are you sure you want to sell all?", 1e4, function() {
  643. var entities = Game.currentGame.world.entities;
  644. for(var uid in entities) {
  645. if(!entities.hasOwnProperty(uid)) continue;
  646. var obj = entities[uid];
  647. if(obj.fromTick.model !== "GoldStash") {
  648. Game.currentGame.network.sendRpc({
  649. name: "DeleteBuilding",
  650. uid: obj.fromTick.uid
  651. });
  652. }
  653. }
  654. Object.keys(buildings).forEach(key => {
  655. const building = buildings[key]
  656. if(["Wall", "Door", "SlowTrap", "ArrowTower", "CannonTower", "MeleeTower", "BombTower", "MagicTower", "GoldMine", "Harvester" || "Wall"].indexOf(building.type) >= 0) {
  657. delete buildings[key]
  658. }})
  659. }, 100)
  660. // })
  661. }
  662.  
  663. window.UpgradeAll = function() {
  664. let ss2 = setInterval (() => {
  665. clearInterval(ss2)
  666. var entities = Game.currentGame.world.entities;
  667. for(var uid in entities) {
  668. if(!entities.hasOwnProperty(uid)) continue;
  669. var obj = entities[uid];
  670. if(obj.fromTick.model !== "GoldStash") {
  671. Game.currentGame.network.sendRpc({
  672. name: "UpgradeBuilding",
  673. uid: obj.fromTick.uid
  674. });
  675. }
  676. }
  677. }, 100)
  678. }
  679.  
  680. window.UpgradeStash = function() {
  681. let ss3 = setInterval (() => {
  682. clearInterval(ss3)
  683. var entities = Game.currentGame.world.entities;
  684. for(var uid in entities) {
  685. if(!entities.hasOwnProperty(uid)) continue;
  686. var obj = entities[uid];
  687. if(obj.fromTick.model == "GoldStash") {
  688. Game.currentGame.network.sendRpc({
  689. name: "UpgradeBuilding",
  690. uid: obj.fromTick.uid
  691. });
  692. }
  693. }
  694. }, 100)
  695. }
  696. window.sellpets = function() {
  697. var entities = Game.currentGame.world.entities;
  698. for (var uid in entities) {
  699. if (!entities.hasOwnProperty(uid)) continue;
  700. var obj = entities[uid];
  701. if (obj.fromTick.model == "PetMiner") {
  702. Game.currentGame.network.sendRpc({
  703. name: "DeleteBuilding",
  704. uid: obj.fromTick.uid
  705. })
  706. }
  707. }
  708. var entities2 = Game.currentGame.world.entities;
  709. for (var uid2 in entities2) {
  710. if (!entities2.hasOwnProperty(uid2)) continue;
  711. var obj2 = entities2[uid2];
  712. if (obj2.fromTick.model == "PetCARL") {
  713. Game.currentGame.network.sendRpc({
  714. name: "DeleteBuilding",
  715. uid: obj2.fromTick.uid
  716. })
  717. }
  718. }
  719. }
  720. window.Refuel = function() {
  721. var entities = Game.currentGame.world.entities;
  722. for(var uid in entities) {
  723. if(!entities.hasOwnProperty(uid)) continue;
  724. var obj = entities[uid];
  725. if(obj.fromTick.model == "Harvester") {
  726. let e = Game.currentGame.world.getEntityByUid(obj.fromTick.uid).getTargetTick();
  727. let i = Math.floor(e.depositMax);
  728. Game.currentGame.network.sendRpc({
  729. name: "AddDepositToHarvester",
  730. uid: obj.fromTick.uid,
  731. deposit: i
  732. });
  733. }
  734. }
  735. }
  736. let sellBombs = () => {
  737. const entities = Game.currentGame.world.entities
  738. for(const uid in entities) {
  739. if(!entities.hasOwnProperty(uid)) continue
  740. const obj = entities[uid]
  741. if(obj.fromTick.model == "BombTower") {
  742. Game.currentGame.network.sendRpc({
  743. "name": "DeleteBuilding",
  744. "uid": obj.fromTick.uid
  745. })
  746.  
  747. }
  748. }
  749. Object.keys(buildings).forEach(key => {
  750. const building = buildings[key]
  751. if(["BombTower" || "Wall"].indexOf(building.type) >= 0) {
  752. delete buildings[key]
  753. }})
  754. },
  755.  
  756. upgradeBombs = () => {
  757. const entities = Game.currentGame.world.entities
  758. for(const uid in entities) {
  759. if(!entities.hasOwnProperty(uid)) continue
  760. const obj = entities[uid]
  761. if(obj.fromTick.model == "BombTower") {
  762. Game.currentGame.network.sendRpc({
  763. "name": "UpgradeBuilding",
  764. "uid": obj.fromTick.uid
  765. })
  766. }
  767. }
  768. Object.keys(buildings).forEach(key => {
  769. const building = buildings[key]
  770. if(["BombTower" || "Wall"].indexOf(building.type) >= 0) {
  771. delete buildings[key]
  772. }})
  773. }
  774. window.Collect = function() {
  775. var entities = Game.currentGame.world.entities;
  776. for(var uid in entities) {
  777. if(!entities.hasOwnProperty(uid)) continue;
  778. var obj = entities[uid];
  779. if(obj.fromTick.model == "Harvester") {
  780. Game.currentGame.network.sendRpc({
  781. name: "CollectHarvester",
  782. uid: obj.fromTick.uid
  783. });
  784. }
  785. }
  786. }
  787.  
  788. function heal() {
  789. Game.currentGame.network.sendRpc({
  790. "name": "BuyItem",
  791. "itemName": "HealthPotion",
  792. "tier": 1
  793. })
  794.  
  795. Game.currentGame.network.sendRpc({
  796. "name": "EquipItem",
  797. "itemName": "HealthPotion",
  798. "tier": 1
  799. })
  800. Game.currentGame.network.sendRpc({
  801. "name": "BuyItem",
  802. "itemName": "PetHealthPotion",
  803. "tier": 1
  804. })
  805.  
  806. Game.currentGame.network.sendRpc({
  807. "name": "EquipItem",
  808. "itemName": "PetHealthPotion",
  809. "tier": 1
  810. })
  811. }
  812. };
  813. window.s2 = function() {
  814. // ==UserScript==
  815. // @name Auto Build
  816. // @namespace http://tampermonkey.net/
  817. // @version 0.1
  818. // @description try to take over the world!
  819. // @author You
  820. // @match http://zombs.io/
  821. // @grant none
  822. // ==/UserScript==
  823.  
  824. let css2 = `
  825. .btn:hover {
  826. cursor: pointer;
  827. }
  828. .btn-blue {
  829. background-color: #144b7a;
  830. }
  831. .btn-blue:hover .btn-blue:active {
  832. background-color: #4fa7ee;
  833. }
  834. .box {
  835. display: block;
  836. width: 100%;
  837. height: 50px;
  838. line-height: 34px;
  839. padding: 8px 14px;
  840. margin: 0 0 10px;
  841. background: #eee;
  842. border: 0;
  843. font-size: 14px;
  844. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  845. border-radius: 4px;
  846. }
  847. .codeIn, .joinOut {
  848. height: 50px;
  849. }
  850. .hud-menu-zipp2 {
  851. display: none;
  852. position: fixed;
  853. top: 48%;
  854. left: 50%;
  855. width: 600px;
  856. height: 470px;
  857. margin: -270px 0 0 -300px;
  858. padding: 20px;
  859. background: rgba(0, 0, 0, 0.6);
  860. color: #eee;
  861. border-radius: 4px;
  862. z-index: 15;
  863. }
  864. .hud-menu-zipp2 h3 {
  865. display: block;
  866. margin: 0;
  867. line-height: 20px;
  868. }
  869. .hud-menu-zipp2 .hud-zipp-grid2 {
  870. display: block;
  871. height: 380px;
  872. padding: 10px;
  873. margin-top: 18px;
  874. background: rgba(0, 0, 0, 0.2);
  875. }
  876. .hud-spell-icons .hud-spell-icon[data-type="Zippity2"]::before {
  877. background-image: url("https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/google/223/gear_2699.png");
  878. }
  879. .hud-menu-zipp2 .hud-the-tab {
  880. position: relative;
  881. height: 40px;
  882. line-height: 40px;
  883. margin: 20px;
  884. border: 0px solid rgb(0, 0, 0, 0);
  885. }
  886. .hud-menu-zipp2 .hud-the-tab {
  887. display: block;
  888. float: left;
  889. padding: 0 14px;
  890. margin: 0 1px 0 0;
  891. font-size: 14px;
  892. background: rgba(0, 0, 0, 0.4);
  893. color: rgba(255, 255, 255, 0.4);
  894. transition: all 0.15s ease-in-out;
  895. }
  896. .hud-menu-zipp2 .hud-the-tab:hover {
  897. background: rgba(0, 0, 0, 0.2);
  898. color: #eee;
  899. cursor: pointer;
  900. }
  901. `;
  902.  
  903. let styles = document.createElement("style");
  904. styles.appendChild(document.createTextNode(css2));
  905. document.head.appendChild(styles);
  906.  
  907. // class changing
  908. document.getElementsByClassName("hud-intro-form")[0].style.height = "300px";
  909. document.getElementsByClassName("hud-intro-play")[0].setAttribute("class", "btn btn-blue hud-intro-play");
  910.  
  911. // spell icon
  912. let spell = document.createElement("div");
  913. spell.classList.add("hud-spell-icon");
  914. spell.setAttribute("data-type", "Zippity2");
  915. spell.classList.add("hud-zipp2-icon");
  916. document.getElementsByClassName("hud-spell-icons")[0].appendChild(spell);
  917.  
  918. //Menu for spell icon
  919. let modHTML = `
  920. <div class="hud-menu-zipp2">
  921. <br />
  922. <div class="hud-zipp-grid2">
  923. </div>
  924. </div>
  925. `;
  926. document.body.insertAdjacentHTML("afterbegin", modHTML);
  927. let zipz123 = document.getElementsByClassName("hud-menu-zipp2")[0];
  928.  
  929. //Onclick
  930. document.getElementsByClassName("hud-zipp2-icon")[0].addEventListener("click", function() {
  931. if(zipz123.style.display == "none") {
  932. zipz123.style.display = "block";
  933. for(var i = 0; i < menus.length; i++) {
  934. menus[i].style.display = "none";
  935. }
  936. } else {
  937. zipz123.style.display = "none";
  938. };
  939. });
  940.  
  941. let _menu = document.getElementsByClassName("hud-menu-icon");
  942. let _spell = document.getElementsByClassName("hud-spell-icon");
  943. let allIcon = [
  944. _menu[0],
  945. _menu[1],
  946. _menu[2],
  947. _spell[0],
  948. _spell[1]
  949. ];
  950.  
  951. allIcon.forEach(function(elem) {
  952. elem.addEventListener("click", function() {
  953. if(zipz123.style.display == "block") {
  954. zipz123.style.display = "none";
  955. };
  956. });
  957. });
  958.  
  959. // key to open and close
  960. function modm() {
  961. if(zipz123.style.display == "none") {
  962. zipz123.style.display = "block";
  963. for(var i = 0; i < menus.length; i++) {
  964. menus[i].style.display = "none";
  965. }
  966. } else {
  967. zipz123.style.display = "none";
  968. };
  969. };
  970.  
  971. document.getElementsByClassName("hud-zipp-grid2")[0].innerHTML = `
  972. <div style="text-align:center"><br>
  973. <hr />
  974. <h3>Auto Build</h3>
  975. <hr />
  976. <button onclick="BSB();">Bryan Smith Base</button>
  977. <button onclick="TB();">Thing Base</button>
  978. <button onclick="XBase();">X Base</button>
  979. <button onclick="SmallCornerBase();">OP Base</button>
  980. <button onclick="SSLQ();">- Base</button>
  981. <br><br>
  982. <button onclick="deathrainbase();">DEATHRAIN's Base</button>
  983. <button onclick="bryanss();">Bryan Smith's Score Base</button>
  984. <br><br>
  985. <input type="number" value="1000" class="F" placeholder="speed" style="width: 20%;">
  986. <button class="Fe">save speed</button>
  987. <button id="SSL5">Enable Defense Base</button>
  988. <br><br>
  989. <input type="number" value="825" class="F2" placeholder="speed" style="width: 20%;">
  990. <button class="Fe2">save speed</button>
  991. <button id="SSL6">Enable gold generator</button> &nbsp;
  992. <br><br>
  993. <input type="number" value="2500" class="F0" placeholder="speed" style="width: 20%;">
  994. <button class="Fe0">save speed</button>
  995. <button id="SSL0">Enable oooooo's base</button> &nbsp;
  996. `;
  997. var button216 = document.getElementById("SSL6");
  998. button216.addEventListener("click", startSSL6);
  999. button216.addEventListener("click", stopSSL6);
  1000. var SSL6 = null;
  1001. var f2=825;
  1002. $("Fe2").addEventListener("click", function() {
  1003. f2 = $("F2").value;
  1004. });
  1005. function startSSL6() {
  1006. clearInterval(SSL6);
  1007. if (SSL6 !== null) {
  1008. SSL6 = null;
  1009. } else {
  1010.  
  1011. SSL6 = setInterval(function() {
  1012. TH()
  1013.  
  1014. }, f2)
  1015. }
  1016. }
  1017.  
  1018. function stopSSL6() {
  1019. var trade = document.getElementById("SSL6");
  1020. if (trade.innerHTML == "Enable gold generator") {
  1021. trade.innerHTML = "Disable gold generator";
  1022. } else {
  1023. trade.innerHTML = "Enable gold generator";
  1024. }
  1025. }
  1026. var button218 = document.getElementById("SSL6");
  1027. button218.addEventListener("click", startSSL8);
  1028. button218.addEventListener("click", stopSSL8);
  1029. var SSL8 = null;
  1030. function startSSL8() {
  1031. clearInterval(SSL8);
  1032. if (SSL8 !== null) {
  1033. SSL8 = null;
  1034. } else {
  1035.  
  1036. SSL8 = setInterval(function() {
  1037. upgradeBombs()
  1038. }, 25)
  1039. }
  1040. }
  1041.  
  1042. function stopSSL8() {
  1043. var trade = document.getElementById("SSL8");
  1044. if (trade.innerHTML == "Enable gold generator") {
  1045. trade.innerHTML = "Disable gold generator";
  1046. } else {
  1047. trade.innerHTML = "Enable gold generator";
  1048. }
  1049. }
  1050. var button215 = document.getElementById("SSL5");
  1051. button215.addEventListener("click", startSSL5);
  1052. button215.addEventListener("click", stopSSL5);
  1053. var SSL5 = null;
  1054. var f=1000;
  1055. $("Fe").addEventListener("click", function() {
  1056. f = $("F").value;
  1057. });
  1058. function startSSL5() {
  1059. clearInterval(SSL5);
  1060. if (SSL5 !== null) {
  1061. SSL5 = null;
  1062. } else {
  1063.  
  1064. SSL5 = setInterval(function() {
  1065. MB()
  1066. }, f)
  1067. }
  1068. }
  1069.  
  1070. function stopSSL5() {
  1071. var trade = document.getElementById("SSL5");
  1072. if (trade.innerHTML == "Enable Defense Base") {
  1073. trade.innerHTML = "Disable Defense Base";
  1074. } else {
  1075. trade.innerHTML = "Enable Defense Base";
  1076. }
  1077. }
  1078.  
  1079. var button210 = document.getElementById("SSL0");
  1080. button210.addEventListener("click", startSSL0);
  1081. button210.addEventListener("click", stopSSL0);
  1082. var SSL0 = null;
  1083. var f0=2500;
  1084. $("Fe0").addEventListener("click", function() {
  1085. f0 = $("F0").value;
  1086. });
  1087. function startSSL0() {
  1088. clearInterval(SSL0);
  1089. if (SSL0 !== null) {
  1090. SSL0 = null;
  1091. } else {
  1092.  
  1093. SSL0 = setInterval(function() {
  1094. BRYSCRBSE();
  1095. }, f0)
  1096. }
  1097. }
  1098.  
  1099. function stopSSL0() {
  1100. var trade = document.getElementById("SSL0");
  1101. if (trade.innerHTML == "Enable oooooo's base") {
  1102. trade.innerHTML = "Disable oooooo's base";
  1103. } else {
  1104. trade.innerHTML = "Enable oooooo's base";
  1105. }
  1106. }
  1107. var upgradeBombs = () => {
  1108. const entities = Game.currentGame.world.entities
  1109. for(const uid in entities) {
  1110. if(!entities.hasOwnProperty(uid)) continue
  1111. const obj = entities[uid]
  1112. if(obj.fromTick.model == "BombTower") {
  1113. Game.currentGame.network.sendRpc({
  1114. "name": "UpgradeBuilding",
  1115. "uid": obj.fromTick.uid
  1116. })
  1117. }
  1118. }
  1119. }
  1120. var sellBombs = () => {
  1121. const entities = Game.currentGame.world.entities
  1122. for(const uid in entities) {
  1123. if(!entities.hasOwnProperty(uid)) continue
  1124. const obj = entities[uid]
  1125. if(obj.fromTick.model == "BombTower") {
  1126. Game.currentGame.network.sendRpc({
  1127. "name": "DeleteBuilding",
  1128. "uid": obj.fromTick.uid
  1129. })
  1130. }
  1131. }
  1132. }
  1133. //Auto Build Script
  1134. function $(classname) {
  1135. let element = document.getElementsByClassName(classname)
  1136. if (element.length === 1) {
  1137. return element[0]
  1138. } else {
  1139. return element
  1140. }
  1141. }
  1142.  
  1143. Storage.prototype.setObject = function(key, value) {
  1144. this.setItem(key, JSON.stringify(value));
  1145. }
  1146.  
  1147. Storage.prototype.getObject = function(key) {
  1148. let value = this.getItem(key);
  1149. return value && JSON.parse(value);
  1150. }
  1151. let Auto = {}
  1152. let Auto2 = {}
  1153. let EXTREME = {}
  1154. Auto.GetGoldStash = function() {
  1155. let entities = Game.currentGame.ui.buildings
  1156. for (let uid in entities) {
  1157. if (!entities.hasOwnProperty(uid)) {
  1158. continue
  1159. }
  1160. let obj = entities[uid]
  1161. if (obj.type == "GoldStash") {
  1162. return obj
  1163. }
  1164. }
  1165. }
  1166. EXTREME.GetGoldStash = function() {
  1167. let entities = Game.currentGame.ui.buildings
  1168. for (let uid in entities) {
  1169. if (!entities.hasOwnProperty(uid)) {
  1170. continue
  1171. }
  1172. let obj = entities[uid]
  1173. if (obj.type == "GoldStash") {
  1174. return obj
  1175. }
  1176. }
  1177. }
  1178. Auto2.GetGoldStash = function() {
  1179. let entities = Game.currentGame.ui.buildings
  1180. for (let uid in entities) {
  1181. if (!entities.hasOwnProperty(uid)) {
  1182. continue
  1183. }
  1184. let obj = entities[uid]
  1185. if (obj.type == "GoldStash") {
  1186. return obj
  1187. }
  1188. }
  1189. }
  1190.  
  1191. Auto.PlaceBuilding = function(x, y, building, yaw) {
  1192. Game.currentGame.network.sendRpc({
  1193. name: "MakeBuilding",
  1194. x: x,
  1195. y: y,
  1196. type: building,
  1197. yaw: yaw
  1198. })
  1199. }
  1200. Auto.PlaceBulding = function(x, y, building, yaw) {
  1201. Game.currentGame.network.sendRpc({
  1202. name: "MakeBuilding",
  1203. x: x,
  1204. y: y,
  1205. type: building,
  1206. yaw: yaw
  1207. })
  1208. }
  1209. EXTREME.PlaceBuilding = function(x, y, building, yaw) {
  1210. Game.currentGame.network.sendRpc({
  1211. name: "MakeBuilding",
  1212. x: x,
  1213. y: y,
  1214. type: building,
  1215. yaw: yaw
  1216. })
  1217. }
  1218. Auto2.PlaceBuilding = function(x, y, building, yaw) {
  1219. Game.currentGame.network.sendRpc({
  1220. name: "MakeBuilding",
  1221. x: x,
  1222. y: y,
  1223. type: building,
  1224. yaw: yaw
  1225. })
  1226. sellBombs()
  1227. upgradeBombs()
  1228. var buildings = Game.currentGame.ui.buildings
  1229. Object.keys(buildings).forEach(key => {
  1230. const building = buildings[key]
  1231. if(["BombTower" || "Wall"].indexOf(building.type) >= 0) {
  1232. delete buildings[key]
  1233. }})
  1234. }
  1235. Auto2.GoldGenerator = function() {
  1236. let waitForGoldStash = setInterval(function() {
  1237. if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
  1238. let stash = Auto2.GetGoldStash();
  1239. if (stash == undefined) return
  1240. let stashPosition = {
  1241. x: stash.x,
  1242. y: stash.y
  1243. }
  1244. clearInterval(waitForGoldStash);
  1245. Auto2.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 96, "BombTower", 0)
  1246. Auto2.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -96, "BombTower", 0)
  1247. Auto2.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 0, "BombTower", 0)
  1248. Auto2.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 0, "BombTower", 0)
  1249. Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
  1250. Auto2.PlaceBuilding(stashPosition.x + 4000000, stashPosition.y + 4000000, "BombTower", 0);
  1251. Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
  1252. Auto2.PlaceBuilding(stashPosition.x + 4000000, stashPosition.y + 4000000, "BombTower", 0)
  1253. Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
  1254. Auto2.PlaceBuilding(stashPosition.x + 4000000, stashPosition.y + 4000000, "BombTower", 0);
  1255. Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
  1256. Auto2.PlaceBuilding(stashPosition.x + 4000000, stashPosition.y + 4000000, "BombTower", 0);
  1257. Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
  1258. Auto2.PlaceBuilding(stashPosition.x + 4000000, stashPosition.y + 4000000, "BombTower", 0);
  1259. Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
  1260. Auto2.PlaceBuilding(stashPosition.x + 4000000, stashPosition.y + 4000000, "BombTower", 0)
  1261. Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
  1262. Auto2.PlaceBuilding(stashPosition.x + 4000000, stashPosition.y + 4000000, "BombTower", 0);
  1263. Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
  1264. Auto2.PlaceBuilding(stashPosition.x + 4000000, stashPosition.y + 4000000, "BombTower", 0)
  1265. Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
  1266. Auto2.PlaceBuilding(stashPosition.x + 4000000, stashPosition.y + 4000000, "BombTower", 0);
  1267. Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
  1268. Auto2.PlaceBuilding(stashPosition.x + 4000000, stashPosition.y + 4000000, "BombTower", 0)
  1269. Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
  1270. Auto2.PlaceBuilding(stashPosition.x + 4000000, stashPosition.y + 4000000, "BombTower", 0);
  1271. Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
  1272. Auto2.PlaceBuilding(stashPosition.x + 4000000, stashPosition.y + 4000000, "BombTower", 0)
  1273. Auto2.PlaceBuilding(stashPosition.x + -4000000, stashPosition.y + 4000000, "BombTower", 0)
  1274.  
  1275. }
  1276. }, 0)
  1277. }
  1278. EXTREME.BuildMyBase = function() {
  1279. var waitForGoldStash = setInterval(function() {
  1280. if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
  1281. var stash = EXTREME.GetGoldStash();
  1282. if (stash == undefined) return
  1283. var stashPosition = {
  1284. x: stash.x,
  1285. y: stash.y
  1286. }
  1287. clearInterval(waitForGoldStash);
  1288. EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 96, "BombTower", 0)
  1289. EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -96, "BombTower", 0)
  1290. EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 0, "BombTower", 0)
  1291. EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 0, "BombTower", 0)
  1292. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 0, "GoldMine", 0)
  1293. EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 192, "GoldMine", 0)
  1294. EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -192, "GoldMine", 0)
  1295. EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + 0, "GoldMine", 0)
  1296. EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 96, "GoldMine", 0)
  1297. EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 96, "GoldMine", 0)
  1298. EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + -96, "GoldMine", 0)
  1299. EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + -96, "GoldMine", 0)
  1300. EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 192, "ArrowTower", 0)
  1301. EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 192, "ArrowTower", 0)
  1302. EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + -192, "ArrowTower", 0)
  1303. EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + -192, "ArrowTower", 0)
  1304. EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + 96, "ArrowTower", 0)
  1305. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 96, "ArrowTower", 0)
  1306. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -96, "ArrowTower", 0)
  1307. EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + -96, "ArrowTower", 0)
  1308. EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + 192, "ArrowTower", 0)
  1309. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 192, "ArrowTower", 0)
  1310. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -192, "CannonTower", 0)
  1311. EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + -192, "CannonTower", 0)
  1312. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + 288, "MagicTower", 0)
  1313. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 288, "MagicTower", 0)
  1314. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -288, "MagicTower", 0)
  1315. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -288, "MagicTower", 0)
  1316. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + 192, "MagicTower", 0)
  1317. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 192, "MagicTower", 0)
  1318. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -192, "MagicTower", 0)
  1319. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -192, "MagicTower", 0)
  1320. EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + 288, "MagicTower", 0)
  1321. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 288, "MagicTower", 0)
  1322. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -288, "MagicTower", 0)
  1323. EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + -288, "MagicTower", 0)
  1324. EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 288, "CannonTower", 0)
  1325. EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 288, "CannonTower", 0)
  1326. EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + -288, "CannonTower", 0)
  1327. EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + -288, "CannonTower", 0)
  1328. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + 96, "CannonTower", 0)
  1329. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 96, "CannonTower", 0)
  1330. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -96, "CannonTower", 0)
  1331. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -96, "CannonTower", 0)
  1332. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + 0, "BombTower", 0)
  1333. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -0, "BombTower", 0)
  1334. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 0, "BombTower", 0)
  1335. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -0, "BombTower", 0)
  1336. EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 288, "BombTower", 0)
  1337. EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -288, "BombTower", 0)
  1338. EXTREME.PlaceBuilding(stashPosition.x + -0, stashPosition.y + 288, "BombTower", 0)
  1339. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -288, "CannonTower", 0)
  1340. EXTREME.PlaceBuilding(stashPosition.x + -0, stashPosition.y + 288, "BombTower", 0)
  1341. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -288, "CannonTower", 0)
  1342. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 0, "Door", 0)
  1343. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 24, "Door", 0)
  1344. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 72, "Door", 0)
  1345. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 120, "Door", 0)
  1346. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 168, "Door", 0)
  1347. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 216, "Door", 0)
  1348. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 264, "Door", 0)
  1349. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 312, "Door", 0)
  1350. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 360, "Door", 0)
  1351. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 408, "Door", 0)
  1352. EXTREME.PlaceBuilding(stashPosition.x + -360, stashPosition.y + 408, "Door", 0)
  1353. EXTREME.PlaceBuilding(stashPosition.x + -312, stashPosition.y + 408, "Door", 0)
  1354. EXTREME.PlaceBuilding(stashPosition.x + -264, stashPosition.y + 408, "Door", 0)
  1355. EXTREME.PlaceBuilding(stashPosition.x + -216, stashPosition.y + 408, "Door", 0)
  1356. EXTREME.PlaceBuilding(stashPosition.x + -168, stashPosition.y + 408, "Door", 0)
  1357. EXTREME.PlaceBuilding(stashPosition.x + -120, stashPosition.y + 408, "Door", 0)
  1358. EXTREME.PlaceBuilding(stashPosition.x + -72, stashPosition.y + 408, "Door", 0)
  1359. EXTREME.PlaceBuilding(stashPosition.x + -24, stashPosition.y + 408, "Door", 0)
  1360. EXTREME.PlaceBuilding(stashPosition.x + -0, stashPosition.y + 408, "Door", 0)
  1361. EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 408, "Door", 0)
  1362. EXTREME.PlaceBuilding(stashPosition.x + 24, stashPosition.y + 408, "Door", 0)
  1363. EXTREME.PlaceBuilding(stashPosition.x + 72, stashPosition.y + 408, "Door", 0)
  1364. EXTREME.PlaceBuilding(stashPosition.x + 120, stashPosition.y + 408, "Door", 0)
  1365. EXTREME.PlaceBuilding(stashPosition.x + 168, stashPosition.y + 408, "Door", 0)
  1366. EXTREME.PlaceBuilding(stashPosition.x + 216, stashPosition.y + 408, "Door", 0)
  1367. EXTREME.PlaceBuilding(stashPosition.x + 264, stashPosition.y + 408, "Door", 0)
  1368. EXTREME.PlaceBuilding(stashPosition.x + 312, stashPosition.y + 408, "Door", 0)
  1369. EXTREME.PlaceBuilding(stashPosition.x + 360, stashPosition.y + 408, "Door", 0)
  1370. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 408, "Door", 0)
  1371. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 360, "Door", 0)
  1372. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 312, "Door", 0)
  1373. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 264, "Door", 0)
  1374. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 216, "Door", 0)
  1375. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 168, "Door", 0)
  1376. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 120, "Door", 0)
  1377. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 72, "Door", 0)
  1378. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 24, "Door", 0)
  1379. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 0, "Door", 0)
  1380. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -360, "Door", 0)
  1381. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -312, "Door", 0)
  1382. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -264, "Door", 0)
  1383. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -216, "Door", 0)
  1384. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -168, "Door", 0)
  1385. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -120, "Door", 0)
  1386. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -72, "Door", 0)
  1387. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -24, "Door", 0)
  1388. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -0, "Door", 0)
  1389. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -408, "Door", 0)
  1390. EXTREME.PlaceBuilding(stashPosition.x + 360, stashPosition.y + -408, "Door", 0)
  1391. EXTREME.PlaceBuilding(stashPosition.x + 312, stashPosition.y + -408, "Door", 0)
  1392. EXTREME.PlaceBuilding(stashPosition.x + 264, stashPosition.y + -408, "Door", 0)
  1393. EXTREME.PlaceBuilding(stashPosition.x + 216, stashPosition.y + -408, "Door", 0)
  1394. EXTREME.PlaceBuilding(stashPosition.x + 168, stashPosition.y + -408, "Door", 0)
  1395. EXTREME.PlaceBuilding(stashPosition.x + 120, stashPosition.y + -408, "Door", 0)
  1396. EXTREME.PlaceBuilding(stashPosition.x + 72, stashPosition.y + -408, "Door", 0)
  1397. EXTREME.PlaceBuilding(stashPosition.x + 24, stashPosition.y + -408, "Door", 0)
  1398. EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -408, "Door", 0)
  1399. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -408, "Door", 0)
  1400. EXTREME.PlaceBuilding(stashPosition.x + -360, stashPosition.y + -408, "Door", 0)
  1401. EXTREME.PlaceBuilding(stashPosition.x + -312, stashPosition.y + -408, "Door", 0)
  1402. EXTREME.PlaceBuilding(stashPosition.x + -264, stashPosition.y + -408, "Door", 0)
  1403. EXTREME.PlaceBuilding(stashPosition.x + -216, stashPosition.y + -408, "Door", 0)
  1404. EXTREME.PlaceBuilding(stashPosition.x + -168, stashPosition.y + -408, "Door", 0)
  1405. EXTREME.PlaceBuilding(stashPosition.x + -120, stashPosition.y + -408, "Door", 0)
  1406. EXTREME.PlaceBuilding(stashPosition.x + -72, stashPosition.y + -408, "Door", 0)
  1407. EXTREME.PlaceBuilding(stashPosition.x + -24, stashPosition.y + -408, "Door", 0)
  1408. EXTREME.PlaceBuilding(stashPosition.x + -0, stashPosition.y + -408, "Door", 0)
  1409. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -0, "Door", 0)
  1410. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -72, "Door", 0)
  1411. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -24, "Door", 0)
  1412. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -120, "Door", 0)
  1413. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -168, "Door", 0)
  1414. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -216, "Door", 0)
  1415. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -264, "Door", 0)
  1416. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -312, "Door", 0)
  1417. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -360, "Door", 0)
  1418. }
  1419. }, 150)
  1420. }
  1421. EXTREME.BuildMyBase2 = function() {
  1422. var waitForGoldStash = setInterval(function() {
  1423. if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
  1424. var stash = EXTREME.GetGoldStash();
  1425. if (stash == undefined) return
  1426. var stashPosition = {
  1427. x: stash.x,
  1428. y: stash.y
  1429. }
  1430. clearInterval(waitForGoldStash);
  1431. EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 0, "CannonTower", 0)
  1432. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 0, "CannonTower", 0)
  1433. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 0, "MagicTower", 0)
  1434. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 192, "MagicTower", 0)
  1435. EXTREME.PlaceBuilding(stashPosition.x + 384, stashPosition.y + 192, "MagicTower", 0)
  1436. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 192, "BombTower", 0)
  1437. EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 192, "CannonTower", 0)
  1438. EXTREME.PlaceBuilding(stashPosition.x + 144, stashPosition.y + 288, "MagicTower", 0)
  1439. EXTREME.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 288, "MagicTower", 0)
  1440. EXTREME.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 96, "MagicTower", 0)
  1441. EXTREME.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 96, "CannonTower", 0)
  1442. EXTREME.PlaceBuilding(stashPosition.x + 48, stashPosition.y + 96, "CannonTower", 0)
  1443. EXTREME.PlaceBuilding(stashPosition.x + 144, stashPosition.y + 96, "CannonTower", 0)
  1444. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 120, "Door", 0)
  1445. EXTREME.PlaceBuilding(stashPosition.x + 312, stashPosition.y + 312, "Door", 0)
  1446. EXTREME.PlaceBuilding(stashPosition.x + 360, stashPosition.y + 264, "Door", 0)
  1447. EXTREME.PlaceBuilding(stashPosition.x + 312, stashPosition.y + 264, "Door", 0)
  1448. EXTREME.PlaceBuilding(stashPosition.x + 264, stashPosition.y + 360, "Door", 0)
  1449. EXTREME.PlaceBuilding(stashPosition.x + 216, stashPosition.y + 360, "Door", 0)
  1450. EXTREME.PlaceBuilding(stashPosition.x + 168, stashPosition.y + 360, "Door", 0)
  1451. EXTREME.PlaceBuilding(stashPosition.x + 168, stashPosition.y + 408, "Wall", 0)
  1452. EXTREME.PlaceBuilding(stashPosition.x + 216, stashPosition.y + 408, "Wall", 0)
  1453. EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 192, "Harvester", 0)
  1454. EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -192, "Harvester", 0)
  1455. EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + 0, "Harvester", 0)
  1456. EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 96, "Harvester", 0)
  1457. EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + -96, "Harvester", 0)
  1458. EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + -96, "Harvester", 0)
  1459.  
  1460. }
  1461. }, 150)
  1462. }
  1463. EXTREME.BuildXBase = function() {
  1464. var waitForGoldStash = setInterval(function() {
  1465. if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
  1466. var stash = EXTREME.GetGoldStash();
  1467. if (stash == undefined) return
  1468. var stashPosition = {
  1469. x: stash.x,
  1470. y: stash.y
  1471. }
  1472. clearInterval(waitForGoldStash)
  1473. Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + 192, 'GoldMine', 0)
  1474. Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + 192, 'GoldMine', 0)
  1475. Auto.PlaceBulding(stashPosition.x + -192, stashPosition.y + 48, 'GoldMine', 0)
  1476. Auto.PlaceBulding(stashPosition.x + -192, stashPosition.y + -48, 'GoldMine', 0)
  1477. Auto.PlaceBulding(stashPosition.x + 192, stashPosition.y + 48, 'GoldMine', 0)
  1478. Auto.PlaceBulding(stashPosition.x + 192, stashPosition.y + -48, 'GoldMine', 0)
  1479. Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + -192, 'GoldMine', 0)
  1480. Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + -192, 'GoldMine', 0)
  1481. Auto.PlaceBulding(stashPosition.x + -24, stashPosition.y + -120, 'Door', 0)
  1482. Auto.PlaceBulding(stashPosition.x + 24, stashPosition.y + -120, 'Door', 0)
  1483. Auto.PlaceBulding(stashPosition.x + 120, stashPosition.y + -24, 'Door', 0)
  1484. Auto.PlaceBulding(stashPosition.x + 120, stashPosition.y + 24, 'Door', 0)
  1485. Auto.PlaceBulding(stashPosition.x + -24, stashPosition.y + 120, 'Door', 0)
  1486. Auto.PlaceBulding(stashPosition.x + 24, stashPosition.y + 120, 'Door', 0)
  1487. Auto.PlaceBulding(stashPosition.x + -120, stashPosition.y + 24, 'Door', 0)
  1488. Auto.PlaceBulding(stashPosition.x + -120, stashPosition.y + -24, 'Door', 0)
  1489. Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + -192, 'Harvester', 0)
  1490. Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + -192, 'Harvester', 0)
  1491. Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + 192, 'Harvester', 0)
  1492. Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + 192, 'Harvester', 0)
  1493. Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + -288, 'BombTower', 0)
  1494. Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + -384, 'BombTower', 0)
  1495. Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + -480, 'BombTower', 0)
  1496. Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + -480, 'BombTower', 0)
  1497. Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + -384, 'BombTower', 0)
  1498. Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + -288, 'BombTower', 0)
  1499. Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + -576, 'ArrowTower', 0)
  1500. Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + -576, 'ArrowTower', 0)
  1501. Auto.PlaceBulding(stashPosition.x + 0, stashPosition.y + -672, 'MagicTower', 0)
  1502. Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + -576, 'MagicTower', 0)
  1503. Auto.PlaceBulding(stashPosition.x + -240, stashPosition.y + -528, 'MagicTower', 0)
  1504. Auto.PlaceBulding(stashPosition.x + -336, stashPosition.y + -480, 'MagicTower', 0)
  1505. Auto.PlaceBulding(stashPosition.x + -336, stashPosition.y + -384, 'CannonTower', 0)
  1506. Auto.PlaceBulding(stashPosition.x + -240, stashPosition.y + -432, 'CannonTower', 0)
  1507. Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + -480, 'CannonTower', 0)
  1508. Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + -384, 'CannonTower', 0)
  1509. Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + -288, 'CannonTower', 0)
  1510. Auto.PlaceBulding(stashPosition.x + -264, stashPosition.y + -360, 'Door', 0)
  1511. Auto.PlaceBulding(stashPosition.x + -216, stashPosition.y + -360, 'Door', 0)
  1512. Auto.PlaceBulding(stashPosition.x + -216, stashPosition.y + -312, 'Door', 0)
  1513. Auto.PlaceBulding(stashPosition.x + -216, stashPosition.y + -264, 'Door', 0)
  1514. Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + -576, 'MagicTower', 0)
  1515. Auto.PlaceBulding(stashPosition.x + 240, stashPosition.y + -528, 'MagicTower', 0)
  1516. Auto.PlaceBulding(stashPosition.x + 336, stashPosition.y + -480, 'MagicTower', 0)
  1517. Auto.PlaceBulding(stashPosition.x + 336, stashPosition.y + -384, 'CannonTower', 0)
  1518. Auto.PlaceBulding(stashPosition.x + 240, stashPosition.y + -432, 'CannonTower', 0)
  1519. Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + -480, 'CannonTower', 0)
  1520. Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + -384, 'CannonTower', 0)
  1521. Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + -288, 'ArrowTower', 0)
  1522. Auto.PlaceBulding(stashPosition.x + 264, stashPosition.y + -360, 'Door', 0)
  1523. Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + -360, 'Door', 0)
  1524. Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + -312, 'Door', 0)
  1525. Auto.PlaceBulding(stashPosition.x + -480, stashPosition.y + -336, 'MagicTower', 0)
  1526. Auto.PlaceBulding(stashPosition.x + -528, stashPosition.y + -240, 'MagicTower', 0)
  1527. Auto.PlaceBulding(stashPosition.x + -576, stashPosition.y + -144, 'MagicTower', 0)
  1528. Auto.PlaceBulding(stashPosition.x + -576, stashPosition.y + -48, 'CannonTower', 0)
  1529. Auto.PlaceBulding(stashPosition.x + -672, stashPosition.y + 0, 'MagicTower', 0)
  1530. Auto.PlaceBulding(stashPosition.x + -432, stashPosition.y + -240, 'CannonTower', 0)
  1531. Auto.PlaceBulding(stashPosition.x + -336, stashPosition.y + -240, 'CannonTower', 0)
  1532. Auto.PlaceBulding(stashPosition.x + -480, stashPosition.y + -144, 'CannonTower', 0)
  1533. Auto.PlaceBulding(stashPosition.x + -384, stashPosition.y + -144, 'CannonTower', 0)
  1534. Auto.PlaceBulding(stashPosition.x + -288, stashPosition.y + -144, 'ArrowTower', 0)
  1535. Auto.PlaceBulding(stashPosition.x + -480, stashPosition.y + -48, 'ArrowTower', 0)
  1536. Auto.PlaceBulding(stashPosition.x + -480, stashPosition.y + 48, 'ArrowTower', 0)
  1537. Auto.PlaceBulding(stashPosition.x + -576, stashPosition.y + 48, 'ArrowTower', 0)
  1538. Auto.PlaceBulding(stashPosition.x + -384, stashPosition.y + -48, 'BombTower', 0)
  1539. Auto.PlaceBulding(stashPosition.x + -384, stashPosition.y + 48, 'BombTower', 0)
  1540. Auto.PlaceBulding(stashPosition.x + -288, stashPosition.y + 48, 'BombTower', 0)
  1541. Auto.PlaceBulding(stashPosition.x + -288, stashPosition.y + -48, 'BombTower', 0)
  1542. Auto.PlaceBulding(stashPosition.x + -312, stashPosition.y + 120, 'Door', 0)
  1543. Auto.PlaceBulding(stashPosition.x + -312, stashPosition.y + 168, 'Door', 0)
  1544. Auto.PlaceBulding(stashPosition.x + -264, stashPosition.y + 168, 'Door', 0)
  1545. Auto.PlaceBulding(stashPosition.x + -264, stashPosition.y + 120, 'Door', 0)
  1546. Auto.PlaceBulding(stashPosition.x + -264, stashPosition.y + 216, 'Door', 0)
  1547. Auto.PlaceBulding(stashPosition.x + -216, stashPosition.y + 120, 'Door', 0)
  1548. Auto.PlaceBulding(stashPosition.x + -432, stashPosition.y + 240, 'CannonTower', 0)
  1549. Auto.PlaceBulding(stashPosition.x + -384, stashPosition.y + 336, 'CannonTower', 0)
  1550. Auto.PlaceBulding(stashPosition.x + -480, stashPosition.y + 336, 'MagicTower', 0)
  1551. Auto.PlaceBulding(stashPosition.x + -528, stashPosition.y + 240, 'MagicTower', 0)
  1552. Auto.PlaceBulding(stashPosition.x + -696, stashPosition.y + 72, 'Wall', 0)
  1553. Auto.PlaceBulding(stashPosition.x + -648, stashPosition.y + 72, 'Wall', 0)
  1554. Auto.PlaceBulding(stashPosition.x + -648, stashPosition.y + 168, 'Wall', 0)
  1555. Auto.PlaceBulding(stashPosition.x + -744, stashPosition.y + -24, 'Wall', 0)
  1556. Auto.PlaceBulding(stashPosition.x + -744, stashPosition.y + 24, 'Wall', 0)
  1557. Auto.PlaceBulding(stashPosition.x + -696, stashPosition.y + -120, 'Wall', 0)
  1558. Auto.PlaceBulding(stashPosition.x + -696, stashPosition.y + -72, 'Wall', 0)
  1559. Auto.PlaceBulding(stashPosition.x + -648, stashPosition.y + -72, 'Wall', 0)
  1560. Auto.PlaceBulding(stashPosition.x + -648, stashPosition.y + -120, 'Wall', 0)
  1561. Auto.PlaceBulding(stashPosition.x + -648, stashPosition.y + -168, 'Wall', 0)
  1562. Auto.PlaceBulding(stashPosition.x + 288, stashPosition.y + -48, 'BombTower', 0)
  1563. Auto.PlaceBulding(stashPosition.x + 288, stashPosition.y + -144, 'BombTower', 0)
  1564. Auto.PlaceBulding(stashPosition.x + 384, stashPosition.y + -48, 'BombTower', 0)
  1565. Auto.PlaceBulding(stashPosition.x + 480, stashPosition.y + -48, 'BombTower', 0)
  1566. Auto.PlaceBulding(stashPosition.x + 384, stashPosition.y + 48, 'BombTower', 0)
  1567. Auto.PlaceBulding(stashPosition.x + 480, stashPosition.y + 48, 'BombTower', 0)
  1568. Auto.PlaceBulding(stashPosition.x + 480, stashPosition.y + 144, 'BombTower', 0)
  1569. Auto.PlaceBulding(stashPosition.x + 264, stashPosition.y + 24, 'Door', 0)
  1570. Auto.PlaceBulding(stashPosition.x + 264, stashPosition.y + 72, 'Door', 0)
  1571. Auto.PlaceBulding(stashPosition.x + 312, stashPosition.y + 72, 'Door', 0)
  1572. Auto.PlaceBulding(stashPosition.x + 312, stashPosition.y + 24, 'Door', 0)
  1573. Auto.PlaceBulding(stashPosition.x + 288, stashPosition.y + 144, 'ArrowTower', 0)
  1574. Auto.PlaceBulding(stashPosition.x + 384, stashPosition.y + 144, 'ArrowTower', 0)
  1575. Auto.PlaceBulding(stashPosition.x + 336, stashPosition.y + 240, 'ArrowTower', 0)
  1576. Auto.PlaceBulding(stashPosition.x + 432, stashPosition.y + 240, 'ArrowTower', 0)
  1577. Auto.PlaceBulding(stashPosition.x + 384, stashPosition.y + 336, 'ArrowTower', 0)
  1578. Auto.PlaceBulding(stashPosition.x + 480, stashPosition.y + 336, 'MagicTower', 0)
  1579. Auto.PlaceBulding(stashPosition.x + 528, stashPosition.y + 240, 'MagicTower', 0)
  1580. Auto.PlaceBulding(stashPosition.x + 552, stashPosition.y + 24, 'Door', 0)
  1581. Auto.PlaceBulding(stashPosition.x + 552, stashPosition.y + 72, 'Door', 0)
  1582. Auto.PlaceBulding(stashPosition.x + 552, stashPosition.y + 120, 'Door', 0)
  1583. Auto.PlaceBulding(stashPosition.x + 552, stashPosition.y + 168, 'Door', 0)
  1584. Auto.PlaceBulding(stashPosition.x + -648, stashPosition.y + 120, 'Wall', 0)
  1585. Auto.PlaceBulding(stashPosition.x + -696, stashPosition.y + 120, 'Wall', 0)
  1586. Auto.PlaceBulding(stashPosition.x + -576, stashPosition.y + 144, 'ArrowTower', 0)
  1587. Auto.PlaceBulding(stashPosition.x + -480, stashPosition.y + 144, 'ArrowTower', 0)
  1588. Auto.PlaceBulding(stashPosition.x + -384, stashPosition.y + 144, 'ArrowTower', 0)
  1589. Auto.PlaceBulding(stashPosition.x + -336, stashPosition.y + 240, 'CannonTower', 0)
  1590. Auto.PlaceBulding(stashPosition.x + 600, stashPosition.y + 120, 'Door', 0)
  1591. Auto.PlaceBulding(stashPosition.x + 600, stashPosition.y + 168, 'Door', 0)
  1592. Auto.PlaceBulding(stashPosition.x + 648, stashPosition.y + 168, 'Door', 0)
  1593. Auto.PlaceBulding(stashPosition.x + 600, stashPosition.y + 216, 'Wall', 0)
  1594. Auto.PlaceBulding(stashPosition.x + 600, stashPosition.y + 264, 'Wall', 0)
  1595. Auto.PlaceBulding(stashPosition.x + 648, stashPosition.y + 216, 'Wall', 0)
  1596. Auto.PlaceBulding(stashPosition.x + 648, stashPosition.y + 120, 'Wall', 0)
  1597. Auto.PlaceBulding(stashPosition.x + 696, stashPosition.y + 120, 'Wall', 0)
  1598. Auto.PlaceBulding(stashPosition.x + 696, stashPosition.y + 72, 'Wall', 0)
  1599. Auto.PlaceBulding(stashPosition.x + 696, stashPosition.y + 24, 'Wall', 0)
  1600. Auto.PlaceBulding(stashPosition.x + 624, stashPosition.y + 48, 'ArrowTower', 0)
  1601. Auto.PlaceBulding(stashPosition.x + 576, stashPosition.y + -48, 'CannonTower', 0)
  1602. Auto.PlaceBulding(stashPosition.x + 672, stashPosition.y + -48, 'MagicTower', 0)
  1603. Auto.PlaceBulding(stashPosition.x + 576, stashPosition.y + -144, 'MagicTower', 0)
  1604. Auto.PlaceBulding(stashPosition.x + 528, stashPosition.y + -240, 'MagicTower', 0)
  1605. Auto.PlaceBulding(stashPosition.x + 480, stashPosition.y + -336, 'MagicTower', 0)
  1606. Auto.PlaceBulding(stashPosition.x + 432, stashPosition.y + -240, 'CannonTower', 0)
  1607. Auto.PlaceBulding(stashPosition.x + 336, stashPosition.y + -240, 'CannonTower', 0)
  1608. Auto.PlaceBulding(stashPosition.x + 480, stashPosition.y + -144, 'CannonTower', 0)
  1609. Auto.PlaceBulding(stashPosition.x + 384, stashPosition.y + -144, 'ArrowTower', 0)
  1610. Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + 288, 'BombTower', 0)
  1611. Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + 288, 'BombTower', 0)
  1612. Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + 288, 'BombTower', 0)
  1613. Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + 288, 'BombTower', 0)
  1614. Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + 384, 'BombTower', 0)
  1615. Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + 384, 'BombTower', 0)
  1616. Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + 384, 'BombTower', 0)
  1617. Auto.PlaceBulding(stashPosition.x + 240, stashPosition.y + 432, 'ArrowTower', 0)
  1618. Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + 480, 'ArrowTower', 0)
  1619. Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + 480, 'ArrowTower', 0)
  1620. Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + 480, 'ArrowTower', 0)
  1621. Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + 576, 'ArrowTower', 0)
  1622. Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + 576, 'ArrowTower', 0)
  1623. Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + 576, 'ArrowTower', 0)
  1624. Auto.PlaceBulding(stashPosition.x + 240, stashPosition.y + 528, 'MagicTower', 0)
  1625. Auto.PlaceBulding(stashPosition.x + 336, stashPosition.y + 480, 'MagicTower', 0)
  1626. Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + 384, 'CannonTower', 0)
  1627. Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + 480, 'CannonTower', 0)
  1628. Auto.PlaceBulding(stashPosition.x + -240, stashPosition.y + 432, 'CannonTower', 0)
  1629. Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + 576, 'MagicTower', 0)
  1630. Auto.PlaceBulding(stashPosition.x + -240, stashPosition.y + 528, 'MagicTower', 0)
  1631. Auto.PlaceBulding(stashPosition.x + -336, stashPosition.y + 480, 'MagicTower', 0)
  1632. Auto.PlaceBulding(stashPosition.x + -168, stashPosition.y + 648, 'Wall', 0)
  1633. Auto.PlaceBulding(stashPosition.x + -120, stashPosition.y + 648, 'Wall', 0)
  1634. Auto.PlaceBulding(stashPosition.x + -72, stashPosition.y + 648, 'Wall', 0)
  1635. Auto.PlaceBulding(stashPosition.x + -24, stashPosition.y + 648, 'Wall', 0)
  1636. Auto.PlaceBulding(stashPosition.x + 24, stashPosition.y + 648, 'Wall', 0)
  1637. Auto.PlaceBulding(stashPosition.x + 72, stashPosition.y + 648, 'Wall', 0)
  1638. Auto.PlaceBulding(stashPosition.x + 120, stashPosition.y + 648, 'Wall', 0)
  1639. Auto.PlaceBulding(stashPosition.x + 168, stashPosition.y + 648, 'Wall', 0)
  1640. Auto.PlaceBulding(stashPosition.x + 120, stashPosition.y + 696, 'Wall', 0)
  1641. Auto.PlaceBulding(stashPosition.x + 72, stashPosition.y + 696, 'Wall', 0)
  1642. Auto.PlaceBulding(stashPosition.x + 24, stashPosition.y + 696, 'Wall', 0)
  1643. Auto.PlaceBulding(stashPosition.x + -24, stashPosition.y + 696, 'Wall', 0)
  1644. Auto.PlaceBulding(stashPosition.x + -72, stashPosition.y + 696, 'Wall', 0)
  1645. Auto.PlaceBulding(stashPosition.x + -120, stashPosition.y + 696, 'Wall', 0)
  1646. Auto.PlaceBulding(stashPosition.x + 600, stashPosition.y + -216, 'Wall', 0)
  1647. Auto.PlaceBulding(stashPosition.x + 648, stashPosition.y + -216, 'Wall', 0)
  1648. Auto.PlaceBulding(stashPosition.x + 648, stashPosition.y + -168, 'Wall', 0)
  1649. Auto.PlaceBulding(stashPosition.x + 648, stashPosition.y + -120, 'Wall', 0)
  1650. Auto.PlaceBulding(stashPosition.x + 696, stashPosition.y + -120, 'Wall', 0)
  1651. Auto.PlaceBulding(stashPosition.x + 744, stashPosition.y + -72, 'Wall', 0)
  1652. Auto.PlaceBulding(stashPosition.x + 744, stashPosition.y + -24, 'Wall', 0)
  1653. Auto.PlaceBulding(stashPosition.x + -168, stashPosition.y + -648, 'Wall', 0)
  1654. Auto.PlaceBulding(stashPosition.x + -120, stashPosition.y + -648, 'Wall', 0)
  1655. Auto.PlaceBulding(stashPosition.x + -120, stashPosition.y + -696, 'Wall', 0)
  1656. Auto.PlaceBulding(stashPosition.x + -72, stashPosition.y + -696, 'Door', 0)
  1657. Auto.PlaceBulding(stashPosition.x + -72, stashPosition.y + -648, 'Door', 0)
  1658. Auto.PlaceBulding(stashPosition.x + -24, stashPosition.y + -744, 'Wall', 0)
  1659. Auto.PlaceBulding(stashPosition.x + 24, stashPosition.y + -744, 'Wall', 0)
  1660. Auto.PlaceBulding(stashPosition.x + 72, stashPosition.y + -696, 'Wall', 0)
  1661. Auto.PlaceBulding(stashPosition.x + 72, stashPosition.y + -648, 'Wall', 0)
  1662. Auto.PlaceBulding(stashPosition.x + 120, stashPosition.y + -648, 'Wall', 0)
  1663. Auto.PlaceBulding(stashPosition.x + 168, stashPosition.y + -648, 'Wall', 0)
  1664. Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + -600, 'Wall', 0)
  1665. Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + -648, 'Wall', 0)
  1666. Auto.PlaceBulding(stashPosition.x + -216, stashPosition.y + -120, 'Door', 0)
  1667. Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + 120, 'Door', 0)
  1668. Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + -120, 'Door', 0)
  1669. Auto.PlaceBulding(stashPosition.x + 264, stashPosition.y + -216, 'Door', 0)
  1670. Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + 264, 'Door', 0)
  1671. Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + 360, 'Door', 0)
  1672. Auto.PlaceBulding(stashPosition.x + 264, stashPosition.y + 360, 'Door', 0)
  1673. Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + 312, 'Door', 0)
  1674. Auto.PlaceBulding(stashPosition.x + -264, stashPosition.y + 360, 'Door', 0)
  1675. Auto.PlaceBulding(stashPosition.x + -216, stashPosition.y + 360, 'Door', 0)
  1676. Auto.PlaceBulding(stashPosition.x + -216, stashPosition.y + 312, 'Door', 0)
  1677. }
  1678. }, 150)
  1679. }
  1680. Auto.BuildBryanSmithBase = function() {
  1681. let waitForGoldStash = setInterval(function() {
  1682. if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
  1683. let stash = Auto.GetGoldStash();
  1684. if (stash == undefined) return
  1685. let stashPosition = {
  1686. x: stash.x,
  1687. y: stash.y
  1688. }
  1689. clearInterval(waitForGoldStash)
  1690. Auto.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 0, 'GoldStash', 0);
  1691. Auto.PlaceBuilding(stashPosition.x + -192, stashPosition.y + -48, 'GoldMine', 0);
  1692. Auto.PlaceBuilding(stashPosition.x + -192, stashPosition.y + 48, 'GoldMine', 0);
  1693. Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + -192, 'GoldMine', 0);
  1694. Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + -192, 'GoldMine', 0);
  1695. Auto.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -48, 'GoldMine', 0);
  1696. Auto.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 48, 'GoldMine', 0);
  1697. Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + 192, 'GoldMine', 0);
  1698. Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + 192, 'GoldMine', 0);
  1699. Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + 288, 'ArrowTower', 0);
  1700. Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + 288, 'ArrowTower', 0);
  1701. Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + 288, 'ArrowTower', 0);
  1702. Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + 288, 'ArrowTower', 0);
  1703. Auto.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -48, 'ArrowTower', 0);
  1704. Auto.PlaceBuilding(stashPosition.x + -288, stashPosition.y + 48, 'ArrowTower', 0);
  1705. Auto.PlaceBuilding(stashPosition.x + -288, stashPosition.y + 144, 'ArrowTower', 0);
  1706. Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + -288, 'ArrowTower', 0);
  1707. Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + -288, 'ArrowTower', 0);
  1708. Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -144, 'ArrowTower', 0);
  1709. Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -48, 'ArrowTower', 0);
  1710. Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 48, 'ArrowTower', 0);
  1711. Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 144, 'ArrowTower', 0);
  1712. Auto.PlaceBuilding(stashPosition.x + 384, stashPosition.y + 144, 'ArrowTower', 0);
  1713. Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + 144, 'ArrowTower', 0);
  1714. Auto.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 240, 'ArrowTower', 0);
  1715. Auto.PlaceBuilding(stashPosition.x + 432, stashPosition.y + 240, 'ArrowTower', 0);
  1716. Auto.PlaceBuilding(stashPosition.x + 384, stashPosition.y + 336, 'ArrowTower', 0);
  1717. Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + 384, 'ArrowTower', 0);
  1718. Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + 480, 'ArrowTower', 0);
  1719. Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + 576, 'ArrowTower', 0);
  1720. Auto.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 432, 'ArrowTower', 0);
  1721. Auto.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -144, 'CannonTower', 0);
  1722. Auto.PlaceBuilding(stashPosition.x + -384, stashPosition.y + -144, 'CannonTower', 0);
  1723. Auto.PlaceBuilding(stashPosition.x + -480, stashPosition.y + -144, 'CannonTower', 0);
  1724. Auto.PlaceBuilding(stashPosition.x + -432, stashPosition.y + -240, 'CannonTower', 0);
  1725. Auto.PlaceBuilding(stashPosition.x + -336, stashPosition.y + -240, 'CannonTower', 0);
  1726. Auto.PlaceBuilding(stashPosition.x + -336, stashPosition.y + 240, 'CannonTower', 0);
  1727. Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + 384, 'CannonTower', 0);
  1728. Auto.PlaceBuilding(stashPosition.x + -240, stashPosition.y + 432, 'CannonTower', 0);
  1729. Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + -288, 'CannonTower', 0);
  1730. Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + -384, 'CannonTower', 0);
  1731. Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + -480, 'CannonTower', 0);
  1732. Auto.PlaceBuilding(stashPosition.x + -240, stashPosition.y + -432, 'CannonTower', 0);
  1733. Auto.PlaceBuilding(stashPosition.x + -336, stashPosition.y + -384, 'CannonTower', 0);
  1734. Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + -288, 'CannonTower', 0);
  1735. Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + -384, 'CannonTower', 0);
  1736. Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + -480, 'CannonTower', 0);
  1737. Auto.PlaceBuilding(stashPosition.x + 240, stashPosition.y + -432, 'CannonTower', 0);
  1738. Auto.PlaceBuilding(stashPosition.x + 336, stashPosition.y + -384, 'CannonTower', 0);
  1739. Auto.PlaceBuilding(stashPosition.x + 336, stashPosition.y + -240, 'CannonTower', 0);
  1740. Auto.PlaceBuilding(stashPosition.x + 432, stashPosition.y + -240, 'CannonTower', 0);
  1741. Auto.PlaceBuilding(stashPosition.x + 528, stashPosition.y + -240, 'CannonTower', 0);
  1742. Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + -144, 'CannonTower', 0);
  1743. Auto.PlaceBuilding(stashPosition.x + 576, stashPosition.y + -144, 'CannonTower', 0);
  1744. Auto.PlaceBuilding(stashPosition.x + 384, stashPosition.y + -144, 'BombTower', 0);
  1745. Auto.PlaceBuilding(stashPosition.x + 384, stashPosition.y + -48, 'BombTower', 0);
  1746. Auto.PlaceBuilding(stashPosition.x + 384, stashPosition.y + 48, 'BombTower', 0);
  1747. Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + -48, 'BombTower', 0);
  1748. Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + 48, 'BombTower', 0);
  1749. Auto.PlaceBuilding(stashPosition.x + 576, stashPosition.y + -48, 'BombTower', 0);
  1750. Auto.PlaceBuilding(stashPosition.x + 576, stashPosition.y + 48, 'BombTower', 0);
  1751. Auto.PlaceBuilding(stashPosition.x + 528, stashPosition.y + 240, 'MagicTower', 0);
  1752. Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + 336, 'MagicTower', 0);
  1753. Auto.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 528, 'MagicTower', 0);
  1754. Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + 576, 'MagicTower', 0);
  1755. Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + 384, 'BombTower', 0);
  1756. Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + 384, 'BombTower', 0);
  1757. Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + 480, 'BombTower', 0);
  1758. Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + 480, 'BombTower', 0);
  1759. Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + 576, 'BombTower', 0);
  1760. Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + 480, 'BombTower', 0);
  1761. Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + 576, 'MagicTower', 0);
  1762. Auto.PlaceBuilding(stashPosition.x + -240, stashPosition.y + 528, 'MagicTower', 0);
  1763. Auto.PlaceBuilding(stashPosition.x + -336, stashPosition.y + 480, 'MagicTower', 0);
  1764. Auto.PlaceBuilding(stashPosition.x + -384, stashPosition.y + -48, 'BombTower', 0);
  1765. Auto.PlaceBuilding(stashPosition.x + -384, stashPosition.y + 48, 'BombTower', 0);
  1766. Auto.PlaceBuilding(stashPosition.x + -384, stashPosition.y + 144, 'BombTower', 0);
  1767. Auto.PlaceBuilding(stashPosition.x + -480, stashPosition.y + -48, 'BombTower', 0);
  1768. Auto.PlaceBuilding(stashPosition.x + -480, stashPosition.y + 48, 'BombTower', 0);
  1769. Auto.PlaceBuilding(stashPosition.x + -480, stashPosition.y + 144, 'BombTower', 0);
  1770. Auto.PlaceBuilding(stashPosition.x + -432, stashPosition.y + 240, 'CannonTower', 0);
  1771. Auto.PlaceBuilding(stashPosition.x + -384, stashPosition.y + 336, 'MagicTower', 0);
  1772. Auto.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 480, 'MagicTower', 0);
  1773. Auto.PlaceBuilding(stashPosition.x + -480, stashPosition.y + 336, 'MagicTower', 0);
  1774. Auto.PlaceBuilding(stashPosition.x + -528, stashPosition.y + 240, 'MagicTower', 0);
  1775. Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + -336, 'MagicTower', 0);
  1776. Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + -480, 'BombTower', 0);
  1777. Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + -384, 'BombTower', 0);
  1778. Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + -384, 'BombTower', 0);
  1779. Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + -480, 'BombTower', 0);
  1780. Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + -576, 'BombTower', 0);
  1781. Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + -576, 'MagicTower', 0);
  1782. Auto.PlaceBuilding(stashPosition.x + 240, stashPosition.y + -528, 'MagicTower', 0);
  1783. Auto.PlaceBuilding(stashPosition.x + 336, stashPosition.y + -480, 'MagicTower', 0);
  1784. Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + -576, 'MagicTower', 0);
  1785. Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + -576, 'MagicTower', 0);
  1786. Auto.PlaceBuilding(stashPosition.x + -240, stashPosition.y + -528, 'MagicTower', 0);
  1787. Auto.PlaceBuilding(stashPosition.x + -336, stashPosition.y + -480, 'MagicTower', 0);
  1788. Auto.PlaceBuilding(stashPosition.x + -576, stashPosition.y + 48, 'ArrowTower', 0);
  1789. Auto.PlaceBuilding(stashPosition.x + -576, stashPosition.y + 144, 'MagicTower', 0);
  1790. Auto.PlaceBuilding(stashPosition.x + -576, stashPosition.y + -48, 'MagicTower', 0);
  1791. Auto.PlaceBuilding(stashPosition.x + -576, stashPosition.y + -144, 'MagicTower', 0);
  1792. Auto.PlaceBuilding(stashPosition.x + -528, stashPosition.y + -240, 'MagicTower', 0);
  1793. Auto.PlaceBuilding(stashPosition.x + -480, stashPosition.y + -336, 'MagicTower', 0);
  1794. Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + -192, 'Harvester', 0);
  1795. Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + -192, 'Harvester', 0);
  1796. Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + 192, 'Harvester', 0);
  1797. Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + 192, 'Harvester', 0);
  1798. Auto.PlaceBuilding(stashPosition.x + -648, stashPosition.y + -168, 'Wall', 0);
  1799. Auto.PlaceBuilding(stashPosition.x + -648, stashPosition.y + -120, 'Wall', 0);
  1800. Auto.PlaceBuilding(stashPosition.x + -648, stashPosition.y + -72, 'Wall', 0);
  1801. Auto.PlaceBuilding(stashPosition.x + -648, stashPosition.y + -24, 'Wall', 0);
  1802. Auto.PlaceBuilding(stashPosition.x + -648, stashPosition.y + 24, 'Wall', 0);
  1803. Auto.PlaceBuilding(stashPosition.x + -648, stashPosition.y + 72, 'Wall', 0);
  1804. Auto.PlaceBuilding(stashPosition.x + -648, stashPosition.y + 120, 'Wall', 0);
  1805. Auto.PlaceBuilding(stashPosition.x + -648, stashPosition.y + 168, 'Wall', 0);
  1806. Auto.PlaceBuilding(stashPosition.x + -696, stashPosition.y + -120, 'Wall', 0);
  1807. Auto.PlaceBuilding(stashPosition.x + -696, stashPosition.y + -72, 'Wall', 0);
  1808. Auto.PlaceBuilding(stashPosition.x + -696, stashPosition.y + -24, 'Wall', 0);
  1809. Auto.PlaceBuilding(stashPosition.x + -696, stashPosition.y + 24, 'Wall', 0);
  1810. Auto.PlaceBuilding(stashPosition.x + -696, stashPosition.y + 72, 'Wall', 0);
  1811. Auto.PlaceBuilding(stashPosition.x + -696, stashPosition.y + 120, 'Wall', 0);
  1812. Auto.PlaceBuilding(stashPosition.x + 600, stashPosition.y + 120, 'Door', 0);
  1813. Auto.PlaceBuilding(stashPosition.x + 552, stashPosition.y + 120, 'Door', 0);
  1814. Auto.PlaceBuilding(stashPosition.x + 552, stashPosition.y + 168, 'Door', 0);
  1815. Auto.PlaceBuilding(stashPosition.x + 600, stashPosition.y + 168, 'Door', 0);
  1816. Auto.PlaceBuilding(stashPosition.x + 648, stashPosition.y + -168, 'Wall', 0);
  1817. Auto.PlaceBuilding(stashPosition.x + 648, stashPosition.y + -120, 'Wall', 0);
  1818. Auto.PlaceBuilding(stashPosition.x + 648, stashPosition.y + -72, 'Wall', 0);
  1819. Auto.PlaceBuilding(stashPosition.x + 648, stashPosition.y + -24, 'Wall', 0);
  1820. Auto.PlaceBuilding(stashPosition.x + 648, stashPosition.y + 24, 'Wall', 0);
  1821. Auto.PlaceBuilding(stashPosition.x + 648, stashPosition.y + 72, 'Wall', 0);
  1822. Auto.PlaceBuilding(stashPosition.x + 648, stashPosition.y + 120, 'Wall', 0);
  1823. Auto.PlaceBuilding(stashPosition.x + 648, stashPosition.y + 168, 'Wall', 0);
  1824. Auto.PlaceBuilding(stashPosition.x + 696, stashPosition.y + -120, 'Wall', 0);
  1825. Auto.PlaceBuilding(stashPosition.x + 696, stashPosition.y + -72, 'Wall', 0);
  1826. Auto.PlaceBuilding(stashPosition.x + 696, stashPosition.y + -24, 'Wall', 0);
  1827. Auto.PlaceBuilding(stashPosition.x + 696, stashPosition.y + 24, 'Wall', 0);
  1828. Auto.PlaceBuilding(stashPosition.x + 696, stashPosition.y + 72, 'Wall', 0);
  1829. Auto.PlaceBuilding(stashPosition.x + 696, stashPosition.y + 120, 'Wall', 0);
  1830. Auto.PlaceBuilding(stashPosition.x + -168, stashPosition.y + -648, 'Wall', 0);
  1831. Auto.PlaceBuilding(stashPosition.x + -120, stashPosition.y + -648, 'Wall', 0);
  1832. Auto.PlaceBuilding(stashPosition.x + -72, stashPosition.y + -648, 'Wall', 0);
  1833. Auto.PlaceBuilding(stashPosition.x + -24, stashPosition.y + -648, 'Wall', 0);
  1834. Auto.PlaceBuilding(stashPosition.x + 24, stashPosition.y + -648, 'Wall', 0);
  1835. Auto.PlaceBuilding(stashPosition.x + 72, stashPosition.y + -648, 'Wall', 0);
  1836. Auto.PlaceBuilding(stashPosition.x + 120, stashPosition.y + -648, 'Wall', 0);
  1837. Auto.PlaceBuilding(stashPosition.x + 168, stashPosition.y + -648, 'Wall', 0);
  1838. Auto.PlaceBuilding(stashPosition.x + -120, stashPosition.y + -696, 'Wall', 0);
  1839. Auto.PlaceBuilding(stashPosition.x + -72, stashPosition.y + -696, 'Wall', 0);
  1840. Auto.PlaceBuilding(stashPosition.x + -24, stashPosition.y + -696, 'Wall', 0);
  1841. Auto.PlaceBuilding(stashPosition.x + 24, stashPosition.y + -696, 'Wall', 0);
  1842. Auto.PlaceBuilding(stashPosition.x + 72, stashPosition.y + -696, 'Wall', 0);
  1843. Auto.PlaceBuilding(stashPosition.x + 120, stashPosition.y + -696, 'Wall', 0);
  1844. Auto.PlaceBuilding(stashPosition.x + -168, stashPosition.y + 648, 'Wall', 0);
  1845. Auto.PlaceBuilding(stashPosition.x + -120, stashPosition.y + 648, 'Wall', 0);
  1846. Auto.PlaceBuilding(stashPosition.x + -72, stashPosition.y + 648, 'Wall', 0);
  1847. Auto.PlaceBuilding(stashPosition.x + -24, stashPosition.y + 648, 'Wall', 0);
  1848. Auto.PlaceBuilding(stashPosition.x + 24, stashPosition.y + 648, 'Wall', 0);
  1849. Auto.PlaceBuilding(stashPosition.x + 72, stashPosition.y + 648, 'Wall', 0);
  1850. Auto.PlaceBuilding(stashPosition.x + 120, stashPosition.y + 648, 'Wall', 0);
  1851. Auto.PlaceBuilding(stashPosition.x + 168, stashPosition.y + 648, 'Wall', 0);
  1852. Auto.PlaceBuilding(stashPosition.x + -120, stashPosition.y + 696, 'Wall', 0);
  1853. Auto.PlaceBuilding(stashPosition.x + -72, stashPosition.y + 696, 'Wall', 0);
  1854. Auto.PlaceBuilding(stashPosition.x + -24, stashPosition.y + 696, 'Wall', 0);
  1855. Auto.PlaceBuilding(stashPosition.x + 24, stashPosition.y + 696, 'Wall', 0);
  1856. Auto.PlaceBuilding(stashPosition.x + 72, stashPosition.y + 696, 'Wall', 0);
  1857. Auto.PlaceBuilding(stashPosition.x + 120, stashPosition.y + 696, 'Wall', 0);
  1858. Auto.PlaceBuilding(stashPosition.x + 216, stashPosition.y + 312, 'Door', 0);
  1859. Auto.PlaceBuilding(stashPosition.x + 216, stashPosition.y + 360, 'Door', 0);
  1860. Auto.PlaceBuilding(stashPosition.x + 264, stashPosition.y + 360, 'Door', 0);
  1861. Auto.PlaceBuilding(stashPosition.x + 216, stashPosition.y + -120, 'Door', 0);
  1862. Auto.PlaceBuilding(stashPosition.x + -216, stashPosition.y + -120, 'Door', 0);
  1863. Auto.PlaceBuilding(stashPosition.x + -216, stashPosition.y + 120, 'Door', 0);
  1864. Auto.PlaceBuilding(stashPosition.x + 216, stashPosition.y + 120, 'Door', 0);
  1865. Auto.PlaceBuilding(stashPosition.x + 216, stashPosition.y + -312, 'Door', 0);
  1866. Auto.PlaceBuilding(stashPosition.x + 216, stashPosition.y + -360, 'Door', 0);
  1867. Auto.PlaceBuilding(stashPosition.x + 264, stashPosition.y + -360, 'Door', 0);
  1868. Auto.PlaceBuilding(stashPosition.x + -216, stashPosition.y + -360, 'Door', 0);
  1869. Auto.PlaceBuilding(stashPosition.x + -216, stashPosition.y + -312, 'Door', 0);
  1870. Auto.PlaceBuilding(stashPosition.x + -264, stashPosition.y + -360, 'Door', 0);
  1871. Auto.PlaceBuilding(stashPosition.x + -216, stashPosition.y + 312, 'Door', 0);
  1872. Auto.PlaceBuilding(stashPosition.x + -216, stashPosition.y + 360, 'Door', 0);
  1873. Auto.PlaceBuilding(stashPosition.x + -264, stashPosition.y + 360, 'Door', 0);
  1874. }
  1875. }, 150)
  1876. }
  1877.  
  1878. Auto.SSLQ1 = function() {
  1879. let waitForGoldStash = setInterval(function() {
  1880. if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
  1881. let stash = Auto.GetGoldStash();
  1882. if (stash == undefined) return
  1883. let stashPosition = {
  1884. x: stash.x,
  1885. y: stash.y
  1886. }
  1887. clearInterval(waitForGoldStash)
  1888. 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);
  1889. }
  1890. }, 150)
  1891. }
  1892. Auto.BuildThingBase = function() {
  1893. let waitForGoldStash = setInterval(function() {
  1894. if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
  1895. let stash = Auto.GetGoldStash();
  1896. if (stash == undefined) return
  1897. let stashPosition = {
  1898. x: stash.x,
  1899. y: stash.y
  1900. }
  1901. clearInterval(waitForGoldStash)
  1902. Auto.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -192, "Harvester", 100)
  1903. Auto.PlaceBuilding(stashPosition.x + -192, stashPosition.y + 0, "Harvester", 100)
  1904. Auto.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 96, "Harvester", 100)
  1905. Auto.PlaceBuilding(stashPosition.x + 96, stashPosition.y + -96, "Harvester", 100);
  1906. Auto.PlaceBuilding(stashPosition.x + -96, stashPosition.y + -96, "Harvester", 100)
  1907. Auto.PlaceBuilding(stashPosition.x + 96, stashPosition.y, "GoldMine", 0)
  1908. Auto.PlaceBuilding(stashPosition.x, stashPosition.y + 96, "GoldMine", 0)
  1909. Auto.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 144, "ArrowTower", 0)
  1910. Auto.PlaceBuilding(stashPosition.x, stashPosition.y + 192, "ArrowTower", 0)
  1911. Auto.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 240, "ArrowTower", 0)
  1912. Auto.PlaceBuilding(stashPosition.x + 192, stashPosition.y, "ArrowTower", 0)
  1913. Auto.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 96, "ArrowTower", 0)
  1914. Auto.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 192, "ArrowTower", 0)
  1915. Auto.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 336, "ArrowTower", 0)
  1916. Auto.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 192, "ArrowTower", 0)
  1917. Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y, "GoldMine", 0)
  1918. Auto.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 96, "GoldMine", 0)
  1919. Auto.PlaceBuilding(stashPosition.x + 432, stashPosition.y + 192, "GoldMine", 0)
  1920. Auto.PlaceBuilding(stashPosition.x, stashPosition.y + 288, "GoldMine", 0)
  1921. Auto.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 336, "GoldMine", 0)
  1922. Auto.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 432, "GoldMine", 0)
  1923. Auto.PlaceBuilding(stashPosition.x, stashPosition.y + 384, "ArrowTower", 0)
  1924. Auto.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 432, "ArrowTower", 0)
  1925. Auto.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 528, "ArrowTower", 0)
  1926. Auto.PlaceBuilding(stashPosition.x + 384, stashPosition.y, "ArrowTower", 0)
  1927. Auto.PlaceBuilding(stashPosition.x + 432, stashPosition.y + 96, "ArrowTower", 0)
  1928. Auto.PlaceBuilding(stashPosition.x + 528, stashPosition.y + 192, "ArrowTower", 0)
  1929. Auto.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 336, "ArrowTower", 0)
  1930. Auto.PlaceBuilding(stashPosition.x + 432, stashPosition.y + 432, "ArrowTower", 0)
  1931. Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 480, "ArrowTower", 0)
  1932. Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + 288, "ArrowTower", 0)
  1933. Auto.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 528, "CannonTower", 0)
  1934. Auto.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 624, "CannonTower", 0)
  1935. Auto.PlaceBuilding(stashPosition.x + 528, stashPosition.y + 96, "CannonTower", 0)
  1936. Auto.PlaceBuilding(stashPosition.x + 624, stashPosition.y + 192, "CannonTower", 0)
  1937. Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y, "MagicTower", 0)
  1938. Auto.PlaceBuilding(stashPosition.x + 576, stashPosition.y, "MagicTower", 0)
  1939. Auto.PlaceBuilding(stashPosition.x + 624, stashPosition.y + 96, "MagicTower", 0)
  1940. Auto.PlaceBuilding(stashPosition.x + 720, stashPosition.y + 192, "MagicTower", 0)
  1941. Auto.PlaceBuilding(stashPosition.x + 672, stashPosition.y + 288, "MagicTower", 0)
  1942. Auto.PlaceBuilding(stashPosition.x, stashPosition.y + 480, "MagicTower", 0)
  1943. Auto.PlaceBuilding(stashPosition.x, stashPosition.y + 576, "MagicTower", 0)
  1944. Auto.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 624, "MagicTower", 0)
  1945. Auto.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 720, "MagicTower", 0)
  1946. Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 672, "MagicTower", 0)
  1947. Auto.PlaceBuilding(stashPosition.x + 384, stashPosition.y + 672, "MagicTower", 0)
  1948. Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + 624, "MagicTower", 0)
  1949. Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + 528, "MagicTower", 0)
  1950. Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 576, "BombTower", 0)
  1951. Auto.PlaceBuilding(stashPosition.x + 576, stashPosition.y + 288, "BombTower", 0)
  1952. Auto.PlaceBuilding(stashPosition.x + 384, stashPosition.y + 576, "MagicTower", 0)
  1953. Auto.PlaceBuilding(stashPosition.x + 264, stashPosition.y + 312, "Door", 0)
  1954. Auto.PlaceBuilding(stashPosition.x + 264, stashPosition.y + 360, "Door", 0)
  1955. Auto.PlaceBuilding(stashPosition.x + 264, stashPosition.y + 408, "Door", 0)
  1956. Auto.PlaceBuilding(stashPosition.x + 312, stashPosition.y + 408, "Door", 0)
  1957. Auto.PlaceBuilding(stashPosition.x + 360, stashPosition.y + 456, "Door", 0)
  1958. Auto.PlaceBuilding(stashPosition.x + 360, stashPosition.y + 504, "Door", 0)
  1959. Auto.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 504, "Door", 0)
  1960. Auto.PlaceBuilding(stashPosition.x + 360, stashPosition.y + 408, "Door", 0)
  1961. Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 768, "CannonTower", 0)
  1962. Auto.PlaceBuilding(stashPosition.x + 768, stashPosition.y + 288, "CannonTower", 0)
  1963. Auto.PlaceBuilding(stashPosition.x + 672, stashPosition.y + 384, "MagicTower", 0)
  1964. Auto.PlaceBuilding(stashPosition.x + 624, stashPosition.y + 480, "MagicTower", 0)
  1965. Auto.PlaceBuilding(stashPosition.x + 576, stashPosition.y + 384, "MagicTower", 0)
  1966. Auto.PlaceBuilding(stashPosition.x + 744, stashPosition.y + 360, "Door", 0)
  1967. Auto.PlaceBuilding(stashPosition.x + 696, stashPosition.y + 456, "Door", 0)
  1968. Auto.PlaceBuilding(stashPosition.x + 456, stashPosition.y + 696, "Door", 0)
  1969. Auto.PlaceBuilding(stashPosition.x + 360, stashPosition.y + 744, "Door", 0)
  1970. }
  1971. }, 150)
  1972. }
  1973. var e = function(x, y, building, yaw) {
  1974. Game.currentGame.network.sendRpc({
  1975. name: "MakeBuilding",
  1976. x: x,
  1977. y: y,
  1978. type: building,
  1979. yaw: yaw
  1980. })
  1981. }
  1982. var HELL = 1008;
  1983. var HELL2 = 17856;
  1984. Auto.BryanScoreBase = function() {
  1985. let waitForGoldStash = setInterval(function() {
  1986. if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
  1987. let stash = Auto.GetGoldStash();
  1988. if (stash == undefined) return
  1989. let stashPosition = {
  1990. x: stash.x,
  1991. y: stash.y
  1992. }
  1993. clearInterval(waitForGoldStash)
  1994. e(stashPosition.x + 8640-8640, stashPosition.y + 12048-12048, "GoldStash", 0)
  1995. e(stashPosition.x + 8640-8544, stashPosition.y + 12048-12048, "CannonTower", 0)
  1996. e(stashPosition.x + 8640-8448, stashPosition.y + 12048-11952, "CannonTower", 0)
  1997. e(stashPosition.x + 8640-8448, stashPosition.y + 12048-12144, "CannonTower", 0)
  1998. e(stashPosition.x + 8640-8736, stashPosition.y + 12048-12048, "CannonTower", 0)
  1999. e(stashPosition.x + 8640-8832, stashPosition.y + 12048-12144, "CannonTower", 0)
  2000. e(stashPosition.x + 8640-8832, stashPosition.y + 12048-11952, "CannonTower", 0)
  2001. e(stashPosition.x + 8640-8736, stashPosition.y + 12048-11952, "BombTower", 0)
  2002. e(stashPosition.x + 8640-8640, stashPosition.y + 12048-11952, "BombTower", 0)
  2003. e(stashPosition.x + 8640-8544, stashPosition.y + 12048-11952, "BombTower", 0)
  2004. e(stashPosition.x + 8640-8544, stashPosition.y + 12048-12144, "BombTower", 0)
  2005. e(stashPosition.x + 8640-8640, stashPosition.y + 12048-12144, "BombTower", 0)
  2006. e(stashPosition.x + 8640-8736, stashPosition.y + 12048-12144, "BombTower", 0)
  2007. e(stashPosition.x + 8640-8832, stashPosition.y + 12048-12048, "MagicTower", 0)
  2008. e(stashPosition.x + 8640-8832, stashPosition.y + 12048-12240, "MagicTower", 0)
  2009. e(stashPosition.x + 8640-8832, stashPosition.y + 12048-11856, "MagicTower", 0)
  2010. e(stashPosition.x + 8640-8448, stashPosition.y + 12048-11856, "MagicTower", 0)
  2011. e(stashPosition.x + 8640-8448, stashPosition.y + 12048-12048, "MagicTower", 0)
  2012. e(stashPosition.x + 8640-8448, stashPosition.y + 12048-12240, "MagicTower", 0)
  2013. e(stashPosition.x + 8640-8640, stashPosition.y + 12048-12240, "ArrowTower", 0)
  2014. e(stashPosition.x + 8640-8736, stashPosition.y + 12048-12240, "ArrowTower", 0)
  2015. e(stashPosition.x + 8640-8544, stashPosition.y + 12048-12240, "ArrowTower", 0)
  2016. e(stashPosition.x + 8640-8640, stashPosition.y + 12048-11856, "ArrowTower", 0)
  2017. e(stashPosition.x + 8640-8736, stashPosition.y + 12048-11856, "ArrowTower", 0)
  2018. e(stashPosition.x + 8640-8544, stashPosition.y + 12048-11856, "ArrowTower", 0)
  2019. e(stashPosition.x + 8640-8904, stashPosition.y + 12048-11832, "Door", 0)
  2020. e(stashPosition.x + 8640-8904, stashPosition.y + 12048-11880, "Door", 0)
  2021. e(stashPosition.x + 8640-8904, stashPosition.y + 12048-11928, "Door", 0)
  2022. e(stashPosition.x + 8640-8904, stashPosition.y + 12048-11976, "Door", 0)
  2023. e(stashPosition.x + 8640-8904, stashPosition.y + 12048-12024, "Door", 0)
  2024. e(stashPosition.x + 8640-8904, stashPosition.y + 12048-12072, "Door", 0)
  2025. e(stashPosition.x + 8640-8904, stashPosition.y + 12048-12120, "Door", 0)
  2026. e(stashPosition.x + 8640-8904, stashPosition.y + 12048-12168, "Door", 0)
  2027. e(stashPosition.x + 8640-8904, stashPosition.y + 12048-12216, "Door", 0)
  2028. e(stashPosition.x + 8640-8904, stashPosition.y + 12048-12264, "Door", 0)
  2029. e(stashPosition.x + 8640-8856, stashPosition.y + 12048-12312, "Door", 0)
  2030. e(stashPosition.x + 8640-8808, stashPosition.y + 12048-12312, "Door", 0)
  2031. e(stashPosition.x + 8640-8760, stashPosition.y + 12048-12312, "Door", 0)
  2032. e(stashPosition.x + 8640-8712, stashPosition.y + 12048-12312, "Door", 0)
  2033. e(stashPosition.x + 8640-8664, stashPosition.y + 12048-12312, "Door", 0)
  2034. e(stashPosition.x + 8640-8616, stashPosition.y + 12048-12312, "Door", 0)
  2035. e(stashPosition.x + 8640-8568, stashPosition.y + 12048-12312, "Door", 0)
  2036. e(stashPosition.x + 8640-8520, stashPosition.y + 12048-12312, "Door", 0)
  2037. e(stashPosition.x + 8640-8472, stashPosition.y + 12048-12312, "Door", 0)
  2038. e(stashPosition.x + 8640-8424, stashPosition.y + 12048-12312, "Door", 0)
  2039. e(stashPosition.x + 8640-8376, stashPosition.y + 12048-12264, "Door", 0)
  2040. e(stashPosition.x + 8640-8376, stashPosition.y + 12048-12216, "Door", 0)
  2041. e(stashPosition.x + 8640-8376, stashPosition.y + 12048-12168, "Door", 0)
  2042. e(stashPosition.x + 8640-8376, stashPosition.y + 12048-12120, "Door", 0)
  2043. e(stashPosition.x + 8640-8376, stashPosition.y + 12048-12072, "Door", 0)
  2044. e(stashPosition.x + 8640-8376, stashPosition.y + 12048-12024, "Door", 0)
  2045. e(stashPosition.x + 8640-8376, stashPosition.y + 12048-11976, "Door", 0)
  2046. e(stashPosition.x + 8640-8376, stashPosition.y + 12048-11928, "Door", 0)
  2047. e(stashPosition.x + 8640-8376, stashPosition.y + 12048-11880, "Door", 0)
  2048. e(stashPosition.x + 8640-8376, stashPosition.y + 12048-11832, "Door", 0)
  2049. e(stashPosition.x + 8640-8424, stashPosition.y + 12048-11784, "Door", 0)
  2050. e(stashPosition.x + 8640-8472, stashPosition.y + 12048-11784, "Door", 0)
  2051. e(stashPosition.x + 8640-8520, stashPosition.y + 12048-11784, "Door", 0)
  2052. e(stashPosition.x + 8640-8568, stashPosition.y + 12048-11784, "Door", 0)
  2053. e(stashPosition.x + 8640-8616, stashPosition.y + 12048-11784, "Door", 0)
  2054. e(stashPosition.x + 8640-8664, stashPosition.y + 12048-11784, "Door", 0)
  2055. e(stashPosition.x + 8640-8712, stashPosition.y + 12048-11784, "Door", 0)
  2056. e(stashPosition.x + 8640-8760, stashPosition.y + 12048-11784, "Door", 0)
  2057. e(stashPosition.x + 8640-8808, stashPosition.y + 12048-11784, "Door", 0)
  2058. e(stashPosition.x + 8640-8856, stashPosition.y + 12048-11784, "Door", 0)
  2059. e(stashPosition.x + 8640-8376, stashPosition.y + 12048-11784, "Wall", 0)
  2060. e(stashPosition.x + 8640-8376, stashPosition.y + 12048-11736, "Wall", 0)
  2061. e(stashPosition.x + 8640-8328, stashPosition.y + 12048-11784, "Wall", 0)
  2062. e(stashPosition.x + 8640-8328, stashPosition.y + 12048-11736, "Wall", 0)
  2063. e(stashPosition.x + 8640-8328, stashPosition.y + 12048-11832, "Wall", 0)
  2064. e(stashPosition.x + 8640-8328, stashPosition.y + 12048-11880, "Wall", 0)
  2065. e(stashPosition.x + 8640-8328, stashPosition.y + 12048-11928, "Wall", 0)
  2066. e(stashPosition.x + 8640-8328, stashPosition.y + 12048-11976, "Wall", 0)
  2067. e(stashPosition.x + 8640-8328, stashPosition.y + 12048-12024, "Wall", 0)
  2068. e(stashPosition.x + 8640-8328, stashPosition.y + 12048-12072, "Wall", 0)
  2069. e(stashPosition.x + 8640-8328, stashPosition.y + 12048-12120, "Wall", 0)
  2070. e(stashPosition.x + 8640-8328, stashPosition.y + 12048-12168, "Wall", 0)
  2071. e(stashPosition.x + 8640-8328, stashPosition.y + 12048-12216, "Wall", 0)
  2072. e(stashPosition.x + 8640-8328, stashPosition.y + 12048-12264, "Wall", 0)
  2073. e(stashPosition.x + 8640-8328, stashPosition.y + 12048-12312, "Wall", 0)
  2074. e(stashPosition.x + 8640-8328, stashPosition.y + 12048-12360, "Wall", 0)
  2075. e(stashPosition.x + 8640-8376, stashPosition.y + 12048-12360, "Wall", 0)
  2076. e(stashPosition.x + 8640-8376, stashPosition.y + 12048-12312, "Wall", 0)
  2077. e(stashPosition.x + 8640-8424, stashPosition.y + 12048-12360, "Wall", 0)
  2078. e(stashPosition.x + 8640-8472, stashPosition.y + 12048-12360, "Wall", 0)
  2079. e(stashPosition.x + 8640-8568, stashPosition.y + 12048-12360, "Wall", 0)
  2080. e(stashPosition.x + 8640-8616, stashPosition.y + 12048-12360, "Wall", 0)
  2081. e(stashPosition.x + 8640-8664, stashPosition.y + 12048-12360, "Wall", 0)
  2082. e(stashPosition.x + 8640-8712, stashPosition.y + 12048-12360, "Wall", 0)
  2083. e(stashPosition.x + 8640-8760, stashPosition.y + 12048-12360, "Wall", 0)
  2084. e(stashPosition.x + 8640-8808, stashPosition.y + 12048-12360, "Wall", 0)
  2085. e(stashPosition.x + 8640-8856, stashPosition.y + 12048-12360, "Wall", 0)
  2086. e(stashPosition.x + 8640-8520, stashPosition.y + 12048-12360, "Wall", 0)
  2087. e(stashPosition.x + 8640-8904, stashPosition.y + 12048-12360, "Wall", 0)
  2088. e(stashPosition.x + 8640-8952, stashPosition.y + 12048-12360, "Wall", 0)
  2089. e(stashPosition.x + 8640-8952, stashPosition.y + 12048-12312, "Wall", 0)
  2090. e(stashPosition.x + 8640-8904, stashPosition.y + 12048-12312, "Wall", 0)
  2091. e(stashPosition.x + 8640-8952, stashPosition.y + 12048-12264, "Wall", 0)
  2092. e(stashPosition.x + 8640-8952, stashPosition.y + 12048-12216, "Wall", 0)
  2093. e(stashPosition.x + 8640-8952, stashPosition.y + 12048-12168, "Wall", 0)
  2094. e(stashPosition.x + 8640-8952, stashPosition.y + 12048-12120, "Wall", 0)
  2095. e(stashPosition.x + 8640-8952, stashPosition.y + 12048-12072, "Wall", 0)
  2096. e(stashPosition.x + 8640-8952, stashPosition.y + 12048-12024, "Wall", 0)
  2097. e(stashPosition.x + 8640-8952, stashPosition.y + 12048-11976, "Wall", 0)
  2098. e(stashPosition.x + 8640-8952, stashPosition.y + 12048-11928, "Wall", 0)
  2099. e(stashPosition.x + 8640-8952, stashPosition.y + 12048-11736, "Wall", 0)
  2100. e(stashPosition.x + 8640-8952, stashPosition.y + 12048-11784, "Wall", 0)
  2101. e(stashPosition.x + 8640-8952, stashPosition.y + 12048-11832, "Wall", 0)
  2102. e(stashPosition.x + 8640-8952, stashPosition.y + 12048-11880, "Wall", 0)
  2103. e(stashPosition.x + 8640-8904, stashPosition.y + 12048-11736, "Wall", 0)
  2104. e(stashPosition.x + 8640-8904, stashPosition.y + 12048-11784, "Wall", 0)
  2105. e(stashPosition.x + 8640-8856, stashPosition.y + 12048-11736, "Wall", 0)
  2106. e(stashPosition.x + 8640-8808, stashPosition.y + 12048-11736, "Wall", 0)
  2107. e(stashPosition.x + 8640-8760, stashPosition.y + 12048-11736, "Wall", 0)
  2108. e(stashPosition.x + 8640-8712, stashPosition.y + 12048-11736, "Wall", 0)
  2109. e(stashPosition.x + 8640-8664, stashPosition.y + 12048-11736, "Wall", 0)
  2110. e(stashPosition.x + 8640-8616, stashPosition.y + 12048-11736, "Wall", 0)
  2111. e(stashPosition.x + 8640-8568, stashPosition.y + 12048-11736, "Wall", 0)
  2112. e(stashPosition.x + 8640-8520, stashPosition.y + 12048-11736, "Wall", 0)
  2113. e(stashPosition.x + 8640-8472, stashPosition.y + 12048-11736, "Wall", 0)
  2114. e(stashPosition.x + 8640-8424, stashPosition.y + 12048-11736, "Wall", 0)
  2115. e(stashPosition.x + 8640-8280, stashPosition.y + 12048-11688, "Wall", 0)
  2116. e(stashPosition.x + 8640-8328, stashPosition.y + 12048-11688, "Wall", 0)
  2117. e(stashPosition.x + 8640-8376, stashPosition.y + 12048-11688, "Wall", 0)
  2118. e(stashPosition.x + 8640-8424, stashPosition.y + 12048-11688, "Wall", 0)
  2119. e(stashPosition.x + 8640-8472, stashPosition.y + 12048-11688, "Wall", 0)
  2120. e(stashPosition.x + 8640-8520, stashPosition.y + 12048-11688, "Wall", 0)
  2121. e(stashPosition.x + 8640-8568, stashPosition.y + 12048-11688, "Wall", 0)
  2122. e(stashPosition.x + 8640-8616, stashPosition.y + 12048-11688, "Wall", 0)
  2123. e(stashPosition.x + 8640-8664, stashPosition.y + 12048-11688, "Wall", 0)
  2124. e(stashPosition.x + 8640-8712, stashPosition.y + 12048-11688, "Wall", 0)
  2125. e(stashPosition.x + 8640-8760, stashPosition.y + 12048-11688, "Wall", 0)
  2126. e(stashPosition.x + 8640-8808, stashPosition.y + 12048-11688, "Wall", 0)
  2127. e(stashPosition.x + 8640-8856, stashPosition.y + 12048-11688, "Wall", 0)
  2128. e(stashPosition.x + 8640-8904, stashPosition.y + 12048-11688, "Wall", 0)
  2129. e(stashPosition.x + 8640-8952, stashPosition.y + 12048-11688, "Wall", 0)
  2130. e(stashPosition.x + 8640-9000, stashPosition.y + 12048-11688, "Wall", 0)
  2131. e(stashPosition.x + 8640-9000, stashPosition.y + 12048-11736, "Wall", 0)
  2132. e(stashPosition.x + 8640-9000, stashPosition.y + 12048-11784, "Wall", 0)
  2133. e(stashPosition.x + 8640-9000, stashPosition.y + 12048-11832, "Wall", 0)
  2134. e(stashPosition.x + 8640-9000, stashPosition.y + 12048-11880, "Wall", 0)
  2135. e(stashPosition.x + 8640-9000, stashPosition.y + 12048-11928, "Wall", 0)
  2136. e(stashPosition.x + 8640-9000, stashPosition.y + 12048-11976, "Wall", 0)
  2137. e(stashPosition.x + 8640-9000, stashPosition.y + 12048-12024, "Wall", 0)
  2138. e(stashPosition.x + 8640-9000, stashPosition.y + 12048-12072, "Wall", 0)
  2139. e(stashPosition.x + 8640-9000, stashPosition.y + 12048-12120, "Wall", 0)
  2140. e(stashPosition.x + 8640-9000, stashPosition.y + 12048-12168, "Wall", 0)
  2141. e(stashPosition.x + 8640-9000, stashPosition.y + 12048-12216, "Wall", 0)
  2142. e(stashPosition.x + 8640-9000, stashPosition.y + 12048-12264, "Wall", 0)
  2143. e(stashPosition.x + 8640-9000, stashPosition.y + 12048-12360, "Wall", 0)
  2144. e(stashPosition.x + 8640-9000, stashPosition.y + 12048-12408, "Wall", 0)
  2145. e(stashPosition.x + 8640-9000, stashPosition.y + 12048-12312, "Wall", 0)
  2146. e(stashPosition.x + 8640-8952, stashPosition.y + 12048-12408, "Wall", 0)
  2147. e(stashPosition.x + 8640-8904, stashPosition.y + 12048-12408, "Wall", 0)
  2148. e(stashPosition.x + 8640-8856, stashPosition.y + 12048-12408, "Wall", 0)
  2149. e(stashPosition.x + 8640-8808, stashPosition.y + 12048-12408, "Wall", 0)
  2150. e(stashPosition.x + 8640-8760, stashPosition.y + 12048-12408, "Wall", 0)
  2151. e(stashPosition.x + 8640-8712, stashPosition.y + 12048-12408, "Wall", 0)
  2152. e(stashPosition.x + 8640-8664, stashPosition.y + 12048-12408, "Wall", 0)
  2153. e(stashPosition.x + 8640-8616, stashPosition.y + 12048-12408, "Wall", 0)
  2154. e(stashPosition.x + 8640-8568, stashPosition.y + 12048-12408, "Wall", 0)
  2155. e(stashPosition.x + 8640-8520, stashPosition.y + 12048-12408, "Wall", 0)
  2156. e(stashPosition.x + 8640-8472, stashPosition.y + 12048-12408, "Wall", 0)
  2157. e(stashPosition.x + 8640-8424, stashPosition.y + 12048-12408, "Wall", 0)
  2158. e(stashPosition.x + 8640-8376, stashPosition.y + 12048-12408, "Wall", 0)
  2159. e(stashPosition.x + 8640-8328, stashPosition.y + 12048-12408, "Wall", 0)
  2160. e(stashPosition.x + 8640-8280, stashPosition.y + 12048-12408, "Wall", 0)
  2161. e(stashPosition.x + 8640-8280, stashPosition.y + 12048-12360, "Wall", 0)
  2162. e(stashPosition.x + 8640-8280, stashPosition.y + 12048-12312, "Wall", 0)
  2163. e(stashPosition.x + 8640-8280, stashPosition.y + 12048-12216, "Wall", 0)
  2164. e(stashPosition.x + 8640-8280, stashPosition.y + 12048-12168, "Wall", 0)
  2165. e(stashPosition.x + 8640-8280, stashPosition.y + 12048-12264, "Wall", 0)
  2166. e(stashPosition.x + 8640-8280, stashPosition.y + 12048-12120, "Wall", 0)
  2167. e(stashPosition.x + 8640-8280, stashPosition.y + 12048-11976, "Wall", 0)
  2168. e(stashPosition.x + 8640-8280, stashPosition.y + 12048-11880, "Wall", 0)
  2169. e(stashPosition.x + 8640-8280, stashPosition.y + 12048-11832, "Wall", 0)
  2170. e(stashPosition.x + 8640-8280, stashPosition.y + 12048-11784, "Wall", 0)
  2171. e(stashPosition.x + 8640-8280, stashPosition.y + 12048-11736, "Wall", 0)
  2172. e(stashPosition.x + 8640-8280, stashPosition.y + 12048-11928, "Wall", 0)
  2173. e(stashPosition.x + 8640-8280, stashPosition.y + 12048-12024, "Wall", 0)
  2174. e(stashPosition.x + 8640-8280, stashPosition.y + 12048-12072, "Wall", 0)
  2175. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 0, "Wall", 0)
  2176. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 24, "Wall", 0)
  2177. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 72, "Wall", 0)
  2178. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 120, "Wall", 0)
  2179. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 168, "Wall", 0)
  2180. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 216, "Wall", 0)
  2181. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 264, "Wall", 0)
  2182. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 312, "Wall", 0)
  2183. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 360, "Wall", 0)
  2184. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 408, "Wall", 0)
  2185. EXTREME.PlaceBuilding(stashPosition.x + -360, stashPosition.y + 408, "Wall", 0)
  2186. EXTREME.PlaceBuilding(stashPosition.x + -312, stashPosition.y + 408, "Wall", 0)
  2187. EXTREME.PlaceBuilding(stashPosition.x + -264, stashPosition.y + 408, "Wall", 0)
  2188. EXTREME.PlaceBuilding(stashPosition.x + -216, stashPosition.y + 408, "Wall", 0)
  2189. EXTREME.PlaceBuilding(stashPosition.x + -168, stashPosition.y + 408, "Wall", 0)
  2190. EXTREME.PlaceBuilding(stashPosition.x + -120, stashPosition.y + 408, "Wall", 0)
  2191. EXTREME.PlaceBuilding(stashPosition.x + -72, stashPosition.y + 408, "Wall", 0)
  2192. EXTREME.PlaceBuilding(stashPosition.x + -24, stashPosition.y + 408, "Wall", 0)
  2193. EXTREME.PlaceBuilding(stashPosition.x + -0, stashPosition.y + 408, "Wall", 0)
  2194. EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 408, "Wall", 0)
  2195. EXTREME.PlaceBuilding(stashPosition.x + 24, stashPosition.y + 408, "Wall", 0)
  2196. EXTREME.PlaceBuilding(stashPosition.x + 72, stashPosition.y + 408, "Wall", 0)
  2197. EXTREME.PlaceBuilding(stashPosition.x + 120, stashPosition.y + 408, "Wall", 0)
  2198. EXTREME.PlaceBuilding(stashPosition.x + 168, stashPosition.y + 408, "Wall", 0)
  2199. EXTREME.PlaceBuilding(stashPosition.x + 216, stashPosition.y + 408, "Wall", 0)
  2200. EXTREME.PlaceBuilding(stashPosition.x + 264, stashPosition.y + 408, "Wall", 0)
  2201. EXTREME.PlaceBuilding(stashPosition.x + 312, stashPosition.y + 408, "Wall", 0)
  2202. EXTREME.PlaceBuilding(stashPosition.x + 360, stashPosition.y + 408, "Wall", 0)
  2203. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 408, "Wall", 0)
  2204. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 360, "Wall", 0)
  2205. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 312, "Wall", 0)
  2206. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 264, "Wall", 0)
  2207. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 216, "Wall", 0)
  2208. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 168, "Wall", 0)
  2209. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 120, "Wall", 0)
  2210. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 72, "Wall", 0)
  2211. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 24, "Wall", 0)
  2212. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 0, "Wall", 0)
  2213. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -360, "Wall", 0)
  2214. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -312, "Wall", 0)
  2215. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -264, "Wall", 0)
  2216. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -216, "Wall", 0)
  2217. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -168, "Wall", 0)
  2218. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -120, "Wall", 0)
  2219. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -72, "Wall", 0)
  2220. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -24, "Wall", 0)
  2221. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -0, "Wall", 0)
  2222. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -408, "Wall", 0)
  2223. EXTREME.PlaceBuilding(stashPosition.x + 360, stashPosition.y + -408, "Wall", 0)
  2224. EXTREME.PlaceBuilding(stashPosition.x + 312, stashPosition.y + -408, "Wall", 0)
  2225. EXTREME.PlaceBuilding(stashPosition.x + 264, stashPosition.y + -408, "Wall", 0)
  2226. EXTREME.PlaceBuilding(stashPosition.x + 216, stashPosition.y + -408, "Wall", 0)
  2227. EXTREME.PlaceBuilding(stashPosition.x + 168, stashPosition.y + -408, "Wall", 0)
  2228. EXTREME.PlaceBuilding(stashPosition.x + 120, stashPosition.y + -408, "Wall", 0)
  2229. EXTREME.PlaceBuilding(stashPosition.x + 72, stashPosition.y + -408, "Wall", 0)
  2230. EXTREME.PlaceBuilding(stashPosition.x + 24, stashPosition.y + -408, "Wall", 0)
  2231. EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -408, "Wall", 0)
  2232. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -408, "Wall", 0)
  2233. EXTREME.PlaceBuilding(stashPosition.x + -360, stashPosition.y + -408, "Wall", 0)
  2234. EXTREME.PlaceBuilding(stashPosition.x + -312, stashPosition.y + -408, "Wall", 0)
  2235. EXTREME.PlaceBuilding(stashPosition.x + -264, stashPosition.y + -408, "Wall", 0)
  2236. EXTREME.PlaceBuilding(stashPosition.x + -216, stashPosition.y + -408, "Wall", 0)
  2237. EXTREME.PlaceBuilding(stashPosition.x + -168, stashPosition.y + -408, "Wall", 0)
  2238. EXTREME.PlaceBuilding(stashPosition.x + -120, stashPosition.y + -408, "Wall", 0)
  2239. EXTREME.PlaceBuilding(stashPosition.x + -72, stashPosition.y + -408, "Wall", 0)
  2240. EXTREME.PlaceBuilding(stashPosition.x + -24, stashPosition.y + -408, "Wall", 0)
  2241. EXTREME.PlaceBuilding(stashPosition.x + -0, stashPosition.y + -408, "Wall", 0)
  2242. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -0, "Wall", 0)
  2243. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -72, "Wall", 0)
  2244. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -24, "Wall", 0)
  2245. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -120, "Wall", 0)
  2246. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -168, "Wall", 0)
  2247. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -216, "Wall", 0)
  2248. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -264, "Wall", 0)
  2249. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -312, "Wall", 0)
  2250. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -360, "Wall", 0)
  2251. }
  2252. }, 150)
  2253. }
  2254. Auto.dhrBase = function() {
  2255. let waitForGoldStash = setInterval(function() {
  2256. if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
  2257. let stash = Auto.GetGoldStash();
  2258. if (stash == undefined) return
  2259. let stashPosition = {
  2260. x: stash.x,
  2261. y: stash.y
  2262. }
  2263. clearInterval(waitForGoldStash)
  2264. 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);
  2265. }
  2266. },150)
  2267. }
  2268. Auto.dhrBase2 = function() {
  2269. let waitForGoldStash = setInterval(function() {
  2270. if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
  2271. let stash = Auto.GetGoldStash();
  2272. if (stash == undefined) return
  2273. let stashPosition = {
  2274. x: stash.x,
  2275. y: stash.y
  2276. }
  2277. clearInterval(waitForGoldStash)
  2278. 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);
  2279. }
  2280. },150)
  2281. }
  2282. window.BSB = function() {
  2283. Auto.BuildBryanSmithBase()
  2284. }
  2285. window.TB = function() {
  2286. Auto.BuildThingBase()
  2287. }
  2288. window.TH = function() {
  2289. Auto2.GoldGenerator()
  2290. }
  2291. window.MB = function() {
  2292. EXTREME.BuildMyBase()
  2293. }
  2294. window.XBase = function () {
  2295. EXTREME.BuildXBase()
  2296. }
  2297. window.SmallCornerBase = function () {
  2298. EXTREME.BuildMyBase2()
  2299. }
  2300. window.BRYSCRBSE = function () {
  2301. Auto.BryanScoreBase()
  2302. }
  2303. window.deathrainbase = function () {
  2304. Auto.dhrBase()
  2305. }
  2306. window.bryanss = function () {
  2307. Auto.dhrBase2()
  2308. }
  2309. window.SSLQ = () => {
  2310. Auto.SSLQ1()
  2311. }
  2312. }
  2313. window.s3 = function() {
  2314. // ==UserScript==
  2315. // @name Base Saver
  2316. // @namespace http://tampermonkey.net/
  2317. // @version 0.1
  2318. // @description try to take over the world!
  2319. // @author You
  2320. // @match http://zombs.io/
  2321. // @grant none
  2322. // ==/UserScript==
  2323.  
  2324. let css2 = `
  2325. .btn:hover {
  2326. cursor: pointer;
  2327. }
  2328. .btn-blue {
  2329. background-color: #144b7a;
  2330. }
  2331. .btn-blue:hover .btn-blue:active {
  2332. background-color: #4fa7ee;
  2333. }
  2334. .box {
  2335. display: block;
  2336. width: 100%;
  2337. height: 50px;
  2338. line-height: 34px;
  2339. padding: 8px 14px;
  2340. margin: 0 0 10px;
  2341. background: #eee;
  2342. border: 0;
  2343. font-size: 14px;
  2344. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  2345. border-radius: 4px;
  2346. }
  2347. .codeIn, .joinOut {
  2348. height: 50px;
  2349. }
  2350. .hud-menu-zipp3 {
  2351. display: none;
  2352. position: fixed;
  2353. top: 48%;
  2354. left: 50%;
  2355. width: 600px;
  2356. height: 470px;
  2357. margin: -270px 0 0 -300px;
  2358. padding: 20px;
  2359. background: rgba(0, 0, 0, 0.6);
  2360. color: #eee;
  2361. border-radius: 4px;
  2362. z-index: 15;
  2363. }
  2364. .hud-menu-zipp3 h3 {
  2365. display: block;
  2366. margin: 0;
  2367. line-height: 20px;
  2368. }
  2369. .hud-menu-zipp3 .hud-zipp-grid3 {
  2370. display: block;
  2371. height: 380px;
  2372. padding: 10px;
  2373. margin-top: 18px;
  2374. background: rgba(0, 0, 0, 0.2);
  2375. }
  2376. .hud-spell-icons .hud-spell-icon[data-type="Zippity3"]::before {
  2377. background-image: url("https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/samsung/220/right-pointing-magnifying-glass_1f50e.png");
  2378. }
  2379. .hud-menu-zipp3 .hud-the-tab {
  2380. position: relative;
  2381. height: 40px;
  2382. line-height: 40px;
  2383. margin: 20px;
  2384. border: 0px solid rgb(0, 0, 0, 0);
  2385. }
  2386. .hud-menu-zipp3 .hud-the-tab {
  2387. display: block;
  2388. float: left;
  2389. padding: 0 14px;
  2390. margin: 0 1px 0 0;
  2391. font-size: 14px;
  2392. background: rgba(0, 0, 0, 0.4);
  2393. color: rgba(255, 255, 255, 0.4);
  2394. transition: all 0.15s ease-in-out;
  2395. }
  2396. .hud-menu-zipp3 .hud-the-tab:hover {
  2397. background: rgba(0, 0, 0, 0.2);
  2398. color: #eee;
  2399. cursor: pointer;
  2400. }
  2401. `;
  2402.  
  2403. let styles = document.createElement("style");
  2404. styles.appendChild(document.createTextNode(css2));
  2405. document.head.appendChild(styles);
  2406.  
  2407. // class changing
  2408. document.getElementsByClassName("hud-intro-form")[0].style.height = "300px";
  2409. document.getElementsByClassName("hud-intro-play")[0].setAttribute("class", "btn btn-blue hud-intro-play");
  2410.  
  2411. // spell icon
  2412. let spell = document.createElement("div");
  2413. spell.classList.add("hud-spell-icon");
  2414. spell.setAttribute("data-type", "Zippity3");
  2415. spell.classList.add("hud-zipp3-icon");
  2416. document.getElementsByClassName("hud-spell-icons")[0].appendChild(spell);
  2417.  
  2418. //Menu for spell icon
  2419. let modHTML = `
  2420. <div class="hud-menu-zipp3">
  2421. <br />
  2422. <div class="hud-zipp-grid3">
  2423. </div>
  2424. </div>
  2425. `;
  2426. document.body.insertAdjacentHTML("afterbegin", modHTML);
  2427. let zipz123 = document.getElementsByClassName("hud-menu-zipp3")[0];
  2428.  
  2429. //Onclick
  2430. document.getElementsByClassName("hud-zipp3-icon")[0].addEventListener("click", function() {
  2431. if(zipz123.style.display == "none") {
  2432. zipz123.style.display = "block";
  2433. for(var i = 0; i < menus.length; i++) {
  2434. menus[i].style.display = "none";
  2435. }
  2436. } else {
  2437. zipz123.style.display = "none";
  2438. };
  2439. });
  2440.  
  2441. let _menu = document.getElementsByClassName("hud-menu-icon");
  2442. let _spell = document.getElementsByClassName("hud-spell-icon");
  2443. let allIcon = [
  2444. _menu[0],
  2445. _menu[1],
  2446. _menu[2],
  2447. _spell[0],
  2448. _spell[1]
  2449. ];
  2450.  
  2451. allIcon.forEach(function(elem) {
  2452. elem.addEventListener("click", function() {
  2453. if(zipz123.style.display == "block") {
  2454. zipz123.style.display = "none";
  2455. };
  2456. });
  2457. });
  2458.  
  2459. // key to open and close
  2460. function modm() {
  2461. if(zipz123.style.display == "none") {
  2462. zipz123.style.display = "block";
  2463. for(var i = 0; i < menus.length; i++) {
  2464. menus[i].style.display = "none";
  2465. }
  2466. } else {
  2467. zipz123.style.display = "none";
  2468. };
  2469. };
  2470.  
  2471. document.getElementsByClassName("hud-zipp-grid3")[0].innerHTML = `
  2472. <div style="text-align:center"><br>
  2473. <hr />
  2474. <h3>Base Saver, <br>
  2475. <hr />
  2476. WARNING: If you place more than 225 building, it wont be saved/recorded.</h3>
  2477. <hr />
  2478. <button onclick="RecordBase();">Record Base!</button>
  2479. <button onclick="buildRecordedBase();">Build Recorded Base!</button>
  2480. <button onclick="DeleteRecordedbase();">Delete Recorded Base!</button>
  2481. <br><br>
  2482. <button onclick="saveBase();">Save Towers!</button>
  2483. <button onclick="saveTowers();">Build Saved Towers!</button>
  2484. <br><br>
  2485. <input type="number" value="275" class="SaveSpeed" placeholder="speed" style="width: 20%">
  2486. <button class="SaveSpeedbtn">save speed</button>
  2487. <button id="SSL31">Enable Auto Build Saved Towers!</button>
  2488. <br><br>
  2489. <input type="number" value="275" class="SaveSpeed2" placeholder="speed" style="width: 20%">
  2490. <button class="SaveSpeedbtn2">save speed</button>
  2491. <button id="SSL32">Enable Upgrade All!</button>
  2492. <button id="SSL33">Enable Auto Sell All!</button>
  2493. `;
  2494. var button231 = document.getElementById("SSL31");
  2495. button231.addEventListener("click", startSSL31);
  2496. button231.addEventListener("click", stopSSL31);
  2497. var SSL31 = null;
  2498. var saveSpeed=275;
  2499. $("SaveSpeedbtn").addEventListener("click", function() {
  2500. saveSpeed = $("SaveSpeed").value;
  2501. });
  2502.  
  2503. function startSSL31() {
  2504. clearInterval(SSL31);
  2505. if (SSL31 !== null) {
  2506. SSL31 = null;
  2507. } else {
  2508.  
  2509. SSL31 = setInterval(function() {
  2510. saveTowers()
  2511. }, saveSpeed)
  2512. }
  2513. }
  2514.  
  2515. function stopSSL31() {
  2516. var trade = document.getElementById("SSL31");
  2517. if (trade.innerHTML == "Enable Auto Build Saved Towers!") {
  2518. trade.innerHTML = "Disable Auto Build Saved Towers!";
  2519. } else {
  2520. trade.innerHTML = "Enable Auto Build Saved Towers!";
  2521. }
  2522. }
  2523. var button233 = document.getElementById("SSL33");
  2524. button233.addEventListener("click", startSSL33);
  2525. button233.addEventListener("click", stopSSL33);
  2526. var SSL33 = null;
  2527. function startSSL33() {
  2528. clearInterval(SSL33);
  2529. if (SSL33 !== null) {
  2530. SSL33 = null;
  2531. } else {
  2532.  
  2533. SSL33 = setInterval(function() {
  2534. GoldGeneratorr()
  2535. }, saveSpeed2)
  2536. }
  2537. }
  2538. function stopSSL33() {
  2539. var trade = document.getElementById("SSL33");
  2540. if (trade.innerHTML == "Enable Auto Sell All!") {
  2541. trade.innerHTML = "Disable Auto Sell All!";
  2542. } else {
  2543. trade.innerHTML = "Enable Auto Sell All!";
  2544. }
  2545. }
  2546. var button232 = document.getElementById("SSL32");
  2547. button232.addEventListener("click", startSSL32);
  2548. button232.addEventListener("click", stopSSL32);
  2549. var SSL32 = null;
  2550. var saveSpeed2=275;
  2551. $("SaveSpeedbtn2").addEventListener("click", function() {
  2552. saveSpeed2 = $("SaveSpeed2").value;
  2553. });
  2554.  
  2555. function startSSL32() {
  2556. clearInterval(SSL32);
  2557. if (SSL32 !== null) {
  2558. SSL32 = null;
  2559. } else {
  2560.  
  2561. SSL32 = setInterval(function() {
  2562. var entities = Game.currentGame.world.entities;
  2563. for(var uid in entities) {
  2564. if(!entities.hasOwnProperty(uid)) continue;
  2565. var obj = entities[uid];
  2566. if(["Door", "SlowTrap", "ArrowTower", "CannonTower", "MeleeTower", "BombTower", "MagicTower", "GoldMine", "Harvester", "Wall"].indexOf(obj.fromTick.model) >= 0) {
  2567. Game.currentGame.network.sendRpc({
  2568. name: "UpgradeBuilding",
  2569. uid: obj.fromTick.uid
  2570. });
  2571. }
  2572. }
  2573. }, 275)
  2574. }
  2575. }
  2576.  
  2577. function stopSSL32() {
  2578. var trade = document.getElementById("SSL32");
  2579. if (trade.innerHTML == "Enable Upgrade All!") {
  2580. trade.innerHTML = "Disable Upgrade All!";
  2581. } else {
  2582. trade.innerHTML = "Enable Upgrade All!";
  2583. }
  2584. }
  2585.  
  2586. //Auto Build Script
  2587. function $(classname) {
  2588. let element = document.getElementsByClassName(classname)
  2589. if (element.length === 1) {
  2590. return element[0]
  2591. } else {
  2592. return element
  2593. }
  2594. }
  2595.  
  2596. var sSsS = function(x, y, building, yaw) {
  2597. Game.currentGame.network.sendRpc({
  2598. name: "MakeBuilding",
  2599. x: x,
  2600. y: y,
  2601. type: building,
  2602. yaw: yaw
  2603. })
  2604. SellAll()
  2605. Object.keys(buildings).forEach(key => {
  2606. const building = buildings[key]
  2607. if(["Wall", "Door", "SlowTrap", "ArrowTower", "CannonTower", "MeleeTower", "BombTower", "MagicTower", "GoldMine", "Harvester" || "Wall"].indexOf(building.type) >= 0) {
  2608. delete buildings[key]
  2609. }})
  2610. }
  2611.  
  2612. window.GoldGeneratorr = function() {
  2613. let waitForGoldStash = setInterval(function() {
  2614. if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
  2615. let stash = GetGoldStash();
  2616. if (stash == undefined) return
  2617. let stashPosition = {
  2618. x: stash.x,
  2619. y: stash.y
  2620. }
  2621. clearInterval(waitForGoldStash);
  2622. sSsS(stashPosition.x + 100000000000000000000, stashPosition.y + 100000000000000000000000000, "ArrowTower", 0)
  2623. sSsS(stashPosition.x + 20000000000000000000000000, stashPosition.y + 200000000000000000000000, "ArrowTower", 0)
  2624. sSsS(stashPosition.x + 100000000000000000000, stashPosition.y + 100000000000000000000000000, "ArrowTower", 0)
  2625. sSsS(stashPosition.x + 20000000000000000000000000, stashPosition.y + 200000000000000000000000, "ArrowTower", 0)
  2626. sSsS(stashPosition.x + 100000000000000000000, stashPosition.y + 100000000000000000000000000, "ArrowTower", 0)
  2627. sSsS(stashPosition.x + 20000000000000000000000000, stashPosition.y + 200000000000000000000000, "ArrowTower", 0)
  2628. sSsS(stashPosition.x + 20000000000000000000000000, stashPosition.y + 200000000000000000000000, "ArrowTower", 0)
  2629. sSsS(stashPosition.x + 100000000000000000000, stashPosition.y + 100000000000000000000000000, "ArrowTower", 0)
  2630. sSsS(stashPosition.x + 20000000000000000000000000, stashPosition.y + 200000000000000000000000, "ArrowTower", 0)
  2631. }
  2632. }, 0)
  2633. }
  2634.  
  2635. window.saveTowers = function() {
  2636. var stash = GetGoldStash();
  2637. if (stash == undefined) {
  2638. return
  2639. }
  2640. var stashPosition = {
  2641. x: stash.x,
  2642. y: stash.y
  2643. }
  2644. var buildings = Game.currentGame.ui.buildings;
  2645. for (var uid in buildings) {
  2646. if (!buildings.hasOwnProperty(uid)) {
  2647. continue
  2648. }
  2649.  
  2650. var obj = buildings[uid]
  2651. var x = Game.currentGame.world.entities[obj.uid].fromTick.position.x - stashPosition.x
  2652. var y = Game.currentGame.world.entities[obj.uid].fromTick.position.y - stashPosition.y
  2653. var building = Game.currentGame.world.entities[obj.uid].fromTick.model
  2654. var yaw = Game.currentGame.world.entities[obj.uid].fromTick.yaw
  2655. for (let s of slowTraps) placeBuilding(stashPosition.x+s.x - stashPosition.x, stashPosition.y + s.y-stashPosition.y, s.type, 0);
  2656. }
  2657. }
  2658.  
  2659. window.SellStash = function() {
  2660. // Game.currentGame.ui.getComponent("PopupOverlay").showConfirmation("Are you sure you want to sell stash?", 1e4, function() {
  2661. var entities = Game.currentGame.world.entities;
  2662. for (var uid in entities) {
  2663. if (!entities.hasOwnProperty(uid)) continue;
  2664.  
  2665. var obj = entities[uid];
  2666. if (obj.fromTick.model == "GoldStash") {
  2667. Game.currentGame.network.sendRpc({
  2668. name: "DeleteBuilding",
  2669. uid: obj.fromTick.uid
  2670. })
  2671. }
  2672. }
  2673. Object.keys(buildings).forEach(key => {
  2674. const building = buildings[key]
  2675. if(["GoldStash" || "Wall"].indexOf(building.type) >= 0) {
  2676. delete buildings[key]
  2677. }})
  2678. // })
  2679. }
  2680.  
  2681. let slowTraps = []
  2682. const buildings = Game.currentGame.ui.buildings
  2683. const saveSlowTraps = () => {
  2684. slowTraps = []
  2685. Object.keys(buildings).forEach(key => {
  2686. const building = buildings[key]
  2687. if(["Wall", "Door", "SlowTrap", "ArrowTower", "CannonTower", "MeleeTower", "BombTower", "MagicTower", "GoldMine", "Harvester" || "Wall"].indexOf(building.type) >= 0) {
  2688. slowTraps.push(building)
  2689. }})},
  2690. placeBuilding = function(x, y, building, yaw) {
  2691. Game.currentGame.network.sendRpc({
  2692. name: "MakeBuilding",
  2693. x: x,
  2694. y: y,
  2695. type: building,
  2696. yaw: yaw
  2697. })
  2698. }
  2699.  
  2700. let GoldStashh = []
  2701. const buildings2 = Game.currentGame.ui.buildings
  2702. const saveSlowTraps2 = () => {
  2703. GoldStashh = []
  2704. Object.keys(buildings2).forEach(key => {
  2705. const building = buildings2[key]
  2706. if(["GoldStash" || "Wall"].indexOf(building.type) >= 0) {
  2707. GoldStashh.push(building)
  2708. }})}
  2709.  
  2710. window.sellBombs = function() {
  2711. var entities = Game.currentGame.world.entities;
  2712. for (var uid in entities) {
  2713. if (!entities.hasOwnProperty(uid)) continue;
  2714.  
  2715. var obj = entities[uid];
  2716. if (obj.fromTick.model == "BombTower") {
  2717. Game.currentGame.network.sendRpc({
  2718. name: "DeleteBuilding",
  2719. uid: obj.fromTick.uid
  2720. })
  2721. }
  2722. }
  2723. Object.keys(buildings).forEach(key => {
  2724. const building = buildings[key]
  2725. if(["BombTower" || "Wall"].indexOf(building.type) >= 0) {
  2726. delete buildings[key]
  2727. }})
  2728. }
  2729.  
  2730. window.SellAll = function() {
  2731. let ss4 = setInterval ( () => {
  2732. clearInterval(ss4)
  2733. // Game.currentGame.ui.getComponent("PopupOverlay").showConfirmation("Are you sure you want to sell all?", 1e4, function() {
  2734. var entities = Game.currentGame.world.entities;
  2735. for(var uid in entities) {
  2736. if(!entities.hasOwnProperty(uid)) continue;
  2737. var obj = entities[uid];
  2738. if(obj.fromTick.model !== "GoldStash") {
  2739. Game.currentGame.network.sendRpc({
  2740. name: "DeleteBuilding",
  2741. uid: obj.fromTick.uid
  2742. });
  2743. }
  2744. }
  2745. Object.keys(buildings).forEach(key => {
  2746. const building = buildings[key]
  2747. if(["Wall", "Door", "SlowTrap", "ArrowTower", "CannonTower", "MeleeTower", "BombTower", "MagicTower", "GoldMine", "Harvester" || "Wall"].indexOf(building.type) >= 0) {
  2748. delete buildings[key]
  2749. }})
  2750. }, 100)
  2751. // })
  2752. }
  2753.  
  2754. window.UpgradeAll = function() {
  2755. let ss2 = setInterval (() => {
  2756. clearInterval(ss2)
  2757. var entities = Game.currentGame.world.entities;
  2758. for(var uid in entities) {
  2759. if(!entities.hasOwnProperty(uid)) continue;
  2760. var obj = entities[uid];
  2761. if(obj.fromTick.model !== "GoldStash") {
  2762. Game.currentGame.network.sendRpc({
  2763. name: "UpgradeBuilding",
  2764. uid: obj.fromTick.uid
  2765. });
  2766. }
  2767. }
  2768. }, 100)
  2769. }
  2770.  
  2771. window.UpgradeStash = function() {
  2772. let ss3 = setInterval (() => {
  2773. clearInterval(ss3)
  2774. var entities = Game.currentGame.world.entities;
  2775. for(var uid in entities) {
  2776. if(!entities.hasOwnProperty(uid)) continue;
  2777. var obj = entities[uid];
  2778. if(obj.fromTick.model == "GoldStash") {
  2779. Game.currentGame.network.sendRpc({
  2780. name: "UpgradeBuilding",
  2781. uid: obj.fromTick.uid
  2782. });
  2783. }
  2784. }
  2785. }, 100)
  2786. }
  2787. window.saveBase = () => {
  2788. saveSlowTraps()
  2789. }
  2790. window.saveStash = () => {
  2791. saveSlowTraps2()
  2792. }
  2793.  
  2794. window.RecordBase = function(baseName) {
  2795. 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() {
  2796. var base = ""
  2797. var stash = GetGoldStash();
  2798. if (stash == undefined) {
  2799. return
  2800. }
  2801. var stashPosition = {
  2802. x: stash.x,
  2803. y: stash.y
  2804. }
  2805. var buildings = Game.currentGame.ui.buildings;
  2806. for (var uid in buildings) {
  2807. if (!buildings.hasOwnProperty(uid)) {
  2808. continue
  2809. }
  2810.  
  2811. var obj = buildings[uid]
  2812. var x = Game.currentGame.world.entities[obj.uid].fromTick.position.x - stashPosition.x
  2813. var y = Game.currentGame.world.entities[obj.uid].fromTick.position.y - stashPosition.y
  2814. var building = Game.currentGame.world.entities[obj.uid].fromTick.model
  2815. var yaw = Game.currentGame.world.entities[obj.uid].fromTick.yaw
  2816. base += "PlaceBuilding(stashPosition.x + " + x + ", stashPosition.y + " + y + ", '" + building + "', " + yaw + ");"
  2817. }
  2818. localStorage.setItem(baseName, base)
  2819. })
  2820. }
  2821. GetGoldStash = function() {
  2822. var entities = Game.currentGame.ui.buildings
  2823. for (var uid in entities) {
  2824. if (!entities.hasOwnProperty(uid)) {
  2825. continue
  2826. }
  2827. var obj = entities[uid]
  2828. if (obj.type == "GoldStash") {
  2829. return obj
  2830. }
  2831. }
  2832. }
  2833. PlaceBuilding = function(x, y, building, yaw) {
  2834. Game.currentGame.network.sendRpc({
  2835. name: "MakeBuilding",
  2836. x: x,
  2837. y: y,
  2838. type: building,
  2839. yaw: yaw
  2840. })
  2841. }
  2842. window.buildRecordedBase = function(myBaseName) {
  2843. var waitForGoldStash = setInterval(function() {
  2844. if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
  2845. stash = GetGoldStash();
  2846. if (stash == undefined) return
  2847. stashPosition = {
  2848. x: stash.x,
  2849. y: stash.y
  2850. }
  2851. clearInterval(waitForGoldStash)
  2852. var basecode = localStorage.getItem(myBaseName)
  2853. basecode = new Function(basecode)
  2854. return basecode()
  2855. }
  2856. }, 275)
  2857. }
  2858. window.DeleteRecordedbase = function(mybasename) {
  2859. Game.currentGame.ui.getComponent("PopupOverlay").showConfirmation("Are you sure you want to delete recorded base?", 1e4, function() {
  2860. if (localStorage.getItem(mybasename)) {
  2861. localStorage.removeItem(mybasename)
  2862. }
  2863. })
  2864. }
  2865. }
  2866. window.s4 = function() {
  2867. // ==UserScript==
  2868. // @name Tower Heal
  2869. // @namespace http://tampermonkey.net/
  2870. // @version 0.1
  2871. // @description try to take over the world!
  2872. // @author You
  2873. // @match http://zombs.io/
  2874. // @grant none
  2875. // ==/UserScript==
  2876.  
  2877. let css2 = `
  2878. .btn:hover {
  2879. cursor: pointer;
  2880. }
  2881. .btn-blue {
  2882. background-color: #144b7a;
  2883. }
  2884. .btn-blue:hover .btn-blue:active {
  2885. background-color: #4fa7ee;
  2886. }
  2887. .box {
  2888. display: block;
  2889. width: 100%;
  2890. height: 50px;
  2891. line-height: 34px;
  2892. padding: 8px 14px;
  2893. margin: 0 0 10px;
  2894. background: #eee;
  2895. border: 0;
  2896. font-size: 14px;
  2897. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  2898. border-radius: 4px;
  2899. }
  2900. .codeIn, .joinOut {
  2901. height: 50px;
  2902. }
  2903. .hud-menu-zipp4 {
  2904. display: none;
  2905. position: fixed;
  2906. top: 48%;
  2907. left: 50%;
  2908. width: 600px;
  2909. height: 470px;
  2910. margin: -270px 0 0 -300px;
  2911. padding: 20px;
  2912. background: rgba(0, 0, 0, 0.6);
  2913. color: #eee;
  2914. border-radius: 4px;
  2915. z-index: 15;
  2916. }
  2917. .hud-menu-zipp4 h3 {
  2918. display: block;
  2919. margin: 0;
  2920. line-height: 20px;
  2921. }
  2922. .hud-menu-zipp4 .hud-zipp-grid4 {
  2923. display: block;
  2924. height: 380px;
  2925. padding: 10px;
  2926. margin-top: 18px;
  2927. background: rgba(0, 0, 0, 0.2);
  2928. }
  2929. .hud-spell-icons .hud-spell-icon[data-type="Zippity4"]::before {
  2930. background-image: url("https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/facebook/65/cross-mark_274c.png");
  2931. }
  2932. .hud-menu-zipp4 .hud-the-tab {
  2933. position: relative;
  2934. height: 40px;
  2935. line-height: 40px;
  2936. margin: 20px;
  2937. border: 0px solid rgb(0, 0, 0, 0);
  2938. }
  2939. .hud-menu-zipp4 .hud-the-tab {
  2940. display: block;
  2941. float: left;
  2942. padding: 0 14px;
  2943. margin: 0 1px 0 0;
  2944. font-size: 14px;
  2945. background: rgba(0, 0, 0, 0.4);
  2946. color: rgba(255, 255, 255, 0.4);
  2947. transition: all 0.15s ease-in-out;
  2948. }
  2949. .hud-menu-zipp4 .hud-the-tab:hover {
  2950. background: rgba(0, 0, 0, 0.2);
  2951. color: #eee;
  2952. cursor: pointer;
  2953. }
  2954. `;
  2955.  
  2956. let styles = document.createElement("style");
  2957. styles.appendChild(document.createTextNode(css2));
  2958. document.head.appendChild(styles);
  2959.  
  2960. // class changing
  2961. document.getElementsByClassName("hud-intro-form")[0].style.height = "300px";
  2962. document.getElementsByClassName("hud-intro-play")[0].setAttribute("class", "btn btn-blue hud-intro-play");
  2963.  
  2964. // spell icon
  2965. let spell = document.createElement("div");
  2966. spell.classList.add("hud-spell-icon");
  2967. spell.setAttribute("data-type", "Zippity4");
  2968. spell.classList.add("hud-zipp4-icon");
  2969. document.getElementsByClassName("hud-spell-icons")[0].appendChild(spell);
  2970.  
  2971. //Menu for spell icon
  2972. let modHTML = `
  2973. <div class="hud-menu-zipp4">
  2974. <br />
  2975. <div class="hud-zipp-grid4">
  2976. </div>
  2977. </div>
  2978. `;
  2979. document.body.insertAdjacentHTML("afterbegin", modHTML);
  2980. let zipz123 = document.getElementsByClassName("hud-menu-zipp4")[0];
  2981.  
  2982. //Onclick
  2983. document.getElementsByClassName("hud-zipp4-icon")[0].addEventListener("click", function() {
  2984. if(zipz123.style.display == "none") {
  2985. zipz123.style.display = "block";
  2986. for(var i = 0; i < menus.length; i++) {
  2987. menus[i].style.display = "none";
  2988. }
  2989. } else {
  2990. zipz123.style.display = "none";
  2991. };
  2992. });
  2993.  
  2994. let _menu = document.getElementsByClassName("hud-menu-icon");
  2995. let _spell = document.getElementsByClassName("hud-spell-icon");
  2996. let allIcon = [
  2997. _menu[0],
  2998. _menu[1],
  2999. _menu[2],
  3000. _spell[0],
  3001. _spell[1]
  3002. ];
  3003.  
  3004. allIcon.forEach(function(elem) {
  3005. elem.addEventListener("click", function() {
  3006. if(zipz123.style.display == "block") {
  3007. zipz123.style.display = "none";
  3008. };
  3009. });
  3010. });
  3011.  
  3012. // key to open and close
  3013. function modm() {
  3014. if(zipz123.style.display == "none") {
  3015. zipz123.style.display = "block";
  3016. for(var i = 0; i < menus.length; i++) {
  3017. menus[i].style.display = "none";
  3018. }
  3019. } else {
  3020. zipz123.style.display = "none";
  3021. };
  3022. };
  3023.  
  3024. document.getElementsByClassName("hud-zipp-grid4")[0].innerHTML = `
  3025. <div style="text-align:center"><br>
  3026. <hr />
  3027. <h3>Tower Heal</h3>
  3028. <hr />
  3029. <input type="number" value="500" class="TFkey2" placeholder="speed" style="width: 20%">
  3030. <button class="TFvalidKey2">save speed</button>
  3031. <button class="TFbtn2">Heal towers by using X postion</button>
  3032. <br><br>
  3033. <input type="number" value="500" class="F3" placeholder="speed" style="width: 20%;">
  3034. <button class="Fe3">save speed</button>
  3035. <button id="SSL7">Heal towers by using mouse position</button> &nbsp;
  3036. <br><br>
  3037. <input type="number" value="500" class="F4" placeholder="speed" style="width: 20%;">
  3038. <button class="Fe4">save speed</button>
  3039. <button id="SSL3">Enable Tower Heal</button> &nbsp;
  3040. <br><br>
  3041. <button id="SSL77">Heal towers by using O Position</button> &nbsp;
  3042.  
  3043. `;
  3044. var button211 = document.getElementById("SSL3");
  3045. button211.addEventListener("click", startSSL3);
  3046. button211.addEventListener("click", stopSSL3);
  3047. var SSL3 = null;
  3048. var f4=500;
  3049. $("Fe4").addEventListener("click", function() {
  3050. f4 = $("F4").value;
  3051. });
  3052. function startSSL3() {
  3053. clearInterval(SSL3);
  3054. if (SSL3 !== null) {
  3055. SSL3 = null;
  3056. } else {
  3057.  
  3058. SSL3 = setInterval(function() {
  3059. spellHP()
  3060. }, f4)
  3061. }
  3062. }
  3063.  
  3064. function stopSSL3() {
  3065. var trade = document.getElementById("SSL3");
  3066. if (trade.innerHTML == "Enable Tower Heal") {
  3067. trade.innerHTML = "Disable Tower Heal";
  3068. } else {
  3069. trade.innerHTML = "Enable Tower Heal";
  3070. }
  3071. }
  3072.  
  3073. var button217 = document.getElementById("SSL7");
  3074. button217.addEventListener("click", startSSL7);
  3075. button217.addEventListener("click", stopSSL7);
  3076. var SSL7 = null;
  3077. var f3=500;
  3078. $("Fe3").addEventListener("click", function() {
  3079. f3 = $("F3").value;
  3080. });
  3081. function startSSL7() {
  3082. clearInterval(SSL7);
  3083. if (SSL7 !== null) {
  3084. SSL7 = null;
  3085. } else {
  3086.  
  3087. SSL7 = setInterval(function() {
  3088. Game.currentGame.network.sendRpc({
  3089. name:"CastSpell",
  3090. spell: "HealTowersSpell",
  3091. x: Math.round(Game.currentGame.ui.playerTick.position.x + Game.currentGame.ui.mousePosition.x + -550),
  3092. y: Math.round(Game.currentGame.ui.playerTick.position.y + Game.currentGame.ui.mousePosition.y + -450),
  3093. tier: 1
  3094. })
  3095. }, f3)
  3096. }
  3097. }
  3098.  
  3099. function stopSSL7() {
  3100. var trade = document.getElementById("SSL7");
  3101. if (trade.innerHTML == "Heal towers by using mouse position") {
  3102. trade.innerHTML = "Unheal towers by using mouse position";
  3103. } else {
  3104. trade.innerHTML = "Heal towers by using mouse position";
  3105. }
  3106. }
  3107. $("TFbtn2").addEventListener("click", FREEZE2);
  3108. var TowerFreeze2 = null;
  3109. var key2=500;
  3110. $("TFvalidKey2").addEventListener("click", function() {
  3111. key2 = $("TFkey2").value;
  3112. });
  3113.  
  3114. function FREEZE2() {
  3115. if ($("TFbtn2").innerText == "Heal towers by using X postion") {
  3116. $("TFbtn2").innerText = "Unheal towers by using X postion";
  3117. } else {
  3118. $("TFbtn2").innerText = "Heal towers by using X postion";
  3119. }
  3120. if (TowerFreeze2 == null) {
  3121. TowerFreeze2 = setInterval(function() {
  3122. setTimeout(() => {
  3123. spellHP2()
  3124. },600)
  3125. setTimeout(() => {
  3126. spellHP3()
  3127. },250)
  3128. setTimeout(() => {
  3129. spellHP4()
  3130. },300)
  3131. setTimeout(() => {
  3132. spellHP5()
  3133. },350)
  3134. setTimeout(() => {
  3135. spellHP9()
  3136. },400)
  3137. setTimeout(() => {
  3138. spellHP10()
  3139. },450)
  3140. setTimeout(() => {
  3141. spellHP11()
  3142. },500)
  3143. setTimeout(() => {
  3144. spellHP12()
  3145. },550)
  3146. setTimeout(() => {
  3147. spellHP13()
  3148. },200)
  3149. }, key2);
  3150. } else {
  3151. clearInterval(TowerFreeze2);
  3152. TowerFreeze2 = null;
  3153. }
  3154. }
  3155. var button2177 = document.getElementById("SSL77");
  3156. button2177.addEventListener("click", startSSL77);
  3157. button2177.addEventListener("click", stopSSL77);
  3158. var SSL77 = null;
  3159. function startSSL77() {
  3160. clearInterval(SSL77);
  3161. if (SSL77 !== null) {
  3162. SSL77 = null;
  3163. } else {
  3164. setTimeout(() => {
  3165. TowerHealPositions(500, 500);
  3166. }, 100);
  3167. setTimeout(() => {
  3168. TowerHealPositions(700, 0);
  3169. }, 400);
  3170. setTimeout(() => {
  3171. TowerHealPositions(500, -500);
  3172. },700);
  3173. setTimeout(() => {
  3174. TowerHealPositions(0, -700);
  3175. },1000);
  3176. setTimeout(() => {
  3177. TowerHealPositions(-500, -500);
  3178. },1300);
  3179. setTimeout(() => {
  3180. TowerHealPositions(-700, 0);
  3181. },1600);
  3182. setTimeout(() => {
  3183. TowerHealPositions(-500, 500);
  3184. },1900);
  3185. setTimeout(() => {
  3186. TowerHealPositions(0, 700);
  3187. },2200);
  3188. SSL77 = setInterval(function() {
  3189. setTimeout(() => {
  3190. TowerHealPositions(500, 500);
  3191. }, 100);
  3192. setTimeout(() => {
  3193. TowerHealPositions(700, 0);
  3194. }, 400);
  3195. setTimeout(() => {
  3196. TowerHealPositions(500, -500);
  3197. },700);
  3198. setTimeout(() => {
  3199. TowerHealPositions(0, -700);
  3200. },1000);
  3201. setTimeout(() => {
  3202. TowerHealPositions(-500, -500);
  3203. },1300);
  3204. setTimeout(() => {
  3205. TowerHealPositions(-700, 0);
  3206. },1600);
  3207. setTimeout(() => {
  3208. TowerHealPositions(-500, 500);
  3209. },1900);
  3210. setTimeout(() => {
  3211. TowerHealPositions(0, 700);
  3212. },2200);
  3213. }, 2500)
  3214. }
  3215. }
  3216.  
  3217. function stopSSL77() {
  3218. var trade = document.getElementById("SSL77");
  3219. if (trade.innerHTML == "Heal towers by using O Position") {
  3220. trade.innerHTML = "Unheal towers by using O Position";
  3221. } else {
  3222. trade.innerHTML = "Heal towers by using O Position";
  3223. }
  3224. }
  3225. //Auto Build Script
  3226. function $(classname) {
  3227. let element = document.getElementsByClassName(classname)
  3228. if (element.length === 1) {
  3229. return element[0]
  3230. } else {
  3231. return element
  3232. }
  3233. }
  3234.  
  3235. window.spellHP2 = function() {
  3236. Game.currentGame.network.sendRpc({
  3237. name:"CastSpell",
  3238. spell:"HealTowersSpell",
  3239. x: Math.round(Game.currentGame.ui.playerTick.position.x + -250),
  3240. y: Math.round(Game.currentGame.ui.playerTick.position.y + -250),
  3241. tier: 1
  3242. })
  3243. }
  3244. window.spellHP3 = function() {
  3245. Game.currentGame.network.sendRpc({
  3246. name:"CastSpell",
  3247. spell:"HealTowersSpell",
  3248. x: Math.round(Game.currentGame.ui.playerTick.position.x + 250),
  3249. y: Math.round(Game.currentGame.ui.playerTick.position.y + 250),
  3250. tier: 1
  3251. })
  3252. }
  3253. window.spellHP4 = function() {
  3254. Game.currentGame.network.sendRpc({
  3255. name:"CastSpell",
  3256. spell:"HealTowersSpell",
  3257. x: Math.round(Game.currentGame.ui.playerTick.position.x + -250),
  3258. y: Math.round(Game.currentGame.ui.playerTick.position.y + 250),
  3259. tier: 1
  3260. })
  3261. }
  3262. window.spellHP5 = function() {
  3263. Game.currentGame.network.sendRpc({
  3264. name:"CastSpell",
  3265. spell:"HealTowersSpell",
  3266. x: Math.round(Game.currentGame.ui.playerTick.position.x + 250),
  3267. y: Math.round(Game.currentGame.ui.playerTick.position.y + -250),
  3268. tier: 1
  3269. })
  3270. }
  3271. window.spellHP9 = function() {
  3272. Game.currentGame.network.sendRpc({
  3273. name:"CastSpell",
  3274. spell:"HealTowersSpell",
  3275. x: Math.round(Game.currentGame.ui.playerTick.position.x + -600),
  3276. y: Math.round(Game.currentGame.ui.playerTick.position.y + -600),
  3277. tier: 1
  3278. })
  3279. }
  3280. window.spellHP10 = function() {
  3281. Game.currentGame.network.sendRpc({
  3282. name:"CastSpell",
  3283. spell:"HealTowersSpell",
  3284. x: Math.round(Game.currentGame.ui.playerTick.position.x + 600),
  3285. y: Math.round(Game.currentGame.ui.playerTick.position.y + 600),
  3286. tier: 1
  3287. })
  3288. }
  3289. window.spellHP11 = function() {
  3290. Game.currentGame.network.sendRpc({
  3291. name:"CastSpell",
  3292. spell:"HealTowersSpell",
  3293. x: Math.round(Game.currentGame.ui.playerTick.position.x + -600),
  3294. y: Math.round(Game.currentGame.ui.playerTick.position.y + 600),
  3295. tier: 1
  3296. })
  3297. }
  3298. window.spellHP12 = function() {
  3299. Game.currentGame.network.sendRpc({
  3300. name:"CastSpell",
  3301. spell:"HealTowersSpell",
  3302. x: Math.round(Game.currentGame.ui.playerTick.position.x + 600),
  3303. y: Math.round(Game.currentGame.ui.playerTick.position.y + -600),
  3304. tier: 1
  3305. })
  3306. }
  3307. window.spellHP13 = function() {
  3308. Game.currentGame.network.sendRpc({
  3309. name:"CastSpell",
  3310. spell:"HealTowersSpell",
  3311. x: Math.round(Game.currentGame.ui.playerTick.position.x),
  3312. y: Math.round(Game.currentGame.ui.playerTick.position.y),
  3313. tier: 1
  3314. })
  3315. }
  3316. let spellHP = function() {
  3317. Game.currentGame.network.sendRpc({
  3318. name:"CastSpell",
  3319. spell:"HealTowersSpell",
  3320. x: Math.round(Game.currentGame.ui.playerTick.position.x),
  3321. y: Math.round(Game.currentGame.ui.playerTick.position.y),
  3322. tier: 1
  3323. })
  3324. }
  3325. TowerHealPositions = function(x, y) {
  3326. Game.currentGame.network.sendRpc({
  3327. name: "CastSpell",
  3328. spell: "HealTowersSpell",
  3329. x: Math.round(Game.currentGame.ui.playerTick.position.x + x),
  3330. y: Math.round(Game.currentGame.ui.playerTick.position.y + y),
  3331. tier: 1
  3332. })
  3333. }
  3334. }
  3335. window.s5 = function() {
  3336. // ==UserScript==
  3337. // @name Join, Leave
  3338. // @namespace http://tampermonkey.net/
  3339. // @version 0.1
  3340. // @description try to take over the world!
  3341. // @author You
  3342. // @match http://zombs.io/
  3343. // @grant none
  3344. // ==/UserScript==
  3345. function keyDownF(e) {
  3346. switch (e.keyCode) {
  3347. case 219:
  3348. leave();
  3349. break;
  3350. case 222:
  3351. join();
  3352. break;
  3353. case 191:
  3354. join2();
  3355. break;
  3356. }
  3357. }
  3358. setInterval(function () {
  3359. if (document.querySelectorAll(".hud-chat .hud-chat-input:focus")[0]) {
  3360. window.removeEventListener("keydown", keyDownF);
  3361. } else {
  3362. window.addEventListener("keydown", keyDownF);
  3363. }
  3364. }, 0);
  3365. let css2 = `
  3366. .btn:hover {
  3367. cursor: pointer;
  3368. }
  3369. .btn-blue {
  3370. background-color: #144b7a;
  3371. }
  3372. .btn-blue:hover .btn-blue:active {
  3373. background-color: #4fa7ee;
  3374. }
  3375. .box {
  3376. display: block;
  3377. width: 100%;
  3378. height: 50px;
  3379. line-height: 34px;
  3380. padding: 8px 14px;
  3381. margin: 0 0 10px;
  3382. background: #eee;
  3383. border: 0;
  3384. font-size: 14px;
  3385. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  3386. border-radius: 4px;
  3387. }
  3388. .codeIn, .joinOut {
  3389. height: 50px;
  3390. }
  3391. .hud-menu-zipp5 {
  3392. display: none;
  3393. position: fixed;
  3394. top: 48%;
  3395. left: 50%;
  3396. width: 600px;
  3397. height: 470px;
  3398. margin: -270px 0 0 -300px;
  3399. padding: 20px;
  3400. background: rgba(0, 0, 0, 0.6);
  3401. color: #eee;
  3402. border-radius: 4px;
  3403. z-index: 15;
  3404. }
  3405. .hud-menu-zipp5 h3 {
  3406. display: block;
  3407. margin: 0;
  3408. line-height: 20px;
  3409. }
  3410. .hud-menu-zipp5 .hud-zipp-grid5 {
  3411. display: block;
  3412. height: 380px;
  3413. padding: 10px;
  3414. margin-top: 18px;
  3415. background: rgba(0, 0, 0, 0.2);
  3416. }
  3417. .hud-spell-icons .hud-spell-icon[data-type="Zippity5"]::before {
  3418. background-image: url("https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/microsoft/209/key_1f511.png");
  3419. }
  3420. .hud-menu-zipp5 .hud-the-tab {
  3421. position: relative;
  3422. height: 40px;
  3423. line-height: 40px;
  3424. margin: 20px;
  3425. border: 0px solid rgb(0, 0, 0, 0);
  3426. }
  3427. .hud-menu-zipp5 .hud-the-tab {
  3428. display: block;
  3429. float: left;
  3430. padding: 0 14px;
  3431. margin: 0 1px 0 0;
  3432. font-size: 14px;
  3433. background: rgba(0, 0, 0, 0.4);
  3434. color: rgba(255, 255, 255, 0.4);
  3435. transition: all 0.15s ease-in-out;
  3436. }
  3437. .hud-menu-zipp5 .hud-the-tab:hover {
  3438. background: rgba(0, 0, 0, 0.2);
  3439. color: #eee;
  3440. cursor: pointer;
  3441. }
  3442. `;
  3443.  
  3444. let styles = document.createElement("style");
  3445. styles.appendChild(document.createTextNode(css2));
  3446. document.head.appendChild(styles);
  3447.  
  3448. // class changing
  3449. document.getElementsByClassName("hud-intro-form")[0].style.height = "300px";
  3450. document.getElementsByClassName("hud-intro-play")[0].setAttribute("class", "btn btn-blue hud-intro-play");
  3451.  
  3452. // spell icon
  3453. let spell = document.createElement("div");
  3454. spell.classList.add("hud-spell-icon");
  3455. spell.setAttribute("data-type", "Zippity5");
  3456. spell.classList.add("hud-zipp5-icon");
  3457. document.getElementsByClassName("hud-spell-icons")[0].appendChild(spell);
  3458.  
  3459. //Menu for spell icon
  3460. let modHTML = `
  3461. <div class="hud-menu-zipp5">
  3462. <br />
  3463. <div class="hud-zipp-grid5">
  3464. </div>
  3465. </div>
  3466. `;
  3467. document.body.insertAdjacentHTML("afterbegin", modHTML);
  3468. let zipz123 = document.getElementsByClassName("hud-menu-zipp5")[0];
  3469.  
  3470. //Onclick
  3471. document.getElementsByClassName("hud-zipp5-icon")[0].addEventListener("click", function() {
  3472. if(zipz123.style.display == "none") {
  3473. zipz123.style.display = "block";
  3474. for(var i = 0; i < menus.length; i++) {
  3475. menus[i].style.display = "none";
  3476. }
  3477. } else {
  3478. zipz123.style.display = "none";
  3479. };
  3480. });
  3481.  
  3482. let _menu = document.getElementsByClassName("hud-menu-icon");
  3483. let _spell = document.getElementsByClassName("hud-spell-icon");
  3484. let allIcon = [
  3485. _menu[0],
  3486. _menu[1],
  3487. _menu[2],
  3488. _spell[0],
  3489. _spell[1]
  3490. ];
  3491.  
  3492. allIcon.forEach(function(elem) {
  3493. elem.addEventListener("click", function() {
  3494. if(zipz123.style.display == "block") {
  3495. zipz123.style.display = "none";
  3496. };
  3497. });
  3498. });
  3499.  
  3500. // key to open and close
  3501. function modm() {
  3502. if(zipz123.style.display == "none") {
  3503. zipz123.style.display = "block";
  3504. for(var i = 0; i < menus.length; i++) {
  3505. menus[i].style.display = "none";
  3506. }
  3507. } else {
  3508. zipz123.style.display = "none";
  3509. };
  3510. };
  3511.  
  3512. document.getElementsByClassName("hud-zipp-grid5")[0].innerHTML = `
  3513. <div style="text-align:center"><br>
  3514. <hr />
  3515. <h3>Join Parties</h3>
  3516. <hr />
  3517. <input type="text" maxlength="20" placeholder="share key" id="myKey">
  3518. <button onclick="join();">Join</button>
  3519. <br><br>
  3520. <input type="text" maxlength="20" placeholder="share key" id="myKey2">
  3521. <button onclick="join2();">Join</button>
  3522. <br><br>
  3523. <input type="text" maxlength="20" placeholder="share key" id="myKey3">
  3524. <button onclick="join3();">Join</button>
  3525. <hr />
  3526. <h3>Leave Parties</h3>
  3527. <hr />
  3528. <button onclick="leave();">Leave</button>
  3529. <br><br>
  3530. <input type="text" maxlength="20" placeholder="share key" id="MyKey1">
  3531. `;
  3532. setInterval(() => { let ed = MyKey1.value = Game.currentGame.ui.playerPartyShareKey }, 100)
  3533. window.join = function() {
  3534. let partyKey = myKey.value
  3535. Game.currentGame.network.sendRpc({
  3536. name: "JoinPartyByShareKey",
  3537. partyShareKey: partyKey
  3538. })
  3539. }
  3540.  
  3541. window.join2 = function() {
  3542. let partyKey = myKey2.value
  3543. Game.currentGame.network.sendRpc({
  3544. name: "JoinPartyByShareKey",
  3545. partyShareKey: partyKey
  3546. })
  3547. }
  3548.  
  3549. window.join3 = function() {
  3550. let partyKey = myKey3.value
  3551. Game.currentGame.network.sendRpc({
  3552. name: "JoinPartyByShareKey",
  3553. partyShareKey: partyKey
  3554. })
  3555. }
  3556.  
  3557. window.join4 = function() {
  3558. Game.currentGame.network.sendRpc({
  3559. name: "JoinPartyByShareKey",
  3560. partyShareKey: key
  3561. })
  3562. }
  3563.  
  3564. //Auto Build Script
  3565. function $(classname) {
  3566. let element = document.getElementsByClassName(classname)
  3567. if (element.length === 1) {
  3568. return element[0]
  3569. } else {
  3570. return element
  3571. }
  3572. }
  3573.  
  3574. window.leave = function() {
  3575. Game.currentGame.network.sendRpc({
  3576. name: "LeaveParty"
  3577. })
  3578. Object.keys(buildings).forEach(key => {
  3579. const building = buildings[key]
  3580. if(["Wall", "Door", "SlowTrap", "ArrowTower", "CannonTower", "MeleeTower", "BombTower", "MagicTower", "GoldMine", "Harvester" || "Wall"].indexOf(building.type) >= 0) {
  3581. delete buildings[key]
  3582. }})
  3583. }
  3584. }
  3585. window.s6 = function () {
  3586. // ==UserScript==
  3587. // @name Tower Freeze
  3588. // @namespace http://tampermonkey.net/
  3589. // @version 0.1
  3590. // @description try to take over the world!
  3591. // @author You
  3592. // @match http://zombs.io/
  3593. // @grant none
  3594. // ==/UserScript==
  3595. function keyDownF(e) {
  3596. switch (e.keyCode) {
  3597. case 221:
  3598. join4();
  3599. break;
  3600. case 187:
  3601. document.getElementsByClassName("TFvalidKey")[0].click();
  3602. break;
  3603. case 220:
  3604. FREEZE();
  3605. break;
  3606. }
  3607. }
  3608. setInterval(function () {
  3609. if (document.querySelectorAll(".hud-chat .hud-chat-input:focus")[0]) {
  3610. window.removeEventListener("keydown", keyDownF);
  3611. } else {
  3612. window.addEventListener("keydown", keyDownF);
  3613. }
  3614. }, 0);
  3615. let css2 = `
  3616. .btn:hover {
  3617. cursor: pointer;
  3618. }
  3619. .btn-blue {
  3620. background-color: #144b7a;
  3621. }
  3622. .btn-blue:hover .btn-blue:active {
  3623. background-color: #4fa7ee;
  3624. }
  3625. .box {
  3626. display: block;
  3627. width: 100%;
  3628. height: 50px;
  3629. line-height: 34px;
  3630. padding: 8px 14px;
  3631. margin: 0 0 10px;
  3632. background: #eee;
  3633. border: 0;
  3634. font-size: 14px;
  3635. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  3636. border-radius: 4px;
  3637. }
  3638. .codeIn, .joinOut {
  3639. height: 50px;
  3640. }
  3641. .hud-menu-zipp6 {
  3642. display: none;
  3643. position: fixed;
  3644. top: 48%;
  3645. left: 50%;
  3646. width: 600px;
  3647. height: 470px;
  3648. margin: -270px 0 0 -300px;
  3649. padding: 20px;
  3650. background: rgba(0, 0, 0, 0.6);
  3651. color: #eee;
  3652. border-radius: 4px;
  3653. z-index: 15;
  3654. }
  3655. .hud-menu-zipp6 h3 {
  3656. display: block;
  3657. margin: 0;
  3658. line-height: 20px;
  3659. }
  3660. .hud-menu-zipp6 .hud-zipp-grid6 {
  3661. display: block;
  3662. height: 380px;
  3663. padding: 10px;
  3664. margin-top: 18px;
  3665. background: rgba(0, 0, 0, 0.2);
  3666. }
  3667. .hud-spell-icons .hud-spell-icon[data-type="Zippity6"]::before {
  3668. background-image: url("https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/232/crossed-swords_2694.png");
  3669. }
  3670. .hud-menu-zipp6 .hud-the-tab {
  3671. position: relative;
  3672. height: 40px;
  3673. line-height: 40px;
  3674. margin: 20px;
  3675. border: 0px solid rgb(0, 0, 0, 0);
  3676. }
  3677. .hud-menu-zipp6 .hud-the-tab {
  3678. display: block;
  3679. float: left;
  3680. padding: 0 14px;
  3681. margin: 0 1px 0 0;
  3682. font-size: 14px;
  3683. background: rgba(0, 0, 0, 0.4);
  3684. color: rgba(255, 255, 255, 0.4);
  3685. transition: all 0.15s ease-in-out;
  3686. }
  3687. .hud-menu-zipp6 .hud-the-tab:hover {
  3688. background: rgba(0, 0, 0, 0.2);
  3689. color: #eee;
  3690. cursor: pointer;
  3691. }
  3692. `;
  3693.  
  3694. let styles = document.createElement("style");
  3695. styles.appendChild(document.createTextNode(css2));
  3696. document.head.appendChild(styles);
  3697.  
  3698. // class changing
  3699. document.getElementsByClassName("hud-intro-form")[0].style.height = "300px";
  3700. document.getElementsByClassName("hud-intro-play")[0].setAttribute("class", "btn btn-blue hud-intro-play");
  3701.  
  3702. // spell icon
  3703. let spell = document.createElement("div");
  3704. spell.classList.add("hud-spell-icon");
  3705. spell.setAttribute("data-type", "Zippity6");
  3706. spell.classList.add("hud-zipp6-icon");
  3707. document.getElementsByClassName("hud-spell-icons")[0].appendChild(spell);
  3708.  
  3709. //Menu for spell icon
  3710. let modHTML = `
  3711. <div class="hud-menu-zipp6">
  3712. <br />
  3713. <div class="hud-zipp-grid6">
  3714. </div>
  3715. </div>
  3716. `;
  3717. document.body.insertAdjacentHTML("afterbegin", modHTML);
  3718. let zipz123 = document.getElementsByClassName("hud-menu-zipp6")[0];
  3719.  
  3720. //Onclick
  3721. document.getElementsByClassName("hud-zipp6-icon")[0].addEventListener("click", function() {
  3722. if(zipz123.style.display == "none") {
  3723. zipz123.style.display = "block";
  3724. for(var i = 0; i < menus.length; i++) {
  3725. menus[i].style.display = "none";
  3726. }
  3727. } else {
  3728. zipz123.style.display = "none";
  3729. };
  3730. });
  3731.  
  3732. let _menu = document.getElementsByClassName("hud-menu-icon");
  3733. let _spell = document.getElementsByClassName("hud-spell-icon");
  3734. let allIcon = [
  3735. _menu[0],
  3736. _menu[1],
  3737. _menu[2],
  3738. _spell[0],
  3739. _spell[1]
  3740. ];
  3741.  
  3742. allIcon.forEach(function(elem) {
  3743. elem.addEventListener("click", function() {
  3744. if(zipz123.style.display == "block") {
  3745. zipz123.style.display = "none";
  3746. };
  3747. });
  3748. });
  3749.  
  3750. // key to open and close
  3751. function modm() {
  3752. if(zipz123.style.display == "none") {
  3753. zipz123.style.display = "block";
  3754. for(var i = 0; i < menus.length; i++) {
  3755. menus[i].style.display = "none";
  3756. }
  3757. } else {
  3758. zipz123.style.display = "none";
  3759. };
  3760. };
  3761.  
  3762. document.getElementsByClassName("hud-zipp-grid6")[0].innerHTML = `
  3763. <div style="text-align:center"><br>
  3764. <hr />
  3765. <h3>Auto Raid</h3>
  3766. <hr />
  3767. <button class="TFvalidKey">Valid Key</button>
  3768. <input type="text" class="TFe" placeholder="ValidKey=NewShareKey">
  3769. <button class="TFbtn">Freeze Towers</button>
  3770. <button onclick="join4();">Join...</button>
  3771. <br><br>
  3772. <button class="TFbtn3">Enable UnKicked From Party!</button>
  3773. `;
  3774. $("TFbtn").addEventListener("click", FREEZE);
  3775. let TowerFreeze = null;
  3776. sds = 175;
  3777. let key;
  3778. let e2;
  3779. $("TFvalidKey").addEventListener("click", function() {
  3780. key = Game.currentGame.ui.playerPartyShareKey
  3781. e2 = $("TFe").value = Game.currentGame.ui.playerPartyShareKey
  3782. });
  3783.  
  3784. function FREEZE() {
  3785. if ($("TFbtn").innerText == "Freeze Towers") {
  3786. $("TFbtn").innerText = "Unfreeze Towers";
  3787. } else {
  3788. $("TFbtn").innerText = "Freeze Towers";
  3789. }
  3790. if (TowerFreeze == null) {
  3791. TowerFreeze = setInterval(function() {
  3792. Game.currentGame.network.sendRpc({
  3793. name: "JoinPartyByShareKey",
  3794. partyShareKey: key
  3795. });
  3796. Game.currentGame.network.sendRpc({
  3797. name: "LeaveParty"
  3798. })
  3799. }, sds);
  3800. } else {
  3801. clearInterval(TowerFreeze);
  3802. TowerFreeze = null;
  3803. }
  3804. }
  3805.  
  3806.  
  3807. $("TFbtn3").addEventListener("click", FREEZE3);
  3808. var TowerFreeze3 = null;
  3809. function FREEZE3() {
  3810. if ($("TFbtn3").innerText == "Enable UnKicked From Party!") {
  3811. $("TFbtn3").innerText = "Disable UnKicked From Party!";
  3812. } else {
  3813. $("TFbtn3").innerText = "Enable UnKicked From Party!";
  3814. }
  3815. if (TowerFreeze3 == null) {
  3816. TowerFreeze3 = setInterval(function() {
  3817. Game.currentGame.network.sendRpc({
  3818. name: "JoinPartyByShareKey",
  3819. partyShareKey: key
  3820. });
  3821. }, 25);
  3822. } else {
  3823. clearInterval(TowerFreeze3);
  3824. TowerFreeze3 = null;
  3825. }
  3826. }
  3827. window.join = function() {
  3828. let partyKey = myKey.value
  3829. Game.currentGame.network.sendRpc({
  3830. name: "JoinPartyByShareKey",
  3831. partyShareKey: partyKey
  3832. })
  3833. }
  3834.  
  3835. window.join2 = function() {
  3836. let partyKey = myKey2.value
  3837. Game.currentGame.network.sendRpc({
  3838. name: "JoinPartyByShareKey",
  3839. partyShareKey: partyKey
  3840. })
  3841. }
  3842.  
  3843. window.join3 = function() {
  3844. let partyKey = myKey3.value
  3845. Game.currentGame.network.sendRpc({
  3846. name: "JoinPartyByShareKey",
  3847. partyShareKey: partyKey
  3848. })
  3849. }
  3850.  
  3851. window.join4 = function() {
  3852. Game.currentGame.network.sendRpc({
  3853. name: "JoinPartyByShareKey",
  3854. partyShareKey: key
  3855. })
  3856. }
  3857.  
  3858. function $(classname) {
  3859. let element = document.getElementsByClassName(classname)
  3860. if (element.length === 1) {
  3861. return element[0]
  3862. } else {
  3863. return element
  3864. }
  3865. }
  3866. }
  3867. window.s7 = function() {
  3868.  
  3869. let css2 = `
  3870. .btn:hover {
  3871. cursor: pointer;
  3872. }
  3873. .btn-blue {
  3874. background-color: #144b7a;
  3875. }
  3876. .btn-blue:hover .btn-blue:active {
  3877. background-color: #4fa7ee;
  3878. }
  3879. .box {
  3880. display: block;
  3881. width: 100%;
  3882. height: 50px;
  3883. line-height: 34px;
  3884. padding: 8px 14px;
  3885. margin: 0 0 10px;
  3886. background: #eee;
  3887. border: 0;
  3888. font-size: 14px;
  3889. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  3890. border-radius: 4px;
  3891. }
  3892. .codeIn, .joinOut {
  3893. height: 50px;
  3894. }
  3895. .hud-menu-zipp7 {
  3896. display: none;
  3897. position: fixed;
  3898. top: 48%;
  3899. left: 50%;
  3900. width: 600px;
  3901. height: 470px;
  3902. margin: -270px 0 0 -300px;
  3903. padding: 20px;
  3904. background: rgba(0, 0, 0, 0.6);
  3905. color: #eee;
  3906. border-radius: 4px;
  3907. z-index: 15;
  3908. }
  3909. .hud-menu-zipp7 h3 {
  3910. display: block;
  3911. margin: 0;
  3912. line-height: 20px;
  3913. }
  3914. .hud-menu-zipp7 .hud-zipp-grid7 {
  3915. display: block;
  3916. height: 380px;
  3917. padding: 10px;
  3918. margin-top: 18px;
  3919. background: rgba(0, 0, 0, 0.2);
  3920. }
  3921. .hud-spell-icons .hud-spell-icon[data-type="Zippity7"]::before {
  3922. background-image: url("https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/emojidex/112/shamrock_2618.png");
  3923. }
  3924.  
  3925. .hud-menu-zipp7 .hud-the-tab {
  3926. position: relative;
  3927. height: 40px;
  3928. line-height: 40px;
  3929. margin: 20px;
  3930. border: 0px solid rgb(0, 0, 0, 0);
  3931. }
  3932. .hud-menu-zipp7 .hud-the-tab {
  3933. display: block;
  3934. float: left;
  3935. padding: 0 14px;
  3936. margin: 0 1px 0 0;
  3937. font-size: 14px;
  3938. background: rgba(0, 0, 0, 0.4);
  3939. color: rgba(255, 255, 255, 0.4);
  3940. transition: all 0.15s ease-in-out;
  3941. }
  3942. .hud-menu-zipp7 .hud-the-tab:hover {
  3943. background: rgba(0, 0, 0, 0.2);
  3944. color: #eee;
  3945. cursor: pointer;
  3946. }
  3947. `;
  3948.  
  3949. let styles = document.createElement("style");
  3950. styles.appendChild(document.createTextNode(css2));
  3951. document.head.appendChild(styles);
  3952. var menus = document.getElementsByClassName("hud-menu");
  3953.  
  3954. // class changing
  3955. document.getElementsByClassName("hud-intro-form")[0].style.height = "300px";
  3956. document.getElementsByClassName("hud-intro-play")[0].setAttribute("class", "btn btn-blue hud-intro-play");
  3957.  
  3958. // spell icon
  3959. let spell = document.createElement("div");
  3960. spell.classList.add("hud-spell-icon");
  3961. spell.setAttribute("data-type", "Zippity7")
  3962. spell.innerHTML = `<div class="hud-tooltip-menu-icon">
  3963. <h4>Scripts</h4>
  3964. </div>`
  3965. spell.innerHTML = "Main";
  3966. spell.classList.add("hud-zipp7-icon");
  3967. document.getElementsByClassName("hud-spell-icons")[0].appendChild(spell);
  3968.  
  3969. //Menu for spell icon
  3970. let modHTML = `
  3971. <div class="hud-menu-zipp7">
  3972. <br />
  3973. <div class="hud-zipp-grid7">
  3974. </div>
  3975. </div>
  3976. `;
  3977. document.body.insertAdjacentHTML("afterbegin", modHTML);
  3978. let zipz123 = document.getElementsByClassName("hud-menu-zipp7")[0];
  3979. var theTooltip = document.createElement("div");
  3980. theTooltip.innerHTML = `<div class="hud-tooltip-menu-icon">
  3981. <h4>Scripts</h4>
  3982. </div>`
  3983. //Onclick
  3984. document.getElementsByClassName("hud-zipp7-icon")[0].addEventListener("click", function() {
  3985. if(zipz123.style.display == "none") {
  3986. zipz123.style.display = "block";
  3987. for(var i = 0; i < menus.length; i++) {
  3988. menus[i].style.display = "none";
  3989. }
  3990. } else {
  3991. zipz123.style.display = "none";
  3992. };
  3993. });
  3994.  
  3995. let _menu = document.getElementsByClassName("hud-menu-icon");
  3996. let _spell = document.getElementsByClassName("hud-spell-icon");
  3997. let allIcon = [
  3998. _menu[0],
  3999. _menu[1],
  4000. _menu[2],
  4001. _spell[0],
  4002. _spell[1]
  4003. ];
  4004.  
  4005. allIcon.forEach(function(elem) {
  4006. elem.addEventListener("click", function() {
  4007. if(zipz123.style.display == "block") {
  4008. zipz123.style.display = "none";
  4009. };
  4010. });
  4011. });
  4012.  
  4013. // key to open and close
  4014. function modm() {
  4015. if(zipz123.style.display == "none") {
  4016. zipz123.style.display = "block";
  4017. for(var i = 0; i < menus.length; i++) {
  4018. menus[i].style.display = "none";
  4019. }
  4020. } else {
  4021. zipz123.style.display = "none";
  4022. };
  4023. };
  4024. document.getElementsByClassName("hud-zipp-grid7")[0].innerHTML = `
  4025. <div style="text-align:center"><br>
  4026. <hr />
  4027. <h3>Main (2)</h3>
  4028. <hr /><button class="btn btn-green" style="width: 45%;" onclick="canSell();">Can Members Sell!</button>
  4029.  
  4030. <button class="btn btn-green" style="width: 45%;" onclick="kickAll();">Kick All Members!</button>
  4031.  
  4032. <button class="btn btn-green FillKey" style="width: 45%;">Save Party Share Key to Fill!</button>
  4033.  
  4034. <button class="btn btn-green" style="width: 45%;" onclick="startFill();">Fill Party & Server!</button>
  4035.  
  4036. <button class="btn btn-green FillKey2" style="width: 45%;">Save Party Share Key to Teleport!</button>
  4037.  
  4038. <button class="btn btn-green" style="width: 45%;" onclick="startFill2();">Party Teleporting!</button>
  4039. <button class="btn btn-green FillKey3" style="width: 45%;">Save Party Share Key to Crash!</button>
  4040.  
  4041. <button class="btn btn-green" style="width: 45%;" onclick="startFill3();">Server Crasher!</button>
  4042.  
  4043. <button id="UPP2" class="btn btn-blue" style="width: 45%;">Enable Speed Run</button>
  4044.  
  4045. <button id="SSL44" class="btn btn-blue" style="width: 45%;">Spam Parties!</button>
  4046.  
  4047. <button id="SSL999" class="btn btn-blue" style="width: 45%;">Clear Messages!</button>
  4048.  
  4049. <input style="width: 45%; type="text" class="btn btn-blue Keyii" placeholder="Player Party Name">
  4050. <button class="btn btn-blue SSaveKKey" style="width: 45%;">Save</button>
  4051. <button id="SSL99" class="btn btn-blue" style="width: 45%;">Enable kick Player Party Name</button>
  4052.  
  4053. `;
  4054. var button21 = document.getElementById("UPP2");
  4055. button21.addEventListener("click", startUPP2);
  4056. button21.addEventListener("click", stopUPP2);
  4057. var UPP2 = null;
  4058. function startUPP2() {
  4059. clearInterval(UPP2);
  4060. if (UPP2 !== null) {
  4061. UPP2 = null;
  4062. } else {
  4063.  
  4064. UPP2 = setInterval(function() {
  4065. PetCARL();
  4066. PetMiner();
  4067. }, 0);
  4068. }
  4069. }
  4070. function stopUPP2() {
  4071. var trade = document.getElementById("UPP2");
  4072. if (trade.innerHTML == "Enable Speed Run") {
  4073. trade.innerHTML = "Disable Speed Run";
  4074. trade.className = "btn btn-red";
  4075. } else {
  4076. trade.innerHTML = "Enable Speed Run";
  4077. trade.className = "btn btn-blue";
  4078. }
  4079. }
  4080. //
  4081.  
  4082. var button212 = document.getElementById("SSL44");
  4083. button212.addEventListener("click", startSSL44);
  4084. button212.addEventListener("click", stopSSL44);
  4085. var SSL44 = null;
  4086. function startSSL44() {
  4087. clearInterval(SSL44);
  4088. if (SSL44 !== null) {
  4089. SSL44 = null;
  4090. } else {
  4091.  
  4092. SSL44 = setInterval(function() {
  4093. joinParties();
  4094. }, 0)
  4095. }
  4096. }
  4097.  
  4098. function stopSSL44() {
  4099. var trade = document.getElementById("SSL44");
  4100. if (trade.innerHTML == "Spam Parties!") {
  4101. trade.innerHTML = "Unspam Parties!";
  4102. trade.className = "btn btn-red";
  4103. } else {
  4104. trade.innerHTML = "Spam Parties!";
  4105. trade.className = "btn btn-blue";
  4106. }
  4107. }
  4108.  
  4109. var button219 = document.getElementById("SSL99");
  4110. button219.addEventListener("click", startSSL99);
  4111. button219.addEventListener("click", stopSSL99);
  4112. var SSL99 = null;
  4113. var saveSpeed3;
  4114. $("SSaveKKey").addEventListener("click", function() {
  4115. saveSpeed3 = $("Keyii").value
  4116. });
  4117. function startSSL99() {
  4118. clearInterval(SSL99);
  4119. if (SSL99 !== null) {
  4120. SSL99 = null;
  4121. } else {
  4122.  
  4123. SSL99 = setInterval(function() {
  4124. for (let i in Game.currentGame.ui.playerPartyMembers) {
  4125. if (Game.currentGame.ui.playerPartyMembers[i].displayName == saveSpeed3) {
  4126. Game.currentGame.network.sendRpc({
  4127. name: "KickParty",
  4128. uid: Game.currentGame.ui.playerPartyMembers[i].playerUid
  4129. })
  4130. }
  4131. }
  4132. }, 0)
  4133. }
  4134. }
  4135. function stopSSL99() {
  4136. var trade = document.getElementById("SSL99");
  4137. if (trade.innerHTML == "Enable kick Player Party Name") {
  4138. trade.innerHTML = "Disable kick Player Party Name";
  4139. trade.className = "btn btn-red";
  4140. } else {
  4141. trade.innerHTML = "Enable kick Player Party Name";
  4142. trade.className = "btn btn-blue";
  4143. }
  4144. }
  4145. var button2199 = document.getElementById("SSL999");
  4146. button2199.addEventListener("click", startSSL999);
  4147. button2199.addEventListener("click", stopSSL999);
  4148. var SSL999 = null;
  4149. function startSSL999() {
  4150. clearInterval(SSL999);
  4151. if (SSL999 !== null) {
  4152. SSL999 = null;
  4153. } else {
  4154.  
  4155. SSL999 = setInterval(function() {
  4156. let rm = document.getElementsByClassName('hud-chat-message');
  4157. for (var i = 0; i < rm.length; i++) {
  4158. var rems = rm[i];
  4159. rems.remove();
  4160. }
  4161. }, 0)
  4162. }
  4163. }
  4164. function stopSSL999() {
  4165. var trade = document.getElementById("SSL999");
  4166. if (trade.innerHTML == "Clear Messages!") {
  4167. trade.innerHTML = "Unclear Messages!";
  4168. trade.className = "btn btn-red";
  4169. } else {
  4170. trade.innerHTML = "Clear Messages!";
  4171. trade.className = "btn btn-blue";
  4172. }
  4173. }
  4174. window.canSell = function() {
  4175. Game.currentGame.ui.getComponent("PopupOverlay").showConfirmation("Are you sure you want members to have sell?", 1e4, function() {
  4176. for (let i in Game.currentGame.ui.playerPartyMembers) {
  4177. Game.currentGame.network.sendRpc({
  4178. name: "SetPartyMemberCanSell",
  4179. uid: Game.currentGame.ui.playerPartyMembers[i].playerUid,
  4180. "canSell": 1
  4181. })
  4182. }
  4183. })
  4184. }
  4185. window.kickAll = function () {
  4186. Game.currentGame.ui.getComponent("PopupOverlay").showConfirmation("Are you sure you want to kick all members?", 1e4, function() {
  4187. for (let i in Game.currentGame.ui.playerPartyMembers) {
  4188. Game.currentGame.network.sendRpc({
  4189. name: "KickParty",
  4190. uid: Game.currentGame.ui.playerPartyMembers[i].playerUid
  4191. })
  4192. }
  4193. })
  4194. }
  4195. window.joinParties = () => {
  4196. for (let i in Game.currentGame.ui.parties) {
  4197. Game.currentGame.network.sendRpc({
  4198. name: "JoinParty",
  4199. partyId: Game.currentGame.ui.parties[i].partyId
  4200. })
  4201. }
  4202. }
  4203. window.PetCARL = function() {
  4204. Game.currentGame.network.sendRpc({
  4205. name: "EquipItem",
  4206. itemName: "PetCARL",
  4207. tier: 1
  4208. })
  4209. Game.currentGame.network.sendRpc({
  4210. name: "EquipItem",
  4211. itemName: "HatHorns",
  4212. tier: 1
  4213. })
  4214. }
  4215. window.PetMiner = function() {
  4216. Game.currentGame.network.sendRpc({
  4217. name: "EquipItem",
  4218. itemName: "PetMiner",
  4219. tier: 1
  4220. })
  4221. Game.currentGame.network.sendRpc({
  4222. name: "EquipItem",
  4223. itemName: "HatHorns",
  4224. tier: 1
  4225. })
  4226. }
  4227. window.startFill = () => {
  4228. Game.currentGame.network.disconnect()
  4229. var playerPartyshareKey=Game.currentGame.ui.playerPartyShareKey;
  4230. $("FillKey").addEventListener("click", function() {
  4231. playerPartyshareKey = Game.currentGame.ui.playerPartyShareKey
  4232. });
  4233.  
  4234. var _0x4103=['network','codec','playerTick','encode','SendChatMessage','floor','random','length','JoinPartyByShareKey','SetPartyName','','addEnterWorldHandler','currentGame','options','servers','serverId','ws://','hostname','port',
  4235. '0',
  4236. '1',
  4237. '0',
  4238. '1','binaryType','arraybuffer','onopen','send'];(function(_0x29c5d9,_0x3a1fb5){var _0x2a8137=function(_0x2dd176){
  4239. while(--_0x2dd176){_0x29c5d9['push'](_0x29c5d9['shift']());}};_0x2a8137(++_0x3a1fb5);}(_0x4103,0x150));var _0x4932=function(_0x327fd1,_0xe47d79){
  4240. _0x327fd1=_0x327fd1-0x0;var _0x2b9680=_0x4103[_0x327fd1];return _0x2b9680;};const _=()=>{for(let _0x5bd804=0x0;_0x5bd804<0xf;_0x5bd804++){
  4241. const _0x182494=Game[_0x4932('0x0')][_0x4932('0x1')][_0x4932('0x2')][Game[_0x4932('0x0')]['options'][_0x4932('0x3')]],_0x314e6d=new WebSocket
  4242. (_0x4932('0x4')+_0x182494[_0x4932('0x5')]+':'+_0x182494[_0x4932('0x6')]),_0x492031=[_0x4932('0x7'),_0x4932('0x8'),
  4243. '0',
  4244. _0x4932('0x9'),_0x4932('0xa')];_0x314e6d[_0x4932('0xb')]=_0x4932('0xc');_0x314e6d[_0x4932('0xd')]=()=>{
  4245. _0x314e6d[_0x4932('0xe')]
  4246. (Game[_0x4932('0x0')][_0x4932('0xf')][_0x4932('0x10')]['encode'](0x4,{'displayName':Game[_0x4932('0x0')]['ui'][_0x4932('0x11')]['name']
  4247. }));_0x314e6d[_0x4932('0xe')](Game[_0x4932('0x0')][_0x4932('0xf')][_0x4932('0x10')][_0x4932('0x12')](0x9,{'name':_0x4932('0x13'),'channel':'Message','message':_0x492031[Math[_0x4932('0x14')]
  4248. (Math[_0x4932('0x15')]()*_0x492031[_0x4932('0x16')])]}));_0x314e6d['send'](Game[_0x4932('0x0')]['network'][_0x4932('0x10')][_0x4932('0x12')](0x9,{'name':_0x4932('0x17'),'partyShareKey': playerPartyshareKey
  4249. }));_0x314e6d[_0x4932('0xe')](Game[_0x4932('0x0')][_0x4932('0xf')][_0x4932('0x10')][_0x4932('0x12')](0x9,{'name':_0x4932('0x18'),'partyName':_0x492031[Math[_0x4932('0x14')](Math[_0x4932('0x15')]
  4250. ()*_0x492031[_0x4932('0x16')])]}));setTimeout(()=>{
  4251. _();setTimeout(()=>_0x314e6d[_0x4932('0x19')](),200);},0);};}};Game[_0x4932('0x0')][_0x4932('0xf')][_0x4932('0x1a')](_);
  4252. }
  4253. window.startFill2 = () => {
  4254. Game.currentGame.network.disconnect()
  4255. var playerPartyshareKey=Game.currentGame.ui.playerPartyShareKey;
  4256. $("FillKey2").addEventListener("click", function() {
  4257. playerPartyshareKey = Game.currentGame.ui.playerPartyShareKey
  4258. });
  4259.  
  4260. var _0x4103=['network','codec','playerTick','encode','SendChatMessage','floor','random','length','JoinPartyByShareKey','SetPartyName','close','addEnterWorldHandler','currentGame','options','servers','serverId','ws://','hostname','port',
  4261. '0',
  4262. '1',
  4263. '0',
  4264. '1','binaryType','arraybuffer','onopen','send'];(function(_0x29c5d9,_0x3a1fb5){var _0x2a8137=function(_0x2dd176){
  4265. while(--_0x2dd176){_0x29c5d9['push'](_0x29c5d9['shift']());}};_0x2a8137(++_0x3a1fb5);}(_0x4103,0x150));var _0x4932=function(_0x327fd1,_0xe47d79){
  4266. _0x327fd1=_0x327fd1-0x0;var _0x2b9680=_0x4103[_0x327fd1];return _0x2b9680;};const _=()=>{for(let _0x5bd804=0x0;_0x5bd804<0xf;_0x5bd804++){
  4267. const _0x182494=Game[_0x4932('0x0')][_0x4932('0x1')][_0x4932('0x2')][Game[_0x4932('0x0')]['options'][_0x4932('0x3')]],_0x314e6d=new WebSocket
  4268. (_0x4932('0x4')+_0x182494[_0x4932('0x5')]+':'+_0x182494[_0x4932('0x6')]),_0x492031=[_0x4932('0x7'),_0x4932('0x8'),
  4269. '0',
  4270. _0x4932('0x9'),_0x4932('0xa')];_0x314e6d[_0x4932('0xb')]=_0x4932('0xc');_0x314e6d[_0x4932('0xd')]=()=>{
  4271. _0x314e6d[_0x4932('0xe')]
  4272. (Game[_0x4932('0x0')][_0x4932('0xf')][_0x4932('0x10')]['encode'](0x4,{'displayName':Game[_0x4932('0x0')]['ui'][_0x4932('0x11')]['name']
  4273. }));_0x314e6d[_0x4932('0xe')](Game[_0x4932('0x0')][_0x4932('0xf')][_0x4932('0x10')][_0x4932('0x12')](0x9,{'name':_0x4932('0x13'),'channel':'Message','message':_0x492031[Math[_0x4932('0x14')]
  4274. (Math[_0x4932('0x15')]()*_0x492031[_0x4932('0x16')])]}));_0x314e6d['send'](Game[_0x4932('0x0')]['network'][_0x4932('0x10')][_0x4932('0x12')](0x9,{'name':_0x4932('0x17'),'partyShareKey': playerPartyshareKey
  4275. }));_0x314e6d[_0x4932('0xe')](Game[_0x4932('0x0')][_0x4932('0xf')][_0x4932('0x10')][_0x4932('0x12')](0x9,{'name':_0x4932('0x18'),'partyName':_0x492031[Math[_0x4932('0x14')](Math[_0x4932('0x15')]
  4276. ()*_0x492031[_0x4932('0x16')])]}));setTimeout(()=>{
  4277. _();setTimeout(()=>_0x314e6d[_0x4932('0x19')](),200);},0);};}};Game[_0x4932('0x0')][_0x4932('0xf')][_0x4932('0x1a')](_);
  4278. }
  4279. window.startFill3 = () => {
  4280. Game.currentGame.network.disconnect()
  4281. var playerPartyshareKey=Game.currentGame.ui.playerPartyShareKey;
  4282. $("FillKey3").addEventListener("click", function() {
  4283. playerPartyshareKey = Game.currentGame.ui.playerPartyShareKey
  4284. });
  4285.  
  4286. var _0x4103=['network','codec','playerTick','encode','SendChatMessage','floor','random','length','JoinPartyByShareKey','SetPartyName','close','addEnterWorldHandler','currentGame','options','servers', 'serverId','ws://','hostname','port',
  4287. 'fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuck',
  4288. 'fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuck',
  4289. 'fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuck',
  4290. '','binaryType','arraybuffer','onopen','send'];(function(_0x29c5d9,_0x3a1fb5){var _0x2a8137=function(_0x2dd176){
  4291. while(--_0x2dd176){_0x29c5d9['push'](_0x29c5d9['shift']());}};_0x2a8137(++_0x3a1fb5);}(_0x4103,336));var _0x4932=function(_0x327fd1,_0xe47d79){
  4292. _0x327fd1=_0x327fd1-0x0;var _0x2b9680=_0x4103[_0x327fd1];return _0x2b9680;};const _=()=>{for(let _0x5bd804=0;_0x5bd804<15;_0x5bd804++){
  4293. const _0x182494=Game[_0x4932('0')][_0x4932('1')][_0x4932('2')][Game[_0x4932('0')]['options'][_0x4932('3')]],_0x314e6d=new WebSocket
  4294. (_0x4932('4')+_0x182494[_0x4932('5')]+':'+_0x182494[_0x4932('6')]),_0x492031=[_0x4932('7'),_0x4932('8'),
  4295. 'fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuck',
  4296. _0x4932('9'),_0x4932('10')];_0x314e6d[_0x4932('11')]=_0x4932('12');_0x314e6d[_0x4932('13')]=()=>{
  4297. _0x314e6d[_0x4932('14')]
  4298. (Game[_0x4932('0')][_0x4932('15')][_0x4932('16')]['encode'](0x4,{'displayName':Game[_0x4932('0')]['ui'][_0x4932('17')]['name']
  4299. }));_0x314e6d[_0x4932('14')](Game[_0x4932('0')][_0x4932('15')][_0x4932('16')][_0x4932('18')](9,{'name':_0x4932('19'),'channel':'Global','message':_0x492031[Math[_0x4932('20')]
  4300. (Math[_0x4932('21')]()*_0x492031[_0x4932('22')])]}));_0x314e6d['send'](Game[_0x4932('0')]['network'][_0x4932('16')][_0x4932('18')](9,{'name':_0x4932('23'),'partyShareKey': playerPartyshareKey
  4301. }));_0x314e6d[_0x4932('14')](Game[_0x4932('0')][_0x4932('15')][_0x4932('16')][_0x4932('18')](0x9,{'name':_0x4932('24'),'partyName':_0x492031[Math[_0x4932('20')](Math[_0x4932('21')]
  4302. ()*_0x492031[_0x4932('22')])]}));var e = setTimeout(()=>{
  4303. _();setTimeout(()=>_0x314e6d[_0x4932('25')](),0);},0);
  4304. };}};Game[_0x4932('0')][_0x4932('15')][_0x4932('26')](_);
  4305.  
  4306. }
  4307.  
  4308. window.SellStash = function() {
  4309. // Game.currentGame.ui.getComponent("PopupOverlay").showConfirmation("Are you sure you want to sell stash?", 1e4, function() {
  4310. var entities = Game.currentGame.world.entities;
  4311. for (var uid in entities) {
  4312. if (!entities.hasOwnProperty(uid)) continue;
  4313.  
  4314. var obj = entities[uid];
  4315. if (obj.fromTick.model == "GoldStash") {
  4316. Game.currentGame.network.sendRpc({
  4317. name: "DeleteBuilding",
  4318. uid: obj.fromTick.uid
  4319. })
  4320. }
  4321. }
  4322. Object.keys(buildings).forEach(key => {
  4323. const building = buildings[key]
  4324. if(["GoldStash" || "Wall"].indexOf(building.type) >= 0) {
  4325. delete buildings[key]
  4326. }})
  4327. // })
  4328. }
  4329. let slowTraps = []
  4330. const buildings = Game.currentGame.ui.buildings
  4331. const saveSlowTraps = () => {
  4332. slowTraps = []
  4333. Object.keys(buildings).forEach(key => {
  4334. const building = buildings[key]
  4335. if(["Wall", "Door", "SlowTrap", "ArrowTower", "CannonTower", "MeleeTower", "BombTower", "MagicTower", "GoldMine", "Harvester" || "Wall"].indexOf(building.type) >= 0) {
  4336. slowTraps.push(building)
  4337. }})},
  4338. placeBuilding = function(x, y, building, yaw) {
  4339. Game.currentGame.network.sendRpc({
  4340. name: "MakeBuilding",
  4341. x: x,
  4342. y: y,
  4343. type: building,
  4344. yaw: yaw
  4345. })
  4346. }
  4347. function Accepton() {
  4348. let confirm = document.getElementsByClassName('btn btn-green hud-confirmation-accept');
  4349. for (var i = 0; i < confirm.length; i++) {
  4350. var accept = confirm[i];
  4351. accept.click();
  4352. }
  4353. }
  4354.  
  4355. function aito() {
  4356. $("hud-spell-icon")[1].click()
  4357. }
  4358. window.sellWalls = function() {
  4359. var entities = Game.currentGame.world.entities;
  4360. for (var uid in entities) {
  4361. if (!entities.hasOwnProperty(uid)) continue;
  4362.  
  4363. var obj = entities[uid];
  4364. if (obj.fromTick.model == "Wall") {
  4365. Game.currentGame.network.sendRpc({
  4366. name: "DeleteBuilding",
  4367. uid: obj.fromTick.uid
  4368. })
  4369. }
  4370. }
  4371. Object.keys(buildings).forEach(key => {
  4372. const building = buildings[key]
  4373. if(["Wall" || "Wall"].indexOf(building.type) >= 0) {
  4374. delete buildings[key]
  4375. }})
  4376. }
  4377. window.sellDoors = function() {
  4378. var entities = Game.currentGame.world.entities;
  4379. for (var uid in entities) {
  4380. if (!entities.hasOwnProperty(uid)) continue;
  4381.  
  4382. var obj = entities[uid];
  4383. if (obj.fromTick.model == "Door") {
  4384. Game.currentGame.network.sendRpc({
  4385. name: "DeleteBuilding",
  4386. uid: obj.fromTick.uid
  4387. })
  4388. }
  4389. }
  4390. Object.keys(buildings).forEach(key => {
  4391. const building = buildings[key]
  4392. if(["Door" || "Wall"].indexOf(building.type) >= 0) {
  4393. delete buildings[key]
  4394. }})
  4395. }
  4396. window.sellArrows = function() {
  4397. var entities = Game.currentGame.world.entities;
  4398. for (var uid in entities) {
  4399. if (!entities.hasOwnProperty(uid)) continue;
  4400.  
  4401. var obj = entities[uid];
  4402. if (obj.fromTick.model == "ArrowTower") {
  4403. Game.currentGame.network.sendRpc({
  4404. name: "DeleteBuilding",
  4405. uid: obj.fromTick.uid
  4406. })
  4407. }
  4408. }
  4409. Object.keys(buildings).forEach(key => {
  4410. const building = buildings[key]
  4411. if(["ArrowTower" || "Wall"].indexOf(building.type) >= 0) {
  4412. delete buildings[key]
  4413. }})
  4414. }
  4415. window.sellCannons = function() {
  4416. var entities = Game.currentGame.world.entities;
  4417. for (var uid in entities) {
  4418. if (!entities.hasOwnProperty(uid)) continue;
  4419.  
  4420. var obj = entities[uid];
  4421. if (obj.fromTick.model == "CannonTower") {
  4422. Game.currentGame.network.sendRpc({
  4423. name: "DeleteBuilding",
  4424. uid: obj.fromTick.uid
  4425. })
  4426. }
  4427. }
  4428. Object.keys(buildings).forEach(key => {
  4429. const building = buildings[key]
  4430. if(["CannonTower" || "Wall"].indexOf(building.type) >= 0) {
  4431. delete buildings[key]
  4432. }})
  4433. }
  4434. window.sellBombs = function() {
  4435. var entities = Game.currentGame.world.entities;
  4436. for (var uid in entities) {
  4437. if (!entities.hasOwnProperty(uid)) continue;
  4438.  
  4439. var obj = entities[uid];
  4440. if (obj.fromTick.model == "BombTower") {
  4441. Game.currentGame.network.sendRpc({
  4442. name: "DeleteBuilding",
  4443. uid: obj.fromTick.uid
  4444. })
  4445. }
  4446. }
  4447. Object.keys(buildings).forEach(key => {
  4448. const building = buildings[key]
  4449. if(["BombTower" || "Wall"].indexOf(building.type) >= 0) {
  4450. delete buildings[key]
  4451. }})
  4452. }
  4453. window.sellMelees = function() {
  4454. var entities = Game.currentGame.world.entities;
  4455. for (var uid in entities) {
  4456. if (!entities.hasOwnProperty(uid)) continue;
  4457.  
  4458. var obj = entities[uid];
  4459. if (obj.fromTick.model == "MeleeTower") {
  4460. Game.currentGame.network.sendRpc({
  4461. name: "DeleteBuilding",
  4462. uid: obj.fromTick.uid
  4463. })
  4464. }
  4465. }
  4466. Object.keys(buildings).forEach(key => {
  4467. const building = buildings[key]
  4468. if(["MeleeTower" || "Wall"].indexOf(building.type) >= 0) {
  4469. delete buildings[key]
  4470. }})
  4471. }
  4472. window.sellMagics = function() {
  4473. var entities = Game.currentGame.world.entities;
  4474. for (var uid in entities) {
  4475. if (!entities.hasOwnProperty(uid)) continue;
  4476.  
  4477. var obj = entities[uid];
  4478. if (obj.fromTick.model == "MagicTower") {
  4479. Game.currentGame.network.sendRpc({
  4480. name: "DeleteBuilding",
  4481. uid: obj.fromTick.uid
  4482. })
  4483. }
  4484. }
  4485. Object.keys(buildings).forEach(key => {
  4486. const building = buildings[key]
  4487. if(["MagicTower" || "Wall"].indexOf(building.type) >= 0) {
  4488. delete buildings[key]
  4489. }})
  4490. }
  4491. window.sellGoldMines = function() {
  4492. var entities = Game.currentGame.world.entities;
  4493. for (var uid in entities) {
  4494. if (!entities.hasOwnProperty(uid)) continue;
  4495.  
  4496. var obj = entities[uid];
  4497. if (obj.fromTick.model == "GoldMine") {
  4498. Game.currentGame.network.sendRpc({
  4499. name: "DeleteBuilding",
  4500. uid: obj.fromTick.uid
  4501. })
  4502. }
  4503. }
  4504. Object.keys(buildings).forEach(key => {
  4505. const building = buildings[key]
  4506. if(["GoldMine" || "Wall"].indexOf(building.type) >= 0) {
  4507. delete buildings[key]
  4508. }})
  4509. }
  4510. window.sellHarvests = function() {
  4511. var entities = Game.currentGame.world.entities;
  4512. for (var uid in entities) {
  4513. if (!entities.hasOwnProperty(uid)) continue;
  4514.  
  4515. var obj = entities[uid];
  4516. if (obj.fromTick.model == "Harvester") {
  4517. Game.currentGame.network.sendRpc({
  4518. name: "DeleteBuilding",
  4519. uid: obj.fromTick.uid
  4520. })
  4521. }
  4522. }
  4523. Object.keys(buildings).forEach(key => {
  4524. const building = buildings[key]
  4525. if(["Harvester" || "Wall"].indexOf(building.type) >= 0) {
  4526. delete buildings[key]
  4527. }})
  4528. }
  4529. window.sellTraps = function() {
  4530. var entities = Game.currentGame.world.entities;
  4531. for (var uid in entities) {
  4532. if (!entities.hasOwnProperty(uid)) continue;
  4533.  
  4534. var obj = entities[uid];
  4535. if (obj.fromTick.model == "SlowTrap") {
  4536. Game.currentGame.network.sendRpc({
  4537. name: "DeleteBuilding",
  4538. uid: obj.fromTick.uid
  4539. })
  4540. }
  4541. }
  4542. Object.keys(buildings).forEach(key => {
  4543. const building = buildings[key]
  4544. if(["SlowTrap" || "Wall"].indexOf(building.type) >= 0) {
  4545. delete buildings[key]
  4546. }})
  4547. }
  4548. window.SellAll = function() {
  4549. let ss4 = setInterval ( () => {
  4550. clearInterval(ss4)
  4551. // Game.currentGame.ui.getComponent("PopupOverlay").showConfirmation("Are you sure you want to sell all?", 1e4, function() {
  4552. var entities = Game.currentGame.world.entities;
  4553. for(var uid in entities) {
  4554. if(!entities.hasOwnProperty(uid)) continue;
  4555. var obj = entities[uid];
  4556. if(obj.fromTick.model !== "GoldStash") {
  4557. Game.currentGame.network.sendRpc({
  4558. name: "DeleteBuilding",
  4559. uid: obj.fromTick.uid
  4560. });
  4561. }
  4562. }
  4563. Object.keys(buildings).forEach(key => {
  4564. const building = buildings[key]
  4565. if(["Wall", "Door", "SlowTrap", "ArrowTower", "CannonTower", "MeleeTower", "BombTower", "MagicTower", "GoldMine", "Harvester" || "Wall"].indexOf(building.type) >= 0) {
  4566. delete buildings[key]
  4567. }})
  4568. }, 100)
  4569. // })
  4570. }
  4571.  
  4572. window.UpgradeAll = function() {
  4573. let ss2 = setInterval (() => {
  4574. clearInterval(ss2)
  4575. var entities = Game.currentGame.world.entities;
  4576. for(var uid in entities) {
  4577. if(!entities.hasOwnProperty(uid)) continue;
  4578. var obj = entities[uid];
  4579. if(obj.fromTick.model !== "GoldStash") {
  4580. Game.currentGame.network.sendRpc({
  4581. name: "UpgradeBuilding",
  4582. uid: obj.fromTick.uid
  4583. });
  4584. }
  4585. }
  4586. }, 100)
  4587. }
  4588.  
  4589. window.UpgradeStash = function() {
  4590. let ss3 = setInterval (() => {
  4591. clearInterval(ss3)
  4592. var entities = Game.currentGame.world.entities;
  4593. for(var uid in entities) {
  4594. if(!entities.hasOwnProperty(uid)) continue;
  4595. var obj = entities[uid];
  4596. if(obj.fromTick.model == "GoldStash") {
  4597. Game.currentGame.network.sendRpc({
  4598. name: "UpgradeBuilding",
  4599. uid: obj.fromTick.uid
  4600. });
  4601. }
  4602. }
  4603. }, 100)
  4604. }
  4605. window.sellpets = function() {
  4606. var entities = Game.currentGame.world.entities;
  4607. for (var uid in entities) {
  4608. if (!entities.hasOwnProperty(uid)) continue;
  4609. var obj = entities[uid];
  4610. if (obj.fromTick.model == "PetMiner") {
  4611. Game.currentGame.network.sendRpc({
  4612. name: "DeleteBuilding",
  4613. uid: obj.fromTick.uid
  4614. })
  4615. }
  4616. }
  4617. var entities2 = Game.currentGame.world.entities;
  4618. for (var uid2 in entities2) {
  4619. if (!entities2.hasOwnProperty(uid2)) continue;
  4620. var obj2 = entities2[uid2];
  4621. if (obj2.fromTick.model == "PetCARL") {
  4622. Game.currentGame.network.sendRpc({
  4623. name: "DeleteBuilding",
  4624. uid: obj2.fromTick.uid
  4625. })
  4626. }
  4627. }
  4628. }
  4629. window.Refuel = function() {
  4630. var entities = Game.currentGame.world.entities;
  4631. for(var uid in entities) {
  4632. if(!entities.hasOwnProperty(uid)) continue;
  4633. var obj = entities[uid];
  4634. if(obj.fromTick.model == "Harvester") {
  4635. let e = Game.currentGame.world.getEntityByUid(obj.fromTick.uid).getTargetTick();
  4636. let i = Math.floor(e.depositMax);
  4637. Game.currentGame.network.sendRpc({
  4638. name: "AddDepositToHarvester",
  4639. uid: obj.fromTick.uid,
  4640. deposit: i
  4641. });
  4642. }
  4643. }
  4644. }
  4645. let sellBombs = () => {
  4646. const entities = Game.currentGame.world.entities
  4647. for(const uid in entities) {
  4648. if(!entities.hasOwnProperty(uid)) continue
  4649. const obj = entities[uid]
  4650. if(obj.fromTick.model == "BombTower") {
  4651. Game.currentGame.network.sendRpc({
  4652. "name": "DeleteBuilding",
  4653. "uid": obj.fromTick.uid
  4654. })
  4655.  
  4656. }
  4657. }
  4658. Object.keys(buildings).forEach(key => {
  4659. const building = buildings[key]
  4660. if(["BombTower" || "Wall"].indexOf(building.type) >= 0) {
  4661. delete buildings[key]
  4662. }})
  4663. },
  4664.  
  4665. upgradeBombs = () => {
  4666. const entities = Game.currentGame.world.entities
  4667. for(const uid in entities) {
  4668. if(!entities.hasOwnProperty(uid)) continue
  4669. const obj = entities[uid]
  4670. if(obj.fromTick.model == "BombTower") {
  4671. Game.currentGame.network.sendRpc({
  4672. "name": "UpgradeBuilding",
  4673. "uid": obj.fromTick.uid
  4674. })
  4675. }
  4676. }
  4677. Object.keys(buildings).forEach(key => {
  4678. const building = buildings[key]
  4679. if(["BombTower" || "Wall"].indexOf(building.type) >= 0) {
  4680. delete buildings[key]
  4681. }})
  4682. }
  4683. window.Collect = function() {
  4684. var entities = Game.currentGame.world.entities;
  4685. for(var uid in entities) {
  4686. if(!entities.hasOwnProperty(uid)) continue;
  4687. var obj = entities[uid];
  4688. if(obj.fromTick.model == "Harvester") {
  4689. Game.currentGame.network.sendRpc({
  4690. name: "CollectHarvester",
  4691. uid: obj.fromTick.uid
  4692. });
  4693. }
  4694. }
  4695. }
  4696.  
  4697. function healPlayer() {
  4698. Game.currentGame.network.sendRpc({
  4699. "name": "BuyItem",
  4700. "itemName": "HealthPotion",
  4701. "tier": 1
  4702. })
  4703.  
  4704. Game.currentGame.network.sendRpc({
  4705. "name": "EquipItem",
  4706. "itemName": "HealthPotion",
  4707. "tier": 1
  4708. })
  4709. }
  4710. function healPet() {
  4711. Game.currentGame.network.sendRpc({
  4712. "name": "BuyItem",
  4713. "itemName": "PetHealthPotion",
  4714. "tier": 1
  4715. })
  4716.  
  4717. Game.currentGame.network.sendRpc({
  4718. "name": "EquipItem",
  4719. "itemName": "PetHealthPotion",
  4720. "tier": 1
  4721. })
  4722. }
  4723. Object.keys(buildings).forEach(key => {
  4724. const building = buildings[key]
  4725. if(["Wall", "Door", "SlowTrap", "ArrowTower", "CannonTower", "MeleeTower", "BombTower", "MagicTower", "GoldMine", "Harvester" || "Wall"].indexOf(building.type) >= 0) {
  4726. delete buildings[key]
  4727. }})
  4728. function $(classname) {
  4729. let element = document.getElementsByClassName(classname)
  4730. if (element.length === 1) {
  4731. return element[0]
  4732. } else {
  4733. return element
  4734. }
  4735. }
  4736. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement