DHM - Idle Again

Automate most of DHM features

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

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