DHM - Idle Again

Automate most of DHM features

当前为 2023-10-29 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name DHM - Idle Again
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.3.0.4
  5. // @description Automate most of DHM features
  6. // @author Felipe Dounford
  7. // @require https://code.jquery.com/jquery-3.6.0.min.js
  8. // @require https://code.jquery.com/ui/1.12.1/jquery-ui.js
  9. // @require https://greasyfork.org/scripts/478182-pubnub-js/code/PubNub%20JS.js?version=1269788
  10. // @match https://dhm.idle-pixel.com/
  11. // @icon https://www.google.com/s2/favicons?sz=64&domain=greasyfork.org
  12. // @grant none
  13. // @license MIT
  14. // ==/UserScript==
  15.  
  16. (function() {
  17. 'use strict';
  18. $("head").append('<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script><script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script><script src="https://cdn.pubnub.com/sdk/javascript/pubnub.7.4.1.js"></script><link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" type="text/css">');
  19. //Toggles
  20. window.toggleGlobalLoad = localStorage.getItem('toggleGlobalLoad') !== null ? JSON.parse(localStorage.getItem('toggleGlobalLoad')) : true
  21. window.toggleGlobal = window.toggleGlobalLoad ? true : false
  22. window.toggleGeodeOpen = localStorage.getItem('toggleGeodeOpen') !== null ? JSON.parse(localStorage.getItem('toggleGeodeOpen')) : false
  23. window.toggleMineralIdentify = localStorage.getItem('toggleMineralIdentify') !== null ? JSON.parse(localStorage.getItem('toggleMineralIdentify')) : false
  24. window.toggleNecklaceCharge = localStorage.getItem('toggleNecklaceCharge') !== null ? JSON.parse(localStorage.getItem('toggleNecklaceCharge')) : false
  25. window.toggleTrain = localStorage.getItem('toggleTrain') !== null ? JSON.parse(localStorage.getItem('toggleTrain')) : false
  26. window.toggleRocket = localStorage.getItem('toggleRocket') !== null ? JSON.parse(localStorage.getItem('toggleRocket')) : false
  27. window.toggleSmelting = localStorage.getItem('toggleSmelting') !== null ? JSON.parse(localStorage.getItem('toggleSmelting')) : true
  28. window.toggleRefinary = localStorage.getItem('toggleRefinary') !== null ? JSON.parse(localStorage.getItem('toggleRefinary')) : false
  29. window.toggleCharcoal = localStorage.getItem('toggleCharcoal') !== null ? JSON.parse(localStorage.getItem('toggleCharcoal')) : false
  30. window.toggleWoodcutting = localStorage.getItem('toggleWoodcutting') !== null ? JSON.parse(localStorage.getItem('toggleWoodcutting')) : true
  31. window.toggleFarming = localStorage.getItem('toggleFarming') !== null ? JSON.parse(localStorage.getItem('toggleFarming')) : false
  32. window.toggleBones = localStorage.getItem('toggleBones') !== null ? JSON.parse(localStorage.getItem('toggleBones')) : false
  33. window.toggleDrink = localStorage.getItem('toggleDrink') !== null ? JSON.parse(localStorage.getItem('toggleDrink')) : false
  34. window.toggleTreeUpgrade = localStorage.getItem('toggleTreeUpgrade') !== null ? JSON.parse(localStorage.getItem('toggleTreeUpgrade')) : false
  35. window.toggleBrew = localStorage.getItem('toggleBrew') !== null ? JSON.parse(localStorage.getItem('toggleBrew')) : false
  36. window.toggleExplore = localStorage.getItem('toggleExplore') !== null ? JSON.parse(localStorage.getItem('toggleExplore')) : false
  37. window.toggleFight = localStorage.getItem('toggleFight') !== null ? JSON.parse(localStorage.getItem('toggleFight')) : false
  38. window.toggleResetFight = localStorage.getItem('toggleResetFight') !== null ? JSON.parse(localStorage.getItem('toggleResetFight')) : false
  39. window.toggleMonsterFind = localStorage.getItem('toggleMonsterFind') !== null ? JSON.parse(localStorage.getItem('toggleMonsterFind')) : false
  40. window.toggleSpell = localStorage.getItem('toggleSpell') !== null ? JSON.parse(localStorage.getItem('toggleSpell')) : false
  41. window.toggleCombatPotion = localStorage.getItem('toggleCombatPotion') !== null ? JSON.parse(localStorage.getItem('toggleCombatPotion')) : true
  42. window.toggleHeal = localStorage.getItem('toggleHeal') !== null ? JSON.parse(localStorage.getItem('toggleHeal')) : true
  43. window.toggleShiny = localStorage.getItem('toggleShiny') !== null ? JSON.parse(localStorage.getItem('toggleShiny')) : false
  44. window.toggleCousin = localStorage.getItem('toggleCousin') !== null ? JSON.parse(localStorage.getItem('toggleCousin')) : false
  45. window.toggleBags = localStorage.getItem('toggleBags') !== null ? JSON.parse(localStorage.getItem('toggleBags')) : false
  46. window.toggleStatue = localStorage.getItem('toggleStatue') !== null ? JSON.parse(localStorage.getItem('toggleStatue')) : false
  47. window.toggleArtifact = localStorage.getItem('toggleArtifact') !== null ? JSON.parse(localStorage.getItem('toggleArtifact')) : false
  48. window.toggleBoat = localStorage.getItem('toggleBoat') !== null ? JSON.parse(localStorage.getItem('toggleBoat')) : true
  49. window.toggleEvent = true
  50. //Mining Vars
  51. window.scriptTrainAmount = localStorage.getItem('scriptTrainAmount') !== null ? JSON.parse(localStorage.getItem('scriptTrainAmount')) : 1
  52. window.scriptRocket = localStorage.getItem('scriptRocket') !== null ? JSON.parse(localStorage.getItem('scriptRocket')) : 'Moon'
  53. //Crafting Vars
  54. window.scriptSmeltingOre = localStorage.getItem('scriptSmeltingOre') !== null ? JSON.parse(localStorage.getItem('scriptSmeltingOre')) : 'copper'
  55. window.scriptRefinaryBar = localStorage.getItem('scriptRefinaryBar') !== null ? JSON.parse(localStorage.getItem('scriptRefinaryBar')) : 'gold'
  56. window.scriptFoundryWood = localStorage.getItem('scriptFoundryWood') !== null ? JSON.parse(localStorage.getItem('scriptFoundryWood')) : 'cheapest'
  57. //Woodicutting Vars
  58. window.scriptTreeIgnore = {tree:localStorage.getItem('scriptTreeIgnore.tree') !== null ? JSON.parse(localStorage.getItem('scriptTreeIgnore.tree')) : false,oakTree:localStorage.getItem('scriptTreeIgnore.oakTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeIgnore.oakTree')) : false,willowTree:localStorage.getItem('scriptTreeIgnore.willowTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeIgnore.willowTree')) : false,mapleTree:localStorage.getItem('scriptTreeIgnore.mapleTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeIgnore.mapleTree')) : false,redwoodTree:localStorage.getItem('scriptTreeIgnore.redwoodTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeIgnore.redwoodTree')) : false,pineTree:localStorage.getItem('scriptTreeIgnore.pineTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeIgnore.pineTree')) : false,hauntedTree:localStorage.getItem('scriptTreeIgnore.hauntedTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeIgnore.hauntedTree')) : false,jungleTree:localStorage.getItem('scriptTreeIgnore.jungleTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeIgnore.jungleTree')) : true,lavaTree:localStorage.getItem('scriptTreeIgnore.lavaTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeIgnore.lavaTree')) : false,goldTree:localStorage.getItem('scriptTreeIgnore.goldTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeIgnore.goldTree')) : true,magicTree:localStorage.getItem('scriptTreeIgnore.magicTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeIgnore.magicTree')) : false,appleTree:localStorage.getItem('scriptTreeIgnore.appleTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeIgnore.appleTree')) : false,cactusTree:localStorage.getItem('scriptTreeIgnore.cactusTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeIgnore.cactusTree')) : false,bananaTree:localStorage.getItem('scriptTreeIgnore.bananaTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeIgnore.bananaTree')) : false,palmTree:localStorage.getItem('scriptTreeIgnore.palmTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeIgnore.palmTree')) : false,pineappleTree:localStorage.getItem('scriptTreeIgnore.pineappleTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeIgnore.pineappleTree')) : true,starfruitTree:localStorage.getItem('scriptTreeIgnore.starfruitTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeIgnore.starfruitTree')) : false,none:true}
  59. //Farming Vars
  60. window.scriptBonesIgnore = {bones:localStorage.getItem('scriptBonesIgnore.bones') !== null ? JSON.parse(localStorage.getItem('scriptBonesIgnore.bones')) : true,ashes:localStorage.getItem('scriptBonesIgnore.ashes') !== null ? JSON.parse(localStorage.getItem('scriptBonesIgnore.ashes')) : false,iceBones:localStorage.getItem('scriptBonesIgnore.iceBones') !== null ? JSON.parse(localStorage.getItem('scriptBonesIgnore.iceBones')) : true,zombieBones:localStorage.getItem('scriptBonesIgnore.zombieBones') !== null ? JSON.parse(localStorage.getItem('scriptBonesIgnore.zombieBones')) : true,bloodBones:localStorage.getItem('scriptBonesIgnore.bloodBones') !== null ? JSON.parse(localStorage.getItem('scriptBonesIgnore.bloodBones')) : true,fishBones:localStorage.getItem('scriptBonesIgnore.fishBones') !== null ? JSON.parse(localStorage.getItem('scriptBonesIgnore.fishBones')) : true}
  61. //Brewing Vars
  62. window.scriptTreeUpgrade = {tree:localStorage.getItem('scriptTreeUpgrade.tree') !== null ? JSON.parse(localStorage.getItem('scriptTreeUpgrade.tree')) : false,oakTree:localStorage.getItem('scriptTreeUpgrade.oakTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeUpgrade.oakTree')) : false,willowTree:localStorage.getItem('scriptTreeUpgrade.willowTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeUpgrade.willowTree')) : false,mapleTree:localStorage.getItem('scriptTreeUpgrade.mapleTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeUpgrade.mapleTree')) : false,redwoodTree:localStorage.getItem('scriptTreeUpgrade.redwoodTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeUpgrade.redwoodTree')) : false,pineTree:localStorage.getItem('scriptTreeUpgrade.pineTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeUpgrade.pineTree')) : false,hauntedTree:localStorage.getItem('scriptTreeUpgrade.hauntedTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeUpgrade.hauntedTree')) : false,jungleTree:localStorage.getItem('scriptTreeUpgrade.jungleTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeUpgrade.jungleTree')) : true,lavaTree:localStorage.getItem('scriptTreeUpgrade.lavaTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeUpgrade.lavaTree')) : false,goldTree:localStorage.getItem('scriptTreeUpgrade.goldTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeUpgrade.goldTree')) : true,magicTree:localStorage.getItem('scriptTreeUpgrade.magicTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeUpgrade.magicTree')) : false,appleTree:localStorage.getItem('scriptTreeUpgrade.appleTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeUpgrade.appleTree')) : false,cactusTree:localStorage.getItem('scriptTreeUpgrade.cactusTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeUpgrade.cactusTree')) : false,bananaTree:localStorage.getItem('scriptTreeUpgrade.bananaTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeUpgrade.bananaTree')) : false,palmTree:localStorage.getItem('scriptTreeUpgrade.palmTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeUpgrade.palmTree')) : false,pineappleTree:localStorage.getItem('scriptTreeUpgrade.pineappleTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeUpgrade.pineappleTree')) : true,starfruitTree:localStorage.getItem('scriptTreeUpgrade.starfruitTree') !== null ? JSON.parse(localStorage.getItem('scriptTreeUpgrade.starfruitTree')) : false,none:false}
  63. //Exploring Vars
  64. window.scriptAreaEnergy = {fields:50,forests:250,caves:1000,volcano:5000,northernFields:8000,hauntedMansion:20000,desert:50000,ocean:120000,jungle:200000,dungeonEntrance:500000,dungeon:1000000,castle:3000000,cemetery:7000000,factory:10000000,hauntedWoods:14000000,deepOcean:20000000}
  65. window.scriptAreaTimer = {fields:900,forests:1800,caves:3600,volcano:5400,northernFields:3600*2,hauntedMansion:3600*3,desert:3600*4+1800,ocean:3600*6,jungle:3600*8,dungeonEntrance:3600*10,dungeon:3600*12,castle:3600*15,cemetery:3600*16,factory:3600*18,hauntedWoods:3600*20,deepOcean:3600*23}
  66. window.scriptWaitTeleport = false
  67. const artifactArray = ['brokenSwordArtifact', 'cannonBallsArtifact', 'oldCannonArtifact', 'strangeLeafArtifact', 'ancientLogArtifact', 'rainbowFlowerArtifact', 'clayVaseArtifact', 'batWingArtifact', 'skullArtifact', 'sulferArtifact', 'volcanicRockArtifact', 'volcanicSmokeArtifact', 'iceArtifact', 'snowballsArtifact', 'frozenHeadArtifact', 'spiderLegsArtifact', 'broomArtifact', 'hauntedSkullArtifact', 'scorpionsTailArtifact', 'mummyArtifact', 'egyptKingArtifact', 'fossilArtifact', 'scubaArtifact', 'sharksJawArtifact', 'strangerLeafArtifact', 'mossyRockArtifact', 'monkeySkullArtifact', 'strangeJungleLeafArtifact', 'inukshukArtifact', 'hauntedMonkeySkullArtifact', 'dungeonBrickArtifact', 'candleStickArtifact', 'skeletonKingsHeadArtifact', 'lampArtifact', 'brokenShieldArtifact', 'dragonSkullArtifact', 'tombStoneArtifact', 'zombieHandArtifact', 'ancientCrossArtifact', 'cogWheelArtifact', 'robotHelmetArtifact', 'brokenTimeMachineArtifact', 'hauntedLeavesArtifact', 'eyeballArtifact', 'ghostScanPotionArtifact', 'deepFossilArtifact', 'starfishArtifact', 'ancientScubaArtifact']
  68. const bagsArray = ['fieldsLoot', 'forestsLoot', 'cavesLoot', 'volcanoLoot', 'northernFieldsLoot', 'hauntedMansionLoot', 'desertLoot', 'oceanLoot', 'jungleLoot', 'dungeonEntranceLoot', 'dungeonLoot', 'castleLoot', 'cemeteryLoot', 'factoryLoot', 'hauntedWoodsLoot', 'deepOceanLoot', 'shinyFieldsLoot', 'shinyForestsLoot', 'shinyCavesLoot', 'shinyVolcanoLoot', 'shinyNorthernFieldsLoot', 'shinyHauntedMansionLoot', 'shinyDesertLoot', 'shinyOceanLoot', 'shinyJungleLoot', 'shinyDungeonEntranceLoot', 'shinyDungeonLoot', 'shinyCastleLoot', 'shinyCemeteryLoot', 'shinyFactoryLoot', 'shinyHauntedWoodsLoot', 'shinyDeepOceanLoot']
  69. window.scriptArea = localStorage.getItem('scriptArea') !== null ? JSON.parse(localStorage.getItem('scriptArea')) : 'fields'
  70. window.scriptMonster = localStorage.getItem('scriptMonster') !== null ? JSON.parse(localStorage.getItem('scriptMonster')) : 'chicken'
  71. window.scriptResetArea = {fields:localStorage.getItem('scriptResetArea.fields') !== null ? JSON.parse(localStorage.getItem('scriptResetArea.fields')) : false,forests:localStorage.getItem('scriptResetArea.forests') !== null ? JSON.parse(localStorage.getItem('scriptResetArea.forests')) : false,caves:localStorage.getItem('scriptResetArea.caves') !== null ? JSON.parse(localStorage.getItem('scriptResetArea.caves')) : false,volcano:localStorage.getItem('scriptResetArea.volcano') !== null ? JSON.parse(localStorage.getItem('scriptResetArea.volcano')) : false,northernFields:localStorage.getItem('scriptResetArea.northernFields') !== null ? JSON.parse(localStorage.getItem('scriptResetArea.northernFields')) : false,hauntedMansion:localStorage.getItem('scriptResetArea.hauntedMansion') !== null ? JSON.parse(localStorage.getItem('scriptResetArea.hauntedMansion')) : false,desert:localStorage.getItem('scriptResetArea.desert') !== null ? JSON.parse(localStorage.getItem('scriptResetArea.desert')) : false,ocean:localStorage.getItem('scriptResetArea.ocean') !== null ? JSON.parse(localStorage.getItem('scriptResetArea.ocean')) : false,jungle:localStorage.getItem('scriptResetArea.jungle') !== null ? JSON.parse(localStorage.getItem('scriptResetArea.jungle')) : false,dungeonEntrance:localStorage.getItem('scriptResetArea.dungeonEntrance') !== null ? JSON.parse(localStorage.getItem('scriptResetArea.dungeonEntrance')) : false,dungeon:localStorage.getItem('scriptResetArea.dungeon') !== null ? JSON.parse(localStorage.getItem('scriptResetArea.dungeon')) : false,castle:localStorage.getItem('scriptResetArea.castle') !== null ? JSON.parse(localStorage.getItem('scriptResetArea.castle')) : false,cemetery:localStorage.getItem('scriptResetArea.cemetery') !== null ? JSON.parse(localStorage.getItem('scriptResetArea.cemetery')) : false,factory:localStorage.getItem('scriptResetArea.factory') !== null ? JSON.parse(localStorage.getItem('scriptResetArea.factory')) : false,hauntedWoods:localStorage.getItem('scriptResetArea.hauntedWoods') !== null ? JSON.parse(localStorage.getItem('scriptResetArea.hauntedWoods')) : false,deepOcean:localStorage.getItem('scriptResetArea.deepOcean') !== null ? JSON.parse(localStorage.getItem('scriptResetArea.deepOcean')) : false}
  72. window.scriptCousinArea = localStorage.getItem('scriptCousinArea') !== null ? JSON.parse(localStorage.getItem('scriptCousinArea')) : 'fields'
  73. //Cooking Vars
  74. window.scriptBoatSend = {rowBoat:localStorage.getItem('scriptBoatSend.rowBoat') !== null ? JSON.parse(localStorage.getItem('scriptBoatSend.rowBoat')) : true,canoeBoat:localStorage.getItem('scriptBoatSend.canoeBoat') !== null ? JSON.parse(localStorage.getItem('scriptBoatSend.canoeBoat')) : true,sailBoat:localStorage.getItem('scriptBoatSend.sailBoat') !== null ? JSON.parse(localStorage.getItem('scriptBoatSend.sailBoat')) : true,highWind:localStorage.getItem('scriptBoatSend.highWind') !== null ? JSON.parse(localStorage.getItem('scriptBoatSend.highWind')) : true,steamBoat:localStorage.getItem('scriptBoatSend.steamBoat') !== null ? JSON.parse(localStorage.getItem('scriptBoatSend.steamBoat')) : true,trawler:localStorage.getItem('scriptBoatSend.trawler') !== null ? JSON.parse(localStorage.getItem('scriptBoatSend.trawler')) : true}
  75. const oldHideAllTabs = hideAllTabs
  76.  
  77. function autoEvent() {
  78. if (eventName !== 'none' && (eventStatus == 'active' || eventStatus == 'fullActive') && eventLastClicked == 0) {
  79. sendBytes('CLICKS_EVENT')
  80. }
  81. }
  82.  
  83. function autoGeodeOpen() {
  84. if (geode1 > 0) {
  85. sendBytes('OPEN_MULTIPLE_GEODE=geode1~'+geode1)
  86. closeSmittysDialogue('dialogue-confirm')
  87. }
  88. if (geode2 > 0) {
  89. sendBytes('OPEN_MULTIPLE_GEODE=geode2~'+geode2)
  90. closeSmittysDialogue('dialogue-confirm')
  91. }
  92. if (geode3 > 0) {
  93. sendBytes('OPEN_MULTIPLE_GEODE=geode3~'+geode3)
  94. closeSmittysDialogue('dialogue-confirm')
  95. }
  96. if (geode4 > 0) {
  97. sendBytes('OPEN_MULTIPLE_GEODE=geode4~'+geode4)
  98. closeSmittysDialogue('dialogue-confirm')
  99. }
  100. if (geode5 > 0) {
  101. sendBytes('OPEN_MULTIPLE_GEODE=geode5~'+geode5)
  102. closeSmittysDialogue('dialogue-confirm')
  103. }
  104. if (geode6 > 0) {
  105. sendBytes('OPEN_MULTIPLE_GEODE=geode6~'+geode6)
  106. closeSmittysDialogue('dialogue-confirm')
  107. }
  108. }
  109.  
  110. function autoIdentify() {
  111. if (limeQuartzMineralUnidentified > 0) {
  112. clicksItem('limeQuartzMineralUnidentified');
  113. closeSmittysDialogue('dialogue-confirm');
  114. }
  115. if (fluoriteMineralUnidentified > 0) {
  116. clicksItem('fluoriteMineralUnidentified');
  117. closeSmittysDialogue('dialogue-confirm');
  118. }
  119. if (topazMineralUnidentified > 0) {
  120. clicksItem('topazMineralUnidentified');
  121. closeSmittysDialogue('dialogue-confirm');
  122. }
  123. if (blueMarbleMineralUnidentified > 0) {
  124. clicksItem('blueMarbleMineralUnidentified');
  125. closeSmittysDialogue('dialogue-confirm');
  126. }
  127. if (sulferMineralUnidentified > 0) {
  128. clicksItem('sulferMineralUnidentified');
  129. closeSmittysDialogue('dialogue-confirm');
  130. }
  131. if (purpleQuartzMineralUnidentified > 0) {
  132. clicksItem('purpleQuartzMineralUnidentified');
  133. closeSmittysDialogue('dialogue-confirm');
  134. }
  135. if (limoniteMineralUnidentified > 0) {
  136. clicksItem('limoniteMineralUnidentified');
  137. closeSmittysDialogue('dialogue-confirm');
  138. }
  139. if (crystalPrismeMineralUnidentified > 0) {
  140. clicksItem('crystalPrismeMineralUnidentified');
  141. closeSmittysDialogue('dialogue-confirm');
  142. }
  143. if (typeof clearMarbleMineralUnidentified !== 'undefined' && clearMarbleMineralUnidentified > 0) {
  144. clicksItem('clearMarbleMineralUnidentified');
  145. closeSmittysDialogue('dialogue-confirm');
  146. }
  147. if (denseMarbleMineralUnidentified > 0) {
  148. clicksItem('denseMarbleMineralUnidentified');
  149. closeSmittysDialogue('dialogue-confirm');
  150. }
  151. if (jadeMineralUnidentified > 0) {
  152. clicksItem('jadeMineralUnidentified');
  153. closeSmittysDialogue('dialogue-confirm');
  154. }
  155. if (opalMineralUnidentified > 0) {
  156. clicksItem('opalMineralUnidentified');
  157. closeSmittysDialogue('dialogue-confirm');
  158. }
  159. if (amethystMineralUnidentified > 0) {
  160. clicksItem('amethystMineralUnidentified');
  161. closeSmittysDialogue('dialogue-confirm');
  162. }
  163. if (tashmarineMineralUnidentified > 0) {
  164. clicksItem('tashmarineMineralUnidentified');
  165. closeSmittysDialogue('dialogue-confirm');
  166. }
  167. if (tanzaniteMineralUnidentified > 0) {
  168. clicksItem('tanzaniteMineralUnidentified');
  169. closeSmittysDialogue('dialogue-confirm');
  170. }
  171. if (seaCrystalMineralUnidentified > 0) {
  172. clicksItem('seaCrystalMineralUnidentified');
  173. closeSmittysDialogue('dialogue-confirm');
  174. }
  175. if (amberMineralUnidentified > 0) {
  176. clicksItem('amberMineralUnidentified');
  177. closeSmittysDialogue('dialogue-confirm');
  178. }
  179. if (smoothPearlMineralUnidentified > 0) {
  180. clicksItem('smoothPearlMineralUnidentified');
  181. closeSmittysDialogue('dialogue-confirm');
  182. }
  183. }
  184.  
  185. function autoNecklaceCharge() {
  186. changeMineralNecklace()
  187. }
  188.  
  189. function autoTrain() {
  190. if (train > 0 && trainTimer < 2 && oil >= 500000 * scriptTrainAmount) {
  191. sendBytes("MANAGE_TRAIN=0");
  192. sendBytes('COLLECT_TRAIN_FORCE');
  193. sendBytes('MANAGE_TRAIN='+scriptTrainAmount);
  194. closeSmittysDialogue('dialogue-confirm2');
  195. } else if (train > 0 && trainTimer == 1 && oil < 500000 * scriptTrainAmount) {
  196. sendBytes("MANAGE_TRAIN=0");
  197. sendBytes('COLLECT_TRAIN_FORCE');
  198. closeSmittysDialogue('dialogue-confirm2');
  199. }
  200. }
  201.  
  202. function autoRocket() {
  203. if (rocketKm == 1) {
  204. sendBytes('MANAGE_ROCKET=collect2')
  205. closeSmittysDialogue('dialogue-confirm')
  206. } else if (rocket == 1 && rocketKm == 0) {
  207. if (scriptRocket == 'Moon' && oil >= 4000000) {
  208. sendBytes('MANAGE_ROCKET=send')
  209. } else if (scriptRocket == 'Mars' && oil >= 15000000) {
  210. sendBytes('MANAGE_ROCKET=send_mars')
  211. } else if (scriptRocket == 'Sun' & oil >= 30000000 && charcoal >= 100) {
  212. sendBytes('MANAGE_ROCKET=send_sun')
  213. }
  214. }
  215. }
  216.  
  217. function autoSmelt() {
  218. if (smeltingCurrentOreType == 'none') {
  219. var oreItems = document.getElementById("sortableOres").getElementsByTagName("li")
  220.  
  221. for (var i = 0; i < oreItems.length; i++) {
  222. var minimumOre = oreItems[i].querySelector(".oreMinimum").value;
  223. var selectedOre = oreItems[i].getAttribute("value");
  224. if (smeltingCurrentOreType == 'none' && window[selectedOre] >= minimumOre && (selectedOre !== 'promethium' || lava >= minimumOre) && (selectedOre !== 'titanium' || charcoal >= minimumOre) && (selectedOre !== 'ancientOre' || plasma >= minimumOre)) {
  225. chooseOreForFurnace(selectedOre)
  226. startSmelting()
  227. closeSmittysDialogue('dialogue-furnace2')
  228. console.log(selectedOre)
  229. break;
  230. }
  231. }
  232. }
  233. }
  234.  
  235. function autoRefine() {
  236. if (barRefineryTimer < 2 && scriptRefinaryBar == 'gold' && oil > 500000 && goldBars > 99) {
  237. clicksItem('goldBarRefinery')
  238. sendBytes('REFINE_GOLD_BARS=goldBars')
  239. closeSmittysDialogue('dialogue-barRefinery');
  240. closeSmittysDialogue('dialogue-confirm')
  241.  
  242. } else if (barRefineryTimer < 2 && scriptRefinaryBar == 'promethium' && oil > 2000000 && promethiumBars > 99) {
  243. clicksItem('goldBarRefinery')
  244. sendBytes('REFINE_GOLD_BARS=promethiumBars')
  245. closeSmittysDialogue('dialogue-barRefinery');
  246. closeSmittysDialogue('dialogue-confirm')
  247. }
  248. }
  249.  
  250. function autoFoundry() {
  251. if (charcoalFoundryCurrentOreType == 0 || charcoalFoundryCurrentOreType == 'none') {
  252. let scriptFoundryWoodLocal = scriptFoundryWood
  253. if (scriptFoundryWoodLocal == 'cheapest') {
  254. logs > 100 ? scriptFoundryWoodLocal = 'logs'
  255. : oakLogs > 100 ? scriptFoundryWoodLocal = 'oakLogs'
  256. : willowLogs > 100 ? scriptFoundryWoodLocal = 'willowLogs'
  257. : mapleLogs > 100 ? scriptFoundryWoodLocal = 'mapleLogs'
  258. : redwoodLogs > 100 ? scriptFoundryWoodLocal = 'redwoodLogs'
  259. : pineLogs > 100 ? scriptFoundryWoodLocal = 'pineLogs'
  260. : hauntedLogs > 100 ? scriptFoundryWoodLocal = 'hauntedLogs'
  261. : jungleLogs > 100 ? scriptFoundryWoodLocal = 'jungleLogs'
  262. : lavaLogs > 100 ? scriptFoundryWoodLocal = 'lavaLogs'
  263. : goldLogs > 100 ? scriptFoundryWoodLocal = 'goldLogs'
  264. : magicLogs > 100 ? scriptFoundryWoodLocal = 'magicLogs'
  265. : scriptFoundryWoodLocal = 'none';
  266. }
  267. let scriptLava
  268. switch (scriptFoundryWoodLocal) {
  269. case 'logs':
  270. scriptLava = 1;
  271. break;
  272. case 'oakLogs':
  273. scriptLava = 2;
  274. break;
  275. case 'willowLogs':
  276. scriptLava = 3;
  277. break;
  278. case 'mapleLogs':
  279. scriptLava = 4;
  280. break;
  281. case 'redwoodLogs':
  282. scriptLava = 5;
  283. break;
  284. case 'pineLogs':
  285. scriptLava = 6;
  286. break;
  287. case 'hauntedLogs':
  288. scriptLava = 7;
  289. break;
  290. case 'jungleLogs':
  291. scriptLava = 8;
  292. break;
  293. case 'lavaLogs':
  294. scriptLava = 9;
  295. break;
  296. case 'goldLogs':
  297. scriptLava = 10;
  298. break;
  299. case 'magicLogs':
  300. scriptLava = 11;
  301. break;
  302. default:
  303. break;
  304. }
  305. console.log(scriptFoundryWoodLocal+' used')
  306. if (window[scriptFoundryWoodLocal] > 99 && lava >= scriptLava * 100 && scriptFoundryWoodLocal !== 'none') {
  307. sendBytes('CHARCOAL_FOUNDRY='+scriptFoundryWoodLocal+'~'+100)
  308. closeSmittysDialogue('dialogue-confirm')
  309. }
  310. }
  311. }
  312.  
  313. function autoLumber() {
  314. if (scriptTreeIgnore[tree6] === false && treeTimer6 == 1) {
  315. sendBytes('CHOP_TREE=6')}
  316. if (scriptTreeIgnore[tree5] === false && treeTimer5 == 1) {
  317. sendBytes('CHOP_TREE=5')}
  318. if (scriptTreeIgnore[tree4] === false && treeTimer4 == 1) {
  319. sendBytes('CHOP_TREE=4')}
  320. if (scriptTreeIgnore[tree3] === false && treeTimer3 == 1) {
  321. sendBytes('CHOP_TREE=3')}
  322. if (scriptTreeIgnore[tree2] === false && treeTimer2 == 1) {
  323. sendBytes('CHOP_TREE=2')}
  324. if (scriptTreeIgnore[tree1] === false && treeTimer1 == 1) {
  325. sendBytes('CHOP_TREE=1')}
  326. }
  327.  
  328. function autoPlant() {
  329. if (farmTimer1 < 2 || farmTimer2 < 2 || (farmTimer3 < 2 && farmUnlocked3 == 1) || (farmTimer4 < 2 && farmUnlocked4 == 1) || (farmTimer5 < 2 && farmUnlocked5 == 1) || (farmTimer6 < 2 && farmUnlocked6 == 1)) {
  330. var seedItems = document.getElementById("sortableSeeds").getElementsByTagName("li")
  331.  
  332. for (var i = 0; i < seedItems.length; i++) {
  333. var seedCheckbox = seedItems[i].querySelector(".seed-checkbox");
  334. var selectedSeed = seedItems[i].getAttribute("value"); // Obter o valor do atributo 'value'
  335. if (window[selectedSeed] >= 1){
  336. if (seedCheckbox.checked) {
  337. setBobsAutoReplantSeed(selectedSeed);
  338. closeSmittysDialogue("dialogue-bob");
  339. sendBytes("HARVEST_AND_PLANT_ALL");
  340. setTimeout(function(){closeSmittysDialogue('dialogue-confirm')},1000);
  341. }
  342. }
  343. }
  344. }
  345. }
  346.  
  347. function autoBones() {
  348. if (scriptBonesIgnore.bones === false && bones > 0) {
  349. sendBytes('ADD_BONEMEAL=bones~'+bones)}
  350. if (scriptBonesIgnore.ashes === false && ashes > 0) {
  351. sendBytes('ADD_BONEMEAL=ashes~'+ashes)}
  352. if (scriptBonesIgnore.iceBones === false && iceBones > 0) {
  353. sendBytes('ADD_BONEMEAL=iceBones~'+iceBones)}
  354. if (scriptBonesIgnore.zombieBones === false && zombieBones > 0) {
  355. sendBytes('ADD_BONEMEAL=zombieBones~'+zombieBones)}
  356. if (scriptBonesIgnore.bloodBones === false && bloodBones > 0) {
  357. sendBytes('ADD_BONEMEAL=bloodBones~'+bloodBones)}
  358. if (scriptBonesIgnore.fishBones === false && fishBones > 9) {
  359. sendBytes('ADD_BONEMEAL=fishBones~'+(Math.floor(fishBones/10))*10)}
  360. }
  361.  
  362. function autoDrink() {
  363. var potionItems = document.getElementById("sortablePotions").getElementsByTagName("li")
  364.  
  365. for (var i = 0; i < potionItems.length; i++) {
  366. var drinkCheckbox = potionItems[i].querySelector(".drink-checkbox");
  367. var selectedPotion = potionItems[i].getAttribute("value"); // Obter o valor do atributo 'value'
  368.  
  369. if (drinkCheckbox.checked && window[selectedPotion] > 0 && window[selectedPotion+'Timer'] == 0) {
  370. sendBytes('DRINK='+selectedPotion);
  371. setTimeout(function(){closeSmittysDialogue('dialogue-confirm')},1000);
  372. }
  373. }
  374. }
  375.  
  376. function autoTreeUpgrade() {
  377. if (woodcuttingUpgradePotionCooldown == 0 && woodcuttingUpgradePotion >= 1) {
  378. if (scriptTreeUpgrade[tree6] === true && woodcuttingUpgradePotionUsed6 == 0) {
  379. sendBytes('POTION_UPGRADE_TREE=6')}
  380. if (scriptTreeUpgrade[tree5] === true && woodcuttingUpgradePotionUsed5 == 0) {
  381. sendBytes('POTION_UPGRADE_TREE=5')}
  382. if (scriptTreeUpgrade[tree4] === true && woodcuttingUpgradePotionUsed4 == 0) {
  383. sendBytes('POTION_UPGRADE_TREE=4')}
  384. if (scriptTreeUpgrade[tree3] === true && woodcuttingUpgradePotionUsed3 == 0) {
  385. sendBytes('POTION_UPGRADE_TREE=3')}
  386. if (scriptTreeUpgrade[tree2] === true && woodcuttingUpgradePotionUsed2 == 0) {
  387. sendBytes('POTION_UPGRADE_TREE=2')}
  388. if (scriptTreeUpgrade[tree1] === true && woodcuttingUpgradePotionUsed1 == 0) {
  389. sendBytes('POTION_UPGRADE_TREE=1')}
  390. }
  391. }
  392.  
  393. function autoBrew() {
  394. var potionItems = document.getElementById("sortablePotions").getElementsByTagName("li")
  395.  
  396. for (var i = 0; i < potionItems.length; i++) {
  397. var drinkCheckbox = potionItems[i].querySelector(".drink-checkbox");
  398. var brewCheckbox = potionItems[i].querySelector(".brew-checkbox");
  399. var selectedPotion = potionItems[i].getAttribute("value"); // Obter o valor do atributo 'value'
  400.  
  401. if (brewCheckbox.checked && drinkCheckbox.checked && window[selectedPotion] == 0) {
  402. sendBytes('BREW='+selectedPotion+'~1');
  403. setTimeout(function(){closeSmittysDialogue('dialogue-confirm')},1000);
  404. }
  405. }
  406. }
  407.  
  408. function autoExplore() {
  409. if (explorerCooldown == 0) {
  410. let scriptAreaLocal = scriptArea
  411. if (energy < scriptAreaEnergy[scriptAreaLocal]) {scriptAreaLocal = 'fields'}
  412. sendBytes('EXPLORE='+scriptAreaLocal)
  413. if (toggleShiny == true || toggleMonsterFind == true) {scriptWaitTeleport = true} else {scriptWaitTeleport = false}
  414. }
  415. }
  416.  
  417. function autoFight() {
  418. if (exploringArea !== 'none' && fightDone === 0) {
  419. if (scriptWaitTeleport === false || (scriptWaitTeleport === true && teleportSpellCooldown === 0)) {
  420. sendBytes('LOOK_FOR_FIGHT');
  421. }
  422. if (toggleShiny == false && toggleMonsterFind == false) {scriptWaitTeleport === false}
  423. }
  424. }
  425.  
  426. function autoReset() {
  427. if (exploringArea !== 'none' && fightDone == 1 && monsterName == 'none' && resetFightingPotion >= 1 && resetFightingPotionUsed == 0) {
  428. if (scriptResetArea[exploringArea] === true) {
  429. sendBytes('DRINK=resetFightingPotion')
  430. }
  431. }
  432. }
  433.  
  434. function autoMonsterHunt() {
  435. if (monsterName !== 'none' && (toggleMonsterFind == false || monsterName !== scriptMonster) && monsterName !== 'gemGoblin' && monsterName !== 'bloodGemGoblin' && shinyMonster == 0) {
  436. sendBytes('CAST_COMBAT_SPELL=teleportSpell')
  437. }
  438. var teleportCooldown = (teleportSpellUpgraded === 1) ? 300 : 900;
  439. scriptWaitTeleport = (explorerCooldown > teleportCooldown + 10) ? true : false
  440. }
  441.  
  442. function autoHeal() {
  443. if (exploringArea !== 0 && monsterName !== 'none' && heroHp == 0 && hpCombatPotionUsed == 0){
  444. sendBytes('DRINK_COMBAT_POTION=hpCombatPotion');
  445. } else if (exploringArea !== 0 && monsterName !== 'none' && heroHp == 0 && superHpCombatPotionUsed == 0) {
  446. sendBytes('DRINK_COMBAT_POTION=superHpCombatPotion');
  447. } else if (exploringArea !== 0 && monsterName !== 'none' && heroHp == 0 && teleportSpellCooldown == 0) {
  448. sendBytes('CAST_COMBAT_SPELL=teleportSpell')
  449. }
  450. }
  451.  
  452. function autoSpell() {
  453. if (monsterName !== 'none' && fireSpell == 1 && fireSpellCooldown == 0) {sendBytes('CAST_COMBAT_SPELL=fireSpell')}
  454. if (monsterName !== 'none' && reflectSpell == 1 && reflectSpellCooldown == 0) {sendBytes('CAST_COMBAT_SPELL=reflectSpell')}
  455. if (monsterName !== 'none' && thunderStrikeSpell == 1 && thunderStrikeSpellCooldown == 0) {sendBytes('CAST_COMBAT_SPELL=thunderStrikeSpell')}
  456. if (monsterName !== 'none' && lifeStealSpell == 1 && lifeStealSpellCooldown == 0) {sendBytes('CAST_COMBAT_SPELL=lifeStealSpell')}
  457. if (monsterName !== 'none' && sandstormSpell == 1 && sandstormSpellCooldown == 0) {sendBytes('CAST_COMBAT_SPELL=sandstormSpell')}
  458. }
  459.  
  460. function autoCombatPot() {
  461. if (monsterName !== 'none' && (freezeCombatPotionFree == 1 || freezeCombatPotion >= 1) && freezeCombatPotionUsed == 0) {setTimeout(function(){sendBytes('DRINK_COMBAT_POTION=freezeCombatPotion')},15000);}
  462. if (monsterName !== 'none' && (ignoreDefenceCombatPotionFree == 1 || ignoreDefenceCombatPotion >= 1) && ignoreDefenceCombatPotionUsed == 0) {sendBytes('DRINK_COMBAT_POTION=ignoreDefenceCombatPotion')}
  463. if (monsterName !== 'none' && (ghostScanCombatPotionFree == 1 || ghostScanCombatPotion >= 1) && ghostScanCombatPotionUsed == 0) {sendBytes('DRINK_COMBAT_POTION=ghostScanCombatPotion')}
  464. if (monsterName !== 'none' && (strengthCombatPotionFree == 1 || strengthCombatPotion >= 1) && strengthCombatPotionUsed == 0) {sendBytes('DRINK_COMBAT_POTION=strengthCombatPotion')}
  465. }
  466.  
  467. function autoCousin() {
  468. if (typeof goblinExploringArea == 'undefined' || goblinExploringArea == 'none') {
  469. let scriptCousinAreaLocal = scriptCousinArea
  470. if (energy < scriptAreaEnergy[scriptCousinAreaLocal]) {scriptCousinAreaLocal = 'fields'}
  471. goblinCousin=1;
  472. sendBytes('EXPLORE_GOBLIN='+scriptCousinAreaLocal)
  473. setTimeout(function(){closeSmittysDialogue('dialogue-confirm')},1000);
  474. }
  475. }
  476.  
  477. function autoBags() {
  478. for (var i = 0; i < bagsArray.length; i++) {
  479. var bag = bagsArray[i];
  480. if (window[bag] > 0) {
  481. sendBytes('OPEN_LOOT_MULTI='+bag+'~'+window[bag])
  482. closeSmittysDialogue('dialogue-confirm')
  483. }
  484. }
  485. }
  486.  
  487. function autoStatue() {
  488. for (var i = 0; i < exploringMetalDetectorStatuesGlobal.length; i++) {
  489. var statue = exploringMetalDetectorStatuesGlobal[i];
  490. if (window[statue] > 0) {
  491. sendBytes('SELL_ALL_STATUES');
  492. closeSmittysDialogue('dialogue-confirm');
  493. break;
  494. }
  495. }
  496. }
  497.  
  498. function autoArtifact() {
  499. for (var i = 0; i < artifactArray.length; i++) {
  500. var artifact = artifactArray[i];
  501. if (window[artifact] > 0) {
  502. sendBytes('CONVERT_ALL_ARTIFACTS')
  503. closeSmittysDialogue('dialogue-confirm')
  504. break;
  505. }
  506. }
  507. }
  508.  
  509. function autoBoat() {
  510. if (rowBoat == 1 && scriptBoatSend.rowBoat == true && rowBoatTimer < 2) {
  511. if (bait > 4){
  512. sendBytes('CLICKS_BOAT=rowBoat')
  513. closeSmittysDialogue('dialogue-confirm2')
  514. } else {clicksItem('rowBoat');closeSmittysDialogue('dialogue-confirm2')}
  515. }
  516. if (canoeBoat == 1 && scriptBoatSend.canoeBoat == true && canoeBoatTimer < 2) {
  517. if (bait > 24) {
  518. sendBytes('CLICKS_BOAT=canoeBoat')
  519. closeSmittysDialogue('dialogue-confirm2')
  520. } else {clicksItem('canoeBoat');closeSmittysDialogue('dialogue-confirm2')}
  521. }
  522. if (scriptBoatSend.highWind == true) {
  523. if (sailBoat == 1 && scriptBoatSend.sailBoat == true && currentWind > 1 && sailBoatTimer < 2) {
  524. if (bait > 99) {
  525. sendBytes('CLICKS_BOAT=sailBoat')
  526. closeSmittysDialogue('dialogue-confirm2')
  527. } else {clicksItem('sailBoat');closeSmittysDialogue('dialogue-confirm2')}
  528. }
  529. } else if (sailBoat == 1 && scriptBoatSend.sailBoat == true && sailBoatTimer < 2) {
  530. if (bait > 99) {
  531. sendBytes('CLICKS_BOAT=sailBoat')
  532. closeSmittysDialogue('dialogue-confirm2')
  533. } else {clicksItem('sailBoat');closeSmittysDialogue('dialogue-confirm2')}
  534. }
  535. if (steamBoat == 1 && scriptBoatSend.steamBoat == true && steamBoatTimer < 2) {
  536. if (bait > 249) {
  537. sendBytes('CLICKS_BOAT=steamBoat')
  538. closeSmittysDialogue('dialogue-confirm2')
  539. } else {clicksItem('steamBoat');closeSmittysDialogue('dialogue-confirm2')}
  540. }
  541. if (trawler == 1 && scriptBoatSend.trawler == true && trawlerTimer < 2) {
  542. if (bait > 499) {
  543. sendBytes('CLICKS_BOAT=trawler')
  544. closeSmittysDialogue('dialogue-confirm2')
  545. } else {clicksItem('trawler');closeSmittysDialogue('dialogue-confirm2')}
  546. }
  547. }
  548.  
  549. function autoCityUnlock() {
  550. sendBytes('CLICKS_SHOP_VOTE=9');
  551. sendBytes("COLLECT_VOTES")
  552. }
  553.  
  554. window.autoCityUnlock = autoCityUnlock
  555.  
  556. function hideAllTabs2() {
  557. oldHideAllTabs()
  558. document.getElementById("tab-scriptConfig").style.display = "none";
  559. document.getElementById("tab-scriptConfigMining").style.display = "none";
  560. document.getElementById("tab-scriptConfigCrafting").style.display = "none";
  561. document.getElementById("tab-scriptConfigWoodcutting").style.display = "none";
  562. document.getElementById("tab-scriptConfigFarming").style.display = "none";
  563. document.getElementById("tab-scriptConfigSeeds").style.display = "none";
  564. document.getElementById("tab-scriptConfigBrewing").style.display = "none";
  565. document.getElementById("tab-scriptConfigPotions").style.display = "none";
  566. document.getElementById("tab-scriptConfigExploring").style.display = "none";
  567. document.getElementById("tab-scriptConfigCooking").style.display = "none";
  568. }
  569.  
  570. window.hideAllTabs = hideAllTabs2
  571.  
  572. function autoChangeVar(variName,variValue,id) {
  573. localStorage.setItem(variName, JSON.stringify(variValue))
  574. window[variName] = variValue
  575. if (typeof id !== 'undefined') {
  576. if (variValue == true) {
  577. document.getElementById(id).style.color = "green"
  578. } else {
  579. document.getElementById(id).style.color = "red"
  580. }
  581. console.log(id)
  582. }
  583. }
  584.  
  585. window.autoChangeVar2 = autoChangeVar;
  586.  
  587. function autoChangeObject(variName,variKey,variValue,id) {
  588. localStorage.setItem(variName+'.'+variKey, JSON.stringify(variValue))
  589. window[variName][variKey] = variValue
  590. if (typeof id !== 'undefined') {
  591. if (variValue == true) {
  592. document.getElementById(id).style.color = "green"
  593. } else {
  594. document.getElementById(id).style.color = "red"
  595. }
  596. }
  597. }
  598.  
  599. window.autoChangeObject2 = autoChangeObject
  600.  
  601. function scriptAddTabs() {
  602. var scriptConfBar = document.createElement("div");
  603. let miscTab = document.querySelectorAll("#tab-misc > .main-button");
  604. scriptConfBar.innerHTML = `<div onclick="navigate('scriptConfig')" class="main-button" style="cursor: pointer;">
  605. <table>
  606. <tbody><tr>
  607. <td><img src="images/whiteGear.png" class="img-small"></td>
  608. <td style="text-align:right;padding-right:20px;font-size:12pt;">SCRIPT CONFIG</td>
  609. </tr>
  610. </tbody></table>
  611. </div>`;
  612. miscTab[2].parentNode.insertBefore(scriptConfBar,miscTab[3]);
  613. var chatDiv = document.createElement("div");
  614. var scriptConfTab = document.createElement("div");
  615. var scriptConfMiningTab = document.createElement("div");
  616. var scriptConfCraftingTab = document.createElement("div");
  617. var scriptConfWoodcuttingTab = document.createElement("div");
  618. var scriptConfFarmingTab = document.createElement("div");
  619. var scriptConfSeedsTab = document.createElement("div");
  620. var scriptConfBrewingTab = document.createElement("div");
  621. var scriptConfPotionsTab = document.createElement("div");
  622. var scriptConfExploringTab = document.createElement("div");
  623. var scriptConfCookingTab = document.createElement("div");
  624. let gameScreen = document.querySelectorAll("#game-screen")[1];
  625. let logoutTab = document.getElementById('tab-logout');
  626. chatDiv.innerHTML = `<div id="div-chat" style="margin-top: 10px;border: 1px solid silver;background: linear-gradient(rgb(238, 238, 238), rgb(221, 221, 221));padding: 5px;">
  627. <div style="margin-bottom:5px;font-weight: bold;color: black;">Chat Box</div>
  628. <div id="messages" style="border: 1px solid grey;background-color: white;height: 200px;padding-left: 5px;overflow-y: auto;color:black;">
  629.  
  630. </div>
  631. <div style="margin-top: 5px;">
  632. <input id="message-body" type="text" maxlength="200" size="100%" onkeydown="window.handleKeyDown(event)">
  633. <button onclick="window.sendChat()">Send</button>
  634. </div>
  635. </div>`
  636. scriptConfTab.innerHTML = `<div id="tab-scriptConfig" style="display:none">
  637. <div class="main-button-lighter">
  638. <table>
  639. <tbody>
  640. <tr onclick="navigate('main');playPreviousMenuSound();" style="cursor: pointer;">
  641. <td><img src="images/back.png" class="img-small"></td>
  642. <td class="back-label">BACK</td>
  643. </tr>
  644. </tbody>
  645. </table>
  646. </div>
  647. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  648. <tbody>
  649. <tr id="scriptGlobalToggle" onclick="window.autoChangeVar2('toggleGlobal',!toggleGlobal,this.id)" style="cursor: pointer; color: green;">
  650. <td style="padding-left: 10px;"><img src="images/whiteGear.png" class="img-medium"></td>
  651. <td style="text-align:right;padding-right:20px;width:100%">SCRIPT TOGGLE</td>
  652. </tr>
  653. </tbody>
  654. </table>
  655. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  656. <tbody>
  657. <tr id="scriptMiningTogglesBar" onclick="navigate('scriptConfigMining')" style="cursor: pointer; color: white;">
  658. <td style="padding-left: 10px;"><img src="images/miningSkill.png" class="img-medium"></td>
  659. <td style="text-align:right;padding-right:20px;width:100%">MINING TOGGLES</td>
  660. </tr>
  661. </tbody>
  662. </table>
  663. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  664. <tbody>
  665. <tr id="scriptCraftingTogglesBar" onclick="navigate('scriptConfigCrafting')" style="cursor: pointer; color: white;">
  666. <td style="padding-left: 10px;"><img src="images/craftingSkill.png" class="img-medium"></td>
  667. <td style="text-align:right;padding-right:20px;width:100%">CRAFTING TOGGLES</td>
  668. </tr>
  669. </tbody>
  670. </table>
  671. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  672. <tbody>
  673. <tr id="scriptWoodcuttingTogglesBar" onclick="navigate('scriptConfigWoodcutting')" style="cursor: pointer; color: white;">
  674. <td style="padding-left: 10px;"><img src="images/woodcuttingSkill.png" class="img-medium"></td>
  675. <td style="text-align:right;padding-right:20px;width:100%">WOODCUTTING TOGGLES</td>
  676. </tr>
  677. </tbody>
  678. </table>
  679. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  680. <tbody>
  681. <tr id="scriptFarmingTogglesBar" onclick="navigate('scriptConfigFarming')" style="cursor: pointer; color: white;">
  682. <td style="padding-left: 10px;"><img src="images/farmingSkill.png" class="img-medium"></td>
  683. <td style="text-align:right;padding-right:20px;width:100%">FARMING TOGGLES</td>
  684. </tr>
  685. </tbody>
  686. </table>
  687. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  688. <tbody>
  689. <tr id="scriptBrewingTogglesBar" onclick="navigate('scriptConfigBrewing')" style="cursor: pointer; color: white;">
  690. <td style="padding-left: 10px;"><img src="images/brewingSkill.png" class="img-medium"></td>
  691. <td style="text-align:right;padding-right:20px;width:100%">BREWING TOGGLES</td>
  692. </tr>
  693. </tbody>
  694. </table>
  695. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  696. <tbody>
  697. <tr id="scriptExploringTogglesBar" onclick="navigate('scriptConfigExploring')" style="cursor: pointer; color: white;">
  698. <td style="padding-left: 10px;"><img src="images/exploringSkill.png" class="img-medium"></td>
  699. <td style="text-align:right;padding-right:20px;width:100%">EXPLORING TOGGLES</td>
  700. </tr>
  701. </tbody>
  702. </table>
  703. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  704. <tbody>
  705. <tr id="scriptCookingTogglesBar" onclick="navigate('scriptConfigCooking')" style="cursor: pointer; color: white;">
  706. <td style="padding-left: 10px;"><img src="images/cookingSkill.png" class="img-medium"></td>
  707. <td style="text-align:right;padding-right:20px;width:100%">COOKING TOGGLES</td>
  708. </tr>
  709. </tbody>
  710. </table>
  711. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  712. <tbody>
  713. <tr id="scriptCityUnlock" onclick="if(isMayor == 0) {window.autoCityUnlock();console.log('City Unlocked')}" style="cursor: pointer; color: white;">
  714. <td style="padding-left: 10px;"><img src="images/mayorsHouse.png" class="img-medium"></td>
  715. <td style="text-align:right;padding-right:20px;width:100%">CITY UNLOCK</td>
  716. </tr>
  717. </tbody>
  718. </table>
  719. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  720. <tbody>
  721. <tr id="scriptGlobalToggleLoad" onclick="window.autoChangeVar2('toggleGlobalLoad',!toggleGlobalLoad,this.id)" style="cursor: pointer; color: green;">
  722. <td style="padding-left: 10px;"><img src="images/whiteGear.png" class="img-medium"></td>
  723. <td style="text-align:right;padding-right:20px;width:100%">GLOBAL TOGGLE ACTIVATED ON LOAD</td>
  724. </tr>
  725. </tbody>
  726. </table>
  727. </div>`
  728.  
  729.  
  730. scriptConfMiningTab.innerHTML = `<div id="tab-scriptConfigMining" style="display:none">
  731. <div class="main-button-lighter">
  732. <table>
  733. <tbody>
  734. <tr onclick="navigate('scriptConfig');playPreviousMenuSound();" style="cursor: pointer;">
  735. <td><img src="images/back.png" class="img-small"></td>
  736. <td class="back-label">BACK</td>
  737. </tr>
  738. </tbody>
  739. </table>
  740. </div>
  741. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  742. <tbody>
  743. <tr id="scriptGeodeToggle" onclick="window.autoChangeVar2('toggleGeodeOpen',!toggleGeodeOpen,this.id)" style="cursor: pointer; color: green;">
  744. <td style="padding-left: 10px;"><img src="images/geode5.png" class="img-small"></td>
  745. <td style="text-align:right;padding-right:20px;width:100%">GEODE OPENING</td>
  746. </tr>
  747. </tbody>
  748. </table>
  749. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  750. <tbody>
  751. <tr id="scriptMineralToggle" onclick="window.autoChangeVar2('toggleMineralIdentify',!toggleMineralIdentify,this.id)" style="cursor: pointer; color: green;">
  752. <td style="padding-left: 10px;"><img src="images/tanzaniteMineral.png" class="img-small"></td>
  753. <td style="text-align:right;padding-right:20px;width:100%">MINERAL IDENTIFY</td>
  754. </tr>
  755. </tbody>
  756. </table>
  757. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  758. <tbody>
  759. <tr id="scriptNecklaceToggle" onclick="window.autoChangeVar2('toggleNecklaceCharge',!toggleNecklaceCharge,this.id)" style="cursor: pointer; color: red;">
  760. <td style="padding-left: 10px;"><img src="images/mineralNecklace.png" class="img-small"></td>
  761. <td style="text-align:right;padding-right:20px;width:100%">NECKLACE CHARGE</td>
  762. </tr>
  763. </tbody>
  764. </table>
  765. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  766. <tbody>
  767. <tr id="scriptTrainToggle" onclick="window.autoChangeVar2('toggleTrain',!toggleTrain,this.id)" style="cursor: pointer; color: red;">
  768. <td style="padding-left: 10px;"><img src="images/train.png" class="img-small"></td>
  769. <td style="text-align:right;padding-right:20px;width:100%">TRAIN</td>
  770. </tr>
  771. </tbody>
  772. </table>
  773. <table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  774. <tbody>
  775. <tr style="color: white;width: 100%;">
  776. <td style="padding-left: 10px;"><img src="images/trainTracks.png" class="img-small"></td>
  777. <td>
  778. <select name="scriptTrainAmount" onchange="window.autoChangeVar2('scriptTrainAmount',this.value)" id="scriptTrainAmount">
  779. <option value="1">1</option>
  780. <option value="2">2</option>
  781. <option value="3">3</option>
  782. <option value="4">4</option>
  783. <option value="5">5</option>
  784. </select>
  785. </td>
  786. <td style="text-align:right;padding-right:20px;width:100%">TRAINS TO SEND</td>
  787. </tr>
  788. </tbody>
  789. </table>
  790. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  791. <tbody>
  792. <tr id="scriptRocketToggle" onclick="window.autoChangeVar2('toggleRocket',!toggleRocket,this.id)" style="cursor: pointer; color: red;">
  793. <td style="padding-left: 10px;"><img src="images/rocket.png" class="img-small"></td>
  794. <td style="text-align:right;padding-right:20px;width:100%">ROCKET</td>
  795. </tr>
  796. </tbody>
  797. </table>
  798. <table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  799. <tbody>
  800. <tr style="color: white;width: 100%;">
  801. <td style="padding-left: 10px;"><img src="images/mars.png" class="img-small"></td>
  802. <td>
  803. <select name="scriptRocketDestination" onchange="window.autoChangeVar2('scriptRocket',this.value)" id="scriptRocketDestination">
  804. <option value="Moon">Moon</option>
  805. <option value="Mars">Mars</option>
  806. <option value="Sun">Sun</option>
  807. </select>
  808. </td>
  809. <td style="text-align:right;padding-right:20px;width:100%">ROCKET DESTINATION</td>
  810. </tr>
  811. </tbody>
  812. </table>
  813. </div>`
  814.  
  815. scriptConfCraftingTab.innerHTML= `<div id="tab-scriptConfigCrafting" style="display:none">
  816. <div class="main-button-lighter">
  817. <table>
  818. <tbody>
  819. <tr onclick="navigate('scriptConfig');playPreviousMenuSound();" style="cursor: pointer;">
  820. <td><img src="images/back.png" class="img-small"></td>
  821. <td class="back-label">BACK</td>
  822. </tr>
  823. </tbody>
  824. </table>
  825. </div>
  826. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  827. <tbody>
  828. <tr id="scriptSmeltingToggle" onclick="window.autoChangeVar2('toggleSmelting',!toggleSmelting,this.id)" style="cursor: pointer; color: green;">
  829. <td style="padding-left: 10px;"><img src="images/ancientFurnace.png" class="img-small"></td>
  830. <td style="text-align:right;padding-right:20px;width:100%">SMELTING</td>
  831. </tr>
  832. </tbody>
  833. </table>
  834. <ol id="sortableOres" style="list-style: none;padding: 0px;border: 1px solid grey;border-radius: 6px;margin: 10px;font-size: 25px;" class="ui-sortable">
  835. <li class="ui-state-default ui-sortable-handle" value="copper" style="border-radius: 6px; background: rgb(26, 26, 26); color: white; justify-content: space-between; display: flex;">
  836. <img src="images/bronzeBars.png" class="img-small" style="padding-right: 10px;">Bronze Bar<input type="number" class="oreMinimum" min="1" placeholder="Minimum to Smelt" value="1">
  837. </li>
  838. <li class="ui-state-default ui-sortable-handle" value="iron" style="border-radius: 6px; background: rgb(26, 26, 26); color: white; justify-content: space-between; display: flex;">
  839. <img src="images/ironBars.png" class="img-small" style="padding-right: 10px;">Iron Bar<input type="number" class="oreMinimum" min="1" placeholder="Minimum to Smelt" value="1">
  840. </li>
  841. <li class="ui-state-default ui-sortable-handle" value="silver" style="border-radius: 6px; background: rgb(26, 26, 26); color: white; justify-content: space-between; display: flex;">
  842. <img src="images/silverBars.png" class="img-small" style="padding-right: 10px;">Silver Bar<input type="number" class="oreMinimum" min="1" placeholder="Minimum to Smelt" value="1">
  843. </li>
  844. <li class="ui-state-default ui-sortable-handle" value="gold" style="border-radius: 6px; background: rgb(26, 26, 26); color: white; justify-content: space-between; display: flex;">
  845. <img src="images/goldBars.png" class="img-small" style="padding-right: 10px;">Gold Bar<input type="number" class="oreMinimum" min="1" placeholder="Minimum to Smelt" value="1">
  846. </li>
  847. <li class="ui-state-default ui-sortable-handle" value="promethium" style="border-radius: 6px; background: rgb(26, 26, 26); color: white; justify-content: space-between; display: flex;">
  848. <img src="images/promethiumBars.png" class="img-small" style="padding-right: 10px;">Promethium Bar<input type="number" class="oreMinimum" min="1" placeholder="Minimum to Smelt" value="1">
  849. </li>
  850. <li class="ui-state-default ui-sortable-handle" value="titanium" style="border-radius: 6px; background: rgb(26, 26, 26); color: white; justify-content: space-between; display: flex;">
  851. <img src="images/titaniumBars.png" class="img-small" style="padding-right: 10px;">Titanium Bar<input type="number" class="oreMinimum" min="1" placeholder="Minimum to Smelt" value="1">
  852. </li>
  853. <li class="ui-state-default ui-sortable-handle" value="ancientOre" style="border-radius: 6px; background: rgb(26, 26, 26); color: white; justify-content: space-between; display: flex;">
  854. <img src="images/ancientBars.png" class="img-small" style="padding-right: 10px;">Ancient Bar<input type="number" class="oreMinimum" min="1" placeholder="Minimum to Smelt" value="1">
  855. </li>
  856. </ol>
  857. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  858. <tbody>
  859. <tr id="scriptRefinaryToggle" onclick="window.autoChangeVar2('toggleRefinary',!toggleRefinary,this.id)" style="cursor: pointer; color: red;">
  860. <td style="padding-left: 10px;"><img src="images/goldBarRefinery.png" class="img-small"></td>
  861. <td style="text-align:right;padding-right:20px;width:100%">REFINARY</td>
  862. </tr>
  863. </tbody>
  864. </table>
  865. <table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  866. <tbody>
  867. <tr id="scriptRefinaryBar" style="color: white;">
  868. <td style="padding-left: 10px;"><img src="images/refinedGoldBars.png" class="img-small"></td>
  869. <td style="padding-left: 50px;">
  870. <select name="scriptRefinaryBarOptions" onchange="window.autoChangeVar2('scriptRefinaryBar',this.value)" id="scriptRefinaryOptions">
  871. <option value="gold">Gold</option>
  872. <option value="promethium">Promethium</option>
  873. </select>
  874. </td>
  875. <td style="text-align:right;padding-right:20px;width:100%">REFINARY BAR</td>
  876. </tr>
  877. </tbody>
  878. </table>
  879. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  880. <tbody>
  881. <tr id="scriptFoundryToggle" onclick="window.autoChangeVar2('toggleCharcoal',!toggleCharcoal,this.id)" style="cursor: pointer; color: red;">
  882. <td style="padding-left: 10px;"><img src="images/charcoalFoundry.png" class="img-small"></td>
  883. <td style="text-align:right;padding-right:20px;width:100%">CHARCOAL FOUNDRY</td>
  884. </tr>
  885. </tbody>
  886. </table>
  887. <table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  888. <tbody>
  889. <tr id="scriptFoundryWood" style="color: white;">
  890. <td style="padding-left: 10px;"><img src="images/lavaLogs.png" class="img-small"></td>
  891. <td style="padding-left: 50px;">
  892. <select name="scriptFoundryWoodOptions" onchange="window.autoChangeVar2('scriptFoundryWood',this.value)" id="scriptFoundryWoodOptions">
  893. <option value="cheapest">Cheapest</option>
  894. <option value="logs">Logs</option>
  895. <option value="oakLogs">Oak Logs</option>
  896. <option value="willowLogs">Willow Logs</option>
  897. <option value="mapleLogs">Maple Logs</option>
  898. <option value="redwoodLogs">Redwood Logs</option>
  899. <option value="pineLogs">Pine Logs</option>
  900. <option value="hauntedLogs">Haunted Logs</option>
  901. <option value="jungleLogs">Jungle Logs</option>
  902. <option value="lavaLogs">Lava Logs</option>
  903. <option value="goldLogs">Gold Logs</option>
  904. <option value="magicLogs">Magic Logs</option>
  905. </select>
  906. </td>
  907. <td style="text-align:right;padding-right:20px;width:100%">CHARCOAL LOG</td>
  908. </tr>
  909. </tbody>
  910. </table>
  911. </div>`
  912.  
  913. scriptConfWoodcuttingTab.innerHTML= `<div id="tab-scriptConfigWoodcutting" style="display:none">
  914. <div class="main-button-lighter">
  915. <table>
  916. <tbody>
  917. <tr onclick="navigate('scriptConfig');playPreviousMenuSound();" style="cursor: pointer;">
  918. <td><img src="images/back.png" class="img-small"></td>
  919. <td class="back-label">BACK</td>
  920. </tr>
  921. </tbody>
  922. </table>
  923. </div>
  924. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  925. <tbody>
  926. <tr id="scriptLumberToggle" onclick="window.autoChangeVar2('toggleWoodcutting',!toggleWoodcutting,this.id)" style="cursor: pointer; color: green;">
  927. <td style="padding-left: 10px;"><img src="images/lumberjack.png" class="img-small"></td>
  928. <td style="text-align:right;padding-right:20px;width:100%">LUMBERJACK</td>
  929. </tr>
  930. </tbody>
  931. </table>
  932. <table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 20px;width: 97%;">
  933. <tbody style="display: block;">
  934. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','tree',!scriptTreeIgnore.tree,this.id)" id="treeIgnoreToggle">
  935. <td style="padding-left: 10px;width: 5%;"><img src="images/tree.png" class="img-small"></td>
  936. <td style="text-align: center;width: 40%">TREE IGNORE</td>
  937. </tr>
  938. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','oakTree',!scriptTreeIgnore.oakTree,this.id)" id="oakTreeIgnoreToggle">
  939. <td style="padding-left: 10px;width: 5%;"><img src="images/oakTree.png" class="img-small"></td>
  940. <td style="text-align: center;width: 40%">OAK TREE IGNORE</td>
  941. </tr>
  942. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','willowTree',!scriptTreeIgnore.willowTree,this.id)" id="willowTreeIgnoreToggle">
  943. <td style="padding-left: 10px;width: 5%;"><img src="images/willowTree.png" class="img-small"></td>
  944. <td style="text-align: center;width: 40%">WILLOW TREE IGNORE</td>
  945. </tr>
  946. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','mapleTree',!scriptTreeIgnore.mapleTree,this.id)" id="mapleTreeIgnoreToggle">
  947. <td style="padding-left: 10px;width: 5%;"><img src="images/mapleTree.png" class="img-small"></td>
  948. <td style="text-align: center;width: 40%">MAPLE TREE IGNORE</td>
  949. </tr>
  950. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','redwoodTree',!scriptTreeIgnore.redwoodTree,this.id)" id="redwoodTreeIgnoreToggle">
  951. <td style="padding-left: 10px;width: 5%;"><img src="images/redwoodTree.png" class="img-small"></td>
  952. <td style="text-align: center;width: 40%">REDWOOD TREE IGNORE</td>
  953. </tr>
  954. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','pineTree',!scriptTreeIgnore.pineTree,this.id)" id="pineTreeIgnoreToggle">
  955. <td style="padding-left: 10px;width: 5%;"><img src="images/pineTree.png" class="img-small"></td>
  956. <td style="text-align: center;width: 40%">PINE TREE IGNORE</td>
  957. </tr>
  958. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','hauntedTree',!scriptTreeIgnore.hauntedTree,this.id)" id="hauntedTreeIgnoreToggle">
  959. <td style="padding-left: 10px;width: 5%;"><img src="images/hauntedTree.png" class="img-small"></td>
  960. <td style="text-align: center;width: 40%">HAUNTED TREE IGNORE</td>
  961. </tr>
  962. <tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','jungleTree',!scriptTreeIgnore.jungleTree,this.id)" id="jungleTreeIgnoreToggle">
  963. <td style="padding-left: 10px;width: 5%;"><img src="images/jungleTree.png" class="img-small"></td>
  964. <td style="text-align: center;width: 40%">JUNGLE TREE IGNORE</td>
  965. </tr>
  966. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','lavaTree',!scriptTreeIgnore.lavaTree,this.id)" id="lavaTreeIgnoreToggle">
  967. <td style="padding-left: 10px;width: 5%;"><img src="images/lavaTree.png" class="img-small"></td>
  968. <td style="text-align: center;width: 40%">LAVA TREE IGNORE</td>
  969. </tr>
  970. <tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','goldTree',!scriptTreeIgnore.goldTree,this.id)" id="goldTreeIgnoreToggle">
  971. <td style="padding-left: 10px;width: 5%;"><img src="images/goldTree.png" class="img-small"></td>
  972. <td style="text-align: center;width: 40%">GOLD TREE IGNORE</td>
  973. </tr>
  974. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','magicTree',!scriptTreeIgnore.magicTree,this.id)" id="magicTreeIgnoreToggle">
  975. <td style="padding-left: 10px;width: 5%;"><img src="images/magicTree.png" class="img-small"></td>
  976. <td style="text-align: center;width: 40%">MAGIC TREE IGNORE</td>
  977. </tr>
  978. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','appleTree',!scriptTreeIgnore.appleTree,this.id)" id="appleTreeIgnoreToggle">
  979. <td style="padding-left: 10px;width: 5%;"><img src="images/appleTree.png" class="img-small"></td>
  980. <td style="text-align: center;width: 40%">APPLE TREE IGNORE</td>
  981. </tr>
  982. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','cactusTree',!scriptTreeIgnore.cactusTree,this.id)" id="cactusTreeIgnoreToggle">
  983. <td style="padding-left: 10px;width: 5%;"><img src="images/cactusTree.png" class="img-small"></td>
  984. <td style="text-align: center;width: 40%">CACTUS TREE IGNORE</td>
  985. </tr>
  986. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','bananaTree',!scriptTreeIgnore.bananaTree,this.id)" id="bananaTreeIgnoreToggle">
  987. <td style="padding-left: 10px;width: 5%;"><img src="images/bananaTree.png" class="img-small"></td>
  988. <td style="text-align: center;width: 40%">BANANA TREE IGNORE</td>
  989. </tr>
  990. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','palmTree',!scriptTreeIgnore.palmTree,this.id)" id="palmTreeIgnoreToggle">
  991. <td style="padding-left: 10px;width: 5%;"><img src="images/palmTree.png" class="img-small"></td>
  992. <td style="text-align: center;width: 40%">PALM TREE IGNORE</td>
  993. </tr>
  994. <tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','pineappleTree',!scriptTreeIgnore.pineappleTree,this.id)" id="pineappleTreeIgnoreToggle">
  995. <td style="padding-left: 10px;width: 5%;"><img src="images/pineappleTree.png" class="img-small"></td>
  996. <td style="text-align: center;width: 40%">PINEAPPLE TREE IGNORE</td>
  997. </tr>
  998. <tr style="color: red;" onclick="window.autoChangeObject2('scriptTreeIgnore','starfuitTree',!scriptTreeIgnore.starfuitTree,this.id)" id="starfruitTreeIgnoreToggle">
  999. <td style="padding-left: 10px;width: 5%;"><img src="images/starfruitTree.png" class="img-small"></td>
  1000. <td style="text-align: center;">STARFRUIT TREE IGNORE</td>
  1001. </tr>
  1002. </tbody>
  1003. </table>
  1004. </div>`
  1005.  
  1006. scriptConfFarmingTab.innerHTML= `<div id="tab-scriptConfigFarming" style="display:none">
  1007. <div class="main-button-lighter">
  1008. <table>
  1009. <tbody>
  1010. <tr onclick="navigate('scriptConfig');playPreviousMenuSound();" style="cursor: pointer;">
  1011. <td><img src="images/back.png" class="img-small"></td>
  1012. <td class="back-label">BACK</td>
  1013. </tr>
  1014. </tbody>
  1015. </table>
  1016. </div>
  1017. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  1018. <tbody>
  1019. <tr id="scriptFarmingToggle" onclick="window.autoChangeVar2('toggleFarming',!toggleFarming,this.id)" style="cursor: pointer; color: red;">
  1020. <td style="padding-left: 10px;"><img src="images/farmer.png" class="img-small"></td>
  1021. <td style="text-align:right;padding-right:20px;width:100%">HARVEST AND PLANT</td>
  1022. </tr>
  1023. </tbody>
  1024. </table>
  1025. <table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;cursor: pointer;">
  1026. <tbody>
  1027. <tr id="scriptSeedToggleBar" onclick="navigate('scriptConfigSeeds')" style="color: white;">
  1028. <td style="padding-left: 10px;"><img src="images/goldLeafSeeds.png" class="img-small"></td>
  1029. <td style="text-align:right;padding-right:20px;width:100%">SEED SELECTOR</td>
  1030. </tr>
  1031. </tbody>
  1032. </table>
  1033. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  1034. <tbody>
  1035. <tr id="scriptBonesToggle" onclick="window.autoChangeVar2('toggleBones',!toggleBones,this.id)" style="cursor: pointer; color: red;">
  1036. <td style="padding-left: 10px;"><img src="images/bonemealBin.png" class="img-small"></td>
  1037. <td style="text-align:right;padding-right:20px;width:100%">BONEMEAL</td>
  1038. </tr>
  1039. </tbody>
  1040. </table>
  1041. <table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 20px;width: 97%;">
  1042. <tbody style="display: block;">
  1043. <tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptBonesIgnore','bones',!scriptBonesIgnore.bones,this.id)" id="bonesIgnoreToggle">
  1044. <td style="padding-left: 10px;width: 5%;"><img src="images/bones.png" class="img-small"></td>
  1045. <td style="text-align: center;width: 40%">BONES IGNORE</td>
  1046. </tr>
  1047. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptBonesIgnore','ashes',!scriptBonesIgnore.ashes,this.id)" id="ashesIgnoreToggle">
  1048. <td style="padding-left: 10px;width: 5%;"><img src="images/ashes.png" class="img-small"></td>
  1049. <td style="text-align: center;width: 40%">ASHES IGNORE</td>
  1050. </tr>
  1051. <tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptBonesIgnore','iceBones',!scriptBonesIgnore.iceBones,this.id)" id="iceBonesIgnoreToggle">
  1052. <td style="padding-left: 10px;width: 5%;"><img src="images/iceBones.png" class="img-small"></td>
  1053. <td style="text-align: center;width: 40%">ICE BONES IGNORE</td>
  1054. </tr>
  1055. <tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptBonesIgnore','zombieBones',!scriptBonesIgnore.zombieBones,this.id)" id="zombieBonesIgnoreToggle">
  1056. <td style="padding-left: 10px;width: 5%;"><img src="images/zombieBones.png" class="img-small"></td>
  1057. <td style="text-align: center;width: 40%">ZOMBIE BONES IGNORE</td>
  1058. </tr>
  1059. <tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptBonesIgnore','bloodBones',!scriptBonesIgnore.bloodBones,this.id)" id="bloodBonesIgnoreToggle">
  1060. <td style="padding-left: 10px;width: 5%;"><img src="images/bloodBones.png" class="img-small"></td>
  1061. <td style="text-align: center;width: 40%">BLOOD BONES IGNORE</td>
  1062. </tr>
  1063. <tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptBonesIgnore','fishBones',!scriptBonesIgnore.fishBones,this.id)" id="fishBonesIgnoreToggle">
  1064. <td style="padding-left: 10px;width: 5%;"><img src="images/fishBones.png" class="img-small"></td>
  1065. <td style="text-align: center;width: 40%">FISH BONES IGNORE</td>
  1066. </tr>
  1067. </tbody>
  1068. </table>
  1069. </div>`
  1070.  
  1071. scriptConfSeedsTab.innerHTML= `<div id="tab-scriptConfigSeeds" style="display:none">
  1072. <div class="main-button-lighter">
  1073. <table>
  1074. <tbody>
  1075. <tr onclick="navigate('scriptConfigFarming');playPreviousMenuSound();" style="cursor: pointer;">
  1076. <td><img src="images/back.png" class="img-small"></td>
  1077. <td class="back-label">BACK</td>
  1078. </tr>
  1079. </tbody>
  1080. </table>
  1081. </div>
  1082. <table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  1083. <tbody>
  1084. <tr id="scriptSeedsInfo" style="color: white;">
  1085. <td style="padding-left: 10px;"></td>
  1086. <td style="text-align: center;padding-right:20px;width: 100%;">
  1087. <p>PRIORITY WILL BE DEFINED BASED ON THE POSITION OF THE SEED</p>
  1088. <p>DRAG AND DROP ONCE AFTER CHECKING BOXES</p>
  1089. </td>
  1090. </tr>
  1091. </tbody>
  1092. </table>
  1093. <ol id="sortableSeeds" style="list-style: none;padding: 0px;border: 1px solid grey;border-radius: 6px;margin: 10px;font-size: 25px;">
  1094. <li class="ui-state-default" value="redMushroomSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1095. <input type="checkbox" class="seed-checkbox"> Red Mushroom Seeds<img src="images/redMushroomSeeds.png" class="img-small" style="padding-right: 10px;">
  1096. </li>
  1097. <li class="ui-state-default" value="dottedGreenLeafSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1098. <input type="checkbox" class="seed-checkbox"> Dotted Green Leaf Seeds<img src="images/dottedGreenLeafSeeds.png" class="img-small" style="padding-right: 10px;">
  1099. </li>
  1100. <li class="ui-state-default" value="greenLeafSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1101. <input type="checkbox" class="seed-checkbox"> Green Leaf Seeds<img src="images/greenLeafSeeds.png" class="img-small" style="padding-right: 10px;">
  1102. </li>
  1103. <li class="ui-state-default" value="limeLeafSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1104. <input type="checkbox" class="seed-checkbox"> Lime Leaf Seeds<img src="images/limeLeafSeeds.png" class="img-small" style="padding-right: 10px;">
  1105. </li>
  1106. <li class="ui-state-default" value="goldLeafSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1107. <input type="checkbox" class="seed-checkbox"> Gold Leaf Seeds<img src="images/goldLeafSeeds.png" class="img-small" style="padding-right: 10px;">
  1108. </li>
  1109. <li class="ui-state-default" value="crystalLeafSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1110. <input type="checkbox" class="seed-checkbox"> Crystal Leaf Seeds<img src="images/crystalLeafSeeds.png" class="img-small" style="padding-right: 10px;">
  1111. </li>
  1112. <li class="ui-state-default" value="stripedGreenLeafSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1113. <input type="checkbox" class="seed-checkbox"> Striped Green Leaf Seeds<img src="images/stripedGreenLeafSeeds.png" class="img-small" style="padding-right: 10px;">
  1114. </li>
  1115. <li class="ui-state-default" value="stripedGoldLeafSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1116. <input type="checkbox" class="seed-checkbox"> Striped Gold Leaf Seeds<img src="images/stripedGoldLeafSeeds.png" class="img-small" style="padding-right: 10px;">
  1117. </li>
  1118. <li class="ui-state-default" value="stripedCrystalLeafSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1119. <input type="checkbox" class="seed-checkbox"> Striped Crystal Leaf Seeds<img src="images/stripedCrystalLeafSeeds.png" class="img-small" style="padding-right: 10px;">
  1120. </li>
  1121. <li class="ui-state-default" value="treeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1122. <input type="checkbox" class="seed-checkbox"> Tree Seeds<img src="images/treeSeeds.png" class="img-small" style="padding-right: 10px;">
  1123. </li>
  1124. <li class="ui-state-default" value="oakTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1125. <input type="checkbox" class="seed-checkbox"> Oak Tree Seeds<img src="images/oakTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  1126. </li>
  1127. <li class="ui-state-default" value="willowTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1128. <input type="checkbox" class="seed-checkbox"> Willow Tree Seeds<img src="images/willowTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  1129. </li>
  1130. <li class="ui-state-default" value="mapleTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1131. <input type="checkbox" class="seed-checkbox"> Maple Tree Seeds<img src="images/mapleTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  1132. </li>
  1133. <li class="ui-state-default" value="redwoodTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1134. <input type="checkbox" class="seed-checkbox"> Redwood Tree Seeds<img src="images/redwoodTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  1135. </li>
  1136. <li class="ui-state-default" value="pineTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1137. <input type="checkbox" class="seed-checkbox"> Pine Tree Seeds<img src="images/pineTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  1138. </li>
  1139. <li class="ui-state-default" value="hauntedTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1140. <input type="checkbox" class="seed-checkbox"> Haunted Tree Seeds<img src="images/hauntedTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  1141. </li>
  1142. <li class="ui-state-default" value="jungleTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1143. <input type="checkbox" class="seed-checkbox"> Jungle Tree Seeds<img src="images/jungleTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  1144. </li>
  1145. <li class="ui-state-default" value="lavaTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1146. <input type="checkbox" class="seed-checkbox"> Lava Tree Seeds<img src="images/lavaTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  1147. </li>
  1148. <li class="ui-state-default" value="goldTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1149. <input type="checkbox" class="seed-checkbox"> Gold Tree Seeds<img src="images/goldTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  1150. </li>
  1151. <li class="ui-state-default" value="magicTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1152. <input type="checkbox" class="seed-checkbox"> Magic Tree Seeds<img src="images/magicTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  1153. </li>
  1154. <li class="ui-state-default" value="appleTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1155. <input type="checkbox" class="seed-checkbox"> Apple Tree Seeds<img src="images/appleTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  1156. </li>
  1157. <li class="ui-state-default" value="cactusTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1158. <input type="checkbox" class="seed-checkbox"> Cactus Tree Seeds<img src="images/cactusTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  1159. </li>
  1160. <li class="ui-state-default" value="bananaTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1161. <input type="checkbox" class="seed-checkbox"> Banana Tree Seeds<img src="images/bananaTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  1162. </li>
  1163. <li class="ui-state-default" value="palmTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1164. <input type="checkbox" class="seed-checkbox"> Palm Tree Seeds<img src="images/palmTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  1165. </li>
  1166. <li class="ui-state-default" value="pineappleTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1167. <input type="checkbox" class="seed-checkbox"> Pineapple Tree Seeds<img src="images/pineappleTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  1168. </li>
  1169. <li class="ui-state-default" value="starfruitTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1170. <input type="checkbox" class="seed-checkbox"> Starfruit Tree Seeds<img src="images/starfruitTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  1171. </li>
  1172. <li class="ui-state-default" value="goldAppleTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1173. <input type="checkbox" class="seed-checkbox"> Gold Apple Tree Seeds<img src="images/goldAppleTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  1174. </li>
  1175. </ol>
  1176. </div>`
  1177.  
  1178. scriptConfBrewingTab.innerHTML= `<div id="tab-scriptConfigBrewing" style="display:none">
  1179. <div class="main-button-lighter">
  1180. <table>
  1181. <tbody>
  1182. <tr onclick="navigate('scriptConfig');playPreviousMenuSound();" style="cursor: pointer;">
  1183. <td><img src="images/back.png" class="img-small"></td>
  1184. <td class="back-label">BACK</td>
  1185. </tr>
  1186. </tbody>
  1187. </table>
  1188. </div>
  1189. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  1190. <tbody>
  1191. <tr id="scriptDrinkToggle" onclick="window.autoChangeVar2('toggleDrink',!toggleDrink,this.id)" style="cursor: pointer; color: red;">
  1192. <td style="padding-left: 10px;"><img src="images/diamondBrewingKit.png" class="img-small"></td>
  1193. <td style="text-align:right;padding-right:20px;width:100%">POTION DRINK</td>
  1194. </tr>
  1195. </tbody>
  1196. </table>
  1197. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  1198. <tbody>
  1199. <tr id="scriptBrewToggle" onclick="window.autoChangeVar2('toggleBrew',!toggleBrew,this.id)" style="cursor: pointer; color: red;">
  1200. <td style="padding-left: 10px;"><img src="images/goldLeaf.png" class="img-small"></td>
  1201. <td style="text-align:right;padding-right:20px;width:100%">POTION BREW</td>
  1202. </tr>
  1203. </tbody>
  1204. </table>
  1205. <table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;cursor: pointer;">
  1206. <tbody>
  1207. <tr id="scriptPotionToggleBar" onclick="navigate('scriptConfigPotions')" style="color: white;">
  1208. <td style="padding-left: 10px;"><img src="images/researchSpeedPotion.png" class="img-small"></td>
  1209. <td style="text-align:right;padding-right:20px;width:100%">POTION SELECTOR</td>
  1210. </tr>
  1211. </tbody>
  1212. </table>
  1213. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  1214. <tbody>
  1215. <tr id="scriptTreeUpgradeToggle" onclick="window.autoChangeVar2('toggleTreeUpgrade',!toggleTreeUpgrade,this.id)" style="cursor: pointer; color: red;">
  1216. <td style="padding-left: 10px;"><img src="images/woodcuttingUpgradePotion.png" class="img-small"></td>
  1217. <td style="text-align:right;padding-right:20px;width:100%">TREE UPGRADE POTION</td>
  1218. </tr>
  1219. </tbody>
  1220. </table>
  1221. <table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 20px;width: 97%;">
  1222. <tbody style="display: block;">
  1223. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeUpgrade','tree',!scriptTreeUpgrade.tree,this.id)" id="treeUpgradeToggle">
  1224. <td style="padding-left: 10px;width: 5%;"><img src="images/tree.png" class="img-small"></td>
  1225. <td style="text-align: center;width: 40%">TREE UPGRADE</td>
  1226. </tr>
  1227. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeUpgrade','oakTree',!scriptTreeUpgrade.oakTree,this.id)" id="oakTreeUpgradeToggle">
  1228. <td style="padding-left: 10px;width: 5%;"><img src="images/oakTree.png" class="img-small"></td>
  1229. <td style="text-align: center;width: 40%">OAK TREE UPGRADE</td>
  1230. </tr>
  1231. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeUpgrade','willowTree',!scriptTreeUpgrade.willowTree,this.id)" id="willowTreeUpgradeToggle">
  1232. <td style="padding-left: 10px;width: 5%;"><img src="images/willowTree.png" class="img-small"></td>
  1233. <td style="text-align: center;width: 40%">WILLOW TREE UPGRADE</td>
  1234. </tr>
  1235. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeUpgrade','mapleTree',!scriptTreeUpgrade.mapleTree,this.id)" id="mapleTreeUpgradeToggle">
  1236. <td style="padding-left: 10px;width: 5%;"><img src="images/mapleTree.png" class="img-small"></td>
  1237. <td style="text-align: center;width: 40%">MAPLE TREE UPGRADE</td>
  1238. </tr>
  1239. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeUpgrade','redwoodTree',!scriptTreeUpgrade.redwoodTree,this.id)" id="redwoodTreeUpgradeToggle">
  1240. <td style="padding-left: 10px;width: 5%;"><img src="images/redwoodTree.png" class="img-small"></td>
  1241. <td style="text-align: center;width: 40%">REDWOOD TREE UPGRADE</td>
  1242. </tr>
  1243. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeUpgrade','pineTree',!scriptTreeUpgrade.pineTree,this.id)" id="pineTreeUpgradeToggle">
  1244. <td style="padding-left: 10px;width: 5%;"><img src="images/pineTree.png" class="img-small"></td>
  1245. <td style="text-align: center;width: 40%">PINE TREE UPGRADE</td>
  1246. </tr>
  1247. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeUpgrade','hauntedTree',!scriptTreeUpgrade.hauntedTree,this.id)" id="hauntedTreeUpgradeToggle">
  1248. <td style="padding-left: 10px;width: 5%;"><img src="images/hauntedTree.png" class="img-small"></td>
  1249. <td style="text-align: center;width: 40%">HAUNTED TREE UPGRADE</td>
  1250. </tr>
  1251. <tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptTreeUpgrade','jungleTree',!scriptTreeUpgrade.jungleTree,this.id)" id="jungleTreeUpgradeToggle">
  1252. <td style="padding-left: 10px;width: 5%;"><img src="images/jungleTree.png" class="img-small"></td>
  1253. <td style="text-align: center;width: 40%">JUNGLE TREE UPGRADE</td>
  1254. </tr>
  1255. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeUpgrade','lavaTree',!scriptTreeUpgrade.lavaTree,this.id)" id="lavaTreeUpgradeToggle">
  1256. <td style="padding-left: 10px;width: 5%;"><img src="images/lavaTree.png" class="img-small"></td>
  1257. <td style="text-align: center;width: 40%">LAVA TREE UPGRADE</td>
  1258. </tr>
  1259. <tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptTreeUpgrade','goldTree',!scriptTreeUpgrade.goldTree,this.id)" id="goldTreeUpgradeToggle">
  1260. <td style="padding-left: 10px;width: 5%;"><img src="images/goldTree.png" class="img-small"></td>
  1261. <td style="text-align: center;width: 40%">GOLD TREE UPGRADE</td>
  1262. </tr>
  1263. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeUpgrade','magicTree',!scriptTreeUpgrade.magicTree,this.id)" id="magicTreeUpgradeToggle">
  1264. <td style="padding-left: 10px;width: 5%;"><img src="images/magicTree.png" class="img-small"></td>
  1265. <td style="text-align: center;width: 40%">MAGIC TREE UPGRADE</td>
  1266. </tr>
  1267. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeUpgrade','appleTree',!scriptTreeUpgrade.appleTree,this.id)" id="appleTreeUpgradeToggle">
  1268. <td style="padding-left: 10px;width: 5%;"><img src="images/appleTree.png" class="img-small"></td>
  1269. <td style="text-align: center;width: 40%">APPLE TREE UPGRADE</td>
  1270. </tr>
  1271. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeUpgrade','cactusTree',!scriptTreeUpgrade.cactusTree,this.id)" id="cactusTreeUpgradeToggle">
  1272. <td style="padding-left: 10px;width: 5%;"><img src="images/cactusTree.png" class="img-small"></td>
  1273. <td style="text-align: center;width: 40%">CACTUS TREE UPGRADE</td>
  1274. </tr>
  1275. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeUpgrade','bananaTree',!scriptTreeUpgrade.bananaTree,this.id)" id="bananaTreeUpgradeToggle">
  1276. <td style="padding-left: 10px;width: 5%;"><img src="images/bananaTree.png" class="img-small"></td>
  1277. <td style="text-align: center;width: 40%">BANANA TREE UPGRADE</td>
  1278. </tr>
  1279. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeUpgrade','palmTree',!scriptTreeUpgrade.palmTree,this.id)" id="palmTreeUpgradeToggle">
  1280. <td style="padding-left: 10px;width: 5%;"><img src="images/palmTree.png" class="img-small"></td>
  1281. <td style="text-align: center;width: 40%">PALM TREE UPGRADE</td>
  1282. </tr>
  1283. <tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptTreeUpgrade','pineappleTree',!scriptTreeUpgrade.pineappleTree,this.id)" id="pineappleTreeUpgradeToggle">
  1284. <td style="padding-left: 10px;width: 5%;"><img src="images/pineappleTree.png" class="img-small"></td>
  1285. <td style="text-align: center;width: 40%">PINEAPPLE TREE UPGRADE</td>
  1286. </tr>
  1287. <tr style="color: red;" onclick="window.autoChangeObject2('scriptTreeUpgrade','starfuitTree',!scriptTreeUpgrade.starfuitTree,this.id)" id="starfruitTreeUpgradeToggle">
  1288. <td style="padding-left: 10px;width: 5%;"><img src="images/starfruitTree.png" class="img-small"></td>
  1289. <td style="text-align: center;">STARFRUIT TREE UPGRADE</td>
  1290. </tr>
  1291. </tbody>
  1292. </table>
  1293. </div>`
  1294.  
  1295. scriptConfPotionsTab.innerHTML= `<div id="tab-scriptConfigPotions" style="display:none">
  1296. <div class="main-button-lighter">
  1297. <table>
  1298. <tbody>
  1299. <tr onclick="navigate('scriptConfigBrewing');playPreviousMenuSound();" style="cursor: pointer;">
  1300. <td><img src="images/back.png" class="img-small"></td>
  1301. <td class="back-label">BACK</td>
  1302. </tr>
  1303. </tbody>
  1304. </table>
  1305. </div>
  1306. <table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  1307. <tbody>
  1308. <tr id="scriptPotionsInfo" style="color: white;">
  1309. <td style="padding-left: 10px;"></td>
  1310. <td style="text-align: center;padding-right:20px;width: 100%;">IT WILL ONLY BREW IF DRINK IS ALSO SELECTED AND DOES NOT CHECK THE INGREDIENTS</td>
  1311. </tr>
  1312. </tbody>
  1313. </table>
  1314. <div class="ui-state-default" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;margin: 10px;font-size: 25px;">
  1315. <p style="
  1316. margin-top: 0px;
  1317. margin-bottom: 0px;
  1318. padding-left: 10px;
  1319. ">DRINK</p>
  1320. <p style="
  1321. margin-top: 0px;
  1322. margin-bottom: 0px;
  1323. padding-left: 0px;
  1324. padding-right: 10px;
  1325. ">BREW</p>
  1326. </div>
  1327. <ol id="sortablePotions" style="list-style: none;padding: 0px;border: 1px solid grey;border-radius: 6px;margin: 10px;font-size: 25px;">
  1328. <li class="ui-state-default" value="furnaceSpeedPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1329. <input type="checkbox" class="drink-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">FURNACE SPEED POTION<img src="images/furnaceSpeedPotion.png" class="img-small" style="padding-right: 10px;"><input type="checkbox" class="brew-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">
  1330. </li>
  1331. <li class="ui-state-default" value="seedFinderPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1332. <input type="checkbox" class="drink-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">SEED FINDER POTION<img src="images/seedFinderPotion.png" class="img-small" style="padding-right: 10px;"><input type="checkbox" class="brew-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">
  1333. </li>
  1334. <li class="ui-state-default" value="compostPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1335. <input type="checkbox" class="drink-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">COMPOST POTION<img src="images/compostPotion.png" class="img-small" style="padding-right: 10px;"><input type="checkbox" class="brew-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">
  1336. </li>
  1337. <li class="ui-state-default" value="treeCompostPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1338. <input type="checkbox" class="drink-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">TREE COMPOST POTION<img src="images/treeCompostPotion.png" class="img-small" style="padding-right: 10px;"><input type="checkbox" class="brew-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">
  1339. </li>
  1340. <li class="ui-state-default" value="fishingSpeedPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1341. <input type="checkbox" class="drink-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">FISHING SPEED POTION<img src="images/fishingSpeedPotion.png" class="img-small" style="padding-right: 10px;"><input type="checkbox" class="brew-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">
  1342. </li>
  1343. <li class="ui-state-default" value="woodcuttingXpPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1344. <input type="checkbox" class="drink-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">WOODCUTTING XP POTION<img src="images/woodcuttingXpPotion.png" class="img-small" style="padding-right: 10px;"><input type="checkbox" class="brew-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">
  1345. </li>
  1346. <li class="ui-state-default" value="exploringSpeedPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1347. <input type="checkbox" class="drink-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">EXPLORER SPEED POTION<img src="images/exploringSpeedPotion.png" class="img-small" style="padding-right: 10px;"><input type="checkbox" class="brew-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">
  1348. </li>
  1349. <li class="ui-state-default" value="baitPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1350. <input type="checkbox" class="drink-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">BAIT POTION<img src="images/baitPotion.png" class="img-small" style="padding-right: 10px;"><input type="checkbox" class="brew-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">
  1351. </li>
  1352. <li class="ui-state-default" value="farmingXpPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1353. <input type="checkbox" class="drink-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">FARMING XP POTION<img src="images/farmingXpPotion.png" class="img-small" style="padding-right: 10px;"><input type="checkbox" class="brew-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">
  1354. </li>
  1355. <li class="ui-state-default" value="fastCompostPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1356. <input type="checkbox" class="drink-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">FAST COMPOST POTION<img src="images/fastCompostPotion.png" class="img-small" style="padding-right: 10px;"><input type="checkbox" class="brew-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">
  1357. </li>
  1358. <li class="ui-state-default" value="oilPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1359. <input type="checkbox" class="drink-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">OIL POTION<img src="images/oilPotion.png" class="img-small" style="padding-right: 10px;"><input type="checkbox" class="brew-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">
  1360. </li>
  1361. <li class="ui-state-default" value="coinPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1362. <input type="checkbox" class="drink-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">COIN POTION<img src="images/coinPotion.png" class="img-small" style="padding-right: 10px;"><input type="checkbox" class="brew-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">
  1363. </li>
  1364. <li class="ui-state-default" value="piratesPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1365. <input type="checkbox" class="drink-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">PIRATES POTION<img src="images/piratesPotion.png" class="img-small" style="padding-right: 10px;"><input type="checkbox" class="brew-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">
  1366. </li>
  1367. <li class="ui-state-default" value="promethiumPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1368. <input type="checkbox" class="drink-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">PROMETHIUM POTION<img src="images/promethiumPotion.png" class="img-small" style="padding-right: 10px;"><input type="checkbox" class="brew-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">
  1369. </li>
  1370. <li class="ui-state-default" value="rocketSpeedPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1371. <input type="checkbox" class="drink-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">ROCKET SPEED POTION<img src="images/rocketSpeedPotion.png" class="img-small" style="padding-right: 10px;"><input type="checkbox" class="brew-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">
  1372. </li>
  1373. <li class="ui-state-default" value="fruitTreePotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1374. <input type="checkbox" class="drink-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">FRUIT TREE POTION<img src="images/fruitTreePotion.png" class="img-small" style="padding-right: 10px;"><input type="checkbox" class="brew-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">
  1375. </li>
  1376. <li class="ui-state-default" value="titaniumPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1377. <input type="checkbox" class="drink-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">TITANIUM POTION<img src="images/titaniumPotion.png" class="img-small" style="padding-right: 10px;"><input type="checkbox" class="brew-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">
  1378. </li>
  1379. <li class="ui-state-default" value="researchSpeedPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1380. <input type="checkbox" class="drink-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">RESEARCH SPEED POTION<img src="images/researchSpeedPotion.png" class="img-small" style="padding-right: 10px;"><input type="checkbox" class="brew-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">
  1381. </li>
  1382. <li class="ui-state-default" value="superRocketSpeedPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  1383. <input type="checkbox" class="drink-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">SUPER ROCKET SPEED POTION<img src="images/superRocketSpeedPotion.png" class="img-small" style="padding-right: 10px;"><input type="checkbox" class="brew-checkbox" style="margin-right: 30px;" onchange="window.savePotions2()">
  1384. </li>
  1385. </ol>
  1386. </div>`
  1387.  
  1388. scriptConfExploringTab.innerHTML= `<div id="tab-scriptConfigExploring" style="display:none">
  1389. <div class="main-button-lighter">
  1390. <table>
  1391. <tbody>
  1392. <tr onclick="navigate('scriptConfig');playPreviousMenuSound();" style="cursor: pointer;">
  1393. <td><img src="images/back.png" class="img-small"></td>
  1394. <td class="back-label">BACK</td>
  1395. </tr>
  1396. </tbody>
  1397. </table>
  1398. </div>
  1399. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  1400. <tbody>
  1401. <tr id="scriptExploreToggle" onclick="window.autoChangeVar2('toggleExplore',!toggleExplore,this.id)" style="cursor: pointer; color: red;">
  1402. <td style="padding-left: 10px;"><img src="images/explorer.png" class="img-small"></td>
  1403. <td style="text-align:right;padding-right:20px;width:100%">EXPLORER</td>
  1404. </tr>
  1405. </tbody>
  1406. </table>
  1407. <table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  1408. <tbody>
  1409. <tr id="scriptExplorerArea" style="color: white;">
  1410. <td style="padding-left: 10px;"><img src="images/caves.png" class="img-small"></td>
  1411. <td style="padding-left: 50px;">
  1412. <select name="scriptAreaOptions" onchange="window.autoChangeVar2('scriptArea',this.value);window.monsterOptions2(this.value);window.autoChangeVar2('scriptMonster',document.getElementById('scriptMonsterOptions').value)" id="scriptAreaOptions">
  1413. <option value="fields">Fields</option>
  1414. <option value="forests">Forests</option>
  1415. <option value="caves">Caves</option>
  1416. <option value="volcano">Volcano</option>
  1417. <option value="northernFields">Northern Fields</option>
  1418. <option value="hauntedMansion">Haunted Mansion</option>
  1419. <option value="desert">Desert</option>
  1420. <option value="ocean">Ocean</option>
  1421. <option value="jungle">Jungle</option>
  1422. <option value="dungeonEntrance">Dungeon Entrance</option>
  1423. <option value="dungeon">Dungeon</option>
  1424. <option value="castle">Castle</option>
  1425. <option value="cemetery">Cemetery</option>
  1426. <option value="factory">Factory</option>
  1427. <option value="hauntedWoods">Haunted Woods</option>
  1428. <option value="deepOcean">Deep Ocean</option>
  1429. </select>
  1430. </td>
  1431. <td style="text-align:right;padding-right:20px;width:100%">EXPLORER AREA</td>
  1432. </tr>
  1433. </tbody>
  1434. </table>
  1435. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  1436. <tbody>
  1437. <tr id="scriptFightToggle" onclick="window.autoChangeVar2('toggleFight',!toggleFight,this.id)" style="cursor: pointer; color: red;">
  1438. <td style="padding-left: 10px;"><img src="images/combat.png" class="img-small"></td>
  1439. <td style="text-align:right;padding-right:20px;width:100%">FIGHT</td>
  1440. </tr>
  1441. </tbody>
  1442. </table>
  1443. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  1444. <tbody>
  1445. <tr id="scriptResetToggle" onclick="window.autoChangeVar2('toggleResetFight',!toggleResetFight,this.id)" style="cursor: pointer; color: red;">
  1446. <td style="padding-left: 10px;"><img src="images/resetFightingPotion.png" class="img-small"></td>
  1447. <td style="text-align:right;padding-right:20px;width:100%">RESET POTION</td>
  1448. </tr>
  1449. </tbody>
  1450. </table>
  1451. <table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 20px;width: 97%;">
  1452. <tbody>
  1453. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptResetArea','fields',!scriptResetArea.fields,this.id)" id="fieldsResetToggle">
  1454. <td style="padding-left: 10px;width: 5%;"><img src="images/fields.png" class="img-small"></td>
  1455. <td style="text-align: center;width: 40%">Fields</td>
  1456. </tr>
  1457. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptResetArea','forests',!scriptResetArea.forests,this.id)" id="forestsResetToggle">
  1458. <td style="padding-left: 10px;width: 5%;"><img src="images/forests.png" class="img-small"></td>
  1459. <td style="text-align: center;width: 40%">Forests</td>
  1460. </tr>
  1461. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptResetArea','caves',!scriptResetArea.caves,this.id)" id="cavesResetToggle">
  1462. <td style="padding-left: 10px;width: 5%;"><img src="images/caves.png" class="img-small"></td>
  1463. <td style="text-align: center;width: 40%">Caves</td>
  1464. </tr>
  1465. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptResetArea','volcano',!scriptResetArea.volcano,this.id)" id="volcanoResetToggle">
  1466. <td style="padding-left: 10px;width: 5%;"><img src="images/volcano.png" class="img-small"></td>
  1467. <td style="text-align: center;width: 40%">Volcano</td>
  1468. </tr>
  1469. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptResetArea','northernFields',!scriptResetArea.northernFields,this.id)" id="northernFieldsResetToggle">
  1470. <td style="padding-left: 10px;width: 5%;"><img src="images/northernFields.png" class="img-small"></td>
  1471. <td style="text-align: center;width: 40%">Northern Fields</td>
  1472. </tr>
  1473. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptResetArea','hauntedMansion',!scriptResetArea.hauntedMansion,this.id)" id="hauntedMansionResetToggle">
  1474. <td style="padding-left: 10px;width: 5%;"><img src="images/hauntedMansion.png" class="img-small"></td>
  1475. <td style="text-align: center;width: 40%">Haunted Mansion</td>
  1476. </tr>
  1477. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptResetArea','desert',!scriptResetArea.desert,this.id)" id="desertResetToggle">
  1478. <td style="padding-left: 10px;width: 5%;"><img src="images/desert.png" class="img-small"></td>
  1479. <td style="text-align: center;width: 40%">Desert</td>
  1480. </tr>
  1481. <tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptResetArea','ocean',!scriptResetArea.ocean,this.id)" id="oceanResetToggle">
  1482. <td style="padding-left: 10px;width: 5%;"><img src="images/ocean.png" class="img-small"></td>
  1483. <td style="text-align: center;width: 40%">Ocean</td>
  1484. </tr>
  1485. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptResetArea','jungle',!scriptResetArea.jungle,this.id)" id="jungleResetToggle">
  1486. <td style="padding-left: 10px;width: 5%;"><img src="images/jungle.png" class="img-small"></td>
  1487. <td style="text-align: center;width: 40%">Jungle</td>
  1488. </tr>
  1489. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptResetArea','dungeonEntrance',!scriptResetArea.dungeonEntrance,this.id)" id="dungeonEntranceResetToggle">
  1490. <td style="padding-left: 10px;width: 5%;"><img src="images/dungeonEntrance.png" class="img-small"></td>
  1491. <td style="text-align: center;width: 40%">Dungeon Entrance</td>
  1492. </tr>
  1493. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptResetArea','dungeon',!scriptResetArea.dungeon,this.id)" id="dungeonResetToggle">
  1494. <td style="padding-left: 10px;width: 5%;"><img src="images/dungeon.png" class="img-small"></td>
  1495. <td style="text-align: center;width: 40%">Dungeon</td>
  1496. </tr>
  1497. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptResetArea','castle',!scriptResetArea.castle,this.id)" id="castleResetToggle">
  1498. <td style="padding-left: 10px;width: 5%;"><img src="images/castle.png" class="img-small"></td>
  1499. <td style="text-align: center;width: 40%">Castle</td>
  1500. </tr>
  1501. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptResetArea','cemetery',!scriptResetArea.cemetery,this.id)" id="cemeteryResetToggle">
  1502. <td style="padding-left: 10px;width: 5%;"><img src="images/cemetery.png" class="img-small"></td>
  1503. <td style="text-align: center;width: 40%">Cemetery</td>
  1504. </tr>
  1505. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptResetArea','factory',!scriptResetArea.factory,this.id)" id="factoryResetToggle">
  1506. <td style="padding-left: 10px;width: 5%;"><img src="images/factory.png" class="img-small"></td>
  1507. <td style="text-align: center;width: 40%">Factory</td>
  1508. </tr>
  1509. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptResetArea','hauntedWoods',!scriptResetArea.hauntedWoods,this.id)" id="hauntedWoodsResetToggle">
  1510. <td style="padding-left: 10px;width: 5%;"><img src="images/hauntedWoods.png" class="img-small"></td>
  1511. <td style="text-align: center;width: 40%">Haunted Woods</td>
  1512. </tr>
  1513. <tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptResetArea','deepOcean',!scriptResetArea.deepOcean,this.id)" id="deepOceanResetToggle">
  1514. <td style="padding-left: 10px;width: 5%;"><img src="images/deepOcean.png" class="img-small"></td>
  1515. <td style="text-align: center;width: 40%">Deep Ocean</td>
  1516. </tr>
  1517. </tbody>
  1518. </table>
  1519. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  1520. <tbody>
  1521. <tr id="scriptMonsterFindToggle" onclick="window.autoChangeVar2('toggleMonsterFind',!toggleMonsterFind,this.id)" style="cursor: pointer; color: green;">
  1522. <td style="padding-left: 10px;"><img src="images/skeletonMonster.png" class="img-small"></td>
  1523. <td style="text-align:right;padding-right:20px;width:100%">SEARCH FOR MONSTER</td>
  1524. </tr>
  1525. </tbody>
  1526. </table>
  1527. <table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  1528. <tbody>
  1529. <tr id="scriptExplorerArea" style="color: white;">
  1530. <td style="padding-left: 10px;"><img src="images/exploringSkill.png" class="img-small"></td>
  1531. <td style="padding-left: 50px;"><select name="scriptMonsterOptions" onchange="window.autoChangeVar2('scriptMonster',this.value)" id="scriptMonsterOptions">
  1532. </select>
  1533. </td>
  1534. <td style="text-align:right;padding-right:20px;width:100%">MONSTER TO SEARCH</td>
  1535. </tr>
  1536. </tbody>
  1537. </table>
  1538. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  1539. <tbody>
  1540. <tr id="scriptShinyToggle" onclick="window.autoChangeVar2('toggleShiny',!toggleShiny,this.id)" style="cursor: pointer; color: red;">
  1541. <td style="padding-left: 10px;"><img src="images/shiny.gif" class="img-small"></td>
  1542. <td style="text-align:right;padding-right:20px;width:100%">SHINY/GEM GOBLIN HUNT</td>
  1543. </tr>
  1544. </tbody>
  1545. </table>
  1546. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  1547. <tbody>
  1548. <tr id="scriptSpellToggle" onclick="window.autoChangeVar2('toggleSpell',!toggleSpell,this.id)" style="cursor: pointer; color: red;">
  1549. <td style="padding-left: 10px;"><img src="images/fireSpell.png" class="img-small"></td>
  1550. <td style="text-align:right;padding-right:20px;width:100%">SPELL</td>
  1551. </tr>
  1552. </tbody>
  1553. </table>
  1554. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  1555. <tbody>
  1556. <tr id="scriptCombatPotionToggle" onclick="window.autoChangeVar2('toggleCombatPotion',!toggleCombatPotion,this.id)" style="cursor: pointer; color: red;">
  1557. <td style="padding-left: 10px;"><img src="images/ghostScanCombatPotion.png" class="img-small"></td>
  1558. <td style="text-align:right;padding-right:20px;width:100%">COMBAT POTION</td>
  1559. </tr>
  1560. </tbody>
  1561. </table>
  1562. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  1563. <tbody>
  1564. <tr id="scriptHealToggle" onclick="window.autoChangeVar2('toggleHeal',!toggleHeal,this.id)" style="cursor: pointer; color: red;">
  1565. <td style="padding-left: 10px;"><img src="images/autoTickHeal.png" class="img-small"></td>
  1566. <td style="text-align:right;padding-right:20px;width:100%">TICK HEAL</td>
  1567. </tr>
  1568. </tbody>
  1569. </table>
  1570. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  1571. <tbody>
  1572. <tr id="scriptCousinToggle" onclick="window.autoChangeVar2('toggleCousin',!toggleCousin,this.id)" style="cursor: pointer; color: red;">
  1573. <td style="padding-left: 10px;"><img src="images/goblinCousin.png" class="img-small"></td>
  1574. <td style="text-align:right;padding-right:20px;width:100%">GOBLIN COUSIN</td>
  1575. </tr>
  1576. </tbody>
  1577. </table>
  1578. <table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  1579. <tbody>
  1580. <tr id="scriptCousinArea" style="color: white;">
  1581. <td style="padding-left: 10px;"><img src="images/fields.png" class="img-small"></td>
  1582. <td style="padding-left: 50px;">
  1583. <select name="scriptCousinAreaOptions" onchange="window.autoChangeVar2('scriptCousinArea',this.value)" id="scriptCousinAreaOptions">
  1584. <option value="fields">Fields</option>
  1585. <option value="forests">Forests</option>
  1586. <option value="caves">Caves</option>
  1587. <option value="volcano">Volcano</option>
  1588. <option value="northernFields">Northern Fields</option>
  1589. <option value="hauntedMansion">Haunted Mansion</option>
  1590. <option value="desert">Desert</option>
  1591. <option value="ocean">Ocean</option>
  1592. <option value="jungle">Jungle</option>
  1593. <option value="dungeonEntrance">Dungeon Entrance</option>
  1594. <option value="dungeon">Dungeon</option>
  1595. <option value="castle">Castle</option>
  1596. <option value="cemetery">Cemetery</option>
  1597. <option value="factory">Factory</option>
  1598. <option value="hauntedWoods">Haunted Woods</option>
  1599. <option value="deepOcean">Deep Ocean</option>
  1600. </select>
  1601. </td>
  1602. <td style="text-align:right;padding-right:20px;width:100%">COUSIN AREA</td>
  1603. </tr>
  1604. </tbody>
  1605. </table>
  1606. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  1607. <tbody>
  1608. <tr id="scriptBagsToggle" onclick="window.autoChangeVar2('toggleBags',!toggleBags,this.id)" style="cursor: pointer; color: red;">
  1609. <td style="padding-left: 10px;"><img src="images/fieldsLoot.png" class="img-small"></td>
  1610. <td style="text-align:right;padding-right:20px;width:100%">BAGS OPENING</td>
  1611. </tr>
  1612. </tbody>
  1613. </table>
  1614. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  1615. <tbody>
  1616. <tr id="scriptStatueToggle" onclick="window.autoChangeVar2('toggleStatue',!toggleStatue,this.id)" style="cursor: pointer; color: red;">
  1617. <td style="padding-left: 10px;"><img src="images/bronzeStatueMetalDetector.png" class="img-small"></td>
  1618. <td style="text-align:right;padding-right:20px;width:100%">STATUE SELL</td>
  1619. </tr>
  1620. </tbody>
  1621. </table>
  1622. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  1623. <tbody>
  1624. <tr id="scriptArtifactToggle" onclick="window.autoChangeVar2('toggleArtifact',!toggleArtifact,this.id)" style="cursor: pointer; color: red;">
  1625. <td style="padding-left: 10px;"><img src="images/skullArtifact.png" class="img-small"></td>
  1626. <td style="text-align:right;padding-right:20px;width:100%">ARTIFACT CONVERT</td>
  1627. </tr>
  1628. </tbody>
  1629. </table>
  1630. </div>`
  1631.  
  1632. scriptConfCookingTab.innerHTML= `<div id="tab-scriptConfigCooking" style="display:none">
  1633. <div class="main-button-lighter">
  1634. <table>
  1635. <tbody>
  1636. <tr onclick="navigate('scriptConfig');playPreviousMenuSound();" style="cursor: pointer;">
  1637. <td><img src="images/back.png" class="img-small"></td>
  1638. <td class="back-label">BACK</td>
  1639. </tr>
  1640. </tbody>
  1641. </table>
  1642. </div>
  1643. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;">
  1644. <tbody>
  1645. <tr id="scriptBoatToggle" onclick="window.autoChangeVar2('toggleBoat',!toggleBoat,this.id)" style="cursor: pointer; color: green;">
  1646. <td style="padding-left: 10px;"><img src="images/sailBoat.png" class="img-small"></td>
  1647. <td style="text-align:right;padding-right:20px;width:100%">BOAT</td>
  1648. </tr>
  1649. </tbody>
  1650. </table>
  1651. <table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 20px;width: 97%;">
  1652. <tbody style="display: block;">
  1653. <tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptBoatSend','rowBoat',!scriptBoatSend.rowBoat,this.id)" id="rowBoatSendToggle">
  1654. <td style="padding-left: 10px;width: 5%;"><img src="images/rowBoat.png" class="img-small"></td>
  1655. <td style="text-align: center;width: 40%">ROW BOAT</td>
  1656. </tr>
  1657. <tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptBoatSend','canoeBoat',!scriptBoatSend.canoeBoat,this.id)" id="canoeBoatSendToggle">
  1658. <td style="padding-left: 10px;width: 5%;"><img src="images/canoeBoat.png" class="img-small"></td>
  1659. <td style="text-align: center;width: 40%">CANOE</td>
  1660. </tr>
  1661. <tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptBoatSend','sailBoat',!scriptBoatSend.sailBoat,this.id)" id="sailBoatSendToggle">
  1662. <td style="padding-left: 10px;width: 5%;"><img src="images/sailBoat.png" class="img-small"></td>
  1663. <td style="text-align: center;width: 40%">SAIL BOAT</td>
  1664. </tr>
  1665. <tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptBoatSend','highWind',!scriptBoatSend.highWind,this.id)" id="highWindSendToggle">
  1666. <td style="padding-left: 10px;width: 5%;"><img src="images/windIcon.png" class="img-small"></td>
  1667. <td style="text-align: center;width: 40%">WAIT HIGH WIND</td>
  1668. </tr>
  1669. <tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptBoatSend','steamBoat',!scriptBoatSend.steamBoat,this.id)" id="steamBoatSendToggle">
  1670. <td style="padding-left: 10px;width: 5%;"><img src="images/steamBoat.png" class="img-small"></td>
  1671. <td style="text-align: center;width: 40%">STEAM BOAT</td>
  1672. </tr>
  1673. <tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptBoatSend','trawler',!scriptBoatSend.trawler,this.id)" id="trawlerSendToggle">
  1674. <td style="padding-left: 10px;width: 5%;"><img src="images/trawler.png" class="img-small"></td>
  1675. <td style="text-align: center;width: 40%">TRAWLER</td>
  1676. </tr>
  1677. </tbody>
  1678. </table>
  1679. </div>`;
  1680. gameScreen.insertBefore(scriptConfTab,logoutTab);
  1681. gameScreen.insertBefore(scriptConfMiningTab,logoutTab);
  1682. gameScreen.insertBefore(scriptConfCraftingTab,logoutTab);
  1683. gameScreen.insertBefore(scriptConfWoodcuttingTab,logoutTab);
  1684. gameScreen.insertBefore(scriptConfFarmingTab,logoutTab);
  1685. gameScreen.insertBefore(scriptConfSeedsTab,logoutTab);
  1686. gameScreen.insertBefore(scriptConfBrewingTab,logoutTab);
  1687. gameScreen.insertBefore(scriptConfPotionsTab,logoutTab);
  1688. gameScreen.insertBefore(scriptConfExploringTab,logoutTab);
  1689. gameScreen.insertBefore(scriptConfCookingTab,logoutTab);
  1690. gameScreen.insertBefore(chatDiv,logoutTab);
  1691. }
  1692.  
  1693. function scriptStyleTabs() {
  1694. document.getElementById('scriptGlobalToggle').style.color = toggleGlobal ? 'green' : 'red';
  1695. document.getElementById('scriptGlobalToggleLoad').style.color = toggleGlobalLoad ? 'green' : 'red';
  1696. document.getElementById('scriptGeodeToggle').style.color = toggleGeodeOpen ? 'green' : 'red';
  1697. document.getElementById('scriptMineralToggle').style.color = toggleMineralIdentify ? 'green' : 'red';
  1698. document.getElementById('scriptNecklaceToggle').style.color = toggleNecklaceCharge ? 'green' : 'red';
  1699. document.getElementById('scriptTrainToggle').style.color = toggleTrain ? 'green' : 'red';
  1700. document.getElementById('scriptTrainAmount').value = scriptTrainAmount;
  1701. document.getElementById('scriptRocketToggle').style.color = toggleRocket ? 'green' : 'red';
  1702. document.getElementById('scriptRocketDestination').value = scriptRocket;
  1703. document.getElementById('scriptSmeltingToggle').style.color = toggleSmelting ? 'green' : 'red';
  1704. document.getElementById('scriptRefinaryToggle').style.color = toggleRefinary ? 'green' : 'red';
  1705. document.getElementById('scriptRefinaryOptions').value = scriptRefinaryBar;
  1706. document.getElementById('scriptFoundryToggle').style.color = toggleCharcoal ? 'green' : 'red';
  1707. document.getElementById('scriptFoundryWoodOptions').value = scriptFoundryWood;
  1708. document.getElementById('scriptLumberToggle').style.color = toggleWoodcutting ? 'green' : 'red';
  1709. document.getElementById('treeIgnoreToggle').style.color = scriptTreeIgnore.tree ? 'green' : 'red';
  1710. document.getElementById('oakTreeIgnoreToggle').style.color = scriptTreeIgnore.oakTree ? 'green' : 'red';
  1711. document.getElementById('willowTreeIgnoreToggle').style.color = scriptTreeIgnore.willowTree ? 'green' : 'red';
  1712. document.getElementById('mapleTreeIgnoreToggle').style.color = scriptTreeIgnore.mapleTree ? 'green' : 'red';
  1713. document.getElementById('redwoodTreeIgnoreToggle').style.color = scriptTreeIgnore.redwoodTree ? 'green' : 'red';
  1714. document.getElementById('pineTreeIgnoreToggle').style.color = scriptTreeIgnore.pineTree ? 'green' : 'red';
  1715. document.getElementById('hauntedTreeIgnoreToggle').style.color = scriptTreeIgnore.hauntedTree ? 'green' : 'red';
  1716. document.getElementById('jungleTreeIgnoreToggle').style.color = scriptTreeIgnore.jungleTree ? 'green' : 'red';
  1717. document.getElementById('lavaTreeIgnoreToggle').style.color = scriptTreeIgnore.lavaTree ? 'green' : 'red';
  1718. document.getElementById('goldTreeIgnoreToggle').style.color = scriptTreeIgnore.goldTree ? 'green' : 'red';
  1719. document.getElementById('magicTreeIgnoreToggle').style.color = scriptTreeIgnore.magicTree ? 'green' : 'red';
  1720. document.getElementById('appleTreeIgnoreToggle').style.color = scriptTreeIgnore.appleTree ? 'green' : 'red';
  1721. document.getElementById('cactusTreeIgnoreToggle').style.color = scriptTreeIgnore.cactusTree ? 'green' : 'red';
  1722. document.getElementById('bananaTreeIgnoreToggle').style.color = scriptTreeIgnore.bananaTree ? 'green' : 'red';
  1723. document.getElementById('palmTreeIgnoreToggle').style.color = scriptTreeIgnore.palmTree ? 'green' : 'red';
  1724. document.getElementById('pineappleTreeIgnoreToggle').style.color = scriptTreeIgnore.pineappleTree ? 'green' : 'red';
  1725. document.getElementById('starfruitTreeIgnoreToggle').style.color = scriptTreeIgnore.starfruitTree ? 'green' : 'red';
  1726. document.getElementById('scriptFarmingToggle').style.color = toggleFarming ? 'green' : 'red';
  1727. document.getElementById('scriptBonesToggle').style.color = toggleBones ? 'green' : 'red';
  1728. document.getElementById('bonesIgnoreToggle').style.color = scriptBonesIgnore.bones ? 'green' : 'red';
  1729. document.getElementById('ashesIgnoreToggle').style.color = scriptBonesIgnore.ashes ? 'green' : 'red';
  1730. document.getElementById('iceBonesIgnoreToggle').style.color = scriptBonesIgnore.iceBones ? 'green' : 'red';
  1731. document.getElementById('zombieBonesIgnoreToggle').style.color = scriptBonesIgnore.zombieBones ? 'green' : 'red';
  1732. document.getElementById('bloodBonesIgnoreToggle').style.color = scriptBonesIgnore.bloodBones ? 'green' : 'red';
  1733. document.getElementById('fishBonesIgnoreToggle').style.color = scriptBonesIgnore.fishBones ? 'green' : 'red';
  1734. document.getElementById('scriptDrinkToggle').style.color = toggleDrink ? 'green' : 'red';
  1735. document.getElementById('scriptBrewToggle').style.color = toggleBrew ? 'green' : 'red';
  1736. document.getElementById('treeUpgradeToggle').style.color = scriptTreeUpgrade.tree ? 'green' : 'red';
  1737. document.getElementById('oakTreeUpgradeToggle').style.color = scriptTreeUpgrade.oakTree ? 'green' : 'red';
  1738. document.getElementById('willowTreeUpgradeToggle').style.color = scriptTreeUpgrade.willowTree ? 'green' : 'red';
  1739. document.getElementById('mapleTreeUpgradeToggle').style.color = scriptTreeUpgrade.mapleTree ? 'green' : 'red';
  1740. document.getElementById('redwoodTreeUpgradeToggle').style.color = scriptTreeUpgrade.redwoodTree ? 'green' : 'red';
  1741. document.getElementById('pineTreeUpgradeToggle').style.color = scriptTreeUpgrade.pineTree ? 'green' : 'red';
  1742. document.getElementById('hauntedTreeUpgradeToggle').style.color = scriptTreeUpgrade.hauntedTree ? 'green' : 'red';
  1743. document.getElementById('jungleTreeUpgradeToggle').style.color = scriptTreeUpgrade.jungleTree ? 'green' : 'red';
  1744. document.getElementById('lavaTreeUpgradeToggle').style.color = scriptTreeUpgrade.lavaTree ? 'green' : 'red';
  1745. document.getElementById('goldTreeUpgradeToggle').style.color = scriptTreeUpgrade.goldTree ? 'green' : 'red';
  1746. document.getElementById('magicTreeUpgradeToggle').style.color = scriptTreeUpgrade.magicTree ? 'green' : 'red';
  1747. document.getElementById('appleTreeUpgradeToggle').style.color = scriptTreeUpgrade.appleTree ? 'green' : 'red';
  1748. document.getElementById('cactusTreeUpgradeToggle').style.color = scriptTreeUpgrade.cactusTree ? 'green' : 'red';
  1749. document.getElementById('bananaTreeUpgradeToggle').style.color = scriptTreeUpgrade.bananaTree ? 'green' : 'red';
  1750. document.getElementById('palmTreeUpgradeToggle').style.color = scriptTreeUpgrade.palmTree ? 'green' : 'red';
  1751. document.getElementById('pineappleTreeUpgradeToggle').style.color = scriptTreeUpgrade.pineappleTree ? 'green' : 'red';
  1752. document.getElementById('scriptExploreToggle').style.color = toggleExplore ? 'green' : 'red';
  1753. document.getElementById('scriptAreaOptions').value = scriptArea;
  1754. document.getElementById('scriptFightToggle').style.color = toggleFight ? 'green' : 'red';
  1755. document.getElementById('fieldsResetToggle').style.color = scriptResetArea.fields ? 'green' : 'red';
  1756. document.getElementById('forestsResetToggle').style.color = scriptResetArea.forests ? 'green' : 'red';
  1757. document.getElementById('cavesResetToggle').style.color = scriptResetArea.caves ? 'green' : 'red';
  1758. document.getElementById('volcanoResetToggle').style.color = scriptResetArea.volcano ? 'green' : 'red';
  1759. document.getElementById('northernFieldsResetToggle').style.color = scriptResetArea.northernFields ? 'green' : 'red';
  1760. document.getElementById('hauntedMansionResetToggle').style.color = scriptResetArea.hauntedMansion ? 'green' : 'red';
  1761. document.getElementById('desertResetToggle').style.color = scriptResetArea.desert ? 'green' : 'red';
  1762. document.getElementById('oceanResetToggle').style.color = scriptResetArea.ocean ? 'green' : 'red';
  1763. document.getElementById('jungleResetToggle').style.color = scriptResetArea.jungle ? 'green' : 'red';
  1764. document.getElementById('dungeonEntranceResetToggle').style.color = scriptResetArea.dungeonEntrance ? 'green' : 'red';
  1765. document.getElementById('dungeonResetToggle').style.color = scriptResetArea.dungeon ? 'green' : 'red';
  1766. document.getElementById('castleResetToggle').style.color = scriptResetArea.castle ? 'green' : 'red';
  1767. document.getElementById('cemeteryResetToggle').style.color = scriptResetArea.cemetery ? 'green' : 'red';
  1768. document.getElementById('factoryResetToggle').style.color = scriptResetArea.factory ? 'green' : 'red';
  1769. document.getElementById('hauntedWoodsResetToggle').style.color = scriptResetArea.hauntedWoods ? 'green' : 'red';
  1770. document.getElementById('deepOceanResetToggle').style.color = scriptResetArea.deepOcean ? 'green' : 'red';
  1771. document.getElementById('scriptResetToggle').style.color = toggleResetFight ? 'green' : 'red';
  1772. document.getElementById('scriptMonsterOptions').value = scriptMonster;
  1773. document.getElementById('scriptMonsterFindToggle').style.color = toggleMonsterFind ? 'green' : 'red';
  1774. document.getElementById('scriptShinyToggle').style.color = toggleShiny ? 'green' : 'red';
  1775. document.getElementById('scriptSpellToggle').style.color = toggleSpell ? 'green' : 'red';
  1776. document.getElementById('scriptCombatPotionToggle').style.color = toggleCombatPotion ? 'green' : 'red';
  1777. document.getElementById('scriptHealToggle').style.color = toggleHeal ? 'green' : 'red';
  1778. document.getElementById('scriptCousinToggle').style.color = toggleCousin ? 'green' : 'red';
  1779. document.getElementById('scriptCousinArea').value = scriptCousinArea;
  1780. document.getElementById('scriptStatueToggle').style.color = toggleStatue ? 'green' : 'red';
  1781. document.getElementById('scriptArtifactToggle').style.color = toggleArtifact ? 'green' : 'red';
  1782. document.getElementById('scriptBoatToggle').style.color = toggleBoat ? 'green' : 'red';
  1783. document.getElementById('rowBoatSendToggle').style.color = scriptBoatSend.rowBoat ? 'green' : 'red';
  1784. document.getElementById('canoeBoatSendToggle').style.color = scriptBoatSend.canoeBoat ? 'green' : 'red';
  1785. document.getElementById('sailBoatSendToggle').style.color = scriptBoatSend.sailBoat ? 'green' : 'red';
  1786. document.getElementById('highWindSendToggle').style.color = scriptBoatSend.highWind ? 'green' : 'red';
  1787. document.getElementById('steamBoatSendToggle').style.color = scriptBoatSend.steamBoat ? 'green' : 'red';
  1788. document.getElementById('trawlerSendToggle').style.color = scriptBoatSend.trawler ? 'green' : 'red';
  1789. }
  1790.  
  1791. function saveOreOrder() {
  1792. var oreItems = document.getElementById("sortableOres").getElementsByTagName("li");
  1793. var oreOrder = [];
  1794.  
  1795. for (var i = 0; i < oreItems.length; i++) {
  1796. var oreValue = oreItems[i].getAttribute("value");
  1797. var oreMinimum = oreItems[i].querySelector(".oreMinimum").value;
  1798.  
  1799.  
  1800. oreOrder.push({ value: oreValue, minimum: oreMinimum });
  1801. }
  1802.  
  1803. localStorage.setItem("oreOrder", JSON.stringify(oreOrder));
  1804. }
  1805.  
  1806. function loadOreOrder() {
  1807. var oreOrderData = localStorage.getItem("oreOrder");
  1808.  
  1809. if (oreOrderData) {
  1810. oreOrderData = JSON.parse(oreOrderData);
  1811. var oreOrderList = document.getElementById("sortableOres");
  1812.  
  1813. for (var i = 0; i < oreOrderData.length; i++) {
  1814. var oreValue = oreOrderData[i].value;
  1815. var minimum = oreOrderData[i].minimum;
  1816. var oreItem = oreOrderList.querySelector("[value='" + oreValue + "']");
  1817. oreOrderList.appendChild(oreItem);
  1818. var oreMinimum = oreItem.querySelector(".oreMinimum");
  1819. oreMinimum.value = minimum
  1820. }
  1821. }
  1822. }
  1823.  
  1824. function saveSeedOrder() {
  1825. var seedOrderList = document.getElementById("sortableSeeds");
  1826. var seedItems = seedOrderList.getElementsByTagName("li");
  1827. var seedOrder = [];
  1828.  
  1829. for (var i = 0; i < seedItems.length; i++) {
  1830. var seedValue = seedItems[i].getAttribute("value");
  1831. var seedCheckbox = seedItems[i].querySelector(".seed-checkbox");
  1832. var isChecked = seedCheckbox.checked;
  1833.  
  1834. seedOrder.push({ value: seedValue, checked: isChecked });
  1835. }
  1836.  
  1837. localStorage.setItem("seedOrder", JSON.stringify(seedOrder));
  1838. }
  1839.  
  1840. function loadSeedOrder() {
  1841. var seedOrderData = localStorage.getItem("seedOrder");
  1842.  
  1843. if (seedOrderData) {
  1844. seedOrderData = JSON.parse(seedOrderData);
  1845. var seedOrderList = document.getElementById("sortableSeeds");
  1846.  
  1847. for (var i = 0; i < seedOrderData.length; i++) {
  1848. var seedValue = seedOrderData[i].value;
  1849. var isChecked = seedOrderData[i].checked;
  1850. var seedItem = seedOrderList.querySelector("[value='" + seedValue + "']");
  1851. var seedCheckbox = seedItem.querySelector(".seed-checkbox");
  1852.  
  1853. if (isChecked) {
  1854. seedCheckbox.checked = true;
  1855. } else {
  1856. seedCheckbox.checked = false;
  1857. }
  1858.  
  1859. seedOrderList.appendChild(seedItem);
  1860. }
  1861. }
  1862. }
  1863.  
  1864. function savePotions() {
  1865. var potionList = document.getElementById("sortablePotions");
  1866. var potionItems = potionList.getElementsByTagName("li");
  1867. var potionState = [];
  1868.  
  1869. for (var i = 0; i < potionItems.length; i++) {
  1870. var potionValue = potionItems[i].getAttribute("value");
  1871. var drinkCheckbox = potionItems[i].querySelector(".drink-checkbox");
  1872. var brewCheckbox = potionItems[i].querySelector(".brew-checkbox");
  1873. var isDrinkChecked = drinkCheckbox.checked;
  1874. var isBrewChecked = brewCheckbox.checked;
  1875.  
  1876. potionState.push({
  1877. value: potionValue,
  1878. drinkChecked: isDrinkChecked,
  1879. brewChecked: isBrewChecked
  1880. });
  1881. }
  1882.  
  1883. localStorage.setItem("potionState", JSON.stringify(potionState));
  1884. }
  1885.  
  1886. window.savePotions2 = savePotions
  1887.  
  1888. function loadPotions() {
  1889. var potionState = localStorage.getItem("potionState");
  1890.  
  1891. if (potionState) {
  1892. potionState = JSON.parse(potionState);
  1893. var potionList = document.getElementById("sortablePotions");
  1894. var potionItems = potionList.getElementsByTagName("li");
  1895.  
  1896. for (var i = 0; i < potionState.length; i++) {
  1897. var potionValue = potionState[i].value;
  1898. var drinkCheckbox = potionItems[i].querySelector(".drink-checkbox");
  1899. var brewCheckbox = potionItems[i].querySelector(".brew-checkbox");
  1900. var isDrinkChecked = potionState[i].drinkChecked;
  1901. var isBrewChecked = potionState[i].brewChecked;
  1902.  
  1903. drinkCheckbox.checked = isDrinkChecked;
  1904. brewCheckbox.checked = isBrewChecked;
  1905. }
  1906. }
  1907. }
  1908.  
  1909. function monsterOptions(monsterArea) {
  1910. var select = document.getElementById("scriptMonsterOptions");
  1911. select.innerHTML = "";
  1912.  
  1913. if (monsterArea === "fields") {
  1914. addOptions(select, ["chicken", "rat", "bee", "chickenGroup"]);
  1915. } else if (monsterArea === "forests") {
  1916. addOptions(select, ["snake", "ent", "thief"]);
  1917. } else if (monsterArea === "caves") {
  1918. addOptions(select, ["bear", "bat", "skeleton"]);
  1919. } else if (monsterArea === "volcano") {
  1920. addOptions(select, ["lavaSnake", "fireHawk", "fireMage", "fireHawkGroup"]);
  1921. } else if (monsterArea === "northernFields") {
  1922. addOptions(select, ["iceHawk", "frozenEnt", "golem", "iceHawkGroup"]);
  1923. } else if (monsterArea === "hauntedMansion") {
  1924. addOptions(select, ["ghost", "skeletonGhost", "reaper"]);
  1925. } else if (monsterArea === "desert") {
  1926. addOptions(select, ["desertLizard2", "scorpion", "lizard"]);
  1927. } else if (monsterArea === "ocean") {
  1928. addOptions(select, ["squid", "oceanShark", "pufferFish"]);
  1929. } else if (monsterArea === "jungle") {
  1930. addOptions(select, ["gorilla", "elephant", "tribe"]);
  1931. } else if (monsterArea === "dungeonEntrance") {
  1932. addOptions(select, ["gargoyle", "poisonTribe", "statue"]);
  1933. } else if (monsterArea === "dungeon") {
  1934. addOptions(select, ["skeletonMonks", "darkMage", "skeletonPrisoner"]);
  1935. } else if (monsterArea === "castle") {
  1936. addOptions(select, ["castleKnight", "dragon", "castleMage"]);
  1937. } else if (monsterArea === "cemetery") {
  1938. addOptions(select, ["angel", "zombie", "babySkeleton"]);
  1939. } else if (monsterArea === "factory") {
  1940. addOptions(select, ["robotArcher", "robotMage", "robotWheelie"]);
  1941. } else if (monsterArea === "hauntedWoods") {
  1942. addOptions(select, ["reaper2", "skeletonGhost2", "ghostPack"]);
  1943. } else if (monsterArea === "deepOcean") {
  1944. addOptions(select, ["poisonSquid", "tridentSoldier", "piranhas"]);
  1945. }
  1946. }
  1947.  
  1948. window.monsterOptions2 = monsterOptions
  1949.  
  1950. function addOptions(select, optionsArray) {
  1951. for (var i = 0; i < optionsArray.length; i++) {
  1952. var option = document.createElement("option");
  1953. var optionText = optionsArray[i].replace(/([A-Z0-9])/g, ' $1').trim();
  1954. option.value = optionsArray[i];
  1955. option.text = optionText.charAt(0).toUpperCase() + optionText.slice(1);
  1956. select.appendChild(option);
  1957. }
  1958. }
  1959.  
  1960. //Chat
  1961. const chatSend = () => {
  1962. var input = document.getElementById('message-body');
  1963. publishMessage(input.value);
  1964. input.value = '';
  1965. };
  1966.  
  1967. window.sendChat = chatSend
  1968.  
  1969. const showMessage = (msg, sender) => {
  1970. var messageContainer = document.createElement('div');
  1971. var senderElement = document.createElement('strong');
  1972. senderElement.innerText = sender + ": ";
  1973. messageContainer.appendChild(senderElement);
  1974. var message = document.createElement('span');
  1975. message.innerText = msg;
  1976. messageContainer.style.wordWrap = "break-word";
  1977. messageContainer.appendChild(message);
  1978. var messageArea = document.getElementById('messages');
  1979. messageArea.appendChild(messageContainer);
  1980. messageArea.scrollTop = messageArea.scrollHeight;
  1981. };
  1982.  
  1983. let pubnub;
  1984.  
  1985. const setupPubNub = () => {
  1986. // Update this block with your publish/subscribe keys
  1987. pubnub = new PubNub({
  1988. publishKey : "pub-c-dc687e48-701e-473a-bbce-091329dcb723",
  1989. subscribeKey : "sub-c-feab3982-e3f8-4dec-ad9c-a82105f20783",
  1990. userId: "myUniqueUserId"
  1991. });
  1992. // add listener
  1993. const listener = {
  1994. status: (statusEvent) => {
  1995. if (statusEvent.category === "PNConnectedCategory") {
  1996. console.log("Connected");
  1997. }
  1998. },
  1999. message: (messageEvent) => {
  2000. showMessage(messageEvent.message.description, messageEvent.message.sender);
  2001. },
  2002. presence: (presenceEvent) => {
  2003. // handle presence
  2004. }
  2005. };
  2006. pubnub.addListener(listener);
  2007.  
  2008. // subscribe to a channel
  2009. pubnub.subscribe({
  2010. channels: ["hello_world"]
  2011. });
  2012. };
  2013.  
  2014. // publish message
  2015. const publishMessage = async (message) => {
  2016. // With the right payload, you can publish a message, add a reaction to a message,
  2017. // send a push notification, or send a small payload called a signal.
  2018. const publishPayload = {
  2019. channel : "hello_world",
  2020. message: {
  2021. title: "greeting",
  2022. description: message,
  2023. sender: username
  2024. }
  2025. };
  2026. await pubnub.publish(publishPayload);
  2027. }
  2028.  
  2029. window.onload = function() {
  2030. scriptAddTabs();
  2031. setupPubNub();
  2032. monsterOptions(scriptArea);
  2033. scriptStyleTabs();
  2034. $(function() {
  2035. $("#sortableSeeds").sortable({
  2036. update: function(event, ui) {saveSeedOrder()}
  2037. });
  2038. $("#sortableSeeds").disableSelection();
  2039. $("#sortableOres").sortable({
  2040. update: function(event, ui) {saveOreOrder()}
  2041. });
  2042. $("#sortableOres").disableSelection();
  2043. });
  2044. loadSeedOrder();
  2045. loadOreOrder();
  2046. loadPotions();
  2047. var teleportCooldown = (teleportSpellUpgraded === 1) ? 300 : 900;
  2048. scriptWaitTeleport = (explorerCooldown > teleportCooldown + 10) ? true : false
  2049. };
  2050.  
  2051. function handleKeyDown2(event) {
  2052. if (event.keyCode === 13) {
  2053. window.sendChat();
  2054. }
  2055. }
  2056.  
  2057. window.handleKeyDown = handleKeyDown2
  2058.  
  2059. function autoGameLoop() {
  2060. if (toggleGlobal === true) {
  2061. if (toggleTrain === true) autoTrain();
  2062. if (toggleRocket === true) autoRocket();
  2063. if (toggleSmelting === true) autoSmelt();
  2064. if (toggleRefinary === true) autoRefine();
  2065. if (toggleCharcoal === true) autoFoundry();
  2066. if (toggleWoodcutting === true) autoLumber();
  2067. if (toggleFarming === true) autoPlant();
  2068. if (toggleDrink === true) autoDrink();
  2069. if (toggleBrew === true) autoBrew();
  2070. if (toggleExplore === true) autoExplore();
  2071. if (toggleFight === true) autoFight();
  2072. if (toggleResetFight === true) autoReset();
  2073. if (toggleCousin === true) autoCousin();
  2074. if (toggleBoat === true) autoBoat();
  2075. if (toggleEvent === true) autoEvent();
  2076. }
  2077. }
  2078.  
  2079. function autoGameLoopSlow() {
  2080. if (toggleGlobal === true) {
  2081. if (toggleGeodeOpen === true) autoGeodeOpen();
  2082. if (toggleMineralIdentify === true) autoIdentify();
  2083. if (toggleNecklaceCharge === true) autoNecklaceCharge();
  2084. if (toggleBones === true) autoBones();
  2085. if (toggleTreeUpgrade === true) autoTreeUpgrade();
  2086. if (toggleBags === true) autoBags();
  2087. if (toggleStatue === true) autoStatue();
  2088. if (toggleArtifact === true) autoArtifact();
  2089. }
  2090. }
  2091.  
  2092. function autoGameLoopFast() {
  2093. if (toggleGlobal === true) {
  2094. if (toggleSpell === true) autoSpell();
  2095. if (toggleCombatPotion === true) autoCombatPot();
  2096. if (toggleShiny === true || toggleMonsterFind === true) autoMonsterHunt();
  2097. }
  2098. }
  2099.  
  2100. function autoGameLoopVeryFast() {
  2101. if (toggleGlobal === true) {
  2102. if (toggleHeal === true) autoHeal();
  2103. }
  2104. }
  2105.  
  2106. const gameLoopInterval = setInterval(function(){
  2107. autoGameLoop()
  2108. }, 5000);
  2109.  
  2110. const gameLoopSlowInterval = setInterval(function(){
  2111. autoGameLoopSlow()
  2112. }, 60000);
  2113.  
  2114. const gameLoopFastInterval = setInterval(function(){
  2115. autoGameLoopFast()
  2116. }, 1000);
  2117.  
  2118. const gameLoopVeryFastInterval = setInterval(function(){
  2119. autoGameLoopVeryFast()
  2120. }, 250);
  2121. })();