Advertisement
PlexCraft

Zombs.io Script #2

Nov 21st, 2019
13,303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 97.00 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Zombs.io ( Tower Freeze - Auto builder - Leave party - Join party By share key - settings info )
  3. // @namespace -
  4. // @version 14.1
  5. // @description Press X for Upgrade All / go to settings...
  6. // @author Mauris
  7. // @match http://zombs.io/
  8. // @grant none
  9. // ==/UserScript==
  10. function keyDownF(e) {
  11. switch (e.keyCode) {
  12. case 88:
  13. startUPP();
  14. stopUPP();
  15. break;
  16. }
  17. }
  18. setInterval(function () {
  19. if (document.querySelectorAll(".hud-chat .hud-chat-input:focus")[0]) {
  20. window.removeEventListener("keydown", keyDownF);
  21. } else {
  22. window.addEventListener("keydown", keyDownF);
  23. }
  24. }, 0);
  25.  
  26. const settingsHTML = `<div style="text-align:center"><br>
  27. <button class="btn btn-blue" style="width: 45%;" onclick="SellStash();">Sell Stash!</button>
  28. <button class="btn btn-blue" style="width: 45%;" onclick="SellAll();">All Sell!</button>
  29.  
  30. <button class="btn btn-blue" style="width: 45%;" onclick="sellWalls();">Sell Wall!</button>
  31.  
  32. <button class="btn btn-blue" style="width: 45%;" onclick="sellDoors();">Sell Doors!</button>
  33.  
  34. <button class="btn btn-blue" style="width: 45%;" onclick="sellTraps();">Sell Traps!</button>
  35.  
  36. <button class="btn btn-blue" style="width: 45%;" onclick="sellpets();">Pet Sell!</button>
  37.  
  38. <button id="UPP" class="btn btn-red" style="width: 45%;">All Upgrade!</button>
  39.  
  40. <button id="AHRC" class="btn btn-red" style="width: 45%;">Oto Enable Harvester!</button>
  41.  
  42. <button id="bow" class="btn btn-red" style="width: 45%;">Auto Bow!</button>
  43.  
  44. <button id="SSL" class="btn btn-red" style="width: 45%;">Enable Join Parties!</button>
  45.  
  46. <button id="SSL4" class="btn btn-red" style="width: 45%;">Enable Aito!</button>
  47.  
  48. <button id="SSL9" class="btn btn-red" style="width: 45%;">All Kick!</button>
  49.  
  50.  
  51. <hr />
  52. <h3>Join Parties</h3>
  53. <hr />
  54. <input type="text" maxlength="20" placeholder="Enter Key" id="myKey">
  55. <button onclick="join();">Katıl</button>
  56. <br><br>
  57. <input type="text" class="TFkey3" placeholder="Anahtar Gir">
  58. <button class="TFvalidKey3">Geçerli Anahtar</button>
  59. <button class="TFbtn3">Kilitlenemeyen Modu Etkinleştir</button>
  60. <hr />
  61. <h3>Auto Build</h3>
  62. <hr />
  63. <button onclick="BSB();">Bryan Smith Base</button>
  64. <button onclick="MB();">Thing Base</button>
  65. <button onclick="XBase();">X Base</button>
  66. <button onclick="SmallCornerBase();">OP Base</button>
  67. <button onclick="TH();">Gold hack base</button>
  68.  
  69. <br><br>
  70. <input type="number" value="1000" class="F" placeholder="DB speed" style="width: 20%;">
  71. <button class="Save Speed</button>
  72. <button id="SSL5">Enable Defens Base</button>
  73. <br><br>
  74. <input type="number" value="700" class="F2" placeholder="GG speed" style="width: 20%;">
  75. <button class="Fe2">Save Speed</button>
  76. <button id="SSL6">Enable Gold Generator</button> &nbsp;
  77. <hr />
  78. <h3>Leave Parties</h3>
  79. <hr />
  80. <button onclick="leave();">Leave</button>
  81. <hr />
  82. <h3>Tower Heal</h3>
  83. <hr />
  84. <input type="number" value="500" class="TFkey2" placeholder="speed" style="width: 20%">
  85. <button class="TFvalidKey2">Save Speed</button>
  86. <button class="TFbtn2">Heal Towers By Kullanarak X Durumu </button>
  87. <br><br>
  88. <input type="number" value="500" class="F3" placeholder="speed" style="width: 20%;">
  89. <button class="Fe3">Save Speed</button>
  90. <button id="SSL7">Heal Towers By Using Fare Durumu</button> &nbsp;
  91. <br><br>
  92. <input type="number" value="500" class="F4" placeholder="speed" style="width: 20%;">
  93. <button class="Fe4">Save Speed</button>
  94. <button id="SSL3"> Enable Tower Heal</button> &nbsp;
  95. <hr />
  96. <h3>Auto Raid</h3>
  97. <hr />
  98. <input type="number" value="200" class="TFe" placeholder="speed" style="width: 20%;">
  99. <input type="text" class="TFkey" placeholder="Valid Key">
  100. <button class="TFvalidKey">Valid Key</button>
  101. <button class="TFbtn">Tower Freeze</button>
  102. </div>
  103. <hr />
  104. <h3>Global Message Sender</h3>
  105. <hr />
  106. <input type="search" placeholder="message" maxlength="140" id="myGlobalMessage">
  107. <button onclick="globalMessage();">Send</button>
  108. `;
  109.  
  110. document.getElementsByClassName("hud-settings-grid")[0].innerHTML = settingsHTML;
  111. setTimeout(() => {
  112.  
  113. },2500)
  114. window.join = function() {
  115. let partyKey = myKey.value
  116. Game.currentGame.network.sendRpc({
  117. name: "JoinPartyByShareKey",
  118. partyShareKey: partyKey
  119. })
  120. }
  121.  
  122. window.globalMessage = function() {
  123. let globalMessage = myGlobalMessage.value
  124. Game.currentGame.network.sendRpc({
  125. name: "SendChatMessage",
  126. channel: "Global",
  127. message: globalMessage
  128. })
  129. }
  130.  
  131. //Auto Build Script
  132. function $(classname) {
  133. let element = document.getElementsByClassName(classname)
  134. if (element.length === 1) {
  135. return element[0]
  136. } else {
  137. return element
  138. }
  139. }
  140.  
  141. Storage.prototype.setObject = function(key, value) {
  142. this.setItem(key, JSON.stringify(value));
  143. }
  144.  
  145. Storage.prototype.getObject = function(key) {
  146. let value = this.getItem(key);
  147. return value && JSON.parse(value);
  148. }
  149. let Auto = {}
  150. let Auto2 = {}
  151. let EXTREME = {}
  152. Auto.GetGoldStash = function() {
  153. let entities = Game.currentGame.ui.buildings
  154. for (let uid in entities) {
  155. if (!entities.hasOwnProperty(uid)) {
  156. continue
  157. }
  158. let obj = entities[uid]
  159. if (obj.type == "GoldStash") {
  160. return obj
  161. }
  162. }
  163. }
  164. EXTREME.GetGoldStash = function() {
  165. let entities = Game.currentGame.ui.buildings
  166. for (let uid in entities) {
  167. if (!entities.hasOwnProperty(uid)) {
  168. continue
  169. }
  170. let obj = entities[uid]
  171. if (obj.type == "GoldStash") {
  172. return obj
  173. }
  174. }
  175. }
  176. Auto2.GetGoldStash = function() {
  177. let entities = Game.currentGame.ui.buildings
  178. for (let uid in entities) {
  179. if (!entities.hasOwnProperty(uid)) {
  180. continue
  181. }
  182. let obj = entities[uid]
  183. if (obj.type == "GoldStash") {
  184. return obj
  185. }
  186. }
  187. }
  188.  
  189. Auto.PlaceBuilding = function(x, y, building, yaw) {
  190. Game.currentGame.network.sendRpc({
  191. name: "MakeBuilding",
  192. x: x,
  193. y: y,
  194. type: building,
  195. yaw: yaw
  196. })
  197. }
  198. Auto.PlaceBulding = function(x, y, building, yaw) {
  199. Game.currentGame.network.sendRpc({
  200. name: "MakeBuilding",
  201. x: x,
  202. y: y,
  203. type: building,
  204. yaw: yaw
  205. })
  206. }
  207. EXTREME.PlaceBuilding = function(x, y, building, yaw) {
  208. Game.currentGame.network.sendRpc({
  209. name: "MakeBuilding",
  210. x: x,
  211. y: y,
  212. type: building,
  213. yaw: yaw
  214. })
  215. }
  216. Auto2.PlaceBuilding = function(x, y, building, yaw) {
  217. Game.currentGame.network.sendRpc({
  218. name: "MakeBuilding",
  219. x: x,
  220. y: y,
  221. type: building,
  222. yaw: yaw
  223. })
  224. sellBombs()
  225. upgradeBombs()
  226. }
  227. Auto2.GoldGenerator = function() {
  228. let waitForGoldStash = setInterval(function() {
  229. if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
  230. let stash = Auto2.GetGoldStash();
  231. if (stash == undefined) return
  232. let stashPosition = {
  233. x: stash.x,
  234. y: stash.y
  235. }
  236. clearInterval(waitForGoldStash);
  237. Auto2.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 96, "BombTower", 0)
  238. Auto2.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -96, "BombTower", 0)
  239. Auto2.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 0, "BombTower", 0)
  240. Auto2.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 0, "BombTower", 0)
  241. Auto2.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 56778, "ArrowTower", 0)
  242. Auto2.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 56778, "ArrowTower", 0)
  243. Auto2.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 56778, "ArrowTower", 0)
  244. Auto2.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 56778, "ArrowTower", 0)
  245. Auto2.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 56778, "ArrowTower", 0)
  246. Auto2.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 56778, "ArrowTower", 0)
  247. Auto2.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 56778, "ArrowTower", 0)
  248. Auto2.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 56778, "ArrowTower", 0)
  249. Auto2.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 56778, "ArrowTower", 0)
  250. Auto2.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 56778, "ArrowTower", 0)
  251. Auto2.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 56778, "ArrowTower", 0)
  252. Auto2.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 56778, "ArrowTower", 0)
  253. Auto2.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 56778, "ArrowTower", 0)
  254. Auto2.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 56778, "ArrowTower", 0)
  255. Auto2.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 56778, "ArrowTower", 0)
  256. Auto2.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 56778, "ArrowTower", 0)
  257. Auto2.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 56778, "ArrowTower", 0)
  258. Auto2.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 56778, "ArrowTower", 0)
  259. Auto2.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 56778, "ArrowTower", 0)
  260. Auto2.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 56778, "ArrowTower", 0)
  261. Auto2.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 56778, "ArrowTower", 0)
  262. Auto2.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 56778, "ArrowTower", 0)
  263. Auto2.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 56778, "ArrowTower", 0)
  264. Auto2.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 56778, "ArrowTower", 0)
  265. Auto2.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 56778, "ArrowTower", 0)
  266. Auto2.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 56778, "ArrowTower", 0)
  267. Auto2.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 56778, "ArrowTower", 0)
  268. Auto2.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 56778, "ArrowTower", 0)
  269. Auto2.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 56778, "ArrowTower", 0)
  270. Auto2.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 56778, "ArrowTower", 0)
  271. Auto2.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 56778, "ArrowTower", 0)
  272. Auto2.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 56778, "ArrowTower", 0)
  273. Auto2.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 56778, "ArrowTower", 0)
  274. Auto2.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 56778, "ArrowTower", 0)
  275. Auto2.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 56778, "ArrowTower", 0)
  276. Auto2.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 56778, "ArrowTower", 0)
  277. Auto2.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 56778, "ArrowTower", 0)
  278. Auto2.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 56778, "ArrowTower", 0)
  279. Auto2.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 56778, "ArrowTower", 0)
  280. Auto2.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 56778, "ArrowTower", 0)
  281. Auto2.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 56778, "ArrowTower", 0)
  282. }
  283. }, 0)
  284. window.ee = function() {
  285. var waitForGoldStash2 = setInterval(function() {
  286. clearInterval(waitForGoldStash2);
  287. upgradeBombs()
  288. }, 0)
  289. }
  290. }
  291. EXTREME.BuildMyBase = function() {
  292. var waitForGoldStash = setInterval(function() {
  293. if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
  294. var stash = EXTREME.GetGoldStash();
  295. if (stash == undefined) return
  296. var stashPosition = {
  297. x: stash.x,
  298. y: stash.y
  299. }
  300. clearInterval(waitForGoldStash);
  301. EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 96, "BombTower", 0)
  302. EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -96, "BombTower", 0)
  303. EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 0, "BombTower", 0)
  304. EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 0, "BombTower", 0)
  305. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 0, "GoldMine", 0)
  306. EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 192, "GoldMine", 0)
  307. EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -192, "GoldMine", 0)
  308. EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + 0, "GoldMine", 0)
  309. EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 96, "GoldMine", 0)
  310. EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 96, "GoldMine", 0)
  311. EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + -96, "GoldMine", 0)
  312. EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + -96, "GoldMine", 0)
  313. EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 192, "ArrowTower", 0)
  314. EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 192, "ArrowTower", 0)
  315. EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + -192, "ArrowTower", 0)
  316. EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + -192, "ArrowTower", 0)
  317. EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + 96, "ArrowTower", 0)
  318. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 96, "ArrowTower", 0)
  319. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -96, "ArrowTower", 0)
  320. EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + -96, "ArrowTower", 0)
  321. EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + 192, "ArrowTower", 0)
  322. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 192, "ArrowTower", 0)
  323. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -192, "CannonTower", 0)
  324. EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + -192, "CannonTower", 0)
  325. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + 288, "MagicTower", 0)
  326. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 288, "MagicTower", 0)
  327. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -288, "MagicTower", 0)
  328. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -288, "MagicTower", 0)
  329. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + 192, "MagicTower", 0)
  330. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 192, "MagicTower", 0)
  331. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -192, "MagicTower", 0)
  332. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -192, "MagicTower", 0)
  333. EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + 288, "MagicTower", 0)
  334. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 288, "MagicTower", 0)
  335. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -288, "MagicTower", 0)
  336. EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + -288, "MagicTower", 0)
  337. EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 288, "CannonTower", 0)
  338. EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 288, "CannonTower", 0)
  339. EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + -288, "CannonTower", 0)
  340. EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + -288, "CannonTower", 0)
  341. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + 96, "CannonTower", 0)
  342. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 96, "CannonTower", 0)
  343. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -96, "CannonTower", 0)
  344. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -96, "CannonTower", 0)
  345. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + 0, "BombTower", 0)
  346. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -0, "BombTower", 0)
  347. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 0, "BombTower", 0)
  348. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -0, "BombTower", 0)
  349. EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 288, "BombTower", 0)
  350. EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -288, "BombTower", 0)
  351. EXTREME.PlaceBuilding(stashPosition.x + -0, stashPosition.y + 288, "BombTower", 0)
  352. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -288, "CannonTower", 0)
  353. EXTREME.PlaceBuilding(stashPosition.x + -0, stashPosition.y + 288, "BombTower", 0)
  354. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -288, "CannonTower", 0)
  355. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 0, "Door", 0)
  356. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 24, "Door", 0)
  357. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 72, "Door", 0)
  358. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 120, "Door", 0)
  359. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 168, "Door", 0)
  360. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 216, "Door", 0)
  361. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 264, "Door", 0)
  362. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 312, "Door", 0)
  363. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 360, "Door", 0)
  364. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + 408, "Door", 0)
  365. EXTREME.PlaceBuilding(stashPosition.x + -360, stashPosition.y + 408, "Door", 0)
  366. EXTREME.PlaceBuilding(stashPosition.x + -312, stashPosition.y + 408, "Door", 0)
  367. EXTREME.PlaceBuilding(stashPosition.x + -264, stashPosition.y + 408, "Door", 0)
  368. EXTREME.PlaceBuilding(stashPosition.x + -216, stashPosition.y + 408, "Door", 0)
  369. EXTREME.PlaceBuilding(stashPosition.x + -168, stashPosition.y + 408, "Door", 0)
  370. EXTREME.PlaceBuilding(stashPosition.x + -120, stashPosition.y + 408, "Door", 0)
  371. EXTREME.PlaceBuilding(stashPosition.x + -72, stashPosition.y + 408, "Door", 0)
  372. EXTREME.PlaceBuilding(stashPosition.x + -24, stashPosition.y + 408, "Door", 0)
  373. EXTREME.PlaceBuilding(stashPosition.x + -0, stashPosition.y + 408, "Door", 0)
  374. EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 408, "Door", 0)
  375. EXTREME.PlaceBuilding(stashPosition.x + 24, stashPosition.y + 408, "Door", 0)
  376. EXTREME.PlaceBuilding(stashPosition.x + 72, stashPosition.y + 408, "Door", 0)
  377. EXTREME.PlaceBuilding(stashPosition.x + 120, stashPosition.y + 408, "Door", 0)
  378. EXTREME.PlaceBuilding(stashPosition.x + 168, stashPosition.y + 408, "Door", 0)
  379. EXTREME.PlaceBuilding(stashPosition.x + 216, stashPosition.y + 408, "Door", 0)
  380. EXTREME.PlaceBuilding(stashPosition.x + 264, stashPosition.y + 408, "Door", 0)
  381. EXTREME.PlaceBuilding(stashPosition.x + 312, stashPosition.y + 408, "Door", 0)
  382. EXTREME.PlaceBuilding(stashPosition.x + 360, stashPosition.y + 408, "Door", 0)
  383. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 408, "Door", 0)
  384. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 360, "Door", 0)
  385. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 312, "Door", 0)
  386. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 264, "Door", 0)
  387. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 216, "Door", 0)
  388. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 168, "Door", 0)
  389. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 120, "Door", 0)
  390. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 72, "Door", 0)
  391. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 24, "Door", 0)
  392. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 0, "Door", 0)
  393. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -360, "Door", 0)
  394. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -312, "Door", 0)
  395. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -264, "Door", 0)
  396. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -216, "Door", 0)
  397. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -168, "Door", 0)
  398. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -120, "Door", 0)
  399. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -72, "Door", 0)
  400. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -24, "Door", 0)
  401. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -0, "Door", 0)
  402. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + -408, "Door", 0)
  403. EXTREME.PlaceBuilding(stashPosition.x + 360, stashPosition.y + -408, "Door", 0)
  404. EXTREME.PlaceBuilding(stashPosition.x + 312, stashPosition.y + -408, "Door", 0)
  405. EXTREME.PlaceBuilding(stashPosition.x + 264, stashPosition.y + -408, "Door", 0)
  406. EXTREME.PlaceBuilding(stashPosition.x + 216, stashPosition.y + -408, "Door", 0)
  407. EXTREME.PlaceBuilding(stashPosition.x + 168, stashPosition.y + -408, "Door", 0)
  408. EXTREME.PlaceBuilding(stashPosition.x + 120, stashPosition.y + -408, "Door", 0)
  409. EXTREME.PlaceBuilding(stashPosition.x + 72, stashPosition.y + -408, "Door", 0)
  410. EXTREME.PlaceBuilding(stashPosition.x + 24, stashPosition.y + -408, "Door", 0)
  411. EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -408, "Door", 0)
  412. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -408, "Door", 0)
  413. EXTREME.PlaceBuilding(stashPosition.x + -360, stashPosition.y + -408, "Door", 0)
  414. EXTREME.PlaceBuilding(stashPosition.x + -312, stashPosition.y + -408, "Door", 0)
  415. EXTREME.PlaceBuilding(stashPosition.x + -264, stashPosition.y + -408, "Door", 0)
  416. EXTREME.PlaceBuilding(stashPosition.x + -216, stashPosition.y + -408, "Door", 0)
  417. EXTREME.PlaceBuilding(stashPosition.x + -168, stashPosition.y + -408, "Door", 0)
  418. EXTREME.PlaceBuilding(stashPosition.x + -120, stashPosition.y + -408, "Door", 0)
  419. EXTREME.PlaceBuilding(stashPosition.x + -72, stashPosition.y + -408, "Door", 0)
  420. EXTREME.PlaceBuilding(stashPosition.x + -24, stashPosition.y + -408, "Door", 0)
  421. EXTREME.PlaceBuilding(stashPosition.x + -0, stashPosition.y + -408, "Door", 0)
  422. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -0, "Door", 0)
  423. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -72, "Door", 0)
  424. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -24, "Door", 0)
  425. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -120, "Door", 0)
  426. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -168, "Door", 0)
  427. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -216, "Door", 0)
  428. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -264, "Door", 0)
  429. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -312, "Door", 0)
  430. EXTREME.PlaceBuilding(stashPosition.x + -408, stashPosition.y + -360, "Door", 0)
  431. }
  432. }, 0)
  433. }
  434. EXTREME.BuildMyBase2 = function() {
  435. var waitForGoldStash = setInterval(function() {
  436. if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
  437. var stash = EXTREME.GetGoldStash();
  438. if (stash == undefined) return
  439. var stashPosition = {
  440. x: stash.x,
  441. y: stash.y
  442. }
  443. clearInterval(waitForGoldStash);
  444. EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 0, "CannonTower", 0)
  445. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 0, "CannonTower", 0)
  446. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 0, "MagicTower", 0)
  447. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 192, "MagicTower", 0)
  448. EXTREME.PlaceBuilding(stashPosition.x + 384, stashPosition.y + 192, "MagicTower", 0)
  449. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 192, "BombTower", 0)
  450. EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 192, "CannonTower", 0)
  451. EXTREME.PlaceBuilding(stashPosition.x + 144, stashPosition.y + 288, "MagicTower", 0)
  452. EXTREME.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 288, "MagicTower", 0)
  453. EXTREME.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 96, "MagicTower", 0)
  454. EXTREME.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 96, "CannonTower", 0)
  455. EXTREME.PlaceBuilding(stashPosition.x + 48, stashPosition.y + 96, "CannonTower", 0)
  456. EXTREME.PlaceBuilding(stashPosition.x + 144, stashPosition.y + 96, "CannonTower", 0)
  457. EXTREME.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 120, "Door", 0)
  458. EXTREME.PlaceBuilding(stashPosition.x + 312, stashPosition.y + 312, "Door", 0)
  459. EXTREME.PlaceBuilding(stashPosition.x + 360, stashPosition.y + 264, "Door", 0)
  460. EXTREME.PlaceBuilding(stashPosition.x + 312, stashPosition.y + 264, "Door", 0)
  461. EXTREME.PlaceBuilding(stashPosition.x + 264, stashPosition.y + 360, "Door", 0)
  462. EXTREME.PlaceBuilding(stashPosition.x + 216, stashPosition.y + 360, "Door", 0)
  463. EXTREME.PlaceBuilding(stashPosition.x + 168, stashPosition.y + 360, "Door", 0)
  464. EXTREME.PlaceBuilding(stashPosition.x + 168, stashPosition.y + 408, "Wall", 0)
  465. EXTREME.PlaceBuilding(stashPosition.x + 216, stashPosition.y + 408, "Wall", 0)
  466. EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 192, "Harvester", 100)
  467. EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -192, "Harvester", 100)
  468. EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + 0, "Harvester", 100)
  469. EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 96, "Harvester", 100)
  470. EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + -96, "Harvester", 100)
  471. EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + -96, "Harvester", 100)
  472.  
  473. }
  474. }, 0)
  475. }
  476. EXTREME.BuildXBase = function() {
  477. var waitForGoldStash = setInterval(function() {
  478. if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
  479. var stash = EXTREME.GetGoldStash();
  480. if (stash == undefined) return
  481. var stashPosition = {
  482. x: stash.x,
  483. y: stash.y
  484. }
  485. clearInterval(waitForGoldStash)
  486. Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + 192, 'GoldMine', 0)
  487. Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + 192, 'GoldMine', 0)
  488. Auto.PlaceBulding(stashPosition.x + -192, stashPosition.y + 48, 'GoldMine', 0)
  489. Auto.PlaceBulding(stashPosition.x + -192, stashPosition.y + -48, 'GoldMine', 0)
  490. Auto.PlaceBulding(stashPosition.x + 192, stashPosition.y + 48, 'GoldMine', 0)
  491. Auto.PlaceBulding(stashPosition.x + 192, stashPosition.y + -48, 'GoldMine', 0)
  492. Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + -192, 'GoldMine', 0)
  493. Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + -192, 'GoldMine', 0)
  494. Auto.PlaceBulding(stashPosition.x + -24, stashPosition.y + -120, 'Door', 0)
  495. Auto.PlaceBulding(stashPosition.x + 24, stashPosition.y + -120, 'Door', 0)
  496. Auto.PlaceBulding(stashPosition.x + 120, stashPosition.y + -24, 'Door', 0)
  497. Auto.PlaceBulding(stashPosition.x + 120, stashPosition.y + 24, 'Door', 0)
  498. Auto.PlaceBulding(stashPosition.x + -24, stashPosition.y + 120, 'Door', 0)
  499. Auto.PlaceBulding(stashPosition.x + 24, stashPosition.y + 120, 'Door', 0)
  500. Auto.PlaceBulding(stashPosition.x + -120, stashPosition.y + 24, 'Door', 0)
  501. Auto.PlaceBulding(stashPosition.x + -120, stashPosition.y + -24, 'Door', 0)
  502. Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + -192, 'Harvester', 0)
  503. Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + -192, 'Harvester', 0)
  504. Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + 192, 'Harvester', 0)
  505. Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + 192, 'Harvester', 0)
  506. Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + -288, 'BombTower', 0)
  507. Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + -384, 'BombTower', 0)
  508. Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + -480, 'BombTower', 0)
  509. Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + -480, 'BombTower', 0)
  510. Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + -384, 'BombTower', 0)
  511. Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + -288, 'BombTower', 0)
  512. Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + -576, 'ArrowTower', 0)
  513. Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + -576, 'ArrowTower', 0)
  514. Auto.PlaceBulding(stashPosition.x + 0, stashPosition.y + -672, 'MagicTower', 0)
  515. Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + -576, 'MagicTower', 0)
  516. Auto.PlaceBulding(stashPosition.x + -240, stashPosition.y + -528, 'MagicTower', 0)
  517. Auto.PlaceBulding(stashPosition.x + -336, stashPosition.y + -480, 'MagicTower', 0)
  518. Auto.PlaceBulding(stashPosition.x + -336, stashPosition.y + -384, 'CannonTower', 0)
  519. Auto.PlaceBulding(stashPosition.x + -240, stashPosition.y + -432, 'CannonTower', 0)
  520. Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + -480, 'CannonTower', 0)
  521. Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + -384, 'CannonTower', 0)
  522. Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + -288, 'CannonTower', 0)
  523. Auto.PlaceBulding(stashPosition.x + -264, stashPosition.y + -360, 'Door', 0)
  524. Auto.PlaceBulding(stashPosition.x + -216, stashPosition.y + -360, 'Door', 0)
  525. Auto.PlaceBulding(stashPosition.x + -216, stashPosition.y + -312, 'Door', 0)
  526. Auto.PlaceBulding(stashPosition.x + -216, stashPosition.y + -264, 'Door', 0)
  527. Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + -576, 'MagicTower', 0)
  528. Auto.PlaceBulding(stashPosition.x + 240, stashPosition.y + -528, 'MagicTower', 0)
  529. Auto.PlaceBulding(stashPosition.x + 336, stashPosition.y + -480, 'MagicTower', 0)
  530. Auto.PlaceBulding(stashPosition.x + 336, stashPosition.y + -384, 'CannonTower', 0)
  531. Auto.PlaceBulding(stashPosition.x + 240, stashPosition.y + -432, 'CannonTower', 0)
  532. Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + -480, 'CannonTower', 0)
  533. Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + -384, 'CannonTower', 0)
  534. Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + -288, 'ArrowTower', 0)
  535. Auto.PlaceBulding(stashPosition.x + 264, stashPosition.y + -360, 'Door', 0)
  536. Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + -360, 'Door', 0)
  537. Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + -312, 'Door', 0)
  538. Auto.PlaceBulding(stashPosition.x + -480, stashPosition.y + -336, 'MagicTower', 0)
  539. Auto.PlaceBulding(stashPosition.x + -528, stashPosition.y + -240, 'MagicTower', 0)
  540. Auto.PlaceBulding(stashPosition.x + -576, stashPosition.y + -144, 'MagicTower', 0)
  541. Auto.PlaceBulding(stashPosition.x + -576, stashPosition.y + -48, 'CannonTower', 0)
  542. Auto.PlaceBulding(stashPosition.x + -672, stashPosition.y + 0, 'MagicTower', 0)
  543. Auto.PlaceBulding(stashPosition.x + -432, stashPosition.y + -240, 'CannonTower', 0)
  544. Auto.PlaceBulding(stashPosition.x + -336, stashPosition.y + -240, 'CannonTower', 0)
  545. Auto.PlaceBulding(stashPosition.x + -480, stashPosition.y + -144, 'CannonTower', 0)
  546. Auto.PlaceBulding(stashPosition.x + -384, stashPosition.y + -144, 'CannonTower', 0)
  547. Auto.PlaceBulding(stashPosition.x + -288, stashPosition.y + -144, 'ArrowTower', 0)
  548. Auto.PlaceBulding(stashPosition.x + -480, stashPosition.y + -48, 'ArrowTower', 0)
  549. Auto.PlaceBulding(stashPosition.x + -480, stashPosition.y + 48, 'ArrowTower', 0)
  550. Auto.PlaceBulding(stashPosition.x + -576, stashPosition.y + 48, 'ArrowTower', 0)
  551. Auto.PlaceBulding(stashPosition.x + -384, stashPosition.y + -48, 'BombTower', 0)
  552. Auto.PlaceBulding(stashPosition.x + -384, stashPosition.y + 48, 'BombTower', 0)
  553. Auto.PlaceBulding(stashPosition.x + -288, stashPosition.y + 48, 'BombTower', 0)
  554. Auto.PlaceBulding(stashPosition.x + -288, stashPosition.y + -48, 'BombTower', 0)
  555. Auto.PlaceBulding(stashPosition.x + -312, stashPosition.y + 120, 'Door', 0)
  556. Auto.PlaceBulding(stashPosition.x + -312, stashPosition.y + 168, 'Door', 0)
  557. Auto.PlaceBulding(stashPosition.x + -264, stashPosition.y + 168, 'Door', 0)
  558. Auto.PlaceBulding(stashPosition.x + -264, stashPosition.y + 120, 'Door', 0)
  559. Auto.PlaceBulding(stashPosition.x + -264, stashPosition.y + 216, 'Door', 0)
  560. Auto.PlaceBulding(stashPosition.x + -216, stashPosition.y + 120, 'Door', 0)
  561. Auto.PlaceBulding(stashPosition.x + -432, stashPosition.y + 240, 'CannonTower', 0)
  562. Auto.PlaceBulding(stashPosition.x + -384, stashPosition.y + 336, 'CannonTower', 0)
  563. Auto.PlaceBulding(stashPosition.x + -480, stashPosition.y + 336, 'MagicTower', 0)
  564. Auto.PlaceBulding(stashPosition.x + -528, stashPosition.y + 240, 'MagicTower', 0)
  565. Auto.PlaceBulding(stashPosition.x + -696, stashPosition.y + 72, 'Wall', 0)
  566. Auto.PlaceBulding(stashPosition.x + -648, stashPosition.y + 72, 'Wall', 0)
  567. Auto.PlaceBulding(stashPosition.x + -648, stashPosition.y + 168, 'Wall', 0)
  568. Auto.PlaceBulding(stashPosition.x + -744, stashPosition.y + -24, 'Wall', 0)
  569. Auto.PlaceBulding(stashPosition.x + -744, stashPosition.y + 24, 'Wall', 0)
  570. Auto.PlaceBulding(stashPosition.x + -696, stashPosition.y + -120, 'Wall', 0)
  571. Auto.PlaceBulding(stashPosition.x + -696, stashPosition.y + -72, 'Wall', 0)
  572. Auto.PlaceBulding(stashPosition.x + -648, stashPosition.y + -72, 'Wall', 0)
  573. Auto.PlaceBulding(stashPosition.x + -648, stashPosition.y + -120, 'Wall', 0)
  574. Auto.PlaceBulding(stashPosition.x + -648, stashPosition.y + -168, 'Wall', 0)
  575. Auto.PlaceBulding(stashPosition.x + 288, stashPosition.y + -48, 'BombTower', 0)
  576. Auto.PlaceBulding(stashPosition.x + 288, stashPosition.y + -144, 'BombTower', 0)
  577. Auto.PlaceBulding(stashPosition.x + 384, stashPosition.y + -48, 'BombTower', 0)
  578. Auto.PlaceBulding(stashPosition.x + 480, stashPosition.y + -48, 'BombTower', 0)
  579. Auto.PlaceBulding(stashPosition.x + 384, stashPosition.y + 48, 'BombTower', 0)
  580. Auto.PlaceBulding(stashPosition.x + 480, stashPosition.y + 48, 'BombTower', 0)
  581. Auto.PlaceBulding(stashPosition.x + 480, stashPosition.y + 144, 'BombTower', 0)
  582. Auto.PlaceBulding(stashPosition.x + 264, stashPosition.y + 24, 'Door', 0)
  583. Auto.PlaceBulding(stashPosition.x + 264, stashPosition.y + 72, 'Door', 0)
  584. Auto.PlaceBulding(stashPosition.x + 312, stashPosition.y + 72, 'Door', 0)
  585. Auto.PlaceBulding(stashPosition.x + 312, stashPosition.y + 24, 'Door', 0)
  586. Auto.PlaceBulding(stashPosition.x + 288, stashPosition.y + 144, 'ArrowTower', 0)
  587. Auto.PlaceBulding(stashPosition.x + 384, stashPosition.y + 144, 'ArrowTower', 0)
  588. Auto.PlaceBulding(stashPosition.x + 336, stashPosition.y + 240, 'ArrowTower', 0)
  589. Auto.PlaceBulding(stashPosition.x + 432, stashPosition.y + 240, 'ArrowTower', 0)
  590. Auto.PlaceBulding(stashPosition.x + 384, stashPosition.y + 336, 'ArrowTower', 0)
  591. Auto.PlaceBulding(stashPosition.x + 480, stashPosition.y + 336, 'MagicTower', 0)
  592. Auto.PlaceBulding(stashPosition.x + 528, stashPosition.y + 240, 'MagicTower', 0)
  593. Auto.PlaceBulding(stashPosition.x + 552, stashPosition.y + 24, 'Door', 0)
  594. Auto.PlaceBulding(stashPosition.x + 552, stashPosition.y + 72, 'Door', 0)
  595. Auto.PlaceBulding(stashPosition.x + 552, stashPosition.y + 120, 'Door', 0)
  596. Auto.PlaceBulding(stashPosition.x + 552, stashPosition.y + 168, 'Door', 0)
  597. Auto.PlaceBulding(stashPosition.x + -648, stashPosition.y + 120, 'Wall', 0)
  598. Auto.PlaceBulding(stashPosition.x + -696, stashPosition.y + 120, 'Wall', 0)
  599. Auto.PlaceBulding(stashPosition.x + -576, stashPosition.y + 144, 'ArrowTower', 0)
  600. Auto.PlaceBulding(stashPosition.x + -480, stashPosition.y + 144, 'ArrowTower', 0)
  601. Auto.PlaceBulding(stashPosition.x + -384, stashPosition.y + 144, 'ArrowTower', 0)
  602. Auto.PlaceBulding(stashPosition.x + -336, stashPosition.y + 240, 'CannonTower', 0)
  603. Auto.PlaceBulding(stashPosition.x + 600, stashPosition.y + 120, 'Door', 0)
  604. Auto.PlaceBulding(stashPosition.x + 600, stashPosition.y + 168, 'Door', 0)
  605. Auto.PlaceBulding(stashPosition.x + 648, stashPosition.y + 168, 'Door', 0)
  606. Auto.PlaceBulding(stashPosition.x + 600, stashPosition.y + 216, 'Wall', 0)
  607. Auto.PlaceBulding(stashPosition.x + 600, stashPosition.y + 264, 'Wall', 0)
  608. Auto.PlaceBulding(stashPosition.x + 648, stashPosition.y + 216, 'Wall', 0)
  609. Auto.PlaceBulding(stashPosition.x + 648, stashPosition.y + 120, 'Wall', 0)
  610. Auto.PlaceBulding(stashPosition.x + 696, stashPosition.y + 120, 'Wall', 0)
  611. Auto.PlaceBulding(stashPosition.x + 696, stashPosition.y + 72, 'Wall', 0)
  612. Auto.PlaceBulding(stashPosition.x + 696, stashPosition.y + 24, 'Wall', 0)
  613. Auto.PlaceBulding(stashPosition.x + 624, stashPosition.y + 48, 'ArrowTower', 0)
  614. Auto.PlaceBulding(stashPosition.x + 576, stashPosition.y + -48, 'CannonTower', 0)
  615. Auto.PlaceBulding(stashPosition.x + 672, stashPosition.y + -48, 'MagicTower', 0)
  616. Auto.PlaceBulding(stashPosition.x + 576, stashPosition.y + -144, 'MagicTower', 0)
  617. Auto.PlaceBulding(stashPosition.x + 528, stashPosition.y + -240, 'MagicTower', 0)
  618. Auto.PlaceBulding(stashPosition.x + 480, stashPosition.y + -336, 'MagicTower', 0)
  619. Auto.PlaceBulding(stashPosition.x + 432, stashPosition.y + -240, 'CannonTower', 0)
  620. Auto.PlaceBulding(stashPosition.x + 336, stashPosition.y + -240, 'CannonTower', 0)
  621. Auto.PlaceBulding(stashPosition.x + 480, stashPosition.y + -144, 'CannonTower', 0)
  622. Auto.PlaceBulding(stashPosition.x + 384, stashPosition.y + -144, 'ArrowTower', 0)
  623. Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + 288, 'BombTower', 0)
  624. Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + 288, 'BombTower', 0)
  625. Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + 288, 'BombTower', 0)
  626. Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + 288, 'BombTower', 0)
  627. Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + 384, 'BombTower', 0)
  628. Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + 384, 'BombTower', 0)
  629. Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + 384, 'BombTower', 0)
  630. Auto.PlaceBulding(stashPosition.x + 240, stashPosition.y + 432, 'ArrowTower', 0)
  631. Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + 480, 'ArrowTower', 0)
  632. Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + 480, 'ArrowTower', 0)
  633. Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + 480, 'ArrowTower', 0)
  634. Auto.PlaceBulding(stashPosition.x + -48, stashPosition.y + 576, 'ArrowTower', 0)
  635. Auto.PlaceBulding(stashPosition.x + 48, stashPosition.y + 576, 'ArrowTower', 0)
  636. Auto.PlaceBulding(stashPosition.x + 144, stashPosition.y + 576, 'ArrowTower', 0)
  637. Auto.PlaceBulding(stashPosition.x + 240, stashPosition.y + 528, 'MagicTower', 0)
  638. Auto.PlaceBulding(stashPosition.x + 336, stashPosition.y + 480, 'MagicTower', 0)
  639. Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + 384, 'CannonTower', 0)
  640. Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + 480, 'CannonTower', 0)
  641. Auto.PlaceBulding(stashPosition.x + -240, stashPosition.y + 432, 'CannonTower', 0)
  642. Auto.PlaceBulding(stashPosition.x + -144, stashPosition.y + 576, 'MagicTower', 0)
  643. Auto.PlaceBulding(stashPosition.x + -240, stashPosition.y + 528, 'MagicTower', 0)
  644. Auto.PlaceBulding(stashPosition.x + -336, stashPosition.y + 480, 'MagicTower', 0)
  645. Auto.PlaceBulding(stashPosition.x + -168, stashPosition.y + 648, 'Wall', 0)
  646. Auto.PlaceBulding(stashPosition.x + -120, stashPosition.y + 648, 'Wall', 0)
  647. Auto.PlaceBulding(stashPosition.x + -72, stashPosition.y + 648, 'Wall', 0)
  648. Auto.PlaceBulding(stashPosition.x + -24, stashPosition.y + 648, 'Wall', 0)
  649. Auto.PlaceBulding(stashPosition.x + 24, stashPosition.y + 648, 'Wall', 0)
  650. Auto.PlaceBulding(stashPosition.x + 72, stashPosition.y + 648, 'Wall', 0)
  651. Auto.PlaceBulding(stashPosition.x + 120, stashPosition.y + 648, 'Wall', 0)
  652. Auto.PlaceBulding(stashPosition.x + 168, stashPosition.y + 648, 'Wall', 0)
  653. Auto.PlaceBulding(stashPosition.x + 120, stashPosition.y + 696, 'Wall', 0)
  654. Auto.PlaceBulding(stashPosition.x + 72, stashPosition.y + 696, 'Wall', 0)
  655. Auto.PlaceBulding(stashPosition.x + 24, stashPosition.y + 696, 'Wall', 0)
  656. Auto.PlaceBulding(stashPosition.x + -24, stashPosition.y + 696, 'Wall', 0)
  657. Auto.PlaceBulding(stashPosition.x + -72, stashPosition.y + 696, 'Wall', 0)
  658. Auto.PlaceBulding(stashPosition.x + -120, stashPosition.y + 696, 'Wall', 0)
  659. Auto.PlaceBulding(stashPosition.x + 600, stashPosition.y + -216, 'Wall', 0)
  660. Auto.PlaceBulding(stashPosition.x + 648, stashPosition.y + -216, 'Wall', 0)
  661. Auto.PlaceBulding(stashPosition.x + 648, stashPosition.y + -168, 'Wall', 0)
  662. Auto.PlaceBulding(stashPosition.x + 648, stashPosition.y + -120, 'Wall', 0)
  663. Auto.PlaceBulding(stashPosition.x + 696, stashPosition.y + -120, 'Wall', 0)
  664. Auto.PlaceBulding(stashPosition.x + 744, stashPosition.y + -72, 'Wall', 0)
  665. Auto.PlaceBulding(stashPosition.x + 744, stashPosition.y + -24, 'Wall', 0)
  666. Auto.PlaceBulding(stashPosition.x + -168, stashPosition.y + -648, 'Wall', 0)
  667. Auto.PlaceBulding(stashPosition.x + -120, stashPosition.y + -648, 'Wall', 0)
  668. Auto.PlaceBulding(stashPosition.x + -120, stashPosition.y + -696, 'Wall', 0)
  669. Auto.PlaceBulding(stashPosition.x + -72, stashPosition.y + -696, 'Door', 0)
  670. Auto.PlaceBulding(stashPosition.x + -72, stashPosition.y + -648, 'Door', 0)
  671. Auto.PlaceBulding(stashPosition.x + -24, stashPosition.y + -744, 'Wall', 0)
  672. Auto.PlaceBulding(stashPosition.x + 24, stashPosition.y + -744, 'Wall', 0)
  673. Auto.PlaceBulding(stashPosition.x + 72, stashPosition.y + -696, 'Wall', 0)
  674. Auto.PlaceBulding(stashPosition.x + 72, stashPosition.y + -648, 'Wall', 0)
  675. Auto.PlaceBulding(stashPosition.x + 120, stashPosition.y + -648, 'Wall', 0)
  676. Auto.PlaceBulding(stashPosition.x + 168, stashPosition.y + -648, 'Wall', 0)
  677. Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + -600, 'Wall', 0)
  678. Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + -648, 'Wall', 0)
  679. Auto.PlaceBulding(stashPosition.x + -216, stashPosition.y + -120, 'Door', 0)
  680. Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + 120, 'Door', 0)
  681. Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + -120, 'Door', 0)
  682. Auto.PlaceBulding(stashPosition.x + 264, stashPosition.y + -216, 'Door', 0)
  683. Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + 264, 'Door', 0)
  684. Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + 360, 'Door', 0)
  685. Auto.PlaceBulding(stashPosition.x + 264, stashPosition.y + 360, 'Door', 0)
  686. Auto.PlaceBulding(stashPosition.x + 216, stashPosition.y + 312, 'Door', 0)
  687. Auto.PlaceBulding(stashPosition.x + -264, stashPosition.y + 360, 'Door', 0)
  688. Auto.PlaceBulding(stashPosition.x + -216, stashPosition.y + 360, 'Door', 0)
  689. Auto.PlaceBulding(stashPosition.x + -216, stashPosition.y + 312, 'Door', 0)
  690. }
  691. }, 0)
  692. }
  693. Auto.BuildBryanSmithBase = function() {
  694. let waitForGoldStash = setInterval(function() {
  695. if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
  696. let stash = Auto.GetGoldStash();
  697. if (stash == undefined) return
  698. let stashPosition = {
  699. x: stash.x,
  700. y: stash.y
  701. }
  702. clearInterval(waitForGoldStash)
  703. Auto.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 0, 'GoldStash', 0);
  704. Auto.PlaceBuilding(stashPosition.x + -192, stashPosition.y + -48, 'GoldMine', 0);
  705. Auto.PlaceBuilding(stashPosition.x + -192, stashPosition.y + 48, 'GoldMine', 0);
  706. Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + -192, 'GoldMine', 0);
  707. Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + -192, 'GoldMine', 0);
  708. Auto.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -48, 'GoldMine', 0);
  709. Auto.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 48, 'GoldMine', 0);
  710. Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + 192, 'GoldMine', 0);
  711. Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + 192, 'GoldMine', 0);
  712. Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + 288, 'ArrowTower', 0);
  713. Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + 288, 'ArrowTower', 0);
  714. Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + 288, 'ArrowTower', 0);
  715. Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + 288, 'ArrowTower', 0);
  716. Auto.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -48, 'ArrowTower', 0);
  717. Auto.PlaceBuilding(stashPosition.x + -288, stashPosition.y + 48, 'ArrowTower', 0);
  718. Auto.PlaceBuilding(stashPosition.x + -288, stashPosition.y + 144, 'ArrowTower', 0);
  719. Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + -288, 'ArrowTower', 0);
  720. Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + -288, 'ArrowTower', 0);
  721. Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -144, 'ArrowTower', 0);
  722. Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -48, 'ArrowTower', 0);
  723. Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 48, 'ArrowTower', 0);
  724. Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 144, 'ArrowTower', 0);
  725. Auto.PlaceBuilding(stashPosition.x + 384, stashPosition.y + 144, 'ArrowTower', 0);
  726. Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + 144, 'ArrowTower', 0);
  727. Auto.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 240, 'ArrowTower', 0);
  728. Auto.PlaceBuilding(stashPosition.x + 432, stashPosition.y + 240, 'ArrowTower', 0);
  729. Auto.PlaceBuilding(stashPosition.x + 384, stashPosition.y + 336, 'ArrowTower', 0);
  730. Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + 384, 'ArrowTower', 0);
  731. Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + 480, 'ArrowTower', 0);
  732. Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + 576, 'ArrowTower', 0);
  733. Auto.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 432, 'ArrowTower', 0);
  734. Auto.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -144, 'CannonTower', 0);
  735. Auto.PlaceBuilding(stashPosition.x + -384, stashPosition.y + -144, 'CannonTower', 0);
  736. Auto.PlaceBuilding(stashPosition.x + -480, stashPosition.y + -144, 'CannonTower', 0);
  737. Auto.PlaceBuilding(stashPosition.x + -432, stashPosition.y + -240, 'CannonTower', 0);
  738. Auto.PlaceBuilding(stashPosition.x + -336, stashPosition.y + -240, 'CannonTower', 0);
  739. Auto.PlaceBuilding(stashPosition.x + -336, stashPosition.y + 240, 'CannonTower', 0);
  740. Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + 384, 'CannonTower', 0);
  741. Auto.PlaceBuilding(stashPosition.x + -240, stashPosition.y + 432, 'CannonTower', 0);
  742. Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + -288, 'CannonTower', 0);
  743. Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + -384, 'CannonTower', 0);
  744. Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + -480, 'CannonTower', 0);
  745. Auto.PlaceBuilding(stashPosition.x + -240, stashPosition.y + -432, 'CannonTower', 0);
  746. Auto.PlaceBuilding(stashPosition.x + -336, stashPosition.y + -384, 'CannonTower', 0);
  747. Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + -288, 'CannonTower', 0);
  748. Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + -384, 'CannonTower', 0);
  749. Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + -480, 'CannonTower', 0);
  750. Auto.PlaceBuilding(stashPosition.x + 240, stashPosition.y + -432, 'CannonTower', 0);
  751. Auto.PlaceBuilding(stashPosition.x + 336, stashPosition.y + -384, 'CannonTower', 0);
  752. Auto.PlaceBuilding(stashPosition.x + 336, stashPosition.y + -240, 'CannonTower', 0);
  753. Auto.PlaceBuilding(stashPosition.x + 432, stashPosition.y + -240, 'CannonTower', 0);
  754. Auto.PlaceBuilding(stashPosition.x + 528, stashPosition.y + -240, 'CannonTower', 0);
  755. Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + -144, 'CannonTower', 0);
  756. Auto.PlaceBuilding(stashPosition.x + 576, stashPosition.y + -144, 'CannonTower', 0);
  757. Auto.PlaceBuilding(stashPosition.x + 384, stashPosition.y + -144, 'BombTower', 0);
  758. Auto.PlaceBuilding(stashPosition.x + 384, stashPosition.y + -48, 'BombTower', 0);
  759. Auto.PlaceBuilding(stashPosition.x + 384, stashPosition.y + 48, 'BombTower', 0);
  760. Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + -48, 'BombTower', 0);
  761. Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + 48, 'BombTower', 0);
  762. Auto.PlaceBuilding(stashPosition.x + 576, stashPosition.y + -48, 'BombTower', 0);
  763. Auto.PlaceBuilding(stashPosition.x + 576, stashPosition.y + 48, 'BombTower', 0);
  764. Auto.PlaceBuilding(stashPosition.x + 528, stashPosition.y + 240, 'MagicTower', 0);
  765. Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + 336, 'MagicTower', 0);
  766. Auto.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 528, 'MagicTower', 0);
  767. Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + 576, 'MagicTower', 0);
  768. Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + 384, 'BombTower', 0);
  769. Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + 384, 'BombTower', 0);
  770. Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + 480, 'BombTower', 0);
  771. Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + 480, 'BombTower', 0);
  772. Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + 576, 'BombTower', 0);
  773. Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + 480, 'BombTower', 0);
  774. Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + 576, 'MagicTower', 0);
  775. Auto.PlaceBuilding(stashPosition.x + -240, stashPosition.y + 528, 'MagicTower', 0);
  776. Auto.PlaceBuilding(stashPosition.x + -336, stashPosition.y + 480, 'MagicTower', 0);
  777. Auto.PlaceBuilding(stashPosition.x + -384, stashPosition.y + -48, 'BombTower', 0);
  778. Auto.PlaceBuilding(stashPosition.x + -384, stashPosition.y + 48, 'BombTower', 0);
  779. Auto.PlaceBuilding(stashPosition.x + -384, stashPosition.y + 144, 'BombTower', 0);
  780. Auto.PlaceBuilding(stashPosition.x + -480, stashPosition.y + -48, 'BombTower', 0);
  781. Auto.PlaceBuilding(stashPosition.x + -480, stashPosition.y + 48, 'BombTower', 0);
  782. Auto.PlaceBuilding(stashPosition.x + -480, stashPosition.y + 144, 'BombTower', 0);
  783. Auto.PlaceBuilding(stashPosition.x + -432, stashPosition.y + 240, 'CannonTower', 0);
  784. Auto.PlaceBuilding(stashPosition.x + -384, stashPosition.y + 336, 'MagicTower', 0);
  785. Auto.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 480, 'MagicTower', 0);
  786. Auto.PlaceBuilding(stashPosition.x + -480, stashPosition.y + 336, 'MagicTower', 0);
  787. Auto.PlaceBuilding(stashPosition.x + -528, stashPosition.y + 240, 'MagicTower', 0);
  788. Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + -336, 'MagicTower', 0);
  789. Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + -480, 'BombTower', 0);
  790. Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + -384, 'BombTower', 0);
  791. Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + -384, 'BombTower', 0);
  792. Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + -480, 'BombTower', 0);
  793. Auto.PlaceBuilding(stashPosition.x + 48, stashPosition.y + -576, 'BombTower', 0);
  794. Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + -576, 'MagicTower', 0);
  795. Auto.PlaceBuilding(stashPosition.x + 240, stashPosition.y + -528, 'MagicTower', 0);
  796. Auto.PlaceBuilding(stashPosition.x + 336, stashPosition.y + -480, 'MagicTower', 0);
  797. Auto.PlaceBuilding(stashPosition.x + -48, stashPosition.y + -576, 'MagicTower', 0);
  798. Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + -576, 'MagicTower', 0);
  799. Auto.PlaceBuilding(stashPosition.x + -240, stashPosition.y + -528, 'MagicTower', 0);
  800. Auto.PlaceBuilding(stashPosition.x + -336, stashPosition.y + -480, 'MagicTower', 0);
  801. Auto.PlaceBuilding(stashPosition.x + -576, stashPosition.y + 48, 'ArrowTower', 0);
  802. Auto.PlaceBuilding(stashPosition.x + -576, stashPosition.y + 144, 'MagicTower', 0);
  803. Auto.PlaceBuilding(stashPosition.x + -576, stashPosition.y + -48, 'MagicTower', 0);
  804. Auto.PlaceBuilding(stashPosition.x + -576, stashPosition.y + -144, 'MagicTower', 0);
  805. Auto.PlaceBuilding(stashPosition.x + -528, stashPosition.y + -240, 'MagicTower', 0);
  806. Auto.PlaceBuilding(stashPosition.x + -480, stashPosition.y + -336, 'MagicTower', 0);
  807. Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + -192, 'Harvester', 0);
  808. Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + -192, 'Harvester', 0);
  809. Auto.PlaceBuilding(stashPosition.x + 144, stashPosition.y + 192, 'Harvester', 0);
  810. Auto.PlaceBuilding(stashPosition.x + -144, stashPosition.y + 192, 'Harvester', 0);
  811. Auto.PlaceBuilding(stashPosition.x + -648, stashPosition.y + -168, 'Wall', 0);
  812. Auto.PlaceBuilding(stashPosition.x + -648, stashPosition.y + -120, 'Wall', 0);
  813. Auto.PlaceBuilding(stashPosition.x + -648, stashPosition.y + -72, 'Wall', 0);
  814. Auto.PlaceBuilding(stashPosition.x + -648, stashPosition.y + -24, 'Wall', 0);
  815. Auto.PlaceBuilding(stashPosition.x + -648, stashPosition.y + 24, 'Wall', 0);
  816. Auto.PlaceBuilding(stashPosition.x + -648, stashPosition.y + 72, 'Wall', 0);
  817. Auto.PlaceBuilding(stashPosition.x + -648, stashPosition.y + 120, 'Wall', 0);
  818. Auto.PlaceBuilding(stashPosition.x + -648, stashPosition.y + 168, 'Wall', 0);
  819. Auto.PlaceBuilding(stashPosition.x + -696, stashPosition.y + -120, 'Wall', 0);
  820. Auto.PlaceBuilding(stashPosition.x + -696, stashPosition.y + -72, 'Wall', 0);
  821. Auto.PlaceBuilding(stashPosition.x + -696, stashPosition.y + -24, 'Wall', 0);
  822. Auto.PlaceBuilding(stashPosition.x + -696, stashPosition.y + 24, 'Wall', 0);
  823. Auto.PlaceBuilding(stashPosition.x + -696, stashPosition.y + 72, 'Wall', 0);
  824. Auto.PlaceBuilding(stashPosition.x + -696, stashPosition.y + 120, 'Wall', 0);
  825. Auto.PlaceBuilding(stashPosition.x + 600, stashPosition.y + 120, 'Door', 0);
  826. Auto.PlaceBuilding(stashPosition.x + 552, stashPosition.y + 120, 'Door', 0);
  827. Auto.PlaceBuilding(stashPosition.x + 552, stashPosition.y + 168, 'Door', 0);
  828. Auto.PlaceBuilding(stashPosition.x + 600, stashPosition.y + 168, 'Door', 0);
  829. Auto.PlaceBuilding(stashPosition.x + 648, stashPosition.y + -168, 'Wall', 0);
  830. Auto.PlaceBuilding(stashPosition.x + 648, stashPosition.y + -120, 'Wall', 0);
  831. Auto.PlaceBuilding(stashPosition.x + 648, stashPosition.y + -72, 'Wall', 0);
  832. Auto.PlaceBuilding(stashPosition.x + 648, stashPosition.y + -24, 'Wall', 0);
  833. Auto.PlaceBuilding(stashPosition.x + 648, stashPosition.y + 24, 'Wall', 0);
  834. Auto.PlaceBuilding(stashPosition.x + 648, stashPosition.y + 72, 'Wall', 0);
  835. Auto.PlaceBuilding(stashPosition.x + 648, stashPosition.y + 120, 'Wall', 0);
  836. Auto.PlaceBuilding(stashPosition.x + 648, stashPosition.y + 168, 'Wall', 0);
  837. Auto.PlaceBuilding(stashPosition.x + 696, stashPosition.y + -120, 'Wall', 0);
  838. Auto.PlaceBuilding(stashPosition.x + 696, stashPosition.y + -72, 'Wall', 0);
  839. Auto.PlaceBuilding(stashPosition.x + 696, stashPosition.y + -24, 'Wall', 0);
  840. Auto.PlaceBuilding(stashPosition.x + 696, stashPosition.y + 24, 'Wall', 0);
  841. Auto.PlaceBuilding(stashPosition.x + 696, stashPosition.y + 72, 'Wall', 0);
  842. Auto.PlaceBuilding(stashPosition.x + 696, stashPosition.y + 120, 'Wall', 0);
  843. Auto.PlaceBuilding(stashPosition.x + -168, stashPosition.y + -648, 'Wall', 0);
  844. Auto.PlaceBuilding(stashPosition.x + -120, stashPosition.y + -648, 'Wall', 0);
  845. Auto.PlaceBuilding(stashPosition.x + -72, stashPosition.y + -648, 'Wall', 0);
  846. Auto.PlaceBuilding(stashPosition.x + -24, stashPosition.y + -648, 'Wall', 0);
  847. Auto.PlaceBuilding(stashPosition.x + 24, stashPosition.y + -648, 'Wall', 0);
  848. Auto.PlaceBuilding(stashPosition.x + 72, stashPosition.y + -648, 'Wall', 0);
  849. Auto.PlaceBuilding(stashPosition.x + 120, stashPosition.y + -648, 'Wall', 0);
  850. Auto.PlaceBuilding(stashPosition.x + 168, stashPosition.y + -648, 'Wall', 0);
  851. Auto.PlaceBuilding(stashPosition.x + -120, stashPosition.y + -696, 'Wall', 0);
  852. Auto.PlaceBuilding(stashPosition.x + -72, stashPosition.y + -696, 'Wall', 0);
  853. Auto.PlaceBuilding(stashPosition.x + -24, stashPosition.y + -696, 'Wall', 0);
  854. Auto.PlaceBuilding(stashPosition.x + 24, stashPosition.y + -696, 'Wall', 0);
  855. Auto.PlaceBuilding(stashPosition.x + 72, stashPosition.y + -696, 'Wall', 0);
  856. Auto.PlaceBuilding(stashPosition.x + 120, stashPosition.y + -696, 'Wall', 0);
  857. Auto.PlaceBuilding(stashPosition.x + -168, stashPosition.y + 648, 'Wall', 0);
  858. Auto.PlaceBuilding(stashPosition.x + -120, stashPosition.y + 648, 'Wall', 0);
  859. Auto.PlaceBuilding(stashPosition.x + -72, stashPosition.y + 648, 'Wall', 0);
  860. Auto.PlaceBuilding(stashPosition.x + -24, stashPosition.y + 648, 'Wall', 0);
  861. Auto.PlaceBuilding(stashPosition.x + 24, stashPosition.y + 648, 'Wall', 0);
  862. Auto.PlaceBuilding(stashPosition.x + 72, stashPosition.y + 648, 'Wall', 0);
  863. Auto.PlaceBuilding(stashPosition.x + 120, stashPosition.y + 648, 'Wall', 0);
  864. Auto.PlaceBuilding(stashPosition.x + 168, stashPosition.y + 648, 'Wall', 0);
  865. Auto.PlaceBuilding(stashPosition.x + -120, stashPosition.y + 696, 'Wall', 0);
  866. Auto.PlaceBuilding(stashPosition.x + -72, stashPosition.y + 696, 'Wall', 0);
  867. Auto.PlaceBuilding(stashPosition.x + -24, stashPosition.y + 696, 'Wall', 0);
  868. Auto.PlaceBuilding(stashPosition.x + 24, stashPosition.y + 696, 'Wall', 0);
  869. Auto.PlaceBuilding(stashPosition.x + 72, stashPosition.y + 696, 'Wall', 0);
  870. Auto.PlaceBuilding(stashPosition.x + 120, stashPosition.y + 696, 'Wall', 0);
  871. Auto.PlaceBuilding(stashPosition.x + 216, stashPosition.y + 312, 'Door', 0);
  872. Auto.PlaceBuilding(stashPosition.x + 216, stashPosition.y + 360, 'Door', 0);
  873. Auto.PlaceBuilding(stashPosition.x + 264, stashPosition.y + 360, 'Door', 0);
  874. Auto.PlaceBuilding(stashPosition.x + 216, stashPosition.y + -120, 'Door', 0);
  875. Auto.PlaceBuilding(stashPosition.x + -216, stashPosition.y + -120, 'Door', 0);
  876. Auto.PlaceBuilding(stashPosition.x + -216, stashPosition.y + 120, 'Door', 0);
  877. Auto.PlaceBuilding(stashPosition.x + 216, stashPosition.y + 120, 'Door', 0);
  878. Auto.PlaceBuilding(stashPosition.x + 216, stashPosition.y + -312, 'Door', 0);
  879. Auto.PlaceBuilding(stashPosition.x + 216, stashPosition.y + -360, 'Door', 0);
  880. Auto.PlaceBuilding(stashPosition.x + 264, stashPosition.y + -360, 'Door', 0);
  881. Auto.PlaceBuilding(stashPosition.x + -216, stashPosition.y + -360, 'Door', 0);
  882. Auto.PlaceBuilding(stashPosition.x + -216, stashPosition.y + -312, 'Door', 0);
  883. Auto.PlaceBuilding(stashPosition.x + -264, stashPosition.y + -360, 'Door', 0);
  884. Auto.PlaceBuilding(stashPosition.x + -216, stashPosition.y + 312, 'Door', 0);
  885. Auto.PlaceBuilding(stashPosition.x + -216, stashPosition.y + 360, 'Door', 0);
  886. Auto.PlaceBuilding(stashPosition.x + -264, stashPosition.y + 360, 'Door', 0);
  887. }
  888. }, 0)
  889. }
  890.  
  891. Auto.BuildThingBase = function() {
  892. let waitForGoldStash = setInterval(function() {
  893. if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
  894. let stash = Auto.GetGoldStash();
  895. if (stash == undefined) return
  896. let stashPosition = {
  897. x: stash.x,
  898. y: stash.y
  899. }
  900. clearInterval(waitForGoldStash)
  901. Auto.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -192, "Harvester", 100)
  902. Auto.PlaceBuilding(stashPosition.x + -192, stashPosition.y + 0, "Harvester", 100)
  903. Auto.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 96, "Harvester", 100)
  904. Auto.PlaceBuilding(stashPosition.x + 96, stashPosition.y + -96, "Harvester", 100);
  905. Auto.PlaceBuilding(stashPosition.x + -96, stashPosition.y + -96, "Harvester", 100)
  906. Auto.PlaceBuilding(stashPosition.x + 96, stashPosition.y, "GoldMine", 0)
  907. Auto.PlaceBuilding(stashPosition.x, stashPosition.y + 96, "GoldMine", 0)
  908. Auto.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 144, "ArrowTower", 0)
  909. Auto.PlaceBuilding(stashPosition.x, stashPosition.y + 192, "ArrowTower", 0)
  910. Auto.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 240, "ArrowTower", 0)
  911. Auto.PlaceBuilding(stashPosition.x + 192, stashPosition.y, "ArrowTower", 0)
  912. Auto.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 96, "ArrowTower", 0)
  913. Auto.PlaceBuilding(stashPosition.x + 240, stashPosition.y + 192, "ArrowTower", 0)
  914. Auto.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 336, "ArrowTower", 0)
  915. Auto.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 192, "ArrowTower", 0)
  916. Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y, "GoldMine", 0)
  917. Auto.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 96, "GoldMine", 0)
  918. Auto.PlaceBuilding(stashPosition.x + 432, stashPosition.y + 192, "GoldMine", 0)
  919. Auto.PlaceBuilding(stashPosition.x, stashPosition.y + 288, "GoldMine", 0)
  920. Auto.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 336, "GoldMine", 0)
  921. Auto.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 432, "GoldMine", 0)
  922. Auto.PlaceBuilding(stashPosition.x, stashPosition.y + 384, "ArrowTower", 0)
  923. Auto.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 432, "ArrowTower", 0)
  924. Auto.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 528, "ArrowTower", 0)
  925. Auto.PlaceBuilding(stashPosition.x + 384, stashPosition.y, "ArrowTower", 0)
  926. Auto.PlaceBuilding(stashPosition.x + 432, stashPosition.y + 96, "ArrowTower", 0)
  927. Auto.PlaceBuilding(stashPosition.x + 528, stashPosition.y + 192, "ArrowTower", 0)
  928. Auto.PlaceBuilding(stashPosition.x + 336, stashPosition.y + 336, "ArrowTower", 0)
  929. Auto.PlaceBuilding(stashPosition.x + 432, stashPosition.y + 432, "ArrowTower", 0)
  930. Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 480, "ArrowTower", 0)
  931. Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + 288, "ArrowTower", 0)
  932. Auto.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 528, "CannonTower", 0)
  933. Auto.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 624, "CannonTower", 0)
  934. Auto.PlaceBuilding(stashPosition.x + 528, stashPosition.y + 96, "CannonTower", 0)
  935. Auto.PlaceBuilding(stashPosition.x + 624, stashPosition.y + 192, "CannonTower", 0)
  936. Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y, "MagicTower", 0)
  937. Auto.PlaceBuilding(stashPosition.x + 576, stashPosition.y, "MagicTower", 0)
  938. Auto.PlaceBuilding(stashPosition.x + 624, stashPosition.y + 96, "MagicTower", 0)
  939. Auto.PlaceBuilding(stashPosition.x + 720, stashPosition.y + 192, "MagicTower", 0)
  940. Auto.PlaceBuilding(stashPosition.x + 672, stashPosition.y + 288, "MagicTower", 0)
  941. Auto.PlaceBuilding(stashPosition.x, stashPosition.y + 480, "MagicTower", 0)
  942. Auto.PlaceBuilding(stashPosition.x, stashPosition.y + 576, "MagicTower", 0)
  943. Auto.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 624, "MagicTower", 0)
  944. Auto.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 720, "MagicTower", 0)
  945. Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 672, "MagicTower", 0)
  946. Auto.PlaceBuilding(stashPosition.x + 384, stashPosition.y + 672, "MagicTower", 0)
  947. Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + 624, "MagicTower", 0)
  948. Auto.PlaceBuilding(stashPosition.x + 480, stashPosition.y + 528, "MagicTower", 0)
  949. Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 576, "BombTower", 0)
  950. Auto.PlaceBuilding(stashPosition.x + 576, stashPosition.y + 288, "BombTower", 0)
  951. Auto.PlaceBuilding(stashPosition.x + 384, stashPosition.y + 576, "MagicTower", 0)
  952. Auto.PlaceBuilding(stashPosition.x + 264, stashPosition.y + 312, "Door", 0)
  953. Auto.PlaceBuilding(stashPosition.x + 264, stashPosition.y + 360, "Door", 0)
  954. Auto.PlaceBuilding(stashPosition.x + 264, stashPosition.y + 408, "Door", 0)
  955. Auto.PlaceBuilding(stashPosition.x + 312, stashPosition.y + 408, "Door", 0)
  956. Auto.PlaceBuilding(stashPosition.x + 360, stashPosition.y + 456, "Door", 0)
  957. Auto.PlaceBuilding(stashPosition.x + 360, stashPosition.y + 504, "Door", 0)
  958. Auto.PlaceBuilding(stashPosition.x + 408, stashPosition.y + 504, "Door", 0)
  959. Auto.PlaceBuilding(stashPosition.x + 360, stashPosition.y + 408, "Door", 0)
  960. Auto.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 768, "CannonTower", 0)
  961. Auto.PlaceBuilding(stashPosition.x + 768, stashPosition.y + 288, "CannonTower", 0)
  962. Auto.PlaceBuilding(stashPosition.x + 672, stashPosition.y + 384, "MagicTower", 0)
  963. Auto.PlaceBuilding(stashPosition.x + 624, stashPosition.y + 480, "MagicTower", 0)
  964. Auto.PlaceBuilding(stashPosition.x + 576, stashPosition.y + 384, "MagicTower", 0)
  965. Auto.PlaceBuilding(stashPosition.x + 744, stashPosition.y + 360, "Door", 0)
  966. Auto.PlaceBuilding(stashPosition.x + 696, stashPosition.y + 456, "Door", 0)
  967. Auto.PlaceBuilding(stashPosition.x + 456, stashPosition.y + 696, "Door", 0)
  968. Auto.PlaceBuilding(stashPosition.x + 360, stashPosition.y + 744, "Door", 0)
  969. }
  970. }, 0)
  971. }
  972. EXTREME.Buildgoldhack = function() {
  973. var waitForGoldStash = setInterval(function() {
  974. if (document.querySelectorAll("[data-building]")[10].classList[1] == "is-disabled") {
  975. var stash = EXTREME.GetGoldStash();
  976. if (stash == undefined) return
  977. var stashPosition = {
  978. x: stash.x,
  979. y: stash.y
  980. }
  981. EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + 96, "BombTower", 0)
  982. EXTREME.PlaceBuilding(stashPosition.x + 0, stashPosition.y + -96, "BombTower", 0)
  983. EXTREME.PlaceBuilding(stashPosition.x + -96, stashPosition.y + 0, "BombTower", 0)
  984. EXTREME.PlaceBuilding(stashPosition.x + 96, stashPosition.y + 0, "BombTower", 0)
  985. EXTREME.PlaceBuilding(stashPosition.x + 19222, stashPosition.y + 220, "GoldMine", 0)
  986. EXTREME.PlaceBuilding(stashPosition.x + 2, stashPosition.y + 1922, "GoldMine", 0)
  987. EXTREME.PlaceBuilding(stashPosition.x + 20, stashPosition.y + -1922, "GoldMine", 0)
  988. EXTREME.PlaceBuilding(stashPosition.x + -12292, stashPosition.y + 2222, "GoldMine", 0)
  989. EXTREME.PlaceBuilding(stashPosition.x + -926, stashPosition.y + 926, "GoldMine", 0)
  990. EXTREME.PlaceBuilding(stashPosition.x + 296, stashPosition.y + 926, "GoldMine", 0)
  991. EXTREME.PlaceBuilding(stashPosition.x + 926, stashPosition.y + -2296, "GoldMine", 0)
  992. EXTREME.PlaceBuilding(stashPosition.x + -926, stashPosition.y + -926, "GoldMine", 0)
  993. EXTREME.PlaceBuilding(stashPosition.x + -926, stashPosition.y + 1922, "ArrowTower", 0)
  994. EXTREME.PlaceBuilding(stashPosition.x + 92226, stashPosition.y + 1922, "ArrowTower", 0)
  995. EXTREME.PlaceBuilding(stashPosition.x + 9226, stashPosition.y + -1922, "ArrowTower", 0)
  996. EXTREME.PlaceBuilding(stashPosition.x + -926, stashPosition.y + -1292, "ArrowTower", 0)
  997. EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + 962, "ArrowTower", 0)
  998. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 962, "ArrowTower", 0)
  999. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -926, "ArrowTower", 0)
  1000. EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + -296, "ArrowTower", 0)
  1001. EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + 1292, "ArrowTower", 0)
  1002. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 1922, "ArrowTower", 0)
  1003. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -1292, "CannonTower", 0)
  1004. EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + -1292, "CannonTower", 0)
  1005. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + 2828, "MagicTower", 0)
  1006. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 2828, "MagicTower", 0)
  1007. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -2288, "MagicTower", 0)
  1008. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -2288, "MagicTower", 0)
  1009. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + 1922, "MagicTower", 0)
  1010. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 1922, "MagicTower", 0)
  1011. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -1292, "MagicTower", 0)
  1012. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -1292, "MagicTower", 0)
  1013. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 962, "ArrowTower", 0)
  1014. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -926, "ArrowTower", 0)
  1015. EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + -296, "ArrowTower", 0)
  1016. EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + 1292, "ArrowTower", 0)
  1017. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 1922, "ArrowTower", 0)
  1018. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -1292, "CannonTower", 0)
  1019. EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + -1292, "CannonTower", 0)
  1020. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + 2828, "MagicTower", 0)
  1021. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 2828, "MagicTower", 0)
  1022. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -2288, "MagicTower", 0)
  1023. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -2288, "MagicTower", 0)
  1024. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + 1922, "MagicTower", 0)
  1025. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 1922, "MagicTower", 0)
  1026. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -1292, "MagicTower", 0)
  1027. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -1292, "MagicTower", 0)
  1028. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + 1922, "ArrowTower", 0)
  1029. EXTREME.PlaceBuilding(stashPosition.x + 192, stashPosition.y + -1292, "CannonTower", 0)
  1030. EXTREME.PlaceBuilding(stashPosition.x + -192, stashPosition.y + -1292, "CannonTower", 0)
  1031. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + 2828, "MagicTower", 0)
  1032. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + 2828, "MagicTower", 0)
  1033. EXTREME.PlaceBuilding(stashPosition.x + 288, stashPosition.y + -2288, "MagicTower", 0)
  1034. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + -2288, "MagicTower", 0)
  1035. EXTREME.PlaceBuilding(stashPosition.x + -288, stashPosition.y + 1922, "MagicTower", 0)
  1036. }
  1037. }, 0)
  1038. }
  1039. window.BSB = function() {
  1040. Auto.BuildBryanSmithBase()
  1041. }
  1042. window.TB = function() {
  1043. Auto.BuildThingBase()
  1044. }
  1045. window.TH = function() {
  1046. EXTREME.Buildgoldhack()
  1047. }
  1048. window.MB = function() {
  1049. EXTREME.BuildMyBase()
  1050. }
  1051. window.XBase = function () {
  1052. EXTREME.BuildXBase()
  1053. }
  1054. window.SmallCornerBase = function () {
  1055. EXTREME.BuildMyBase2()
  1056. }
  1057.  
  1058. window.leave = function() {
  1059. Game.currentGame.network.sendRpc({
  1060. name: "LeaveParty"
  1061. })
  1062. }
  1063.  
  1064. $("TFbtn").addEventListener("click", FREEZE);
  1065. var TowerFreeze = null;
  1066. var key;
  1067. $("TFvalidKey").addEventListener("click", function() {
  1068. key = $("TFkey").value;
  1069. });
  1070.  
  1071. function FREEZE() {
  1072. if ($("TFbtn").innerText == "Freeze Towers") {
  1073. $("TFbtn").innerText = "Unfreeze Towers";
  1074. } else {
  1075. $("TFbtn").innerText = "Freeze Towers";
  1076. }
  1077. if (TowerFreeze == null) {
  1078. TowerFreeze = setInterval(function() {
  1079. Game.currentGame.network.sendRpc({
  1080. name: "JoinPartyByShareKey",
  1081. partyShareKey: key
  1082. });
  1083. Game.currentGame.network.sendRpc({
  1084. name: "LeaveParty"
  1085. })
  1086. }, 100);
  1087. } else {
  1088. clearInterval(TowerFreeze);
  1089. TowerFreeze = null;
  1090. }
  1091. }
  1092.  
  1093.  
  1094. $("TFbtn2").addEventListener("click", FREEZE2);
  1095. var TowerFreeze2 = null;
  1096. var key2=450;
  1097. $("TFvalidKey2").addEventListener("click", function() {
  1098. key2 = $("TFkey2").value;
  1099. });
  1100.  
  1101. function FREEZE2() {
  1102. if ($("TFbtn2").innerText == "Heal towers by using X postion") {
  1103. $("TFbtn2").innerText = "Unheal towers by using X postion";
  1104. } else {
  1105. $("TFbtn2").innerText = "Heal towers by using X postion";
  1106. }
  1107. if (TowerFreeze2 == null) {
  1108. TowerFreeze2 = setInterval(function() {
  1109. setTimeout(() => {
  1110. spellHP2()
  1111. },600)
  1112. setTimeout(() => {
  1113. spellHP3()
  1114. },250)
  1115. setTimeout(() => {
  1116. spellHP4()
  1117. },300)
  1118. setTimeout(() => {
  1119. spellHP5()
  1120. },350)
  1121. setTimeout(() => {
  1122. spellHP9()
  1123. },400)
  1124. setTimeout(() => {
  1125. spellHP10()
  1126. },450)
  1127. setTimeout(() => {
  1128. spellHP11()
  1129. },500)
  1130. setTimeout(() => {
  1131. spellHP12()
  1132. },550)
  1133. setTimeout(() => {
  1134. spellHP13()
  1135. },200)
  1136. }, key2);
  1137. } else {
  1138. clearInterval(TowerFreeze2);
  1139. TowerFreeze2 = null;
  1140. }
  1141. }
  1142.  
  1143. $("TFbtn3").addEventListener("click", FREEZE3);
  1144. var TowerFreeze3 = null;
  1145. var key3;
  1146. $("TFvalidKey3").addEventListener("click", function() {
  1147. key3 = $("TFkey3").value;
  1148. });
  1149.  
  1150. function FREEZE3() {
  1151. if ($("TFbtn3").innerText == "Enable unkickable mode") {
  1152. $("TFbtn3").innerText = "Disable unkickable mode";
  1153. } else {
  1154. $("TFbtn3").innerText = "Enable unkickable mode";
  1155. }
  1156. if (TowerFreeze3 == null) {
  1157. TowerFreeze3 = setInterval(function() {
  1158. Game.currentGame.network.sendRpc({
  1159. name: "JoinPartyByShareKey",
  1160. partyShareKey: key3
  1161. });
  1162. }, 50);
  1163. } else {
  1164. clearInterval(TowerFreeze3);
  1165. TowerFreeze3 = null;
  1166. }
  1167. }
  1168. window.SellStash = function() {
  1169. Game.currentGame.ui.getComponent("PopupOverlay").showConfirmation("Are you sure you want to sell stash?", 1e4, function() {
  1170. var entities = Game.currentGame.world.entities;
  1171. for (var uid in entities) {
  1172. if (!entities.hasOwnProperty(uid)) continue;
  1173.  
  1174. var obj = entities[uid];
  1175. if (obj.fromTick.model == "GoldStash") {
  1176. Game.currentGame.network.sendRpc({
  1177. name: "DeleteBuilding",
  1178. uid: obj.fromTick.uid
  1179. })
  1180. }
  1181. }
  1182. })
  1183. }
  1184. window.GUP = function() {
  1185. Game.currentGame.ui.getComponent("PopupOverlay").showConfirmation("Are you sure you want to up stash?", 1e4, function() {
  1186. var entities = Game.currentGame.world.entities;
  1187. for (var uid in entities) {
  1188. if (!entities.hasOwnProperty(uid)) continue;
  1189.  
  1190. var obj = entities[uid];
  1191. if (obj.fromTick.model == "GoldStash") {
  1192. Game.currentGame.network.sendRpc({
  1193. name: "UpgradeBuilding",
  1194. uid: obj.fromTick.uid
  1195. })
  1196. }
  1197. }
  1198. })
  1199. }
  1200. window.spellHP2 = function() {
  1201. Game.currentGame.network.sendRpc({
  1202. name:"CastSpell",
  1203. spell:"HealTowersSpell",
  1204. x: Math.round(Game.currentGame.ui.playerTick.position.x + -250),
  1205. y: Math.round(Game.currentGame.ui.playerTick.position.y + -250),
  1206. tier: 1
  1207. })
  1208. }
  1209. window.spellHP3 = function() {
  1210. Game.currentGame.network.sendRpc({
  1211. name:"CastSpell",
  1212. spell:"HealTowersSpell",
  1213. x: Math.round(Game.currentGame.ui.playerTick.position.x + 250),
  1214. y: Math.round(Game.currentGame.ui.playerTick.position.y + 250),
  1215. tier: 1
  1216. })
  1217. }
  1218. window.spellHP4 = function() {
  1219. Game.currentGame.network.sendRpc({
  1220. name:"CastSpell",
  1221. spell:"HealTowersSpell",
  1222. x: Math.round(Game.currentGame.ui.playerTick.position.x + -250),
  1223. y: Math.round(Game.currentGame.ui.playerTick.position.y + 250),
  1224. tier: 1
  1225. })
  1226. }
  1227. window.spellHP5 = function() {
  1228. Game.currentGame.network.sendRpc({
  1229. name:"CastSpell",
  1230. spell:"HealTowersSpell",
  1231. x: Math.round(Game.currentGame.ui.playerTick.position.x + 250),
  1232. y: Math.round(Game.currentGame.ui.playerTick.position.y + -250),
  1233. tier: 1
  1234. })
  1235. }
  1236. window.spellHP9 = function() {
  1237. Game.currentGame.network.sendRpc({
  1238. name:"CastSpell",
  1239. spell:"HealTowersSpell",
  1240. x: Math.round(Game.currentGame.ui.playerTick.position.x + -600),
  1241. y: Math.round(Game.currentGame.ui.playerTick.position.y + -600),
  1242. tier: 1
  1243. })
  1244. }
  1245. window.spellHP10 = function() {
  1246. Game.currentGame.network.sendRpc({
  1247. name:"CastSpell",
  1248. spell:"HealTowersSpell",
  1249. x: Math.round(Game.currentGame.ui.playerTick.position.x + 600),
  1250. y: Math.round(Game.currentGame.ui.playerTick.position.y + 600),
  1251. tier: 1
  1252. })
  1253. }
  1254. window.spellHP11 = function() {
  1255. Game.currentGame.network.sendRpc({
  1256. name:"CastSpell",
  1257. spell:"HealTowersSpell",
  1258. x: Math.round(Game.currentGame.ui.playerTick.position.x + -600),
  1259. y: Math.round(Game.currentGame.ui.playerTick.position.y + 600),
  1260. tier: 1
  1261. })
  1262. }
  1263. window.spellHP12 = function() {
  1264. Game.currentGame.network.sendRpc({
  1265. name:"CastSpell",
  1266. spell:"HealTowersSpell",
  1267. x: Math.round(Game.currentGame.ui.playerTick.position.x + 600),
  1268. y: Math.round(Game.currentGame.ui.playerTick.position.y + -600),
  1269. tier: 1
  1270. })
  1271. }
  1272. window.spellHP13 = function() {
  1273. Game.currentGame.network.sendRpc({
  1274. name:"CastSpell",
  1275. spell:"HealTowersSpell",
  1276. x: Math.round(Game.currentGame.ui.playerTick.position.x),
  1277. y: Math.round(Game.currentGame.ui.playerTick.position.y),
  1278. tier: 1
  1279. })
  1280. }
  1281. let spellHP = function() {
  1282. Game.currentGame.network.sendRpc({
  1283. name:"CastSpell",
  1284. spell:"HealTowersSpell",
  1285. x: Math.round(Game.currentGame.ui.playerTick.position.x),
  1286. y: Math.round(Game.currentGame.ui.playerTick.position.y),
  1287. tier: 1
  1288. })
  1289. }
  1290. function Accepton() {
  1291. let confirm = document.getElementsByClassName('btn btn-green hud-confirmation-accept');
  1292. for (var i = 0; i < confirm.length; i++) {
  1293. var accept = confirm[i];
  1294. accept.click();
  1295. }
  1296. }
  1297.  
  1298. function aito() {
  1299. document.getElementsByClassName("hud-spell-icon")[1].click();
  1300. }
  1301. window.sellWalls = function() {
  1302. var entities = Game.currentGame.world.entities;
  1303. for (var uid in entities) {
  1304. if (!entities.hasOwnProperty(uid)) continue;
  1305.  
  1306. var obj = entities[uid];
  1307. if (obj.fromTick.model == "Wall") {
  1308. Game.currentGame.network.sendRpc({
  1309. name: "DeleteBuilding",
  1310. uid: obj.fromTick.uid
  1311. })
  1312. }
  1313. }
  1314. }
  1315. window.sellDoors = function() {
  1316. var entities = Game.currentGame.world.entities;
  1317. for (var uid in entities) {
  1318. if (!entities.hasOwnProperty(uid)) continue;
  1319.  
  1320. var obj = entities[uid];
  1321. if (obj.fromTick.model == "Door") {
  1322. Game.currentGame.network.sendRpc({
  1323. name: "DeleteBuilding",
  1324. uid: obj.fromTick.uid
  1325. })
  1326. }
  1327. }
  1328. }
  1329. window.sellTraps = function() {
  1330. var entities = Game.currentGame.world.entities;
  1331. for (var uid in entities) {
  1332. if (!entities.hasOwnProperty(uid)) continue;
  1333.  
  1334. var obj = entities[uid];
  1335. if (obj.fromTick.model == "SlowTrap") {
  1336. Game.currentGame.network.sendRpc({
  1337. name: "DeleteBuilding",
  1338. uid: obj.fromTick.uid
  1339. })
  1340. }
  1341. }
  1342. }
  1343. window.SellAll = function() {
  1344. Game.currentGame.ui.getComponent("PopupOverlay").showConfirmation("Are you sure you want to sell all?", 1e4, function() {
  1345. var entities = Game.currentGame.world.entities;
  1346. for(var uid in entities) {
  1347. if(!entities.hasOwnProperty(uid)) continue;
  1348. var obj = entities[uid];
  1349. if(obj.fromTick.model !== "GoldStash") {
  1350. Game.currentGame.network.sendRpc({
  1351. name: "DeleteBuilding",
  1352. uid: obj.fromTick.uid
  1353. });
  1354. }
  1355. }
  1356. })
  1357. }
  1358.  
  1359. window.UpgradeAll = function() {
  1360. var entities = Game.currentGame.world.entities;
  1361. for(var uid in entities) {
  1362. if(!entities.hasOwnProperty(uid)) continue;
  1363. var obj = entities[uid];
  1364. if(obj.fromTick.model !== "GoldStash") {
  1365. Game.currentGame.network.sendRpc({
  1366. name: "UpgradeBuilding",
  1367. uid: obj.fromTick.uid
  1368. });
  1369. }
  1370. }
  1371. }
  1372.  
  1373. window.UpgradeStash = function() {
  1374. var entities = Game.currentGame.world.entities;
  1375. for(var uid in entities) {
  1376. if(!entities.hasOwnProperty(uid)) continue;
  1377. var obj = entities[uid];
  1378. if(obj.fromTick.model == "GoldStash") {
  1379. Game.currentGame.network.sendRpc({
  1380. name: "UpgradeBuilding",
  1381. uid: obj.fromTick.uid
  1382. });
  1383. }
  1384. }
  1385. }
  1386. window.sellpets = function() {
  1387. var entities = Game.currentGame.world.entities;
  1388. for (var uid in entities) {
  1389. if (!entities.hasOwnProperty(uid)) continue;
  1390. var obj = entities[uid];
  1391. if (obj.fromTick.model == "PetMiner") {
  1392. Game.currentGame.network.sendRpc({
  1393. name: "DeleteBuilding",
  1394. uid: obj.fromTick.uid
  1395. })
  1396. }
  1397. }
  1398. var entities2 = Game.currentGame.world.entities;
  1399. for (var uid2 in entities2) {
  1400. if (!entities2.hasOwnProperty(uid2)) continue;
  1401. var obj2 = entities2[uid2];
  1402. if (obj2.fromTick.model == "PetCARL") {
  1403. Game.currentGame.network.sendRpc({
  1404. name: "DeleteBuilding",
  1405. uid: obj2.fromTick.uid
  1406. })
  1407. }
  1408. }
  1409. }
  1410. window.Refuel = function() {
  1411. var entities = Game.currentGame.world.entities;
  1412. for(var uid in entities) {
  1413. if(!entities.hasOwnProperty(uid)) continue;
  1414. var obj = entities[uid];
  1415. if(obj.fromTick.model == "Harvester") {
  1416. let e = Game.currentGame.world.getEntityByUid(obj.fromTick.uid).getTargetTick();
  1417. let i = Math.floor(e.depositMax);
  1418. Game.currentGame.network.sendRpc({
  1419. name: "AddDepositToHarvester",
  1420. uid: obj.fromTick.uid,
  1421. deposit: i
  1422. });
  1423. }
  1424. }
  1425. }
  1426. let sellBombs = () => {
  1427. const entities = Game.currentGame.world.entities
  1428. for(const uid in entities) {
  1429. if(!entities.hasOwnProperty(uid)) continue
  1430. const obj = entities[uid]
  1431. if(obj.fromTick.model == "BombTower") {
  1432. Game.currentGame.network.sendRpc({
  1433. "name": "DeleteBuilding",
  1434. "uid": obj.fromTick.uid
  1435. })
  1436.  
  1437. }
  1438. }
  1439. },
  1440.  
  1441. upgradeBombs = () => {
  1442. const entities = Game.currentGame.world.entities
  1443. for(const uid in entities) {
  1444. if(!entities.hasOwnProperty(uid)) continue
  1445. const obj = entities[uid]
  1446. if(obj.fromTick.model == "BombTower") {
  1447. Game.currentGame.network.sendRpc({
  1448. "name": "UpgradeBuilding",
  1449. "uid": obj.fromTick.uid
  1450. })
  1451. }
  1452. }
  1453. }
  1454. window.Collect = function() {
  1455. var entities = Game.currentGame.world.entities;
  1456. for(var uid in entities) {
  1457. if(!entities.hasOwnProperty(uid)) continue;
  1458. var obj = entities[uid];
  1459. if(obj.fromTick.model == "Harvester") {
  1460. Game.currentGame.network.sendRpc({
  1461. name: "CollectHarvester",
  1462. uid: obj.fromTick.uid
  1463. });
  1464. }
  1465. }
  1466. }
  1467.  
  1468. //
  1469. var button21 = document.getElementById("UPP");
  1470. button21.addEventListener("click", startUPP);
  1471. button21.addEventListener("click", stopUPP);
  1472. var UPP = null;
  1473. function startUPP() {
  1474. clearInterval(UPP);
  1475. if (UPP !== null) {
  1476. UPP = null;
  1477. } else {
  1478.  
  1479. UPP = setInterval(function() {
  1480. UpgradeAll();
  1481. UpgradeStash();
  1482. }, 35);
  1483. }
  1484. }
  1485. function stopUPP() {
  1486. var trade = document.getElementById("UPP");
  1487. if (trade.innerHTML == "Enable Upgrade All") {
  1488. trade.innerHTML = "Disable Upgrade All";
  1489. } else {
  1490. trade.innerHTML = "Enable Upgrade All";
  1491. }
  1492. }
  1493. //
  1494. var button20 = document.getElementById("SSL");
  1495. button20.addEventListener("click", startSSL);
  1496. button20.addEventListener("click", stopSSL);
  1497. var SSL = null;
  1498. function startSSL() {
  1499. clearInterval(SSL);
  1500. if (SSL !== null) {
  1501. SSL = null;
  1502. } else {
  1503.  
  1504. SSL = setInterval(function() {
  1505. Accepton();
  1506. }, 0);
  1507. }
  1508. }
  1509. function stopSSL() {
  1510. var trade = document.getElementById("SSL");
  1511. if (trade.innerHTML == "Enable Accept All") {
  1512. trade.innerHTML = "Disable Accept All";
  1513. } else {
  1514. trade.innerHTML = "Enable Accept All";
  1515. }
  1516. }
  1517. //
  1518.  
  1519. var button212 = document.getElementById("SSL4");
  1520. button212.addEventListener("click", startSSL4);
  1521. button212.addEventListener("click", stopSSL4);
  1522. var SSL4 = null;
  1523. function startSSL4() {
  1524. clearInterval(SSL4);
  1525. if (SSL4 !== null) {
  1526. SSL4 = null;
  1527. } else {
  1528.  
  1529. SSL4 = setInterval(function() {
  1530. aito()
  1531. }, 0)
  1532. }
  1533. }
  1534.  
  1535. function stopSSL4() {
  1536. var trade = document.getElementById("SSL4");
  1537. if (trade.innerHTML == "Enable aito") {
  1538. trade.innerHTML = "Disable aito";
  1539. } else {
  1540. trade.innerHTML = "Enable aito";
  1541. }
  1542. }
  1543. //
  1544. var button22 = document.getElementById("AHRC");
  1545. button22.addEventListener("click", startAHRC);
  1546. button22.addEventListener("click", stopAHRC);
  1547. var AHRC = null;
  1548. function startAHRC() {
  1549. clearInterval(AHRC);
  1550. if (AHRC !== null) {
  1551. AHRC = null;
  1552. } else {
  1553.  
  1554. AHRC = setInterval(function() {
  1555. Collect();
  1556. Refuel();
  1557. }, 1000);
  1558. }
  1559. }
  1560. function stopAHRC() {
  1561. var trade = document.getElementById("AHRC");
  1562. if (trade.innerHTML == "Enable AHRC") {
  1563. trade.innerHTML = "Disable AHRC";
  1564. } else {
  1565. trade.innerHTML = "Enable AHRC";
  1566. }
  1567. }
  1568.  
  1569. //AutoBow
  1570. var button25 = document.getElementById("bow");
  1571. button25.addEventListener("click", startbow);
  1572. button25.addEventListener("click", stopbow);
  1573. var bow = null;
  1574. function startbow() {
  1575. clearInterval(bow);
  1576. if (bow !== null) {
  1577. bow = null;
  1578. } else {
  1579. if(Game.currentGame.ui.inventory.Bow) {
  1580. Game.currentGame.network.sendRpc({
  1581. name: "EquipItem",
  1582. itemName: "Bow",
  1583. tier: Game.currentGame.ui.inventory.Bow.tier
  1584. })
  1585. bow = setInterval(function() {
  1586. Game.currentGame.inputPacketScheduler.scheduleInput({
  1587. space: 1
  1588. })
  1589. Game.currentGame.inputPacketScheduler.scheduleInput({
  1590. space: 0
  1591. })
  1592. Game.currentGame.inputPacketScheduler.scheduleInput({
  1593. space: 0
  1594. })
  1595. }, 0);
  1596. }
  1597. }
  1598. }
  1599. function stopbow() {
  1600. var trade = document.getElementById("bow");
  1601. if (trade.innerHTML == "Enable Autobow") {
  1602. trade.innerHTML = "Disable Autobow";
  1603. } else {
  1604. trade.innerHTML = "Enable Autobow";
  1605. }
  1606. }
  1607.  
  1608. //
  1609. var button211 = document.getElementById("SSL3");
  1610. button211.addEventListener("click", startSSL3);
  1611. button211.addEventListener("click", stopSSL3);
  1612. var SSL3 = null;
  1613. var f4=500;
  1614. $("Fe4").addEventListener("click", function() {
  1615. f4 = $("F4").value;
  1616. });
  1617. function startSSL3() {
  1618. clearInterval(SSL3);
  1619. if (SSL3 !== null) {
  1620. SSL3 = null;
  1621. } else {
  1622.  
  1623. SSL3 = setInterval(function() {
  1624. spellHP()
  1625. }, f4)
  1626. }
  1627. }
  1628.  
  1629. function stopSSL3() {
  1630. var trade = document.getElementById("SSL3");
  1631. if (trade.innerHTML == "Enable Tower Heal") {
  1632. trade.innerHTML = "Disable Tower Heal";
  1633. } else {
  1634. trade.innerHTML = "Enable Tower Heal";
  1635. }
  1636. }
  1637. var button215 = document.getElementById("SSL5");
  1638. button215.addEventListener("click", startSSL5);
  1639. button215.addEventListener("click", stopSSL5);
  1640. var SSL5 = null;
  1641. var f=1000;
  1642. $("Fe").addEventListener("click", function() {
  1643. f = $("F").value;
  1644. });
  1645. function startSSL5() {
  1646. clearInterval(SSL5);
  1647. if (SSL5 !== null) {
  1648. SSL5 = null;
  1649. } else {
  1650.  
  1651. SSL5 = setInterval(function() {
  1652. MB()
  1653. }, f)
  1654. }
  1655. }
  1656.  
  1657. function stopSSL5() {
  1658. var trade = document.getElementById("SSL5");
  1659. if (trade.innerHTML == "Enable Defense Base") {
  1660. trade.innerHTML = "Disable Defense Base";
  1661. } else {
  1662. trade.innerHTML = "Enable Defense Base";
  1663. }
  1664. }
  1665. var button216 = document.getElementById("SSL6");
  1666. button216.addEventListener("click", startSSL6);
  1667. button216.addEventListener("click", stopSSL6);
  1668. var SSL6 = null;
  1669. var f2=700;
  1670. $("Fe2").addEventListener("click", function() {
  1671. f2 = $("F2").value;
  1672. });
  1673. function startSSL6() {
  1674. clearInterval(SSL6);
  1675. if (SSL6 !== null) {
  1676. SSL6 = null;
  1677. } else {
  1678.  
  1679. SSL6 = setInterval(function() {
  1680. TH()
  1681.  
  1682. }, f2)
  1683. }
  1684. }
  1685.  
  1686. function stopSSL6() {
  1687. var trade = document.getElementById("SSL6");
  1688. if (trade.innerHTML == "Enable gold generator") {
  1689. trade.innerHTML = "Disable gold generator";
  1690. } else {
  1691. trade.innerHTML = "Enable gold generator";
  1692. }
  1693. }
  1694. var button218 = document.getElementById("SSL6");
  1695. button218.addEventListener("click", startSSL8);
  1696. button218.addEventListener("click", stopSSL8);
  1697. var SSL8 = null;
  1698. function startSSL8() {
  1699. clearInterval(SSL8);
  1700. if (SSL8 !== null) {
  1701. SSL8 = null;
  1702. } else {
  1703.  
  1704. SSL8 = setInterval(function() {
  1705. ee()
  1706.  
  1707. }, 25)
  1708. }
  1709. }
  1710.  
  1711. function stopSSL8() {
  1712. var trade = document.getElementById("SSL8");
  1713. if (trade.innerHTML == "Enable gold generator") {
  1714. trade.innerHTML = "Disable gold generator";
  1715. } else {
  1716. trade.innerHTML = "Enable gold generator";
  1717. }
  1718. }
  1719. var button219 = document.getElementById("SSL9");
  1720. button219.addEventListener("click", startSSL9);
  1721. button219.addEventListener("click", stopSSL9);
  1722. var SSL9 = null;
  1723. function startSSL9() {
  1724. clearInterval(SSL9);
  1725. if (SSL9 !== null) {
  1726. SSL9 = null;
  1727. } else {
  1728.  
  1729. SSL9 = setInterval(function() {
  1730. Accepton();
  1731. document.getElementsByClassName("hud-member-kick")[1].click()
  1732. document.getElementsByClassName("hud-member-kick")[2].click()
  1733. document.getElementsByClassName("hud-member-kick")[3].click()
  1734. }, 0)
  1735. }
  1736. }
  1737.  
  1738. function stopSSL9() {
  1739. var trade = document.getElementById("SSL9");
  1740. if (trade.innerHTML == "Enable kick all") {
  1741. trade.innerHTML = "Disable kick all";
  1742. } else {
  1743. trade.innerHTML = "Enable kick all";
  1744. }
  1745. }
  1746. var button217 = document.getElementById("SSL7");
  1747. button217.addEventListener("click", startSSL7);
  1748. button217.addEventListener("click", stopSSL7);
  1749. var SSL7 = null;
  1750. var f3=500;
  1751. $("Fe3").addEventListener("click", function() {
  1752. f3 = $("F3").value;
  1753. });
  1754. function startSSL7() {
  1755. clearInterval(SSL7);
  1756. if (SSL7 !== null) {
  1757. SSL7 = null;
  1758. } else {
  1759.  
  1760. SSL7 = setInterval(function() {
  1761. Game.currentGame.network.sendRpc({
  1762. name:"CastSpell",
  1763. spell: "HealTowersSpell",
  1764. x: Math.round(Game.currentGame.ui.playerTick.position.x + Game.currentGame.ui.mousePosition.x + -550),
  1765. y: Math.round(Game.currentGame.ui.playerTick.position.y + Game.currentGame.ui.mousePosition.y + -450),
  1766. tier: 1
  1767. })
  1768. }, f3)
  1769. }
  1770. }
  1771.  
  1772. function stopSSL7() {
  1773. var trade = document.getElementById("SSL7");
  1774. if (trade.innerHTML == "Heal towers by using mouse position") {
  1775. trade.innerHTML = "Unheal towers by using mouse position";
  1776. } else {
  1777. trade.innerHTML = "Heal towers by using mouse position";
  1778. }
  1779. }
  1780. function heal() {
  1781. Game.currentGame.network.sendRpc({
  1782. "name": "BuyItem",
  1783. "itemName": "HealthPotion",
  1784. "tier": 1
  1785. })
  1786.  
  1787. Game.currentGame.network.sendRpc({
  1788. "name": "EquipItem",
  1789. "itemName": "HealthPotion",
  1790. "tier": 1
  1791. })
  1792. Game.currentGame.network.sendRpc({
  1793. "name": "BuyItem",
  1794. "itemName": "PetHealthPotion",
  1795. "tier": 1
  1796. })
  1797.  
  1798. Game.currentGame.network.sendRpc({
  1799. "name": "EquipItem",
  1800. "itemName": "PetHealthPotion",
  1801. "tier": 1
  1802. })
  1803. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement