DHM - Idle Again

Automate most of DHM features

当前为 2023-09-20 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name DHM - Idle Again
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.1
  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.toggleGlobal = JSON.parse(localStorage.getItem('toggleGlobal')) || true
  20. window.toggleGeodeOpen = JSON.parse(localStorage.getItem('toggleGeodeOpen')) || false
  21. window.toggleMineralIdentify = JSON.parse(localStorage.getItem('toggleMineralIdentify')) || false
  22. window.toggleNecklaceCharge = JSON.parse(localStorage.getItem('toggleNecklaceCharge')) || false
  23. window.toggleTrain = JSON.parse(localStorage.getItem('toggleTrain')) || false
  24. window.toggleSmelting = JSON.parse(localStorage.getItem('toggleSmelting')) || true
  25. window.toggleRefinary = JSON.parse(localStorage.getItem('toggleRefinary')) || false
  26. window.toggleCharcoal = JSON.parse(localStorage.getItem('toggleCharcoal')) || false
  27. window.toggleWoodcutting = JSON.parse(localStorage.getItem('toggleWoodcutting')) || true
  28. window.toggleFarming = JSON.parse(localStorage.getItem('toggleFarming')) || false//
  29. window.toggleBones = JSON.parse(localStorage.getItem('toggleBones')) || false
  30. window.toggleDrink = JSON.parse(localStorage.getItem('toggleDrink')) || false//
  31. window.toggleBrew = JSON.parse(localStorage.getItem('toggleBrew')) || false//
  32. window.toggleExplore = JSON.parse(localStorage.getItem('toggleExplore')) || false
  33. window.toggleFight = JSON.parse(localStorage.getItem('toggleFight')) || false
  34. window.toggleSpell = JSON.parse(localStorage.getItem('toggleSpell')) || false
  35. window.toggleShiny = JSON.parse(localStorage.getItem('toggleShiny')) || false
  36. window.toggleCousin = JSON.parse(localStorage.getItem('toggleCousin')) || false
  37. window.toggleStatue = JSON.parse(localStorage.getItem('toggleStatue')) || false
  38. window.toggleArtifact = JSON.parse(localStorage.getItem('toggleArtifact')) || false
  39. window.toggleBoat = JSON.parse(localStorage.getItem('toggleBoat')) || true
  40. //Crafting Vars
  41. window.scriptSmeltingOre = JSON.parse(localStorage.getItem('scriptSmeltingOre')) || 'copper'
  42. window.scriptRefinaryBar = JSON.parse(localStorage.getItem('scriptRefinaryBar')) || 'gold'
  43. window.scriptFoundryWood = JSON.parse(localStorage.getItem('scriptFoundryWood')) || 'cheapest'
  44. //Woodicutting Vars
  45. window.scriptTreeIgnore = {tree:JSON.parse(localStorage.getItem('scriptTreeIgnore.tree'))||false,oakTree:JSON.parse(localStorage.getItem('scriptTreeIgnore.oakTree'))||false,willowTree:JSON.parse(localStorage.getItem('scriptTreeIgnore.willowTree'))||false,mapleTree:JSON.parse(localStorage.getItem('scriptTreeIgnore.mapleTree'))||false,redwoodTree:JSON.parse(localStorage.getItem('scriptTreeIgnore.redwoodTree'))||false,pineTree:JSON.parse(localStorage.getItem('scriptTreeIgnore.pineTree'))||false,hauntedTree:JSON.parse(localStorage.getItem('scriptTreeIgnore.hauntedTree'))||false,jungleTree:JSON.parse(localStorage.getItem('scriptTreeIgnore.jungleTree'))||true,lavaTree:JSON.parse(localStorage.getItem('scriptTreeIgnore.lavaTree'))||false,goldTree:JSON.parse(localStorage.getItem('scriptTreeIgnore.goldTree'))||true,magicTree:JSON.parse(localStorage.getItem('scriptTreeIgnore.magicTree'))||false,appleTree:JSON.parse(localStorage.getItem('scriptTreeIgnore.appleTree'))||false,cactusTree:JSON.parse(localStorage.getItem('scriptTreeIgnore.cactusTree'))||false,bananaTree:JSON.parse(localStorage.getItem('scriptTreeIgnore.bananaTree'))||false,palmTree:JSON.parse(localStorage.getItem('scriptTreeIgnore.palmTree'))||false,pineappleTree:JSON.parse(localStorage.getItem('scriptTreeIgnore.pineappleTree'))||true,starfruitTree:JSON.parse(localStorage.getItem('scriptTreeIgnore.starfruitTree'))||false,none:true}
  46. //Farming Vars
  47. window.scriptBonesIgnore = {bones:JSON.parse(localStorage.getItem('scriptBonesIgnore.bones'))||true,ashes:JSON.parse(localStorage.getItem('scriptBonesIgnore.ashes'))||false,iceBones:JSON.parse(localStorage.getItem('scriptBonesIgnore.iceBones'))||true,zombieBones:JSON.parse(localStorage.getItem('scriptBonesIgnore.zombieBones'))||true,bloodBones:JSON.parse(localStorage.getItem('scriptBonesIgnore.bloodBones'))||true,fishBones:JSON.parse(localStorage.getItem('scriptBonesIgnore.fishBones'))||true}
  48. //Exploring Vars
  49. 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}
  50. 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}
  51. window.scriptArea = JSON.parse(localStorage.getItem('scriptArea')) || 'fields'
  52. window.scriptCousinArea = JSON.parse(localStorage.getItem('scriptCousinArea')) || 'fields'
  53. //Cooking Vars
  54. window.scriptBoatSend = {rowBoat:JSON.parse(localStorage.getItem('scriptBoatSend.rowBoat'))||true,canoeBoat:JSON.parse(localStorage.getItem('scriptBoatSend.canoeBoat'))||true,sailBoat:JSON.parse(localStorage.getItem('scriptBoatSend.sailBoat'))||true,highWind:JSON.parse(localStorage.getItem('scriptBoatSend.highWind'))||true,steamBoat:JSON.parse(localStorage.getItem('scriptBoatSend.steamBoat'))||true,trawler:JSON.parse(localStorage.getItem('scriptBoatSend.trawler'))||true}
  55. const oldHideAllTabs = hideAllTabs
  56.  
  57. function autoGeodeOpen() {
  58. if (geode1 > 0) {
  59. sendBytes('OPEN_MULTIPLE_GEODE=geode1~'+geode1)
  60. closeSmittysDialogue('dialogue-confirm')
  61. } else if (geode2 > 0) {
  62. sendBytes('OPEN_MULTIPLE_GEODE=geode2~'+geode2)
  63. closeSmittysDialogue('dialogue-confirm')
  64. } else if (geode3 > 0) {
  65. sendBytes('OPEN_MULTIPLE_GEODE=geode3~'+geode3)
  66. closeSmittysDialogue('dialogue-confirm')
  67. } else if (geode4 > 0) {
  68. sendBytes('OPEN_MULTIPLE_GEODE=geode4~'+geode4)
  69. closeSmittysDialogue('dialogue-confirm')
  70. } else if (geode5 > 0) {
  71. sendBytes('OPEN_MULTIPLE_GEODE=geode5~'+geode5)
  72. closeSmittysDialogue('dialogue-confirm')
  73. } else if (geode6 > 0) {
  74. sendBytes('OPEN_MULTIPLE_GEODE=geode6~'+geode6)
  75. closeSmittysDialogue('dialogue-confirm')
  76. }
  77. }
  78.  
  79. function autoIdentify() {
  80. if (limeQuartzMineralUnidentified > 0) {
  81. clicksItem('limeQuartzMineralUnidentified');
  82. closeSmittysDialogue('dialogue-confirm');
  83. } else if (fluoriteMineralUnidentified > 0) {
  84. clicksItem('fluoriteMineralUnidentified');
  85. closeSmittysDialogue('dialogue-confirm');
  86. } else if (topazMineralUnidentified > 0) {
  87. clicksItem('topazMineralUnidentified');
  88. closeSmittysDialogue('dialogue-confirm');
  89. } else if (blueMarbleMineralUnidentified > 0) {
  90. clicksItem('blueMarbleMineralUnidentified');
  91. closeSmittysDialogue('dialogue-confirm');
  92. } else if (sulferMineralUnidentified > 0) {
  93. clicksItem('sulferMineralUnidentified');
  94. closeSmittysDialogue('dialogue-confirm');
  95. } else if (purpleQuartzMineralUnidentified > 0) {
  96. clicksItem('purpleQuartzMineralUnidentified');
  97. closeSmittysDialogue('dialogue-confirm');
  98. } else if (limoniteMineralUnidentified > 0) {
  99. clicksItem('limoniteMineralUnidentified');
  100. closeSmittysDialogue('dialogue-confirm');
  101. } else if (crystalPrismeMineralUnidentified > 0) {
  102. clicksItem('crystalPrismeMineralUnidentified');
  103. closeSmittysDialogue('dialogue-confirm');
  104. } else if (typeof clearMarbleMineralUnidentified !== 'undefined' && clearMarbleMineralUnidentified > 0) {
  105. clicksItem('clearMarbleMineralUnidentified');
  106. closeSmittysDialogue('dialogue-confirm');
  107. } else if (denseMarbleMineralUnidentified > 0) {
  108. clicksItem('denseMarbleMineralUnidentified');
  109. closeSmittysDialogue('dialogue-confirm');
  110. } else if (jadeMineralUnidentified > 0) {
  111. clicksItem('jadeMineralUnidentified');
  112. closeSmittysDialogue('dialogue-confirm');
  113. } else if (opalMineralUnidentified > 0) {
  114. clicksItem('opalMineralUnidentified');
  115. closeSmittysDialogue('dialogue-confirm');
  116. } else if (amethystMineralUnidentified > 0) {
  117. clicksItem('amethystMineralUnidentified');
  118. closeSmittysDialogue('dialogue-confirm');
  119. } else if (tashmarineMineralUnidentified > 0) {
  120. clicksItem('tashmarineMineralUnidentified');
  121. closeSmittysDialogue('dialogue-confirm');
  122. } else if (tanzaniteMineralUnidentified > 0) {
  123. clicksItem('tanzaniteMineralUnidentified');
  124. closeSmittysDialogue('dialogue-confirm');
  125. } else if (seaCrystalMineralUnidentified > 0) {
  126. clicksItem('seaCrystalMineralUnidentified');
  127. closeSmittysDialogue('dialogue-confirm');
  128. } else if (amberMineralUnidentified > 0) {
  129. clicksItem('amberMineralUnidentified');
  130. closeSmittysDialogue('dialogue-confirm');
  131. } else if (smoothPearlMineralUnidentified > 0) {
  132. clicksItem('smoothPearlMineralUnidentified');
  133. closeSmittysDialogue('dialogue-confirm');
  134. }
  135. }
  136.  
  137. function autoNecklaceCharge() {
  138. changeMineralNecklace()
  139. }
  140.  
  141. function autoTrain() {
  142. if (train > 0 && trainTimer < 2 && oil == 500000 * train) {
  143. sendBytes('MANAGE_TRAIN='+train)
  144. closeSmittysDialogue('dialogue-confirm')
  145. }
  146. }
  147.  
  148. function autoSmelt() {
  149. if (smeltingCurrentOreType == 'none') {
  150. var oreItems = document.getElementById("sortableOres").getElementsByTagName("li")
  151.  
  152. for (var i = 0; i < oreItems.length; i++) {
  153. var minimumOre = oreItems[i].querySelector(".oreMinimum").value;
  154. var selectedOre = oreItems[i].getAttribute("value");
  155. if (smeltingCurrentOreType == 'none' && selectedOre >= minimumOre) {
  156. chooseOreForFurnace(selectedOre)
  157. startSmelting()
  158. closeSmittysDialogue('dialogue-furnace2')
  159. console.log(selectedOre)
  160. }
  161. }
  162. }
  163. }
  164.  
  165. function autoRefine() {
  166. if (barRefineryTimer < 2 && scriptRefinaryBar == 'gold' && oil > 500000 && goldBars > 99) {
  167. sendBytes('REFINE_GOLD_BARS=goldBars')
  168. closeSmittysDialogue('dialogue-confirm')
  169.  
  170. } else if (barRefineryTimer < 2 && scriptRefinaryBar == 'promethium' && oil > 2000000 && promethiumBars > 99) {
  171. sendBytes('REFINE_GOLD_BARS=promethiumBars')
  172. closeSmittysDialogue('dialogue-confirm')
  173. }
  174. }
  175.  
  176. function autoFoundry() {
  177. if (charcoalFoundryCurrentOreType == 0 || charcoalFoundryCurrentOreType == 'none') {
  178. let scriptFoundryWoodLocal = scriptFoundryWood
  179. if (scriptFoundryWoodLocal == 'cheapest') {
  180. logs > 100 ? scriptFoundryWoodLocal = 'logs'
  181. : oakLogs > 100 ? scriptFoundryWoodLocal = 'oakLogs'
  182. : willowLogs > 100 ? scriptFoundryWoodLocal = 'willowLogs'
  183. : mapleLogs > 100 ? scriptFoundryWoodLocal = 'mapleLogs'
  184. : redwoodLogs > 100 ? scriptFoundryWoodLocal = 'redwoodLogs'
  185. : pineLogs > 100 ? scriptFoundryWoodLocal = 'pineLogs'
  186. : hauntedLogs > 100 ? scriptFoundryWoodLocal = 'hauntedLogs'
  187. : jungleLogs > 100 ? scriptFoundryWoodLocal = 'jungleLogs'
  188. : lavaLogs > 100 ? scriptFoundryWoodLocal = 'lavaLogs'
  189. : goldLogs > 100 ? scriptFoundryWoodLocal = 'goldLogs'
  190. : magicLogs > 100 ? scriptFoundryWoodLocal = 'magicLogs'
  191. : scriptFoundryWoodLocal = 'none';
  192. }
  193. if (scriptFoundryWoodLocal > 20 && lava > 12 && scriptFoundryWoodLocal !== 'none') {
  194. sendBytes('CHARCOAL_FOUNDRY='+scriptFoundryWoodLocal+'~'+100)
  195. closeSmittysDialogue('dialogue-confirm')
  196. }
  197. }
  198. }
  199.  
  200. function autoLumber() {
  201. if (scriptTreeIgnore[tree6] === false && treeTimer6 == 1) {
  202. sendBytes('CHOP_TREE=6')}
  203. if (scriptTreeIgnore[tree5] === false && treeTimer5 == 1) {
  204. sendBytes('CHOP_TREE=5')}
  205. if (scriptTreeIgnore[tree4] === false && treeTimer4 == 1) {
  206. sendBytes('CHOP_TREE=4')}
  207. if (scriptTreeIgnore[tree3] === false && treeTimer3 == 1) {
  208. sendBytes('CHOP_TREE=3')}
  209. if (scriptTreeIgnore[tree2] === false && treeTimer2 == 1) {
  210. sendBytes('CHOP_TREE=2')}
  211. if (scriptTreeIgnore[tree1] === false && treeTimer1 == 1) {
  212. sendBytes('CHOP_TREE=1')}
  213. }
  214.  
  215. function autoPlant() {
  216. if (farmTimer1 < 2 || farmTimer2 < 2 || (farmTimer3 < 2 && farmUnlocked3 == 1) || (farmTimer4 < 2 && farmUnlocked4 == 1) || (farmTimer5 < 2 && farmUnlocked5 == 1) || (farmTimer6 < 2 && farmUnlocked6 == 1)) {
  217. var seedItems = document.getElementById("sortableSeeds").getElementsByTagName("li")
  218.  
  219. for (var i = 0; i < seedItems.length; i++) {
  220. var seedCheckbox = seedItems[i].querySelector(".seed-checkbox");
  221. var selectedSeed = seedItems[i].getAttribute("value"); // Obter o valor do atributo 'value'
  222.  
  223. if (seedCheckbox.checked) {
  224. setBobsAutoReplantSeed(selectedSeed);
  225. closeSmittysDialogue("dialogue-bob");
  226. sendBytes("HARVEST_AND_PLANT_ALL");
  227. setTimeout(closeSmittysDialogue('dialogue-confirm'),1000)
  228. }
  229. }
  230. }
  231. }
  232.  
  233. function autoBones() {
  234. if (scriptBonesIgnore.bones === false && bones > 0) {
  235. sendBytes('ADD_BONEMEAL=bones~'+bones)}
  236. if (scriptBonesIgnore.ashes === false && ashes > 0) {
  237. sendBytes('ADD_BONEMEAL=ashes~'+ashes)}
  238. if (scriptBonesIgnore.iceBones === false && iceBones > 0) {
  239. sendBytes('ADD_BONEMEAL=iceBones~'+iceBones)}
  240. if (scriptBonesIgnore.zombieBones === false && zombieBones > 0) {
  241. sendBytes('ADD_BONEMEAL=zombieBones~'+zombieBones)}
  242. if (scriptBonesIgnore.bloodBones === false && bloodBones > 0) {
  243. sendBytes('ADD_BONEMEAL=bloodBones~'+bloodBones)}
  244. if (scriptBonesIgnore.fishBones === false && fishBones > 9) {
  245. sendBytes('ADD_BONEMEAL=fishBones~'+(Math.floor(fishBones/10))*10)}
  246. }
  247.  
  248. function autoDrink() {
  249. var potionItems = document.getElementById("sortablePotions").getElementsByTagName("li")
  250.  
  251. for (var i = 0; i < potionItems.length; i++) {
  252. var drinkCheckbox = potionItems[i].querySelector(".drink-checkbox");
  253. var selectedPotion = potionItems[i].getAttribute("value"); // Obter o valor do atributo 'value'
  254.  
  255. if (drinkCheckbox.checked && window[selectedPotion] > 0 && window[selectedPotion+'Timer'] == 0) {
  256. sendBytes('DRINK='+selectedPotion);
  257. setTimeout(closeSmittysDialogue("dialogue-confirm"))
  258. }
  259. }
  260. }
  261.  
  262. function autoBrew() {
  263. var potionItems = document.getElementById("sortablePotions").getElementsByTagName("li")
  264.  
  265. for (var i = 0; i < potionItems.length; i++) {
  266. var drinkCheckbox = potionItems[i].querySelector(".drink-checkbox");
  267. var brewCheckbox = potionItems[i].querySelector(".brew-checkbox");
  268. var selectedPotion = potionItems[i].getAttribute("value"); // Obter o valor do atributo 'value'
  269.  
  270. if (brewCheckbox.checked && drinkCheckbox.checked && window[selectedPotion] == 0) {
  271. sendBytes('BREW='+selectedPotion+'~1');
  272. setTimeout(closeSmittysDialogue("dialogue-confirm"))
  273. }
  274. }
  275. }
  276.  
  277. function autoExplore() {
  278. if (explorerCooldown == 0) {
  279. let scriptAreaLocal = scriptArea
  280. if (energy < scriptAreaEnergy.scriptAreaLocal) {scriptAreaLocal = 'fields'}
  281. sendBytes('EXPLORE='+scriptAreaLocal)
  282. }
  283. }
  284.  
  285. window.scriptWaitTeleport = false
  286. function autoFight() {
  287. if (exploringArea !== 'none' && fightDone === 0) {
  288. if (scriptWaitTeleport === false || (scriptWaitTeleport === true && teleportSpellCooldown === 0)) {
  289. sendBytes('LOOK_FOR_FIGHT');
  290. }
  291. }
  292. }
  293.  
  294. function autoShiny() {
  295. var teleportCooldown = (teleportSpellUpgraded === 1) ? 300 : 900;
  296. if (explorerCooldown > teleportCooldown + 10)
  297. scriptWaitTeleport = (explorerCooldown > teleportCooldown + 10) ? true : false
  298. if (monsterName !== 'none' && (monsterName !== 'gemGoblin' || monsterName !== 'bloodGemGoblin' || shinyMonster == 0)) {
  299. sendBytes('CAST_COMBAT_SPELL=teleportSpell')
  300. }
  301. }
  302.  
  303. function autoSpell() {
  304. if (fireSpell == 1 && fireSpellCooldown == 0 && monsterName !== 'none') {sendBytes('CAST_COMBAT_SPELL=fireSpell')}
  305. if (reflectSpell == 1 && reflectSpellCooldown == 0 && monsterName !== 'none') {sendBytes('CAST_COMBAT_SPELL=reflectSpell')}
  306. if (thunderStrikeSpell == 1 && thunderStrikeSpellCooldown == 0 && monsterName !== 'none') {sendBytes('CAST_COMBAT_SPELL=thunderStrikeSpell')}
  307. if (lifeStealSpell == 1 && lifeStealSpellCooldown == 0 && monsterName !== 'none') {sendBytes('CAST_COMBAT_SPELL=lifeStealSpell')}
  308. if (sandstormSpell == 1 && sandstormSpellCooldown == 0 && monsterName !== 'none') {sendBytes('CAST_COMBAT_SPELL=sandstormSpell')}
  309. }
  310.  
  311. function autoCousin() {
  312. if (typeof goblinExploringArea == 'undefined' || goblinExploringArea == 'none') {
  313. let scriptCousinAreaLocal = scriptCousinArea
  314. if (energy < scriptAreaEnergy.scriptCousinAreaLocal) {scriptCousinAreaLocal = 'fields'}
  315. goblinCousin=1;
  316. sendBytes('EXPLORE_GOBLIN='+scriptCousinAreaLocal)
  317. setTimeout(closeSmittysDialogue('dialogue-confirm'),1000)
  318. }
  319. }
  320.  
  321. function autoStatue() {
  322. sendBytes('SELL_ALL_STATUES')
  323. closeSmittysDialogue('dialogue-confirm')
  324. }
  325.  
  326. function autoArtifact() {
  327. sendBytes('CONVERT_ALL_ARTIFACTS')
  328. closeSmittysDialogue('dialogue-confirm')
  329. }
  330.  
  331. function autoBoat() {
  332. if (rowBoat == 1 && scriptBoatSend.rowBoat == true && rowBoatTimer < 2) {
  333. if (bait > 4){
  334. sendBytes('CLICKS_BOAT=rowBoat')
  335. closeSmittysDialogue('dialogue-confirm')
  336. } else {clicksItem('rowBoat')}
  337. }
  338. if (canoeBoat == 1 && scriptBoatSend.canoeBoat == true && canoeBoatTimer < 2) {
  339. if (bait > 24) {
  340. sendBytes('CLICKS_BOAT=canoeBoat')
  341. closeSmittysDialogue('dialogue-confirm')
  342. } else {clicksItem('canoeBoat')}
  343. }
  344. if (scriptBoatSend.highWind == true) {
  345. if (sailBoat == 1 && scriptBoatSend.sailBoat == true && currentWind > 1 && sailBoatTimer < 2) {
  346. if (bait > 99) {
  347. sendBytes('CLICKS_BOAT=sailBoat')
  348. closeSmittysDialogue('dialogue-confirm')
  349. } else {clicksItem('sailBoat')}
  350. }
  351. } else if (sailBoat == 1 && scriptBoatSend.sailBoat == true && sailBoatTimer < 2) {
  352. if (bait > 99) {
  353. sendBytes('CLICKS_BOAT=sailBoat')
  354. closeSmittysDialogue('dialogue-confirm')
  355. } else {clicksItem('sailBoat')}
  356. }
  357. if (steamBoat == 1 && scriptBoatSend.steamBoat == true && steamBoatTimer < 2) {
  358. if (bait > 249) {
  359. sendBytes('CLICKS_BOAT=steamBoat')
  360. closeSmittysDialogue('dialogue-confirm')
  361. } else {clicksItem('steamBoat')}
  362. }
  363. if (trawler == 1 && scriptBoatSend.trawler == true && trawlerTimer < 2) {
  364. if (bait > 499) {
  365. sendBytes('CLICKS_BOAT=trawler')
  366. closeSmittysDialogue('dialogue-confirm')
  367. } else {clicksItem('trawler')}
  368. }
  369. }
  370.  
  371. function autoCityUnlock() {
  372. sendBytes('CLICKS_SHOP_VOTE=9');
  373. sendBytes('CLICKS_SHOP_VOTE=6');
  374. closeSmittysDialogue('dialogue-confirm')
  375. }
  376.  
  377. function hideAllTabs2() {
  378. oldHideAllTabs()
  379. document.getElementById("tab-scriptConfig").style.display = "none";
  380. document.getElementById("tab-scriptConfigMining").style.display = "none";
  381. document.getElementById("tab-scriptConfigCrafting").style.display = "none";
  382. document.getElementById("tab-scriptConfigWoodcutting").style.display = "none";
  383. document.getElementById("tab-scriptConfigFarming").style.display = "none";
  384. document.getElementById("tab-scriptConfigSeeds").style.display = "none";
  385. document.getElementById("tab-scriptConfigBrewing").style.display = "none";
  386. document.getElementById("tab-scriptConfigPotions").style.display = "none";
  387. document.getElementById("tab-scriptConfigExploring").style.display = "none";
  388. document.getElementById("tab-scriptConfigCooking").style.display = "none";
  389. }
  390.  
  391. window.hideAllTabs = hideAllTabs2
  392.  
  393. function autoChangeVar(variName,variValue,id) {
  394. localStorage.setItem(variName, JSON.stringify(variValue))
  395. window[variName] = variValue
  396. if (typeof id !== 'undefined') {if (variValue == true) {document.getElementById(id).style.color = "green"} else {document.getElementById(id).style.color = "red"}
  397. console.log(id)}
  398. }
  399.  
  400. window.autoChangeVar2 = autoChangeVar;
  401.  
  402. function autoChangeObject(variName,variKey,variValue,id) {
  403. localStorage.setItem(variName+'.'+variKey, JSON.stringify(variValue))
  404. window[variName][variKey] = variValue
  405. if (typeof id !== 'undefined') {if (variValue == true) {document.getElementById(id).style.color = "green"} else {document.getElementById(id).style.color = "red"}}
  406. }
  407.  
  408. window.autoChangeObject2 = autoChangeObject
  409.  
  410. function scriptAddTabs() {
  411. var scriptConfBar = document.createElement("div");
  412. let miscTab = document.querySelectorAll("#tab-misc > .main-button");
  413. scriptConfBar.innerHTML = `<div onclick="navigate('scriptConfig')" class="main-button" style="cursor: pointer;">
  414. <table>
  415. <tbody><tr>
  416. <td><img src="images/whiteGear.png" class="img-small"></td>
  417. <td style="text-align:right;padding-right:20px;font-size:12pt;">SCRIPT CONFIG</td>
  418. </tr>
  419. </tbody></table>
  420. </div>`;
  421. miscTab[2].parentNode.insertBefore(scriptConfBar,miscTab[3]);
  422.  
  423. var scriptConfTab = document.createElement("div");
  424. var scriptConfMiningTab = document.createElement("div");
  425. var scriptConfCraftingTab = document.createElement("div");
  426. var scriptConfWoodcuttingTab = document.createElement("div");
  427. var scriptConfFarmingTab = document.createElement("div");
  428. var scriptConfSeedsTab = document.createElement("div");
  429. var scriptConfBrewingTab = document.createElement("div");
  430. var scriptConfPotionsTab = document.createElement("div");
  431. var scriptConfExploringTab = document.createElement("div");
  432. var scriptConfCookingTab = document.createElement("div");
  433. let gameScreen = document.querySelectorAll("#game-screen")[1];
  434. let logoutTab = document.getElementById('tab-logout');
  435. scriptConfTab.innerHTML = `<div id="tab-scriptConfig" style="display:none">
  436. <div class="main-button-lighter">
  437. <table><tbody><tr onclick="navigate('main');playPreviousMenuSound();" style="cursor: pointer;">
  438. <td><img src="images/back.png" class="img-small"></td>
  439. <td class="back-label">BACK</td></tr></tbody></table>
  440. </div>
  441. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptGlobalToggle" onclick="window.autoChangeVar2('toggleGlobal',!toggleGlobal,this.id)" style="cursor: pointer; color: green;">
  442. <td style="padding-left: 10px;"><img src="images/whiteGear.png" class="img-medium"></td>
  443. <td style="text-align:right;padding-right:20px;width:100%">SCRIPT TOGGLE</td></tr></tbody></table>
  444. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptMiningTogglesBar" onclick="navigate('scriptConfigMining')" style="cursor: pointer; color: white;">
  445. <td style="padding-left: 10px;"><img src="images/miningSkill.png" class="img-medium"></td>
  446. <td style="text-align:right;padding-right:20px;width:100%">MINING TOGGLES</td></tr></tbody></table>
  447. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptCraftingTogglesBar" onclick="navigate('scriptConfigCrafting')" style="cursor: pointer; color: white;">
  448. <td style="padding-left: 10px;"><img src="images/craftingSkill.png" class="img-medium"></td>
  449. <td style="text-align:right;padding-right:20px;width:100%">CRAFTING TOGGLES</td></tr></tbody></table>
  450. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptWoodcuttingTogglesBar" onclick="navigate('scriptConfigWoodcutting')" style="cursor: pointer; color: white;">
  451. <td style="padding-left: 10px;"><img src="images/woodcuttingSkill.png" class="img-medium"></td>
  452. <td style="text-align:right;padding-right:20px;width:100%">WOODCUTTING TOGGLES</td></tr></tbody></table>
  453. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptFarmingTogglesBar" onclick="navigate('scriptConfigFarming')" style="cursor: pointer; color: white;">
  454. <td style="padding-left: 10px;"><img src="images/farmingSkill.png" class="img-medium"></td>
  455. <td style="text-align:right;padding-right:20px;width:100%">FARMING TOGGLES</td></tr></tbody></table>
  456. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptBrewingTogglesBar" onclick="navigate('scriptConfigBrewing')" style="cursor: pointer; color: white;">
  457. <td style="padding-left: 10px;"><img src="images/brewingSkill.png" class="img-medium"></td>
  458. <td style="text-align:right;padding-right:20px;width:100%">BREWING TOGGLES</td></tr></tbody></table><table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptExploringTogglesBar" onclick="navigate('scriptConfigExploring')" style="cursor: pointer; color: white;">
  459. <td style="padding-left: 10px;"><img src="images/exploringSkill.png" class="img-medium"></td>
  460. <td style="text-align:right;padding-right:20px;width:100%">EXPLORING TOGGLES</td></tr></tbody></table><table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptCookingTogglesBar" onclick="navigate('scriptConfigCooking')" style="cursor: pointer; color: white;">
  461. <td style="padding-left: 10px;"><img src="images/cookingSkill.png" class="img-medium"></td>
  462. <td style="text-align:right;padding-right:20px;width:100%">COOKING TOGGLES</td></tr></tbody></table></div>`
  463.  
  464.  
  465. scriptConfMiningTab.innerHTML = `<div id="tab-scriptConfigMining" style="display:none">
  466. <div class="main-button-lighter">
  467. <table><tbody><tr onclick="navigate('scriptConfig');playPreviousMenuSound();" style="cursor: pointer;">
  468. <td><img src="images/back.png" class="img-small"></td>
  469. <td class="back-label">BACK</td></tr></tbody></table>
  470. </div>
  471. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptGeodeToggle" onclick="window.autoChangeVar2('toggleGeodeOpen',!toggleGeodeOpen,this.id)" style="cursor: pointer; color: green;">
  472. <td style="padding-left: 10px;"><img src="images/geode5.png" class="img-small"></td>
  473. <td style="text-align:right;padding-right:20px;width:100%">GEODE OPENING</td></tr></tbody></table><table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptMineralToggle" onclick="window.autoChangeVar2('toggleMineralIdentify',!toggleMineralIdentify,this.id)" style="cursor: pointer; color: green;">
  474. <td style="padding-left: 10px;"><img src="images/tanzaniteMineral.png" class="img-small"></td>
  475. <td style="text-align:right;padding-right:20px;width:100%">MINERAL IDENTIFY</td></tr></tbody></table>
  476. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptNecklaceToggle" onclick="window.autoChangeVar2('toggleNecklaceCharge',!toggleNecklaceCharge,this.id)" style="cursor: pointer; color: red;">
  477. <td style="padding-left: 10px;"><img src="images/mineralNecklace.png" class="img-small"></td>
  478. <td style="text-align:right;padding-right:20px;width:100%">NECKLACE CHARGE</td></tr></tbody></table>
  479. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptTrainToggle" onclick="window.autoChangeVar2('toggleTrain',!toggleTrain,this.id)" style="cursor: pointer; color: red;">
  480. <td style="padding-left: 10px;"><img src="images/train.png" class="img-small"></td>
  481. <td style="text-align:right;padding-right:20px;width:100%">TRAIN</td></tr></tbody></table></div>`
  482.  
  483. scriptConfCraftingTab.innerHTML= `<div id="tab-scriptConfigCrafting" style="display:none">
  484. <div class="main-button-lighter">
  485. <table><tbody><tr onclick="navigate('scriptConfig');playPreviousMenuSound();" style="cursor: pointer;">
  486. <td><img src="images/back.png" class="img-small"></td>
  487. <td class="back-label">BACK</td></tr></tbody></table>
  488. </div>
  489. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptSmeltingToggle" onclick="window.autoChangeVar2('toggleSmelting',!toggleSmelting,this.id)" style="cursor: pointer; color: green;">
  490. <td style="padding-left: 10px;"><img src="images/ancientFurnace.png" class="img-small"></td>
  491. <td style="text-align:right;padding-right:20px;width:100%">SMELTING</td></tr></tbody></table>
  492. <ol id="sortableOres" style="list-style: none;padding: 0px;border: 1px solid grey;border-radius: 6px;margin: 10px;font-size: 25px;" class="ui-sortable"><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;">
  493. <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">
  494. </li><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;">
  495. <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">
  496. </li><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;">
  497. <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">
  498. </li><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;">
  499. <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">
  500. </li><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;">
  501. <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">
  502. </li><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;">
  503. <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">
  504. </li><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;">
  505. <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">
  506. </li></ol>
  507. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptRefinaryToggle" onclick="window.autoChangeVar2('toggleRefinary',!toggleRefinary,this.id)" style="cursor: pointer; color: red;">
  508. <td style="padding-left: 10px;"><img src="images/goldBarRefinery.png" class="img-small"></td>
  509. <td style="text-align:right;padding-right:20px;width:100%">REFINARY</td></tr></tbody></table><table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptRefinaryBar" style="color: white;">
  510. <td style="padding-left: 10px;"><img src="images/refinedGoldBars.png" class="img-small"></td>
  511. <td style="padding-left: 50px;"><select name="scriptRefinaryBarOptions" onchange="window.autoChangeVar2('scriptRefinaryBar',this.value)" id="scriptRefinaryOptions">
  512. <option value="gold">Gold</option>
  513. <option value="promethium">Promethium</option>
  514. </select></td><td style="text-align:right;padding-right:20px;width:100%">REFINARY BAR</td></tr></tbody></table>
  515. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptFoundryToggle" onclick="window.autoChangeVar2('toggleCharcoal',!toggleCharcoal,this.id)" style="cursor: pointer; color: red;">
  516. <td style="padding-left: 10px;"><img src="images/charcoalFoundry.png" class="img-small"></td>
  517. <td style="text-align:right;padding-right:20px;width:100%">CHARCOAL FOUNDRY</td></tr></tbody></table><table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptFoundryWood" style="color: white;">
  518. <td style="padding-left: 10px;"><img src="images/lavaLogs.png" class="img-small"></td>
  519. <td style="padding-left: 50px;"><select name="scriptFoundryWoodOptions" onchange="window.autoChangeVar2('scriptFoundryWood',this.value)" id="scriptFoundryWoodOptions">
  520. <option value="cheapest">Cheapest</option>
  521. <option value="logs">Logs</option>
  522. <option value="oakLogs">Oak Logs</option>
  523. <option value="willowLogs">Willow Logs</option>
  524. <option value="mapleLogs">Maple Logs</option><option value="redwoodLogs">Redwood Logs</option><option value="pineLogs">Pine Logs</option><option value="hauntedLogs">Haunted Logs</option><option value="jungleLogs">Jungle Logs</option><option value="lavaLogs">Lava Logs</option><option value="goldLogs">Gold Logs</option><option value="magicLogs">Magic Logs</option></select></td><td style="text-align:right;padding-right:20px;width:100%">CHARCOAL LOG</td></tr></tbody></table></div>`
  525.  
  526. scriptConfWoodcuttingTab.innerHTML= `<div id="tab-scriptConfigWoodcutting" style="display:none">
  527. <div class="main-button-lighter">
  528. <table><tbody><tr onclick="navigate('scriptConfig');playPreviousMenuSound();" style="cursor: pointer;">
  529. <td><img src="images/back.png" class="img-small"></td>
  530. <td class="back-label">BACK</td></tr></tbody></table>
  531. </div>
  532. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptLumberToggle" onclick="window.autoChangeVar2('toggleWoodcutting',!toggleWoodcutting,this.id)" style="cursor: pointer; color: green;">
  533. <td style="padding-left: 10px;"><img src="images/lumberjack.png" class="img-small"></td>
  534. <td style="text-align:right;padding-right:20px;width:100%">LUMBERJACK</td></tr></tbody></table><table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 20px;width: 97%;"><tbody style="display: block;"><tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','tree',!scriptTreeIgnore.tree,this.id)" id="treeIgnoreToggle">
  535. <td style="padding-left: 10px;width: 5%;"><img src="images/tree.png" class="img-small"></td>
  536. <td style="text-align: center;width: 40%">TREE IGNORE</td></tr><tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','oakTree',!scriptTreeIgnore.oakTree,this.id)" id="oakTreeIgnoreToggle">
  537. <td style="padding-left: 10px;width: 5%;"><img src="images/oakTree.png" class="img-small"></td>
  538. <td style="text-align: center;width: 40%">OAK TREE IGNORE</td></tr><tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','willowTree',!scriptTreeIgnore.willowTree,this.id)" id="willowTreeIgnoreToggle">
  539. <td style="padding-left: 10px;width: 5%;"><img src="images/willowTree.png" class="img-small"></td>
  540. <td style="text-align: center;width: 40%">WILLOW TREE IGNORE</td></tr><tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','mapleTree',!scriptTreeIgnore.mapleTree,this.id)" id="mapleTreeIgnoreToggle">
  541. <td style="padding-left: 10px;width: 5%;"><img src="images/mapleTree.png" class="img-small"></td>
  542. <td style="text-align: center;width: 40%">MAPLE TREE IGNORE</td></tr><tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','redwoodTree',!scriptTreeIgnore.redwoodTree,this.id)" id="redwoodTreeIgnoreToggle">
  543. <td style="padding-left: 10px;width: 5%;"><img src="images/redwoodTree.png" class="img-small"></td>
  544. <td style="text-align: center;width: 40%">REDWOOD TREE IGNORE</td></tr><tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','pineTree',!scriptTreeIgnore.pineTree,this.id)" id="pineTreeIgnoreToggle">
  545. <td style="padding-left: 10px;width: 5%;"><img src="images/pineTree.png" class="img-small"></td>
  546. <td style="text-align: center;width: 40%">PINE TREE IGNORE</td></tr><tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','hauntedTree',!scriptTreeIgnore.hauntedTree,this.id)" id="hauntedTreeIgnoreToggle">
  547. <td style="padding-left: 10px;width: 5%;"><img src="images/hauntedTree.png" class="img-small"></td>
  548. <td style="text-align: center;width: 40%">HAUNTED TREE IGNORE</td></tr><tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','jungleTree',!scriptTreeIgnore.jungleTree,this.id)" id="jungleTreeIgnoreToggle">
  549. <td style="padding-left: 10px;width: 5%;"><img src="images/jungleTree.png" class="img-small"></td>
  550. <td style="text-align: center;width: 40%">JUNGLE TREE IGNORE</td></tr><tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','lavaTree',!scriptTreeIgnore.lavaTree,this.id)" id="lavaTreeIgnoreToggle">
  551. <td style="padding-left: 10px;width: 5%;"><img src="images/lavaTree.png" class="img-small"></td>
  552. <td style="text-align: center;width: 40%">LAVA TREE IGNORE</td></tr><tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','goldTree',!scriptTreeIgnore.goldTree,this.id)" id="goldTreeIgnoreToggle">
  553. <td style="padding-left: 10px;width: 5%;"><img src="images/goldTree.png" class="img-small"></td>
  554. <td style="text-align: center;width: 40%">GOLD TREE IGNORE</td></tr><tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','magicTree',!scriptTreeIgnore.magicTree,this.id)" id="magicTreeIgnoreToggle">
  555. <td style="padding-left: 10px;width: 5%;"><img src="images/magicTree.png" class="img-small"></td>
  556. <td style="text-align: center;width: 40%">MAGIC TREE IGNORE</td></tr><tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','appleTree',!scriptTreeIgnore.appleTree,this.id)" id="appleTreeIgnoreToggle">
  557. <td style="padding-left: 10px;width: 5%;"><img src="images/appleTree.png" class="img-small"></td>
  558. <td style="text-align: center;width: 40%">APPLE TREE IGNORE</td></tr><tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','cactusTree',!scriptTreeIgnore.cactusTree,this.id)" id="cactusTreeIgnoreToggle">
  559. <td style="padding-left: 10px;width: 5%;"><img src="images/cactusTree.png" class="img-small"></td>
  560. <td style="text-align: center;width: 40%">CACTUS TREE IGNORE</td></tr><tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','bananaTree',!scriptTreeIgnore.bananaTree,this.id)" id="bananaTreeIgnoreToggle">
  561. <td style="padding-left: 10px;width: 5%;"><img src="images/bananaTree.png" class="img-small"></td>
  562. <td style="text-align: center;width: 40%">BANANA TREE IGNORE</td></tr><tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','palmTree',!scriptTreeIgnore.palmTree,this.id)" id="palmTreeIgnoreToggle">
  563. <td style="padding-left: 10px;width: 5%;"><img src="images/palmTree.png" class="img-small"></td>
  564. <td style="text-align: center;width: 40%">PALM TREE IGNORE</td></tr><tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptTreeIgnore','pineappleTree',!scriptTreeIgnore.pineappleTree,this.id)" id="pineappleTreeIgnoreToggle">
  565. <td style="padding-left: 10px;width: 5%;"><img src="images/pineappleTree.png" class="img-small"></td>
  566. <td style="text-align: center;width: 40%">PINEAPPLE TREE IGNORE</td></tr><tr style="color: red;" onclick="window.autoChangeObject2('scriptTreeIgnore','starfuitTree',!scriptTreeIgnore.starfuitTree,this.id)" id="starfruitTreeIgnoreToggle">
  567. <td style="padding-left: 10px;width: 5%;"><img src="images/starfruitTree.png" class="img-small"></td>
  568. <td style="text-align: center;">STARFRUIT TREE IGNORE</td></tr></tbody></table></div>`
  569.  
  570. scriptConfFarmingTab.innerHTML= `<div id="tab-scriptConfigFarming" style="display:none">
  571. <div class="main-button-lighter">
  572. <table><tbody><tr onclick="navigate('scriptConfig');playPreviousMenuSound();" style="cursor: pointer;">
  573. <td><img src="images/back.png" class="img-small"></td>
  574. <td class="back-label">BACK</td></tr></tbody></table>
  575. </div>
  576. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptFarmingToggle" onclick="window.autoChangeVar2('toggleFarming',!toggleFarming,this.id)" style="cursor: pointer; color: red;">
  577. <td style="padding-left: 10px;"><img src="images/farmer.png" class="img-small"></td>
  578. <td style="text-align:right;padding-right:20px;width:100%">HARVEST AND PLANT</td></tr></tbody></table><table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;cursor: pointer;"><tbody><tr id="scriptSeedToggleBar" onclick="navigate('scriptConfigSeeds')" style="color: white;">
  579. <td style="padding-left: 10px;"><img src="images/goldLeafSeeds.png" class="img-small"></td>
  580. <td style="text-align:right;padding-right:20px;width:100%">SEED SELECTOR</td></tr></tbody></table><table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptBonesToggle" onclick="window.autoChangeVar2('toggleBones',!toggleBones,this.id)" style="cursor: pointer; color: red;">
  581. <td style="padding-left: 10px;"><img src="images/bonemealBin.png" class="img-small"></td>
  582. <td style="text-align:right;padding-right:20px;width:100%">BONEMEAL</td></tr></tbody></table><table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 20px;width: 97%;"><tbody style="display: block;"><tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptBonesIgnore','bones',!scriptBonesIgnore.bones,this.id)" id="bonesIgnoreToggle">
  583. <td style="padding-left: 10px;width: 5%;"><img src="images/bones.png" class="img-small"></td>
  584. <td style="text-align: center;width: 40%">BONES IGNORE</td></tr><tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptBonesIgnore','ashes',!scriptBonesIgnore.ashes,this.id)" id="ashesIgnoreToggle">
  585. <td style="padding-left: 10px;width: 5%;"><img src="images/ashes.png" class="img-small"></td>
  586. <td style="text-align: center;width: 40%">ASHES IGNORE</td></tr><tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptBonesIgnore','iceBones',!scriptBonesIgnore.iceBones,this.id)" id="iceBonesIgnoreToggle">
  587. <td style="padding-left: 10px;width: 5%;"><img src="images/iceBones.png" class="img-small"></td>
  588. <td style="text-align: center;width: 40%">ICE BONES IGNORE</td></tr><tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptBonesIgnore','zombieBones',!scriptBonesIgnore.zombieBones,this.id)" id="zombieBonesIgnoreToggle">
  589. <td style="padding-left: 10px;width: 5%;"><img src="images/zombieBones.png" class="img-small"></td>
  590. <td style="text-align: center;width: 40%">ZOMBIE BONES IGNORE</td></tr><tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptBonesIgnore','bloodBones',!scriptBonesIgnore.bloodBones,this.id)" id="bloodBonesIgnoreToggle">
  591. <td style="padding-left: 10px;width: 5%;"><img src="images/bloodBones.png" class="img-small"></td>
  592. <td style="text-align: center;width: 40%">BLOOD BONES IGNORE</td></tr><tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptBonesIgnore','fishBones',!scriptBonesIgnore.fishBones,this.id)" id="fishBonesIgnoreToggle">
  593. <td style="padding-left: 10px;width: 5%;"><img src="images/fishBones.png" class="img-small"></td>
  594. <td style="text-align: center;width: 40%">FISH BONES IGNORE</td></tr></tbody></table></div>`
  595.  
  596. scriptConfSeedsTab.innerHTML= `<div id="tab-scriptConfigSeeds" style="display:none">
  597. <div class="main-button-lighter">
  598. <table><tbody><tr onclick="navigate('scriptConfigFarming');playPreviousMenuSound();" style="cursor: pointer;">
  599. <td><img src="images/back.png" class="img-small"></td>
  600. <td class="back-label">BACK</td></tr></tbody></table>
  601. </div>
  602. <table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptSeedsInfo" style="color: white;">
  603. <td style="padding-left: 10px;"></td>
  604. <td style="text-align: center;padding-right:20px;width: 100%;"><p>PRIORITY WILL BE DEFINED BASED ON THE POSITION OF THE SEED</p><p>DRAG AND DROP ONCE AFTER CHECKING BOXES</p></td></tr></tbody></table><ol id="sortableSeeds" style="list-style: none;padding: 0px;border: 1px solid grey;border-radius: 6px;margin: 10px;font-size: 25px;">
  605. <li class="ui-state-default" value="redMushroomSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  606. <input type="checkbox" class="seed-checkbox"> Red Mushroom Seeds<img src="images/redMushroomSeeds.png" class="img-small" style="padding-right: 10px;">
  607. </li><li class="ui-state-default" value="dottedGreenLeafSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  608. <input type="checkbox" class="seed-checkbox"> Dotted Green Leaf Seeds<img src="images/dottedGreenLeafSeeds.png" class="img-small" style="padding-right: 10px;"></li>
  609. <li class="ui-state-default" value="greenLeafSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  610. <input type="checkbox" class="seed-checkbox"> Green Leaf Seeds<img src="images/greenLeafSeeds.png" class="img-small" style="padding-right: 10px;">
  611. </li>
  612. <li class="ui-state-default" value="limeLeafSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  613. <input type="checkbox" class="seed-checkbox"> Lime Leaf Seeds<img src="images/limeLeafSeeds.png" class="img-small" style="padding-right: 10px;">
  614. </li>
  615. <li class="ui-state-default" value="goldLeafSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  616. <input type="checkbox" class="seed-checkbox"> Gold Leaf Seeds<img src="images/goldLeafSeeds.png" class="img-small" style="padding-right: 10px;">
  617. </li>
  618. <li class="ui-state-default" value="crystalLeafSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  619. <input type="checkbox" class="seed-checkbox"> Crystal Leaf Seeds<img src="images/crystalLeafSeeds.png" class="img-small" style="padding-right: 10px;">
  620. </li>
  621. <li class="ui-state-default" value="stripedGreenLeafSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  622. <input type="checkbox" class="seed-checkbox"> Striped Green Leaf Seeds<img src="images/stripedGreenLeafSeeds.png" class="img-small" style="padding-right: 10px;">
  623. </li>
  624. <li class="ui-state-default" value="stripedGoldLeafSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  625. <input type="checkbox" class="seed-checkbox"> Striped Gold Leaf Seeds<img src="images/stripedGoldLeafSeeds.png" class="img-small" style="padding-right: 10px;">
  626. </li>
  627. <li class="ui-state-default" value="stripedCrystalLeafSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  628. <input type="checkbox" class="seed-checkbox"> Striped Crystal Leaf Seeds<img src="images/stripedCrystalLeafSeeds.png" class="img-small" style="padding-right: 10px;">
  629. </li>
  630. <li class="ui-state-default" value="treeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  631. <input type="checkbox" class="seed-checkbox"> Tree Seeds<img src="images/treeSeeds.png" class="img-small" style="padding-right: 10px;">
  632. </li>
  633. <li class="ui-state-default" value="oakTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  634. <input type="checkbox" class="seed-checkbox"> Oak Tree Seeds<img src="images/oakTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  635. </li>
  636. <li class="ui-state-default" value="willowTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  637. <input type="checkbox" class="seed-checkbox"> Willow Tree Seeds<img src="images/willowTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  638. </li>
  639. <li class="ui-state-default" value="mapleTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  640. <input type="checkbox" class="seed-checkbox"> Maple Tree Seeds<img src="images/mapleTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  641. </li>
  642. <li class="ui-state-default" value="redwoodTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  643. <input type="checkbox" class="seed-checkbox"> Redwood Tree Seeds<img src="images/redwoodTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  644. </li>
  645. <li class="ui-state-default" value="pineTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  646. <input type="checkbox" class="seed-checkbox"> Pine Tree Seeds<img src="images/pineTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  647. </li>
  648. <li class="ui-state-default" value="hauntedTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  649. <input type="checkbox" class="seed-checkbox"> Haunted Tree Seeds<img src="images/hauntedTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  650. </li>
  651. <li class="ui-state-default" value="jungleTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  652. <input type="checkbox" class="seed-checkbox"> Jungle Tree Seeds<img src="images/jungleTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  653. </li>
  654. <li class="ui-state-default" value="lavaTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  655. <input type="checkbox" class="seed-checkbox"> Lava Tree Seeds<img src="images/lavaTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  656. </li>
  657. <li class="ui-state-default" value="goldTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  658. <input type="checkbox" class="seed-checkbox"> Gold Tree Seeds<img src="images/goldTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  659. </li>
  660. <li class="ui-state-default" value="magicTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  661. <input type="checkbox" class="seed-checkbox"> Magic Tree Seeds<img src="images/magicTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  662. </li>
  663. <li class="ui-state-default" value="appleTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  664. <input type="checkbox" class="seed-checkbox"> Apple Tree Seeds<img src="images/appleTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  665. </li>
  666. <li class="ui-state-default" value="cactusTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  667. <input type="checkbox" class="seed-checkbox"> Cactus Tree Seeds<img src="images/cactusTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  668. </li>
  669. <li class="ui-state-default" value="bananaTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  670. <input type="checkbox" class="seed-checkbox"> Banana Tree Seeds<img src="images/bananaTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  671. </li>
  672. <li class="ui-state-default" value="palmTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  673. <input type="checkbox" class="seed-checkbox"> Palm Tree Seeds<img src="images/palmTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  674. </li>
  675. <li class="ui-state-default" value="pineappleTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  676. <input type="checkbox" class="seed-checkbox"> Pineapple Tree Seeds<img src="images/pineappleTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  677. </li>
  678. <li class="ui-state-default" value="starfruitTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  679. <input type="checkbox" class="seed-checkbox"> Starfruit Tree Seeds<img src="images/starfruitTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  680. </li>
  681. <li class="ui-state-default" value="goldAppleTreeSeeds" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  682. <input type="checkbox" class="seed-checkbox"> Gold Apple Tree Seeds<img src="images/goldAppleTreeSeeds.png" class="img-small" style="padding-right: 10px;">
  683. </li></ol></div>`
  684.  
  685. scriptConfBrewingTab.innerHTML= `<div id="tab-scriptConfigBrewing" style="display:none">
  686. <div class="main-button-lighter">
  687. <table><tbody><tr onclick="navigate('scriptConfig');playPreviousMenuSound();" style="cursor: pointer;">
  688. <td><img src="images/back.png" class="img-small"></td>
  689. <td class="back-label">BACK</td></tr></tbody></table>
  690. </div>
  691. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptDrinkToggle" onclick="window.autoChangeVar2('toggleDrink',!toggleDrink,this.id)" style="cursor: pointer; color: red;">
  692. <td style="padding-left: 10px;"><img src="images/diamondBrewingKit.png" class="img-small"></td>
  693. <td style="text-align:right;padding-right:20px;width:100%">POTION DRINK</td></tr></tbody></table><table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptBrewToggle" onclick="window.autoChangeVar2('toggleBrew',!toggleBrew,this.id)" style="cursor: pointer; color: red;">
  694. <td style="padding-left: 10px;"><img src="images/goldLeaf.png" class="img-small"></td>
  695. <td style="text-align:right;padding-right:20px;width:100%">POTION BREW</td></tr></tbody></table><table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;cursor: pointer;"><tbody><tr id="scriptPotionToggleBar" onclick="navigate('scriptConfigPotions')" style="color: white;">
  696. <td style="padding-left: 10px;"><img src="images/researchSpeedPotion.png" class="img-small"></td>
  697. <td style="text-align:right;padding-right:20px;width:100%">POTION SELECTOR</td></tr></tbody></table></div>`
  698.  
  699. scriptConfPotionsTab.innerHTML= `<div id="tab-scriptConfigPotions" style="display:none">
  700. <div class="main-button-lighter">
  701. <table><tbody><tr onclick="navigate('scriptConfigBrewing');playPreviousMenuSound();" style="cursor: pointer;">
  702. <td><img src="images/back.png" class="img-small"></td>
  703. <td class="back-label">BACK</td></tr></tbody></table>
  704. </div>
  705. <table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptPotionsInfo" style="color: white;">
  706. <td style="padding-left: 10px;"></td>
  707. <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></tr></tbody></table><div class="ui-state-default" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;margin: 10px;font-size: 25px;">
  708. <p style="
  709. margin-top: 0px;
  710. margin-bottom: 0px;
  711. padding-left: 10px;
  712. ">DRINK</p>
  713. <p style="
  714. margin-top: 0px;
  715. margin-bottom: 0px;
  716. padding-left: 0px;
  717. padding-right: 10px;
  718. ">BREW</p></div><ol id="sortablePotions" style="list-style: none;padding: 0px;border: 1px solid grey;border-radius: 6px;margin: 10px;font-size: 25px;">
  719. <li class="ui-state-default" value="furnaceSpeedPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  720. <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()">
  721. </li><li class="ui-state-default" value="seedFinderPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  722. <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()">
  723. </li>
  724.  
  725. <li class="ui-state-default" value="compostPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  726. <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()">
  727. </li>
  728.  
  729. <li class="ui-state-default" value="treeCompostPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  730. <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()">
  731. </li>
  732.  
  733. <li class="ui-state-default" value="fishingSpeedPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  734. <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()">
  735. </li>
  736.  
  737. <li class="ui-state-default" value="woodcuttingXpPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  738. <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()">
  739. </li>
  740.  
  741. <li class="ui-state-default" value="exploringSpeedPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  742. <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()">
  743. </li>
  744.  
  745. <li class="ui-state-default" value="baitPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  746. <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()">
  747. </li>
  748.  
  749. <li class="ui-state-default" value="farmingXpPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  750. <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()">
  751. </li>
  752.  
  753. <li class="ui-state-default" value="fastCompostPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  754. <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()">
  755. </li>
  756.  
  757. <li class="ui-state-default" value="oilPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  758. <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()">
  759. </li>
  760.  
  761. <li class="ui-state-default" value="coinPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  762. <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()">
  763. </li>
  764.  
  765. <li class="ui-state-default" value="piratesPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  766. <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()">
  767. </li>
  768.  
  769. <li class="ui-state-default" value="promethiumPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  770. <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()">
  771. </li>
  772.  
  773. <li class="ui-state-default" value="rocketSpeedPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  774. <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()">
  775. </li>
  776.  
  777. <li class="ui-state-default" value="fruitTreePotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  778. <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()">
  779. </li>
  780.  
  781. <li class="ui-state-default" value="titaniumPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  782. <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()">
  783. </li>
  784.  
  785. <li class="ui-state-default" value="researchSpeedPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  786. <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()">
  787. </li>
  788.  
  789. <li class="ui-state-default" value="superRocketSpeedPotion" style="border-radius: 6px;background: #1a1a1a;color: white;justify-content: space-between;display: flex;">
  790. <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()">
  791. </li></ol></div>`
  792.  
  793. scriptConfExploringTab.innerHTML= `<div id="tab-scriptConfigExploring" style="">
  794. <div class="main-button-lighter">
  795. <table><tbody><tr onclick="navigate('scriptConfig');playPreviousMenuSound();" style="cursor: pointer;">
  796. <td><img src="images/back.png" class="img-small"></td>
  797. <td class="back-label">BACK</td></tr></tbody></table>
  798. </div>
  799. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptExploreToggle" onclick="window.autoChangeVar2('toggleExplore',!toggleExplore,this.id)" style="cursor: pointer; color: red;">
  800. <td style="padding-left: 10px;"><img src="images/explorer.png" class="img-small"></td>
  801. <td style="text-align:right;padding-right:20px;width:100%">EXPLORER</td></tr></tbody></table>
  802. <table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptExplorerArea" style="color: white;">
  803. <td style="padding-left: 10px;"><img src="images/caves.png" class="img-small"></td>
  804. <td style="padding-left: 50px;"><select name="scriptAreaOptions" onchange="window.autoChangeVar2('scriptArea',this.value)" id="scriptAreaOptions">
  805. <option value="fields">Fields</option>
  806. <option value="forests">Forests</option>
  807. <option value="caves">Caves</option>
  808. <option value="volcano">Volcano</option>
  809. <option value="northernFields">Northern Fields</option>
  810. <option value="hauntedMansion">Haunted Mansion</option>
  811. <option value="desert">Desert</option>
  812. <option value="ocean">Ocean</option>
  813. <option value="jungle">Jungle</option>
  814. <option value="dungeonEntrance">Dungeon Entrance</option>
  815. <option value="dungeon">Dungeon</option>
  816. <option value="castle">Castle</option>
  817. <option value="cemetery">Cemetery</option>
  818. <option value="factory">Factory</option>
  819. <option value="hauntedWoods">Haunted Woods</option>
  820. <option value="deepOcean">Deep Ocean</option>
  821. </select></td><td style="text-align:right;padding-right:20px;width:100%">EXPLORER AREA</td></tr></tbody></table><table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptFightToggle" onclick="window.autoChangeVar2('toggleFight',!toggleFight,this.id)" style="cursor: pointer; color: red;">
  822. <td style="padding-left: 10px;"><img src="images/combat.png" class="img-small"></td>
  823. <td style="text-align:right;padding-right:20px;width:100%">FIGHT</td></tr></tbody></table>
  824. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px; display:none"><tbody><tr id="scriptShinyToggle" onclick="window.autoChangeVar2('toggleShiny',!toggleShiny,this.id)" style="cursor: pointer; color: red;">
  825. <td style="padding-left: 10px;"><img src="images/shiny.gif" class="img-small"></td>
  826. <td style="text-align:right;padding-right:20px;width:100%">SHINY/GEM GOBLIN HUNT</td></tr></tbody></table>
  827. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptSpellToggle" onclick="window.autoChangeVar2('toggleSpell',!toggleSpell,this.id)" style="cursor: pointer; color: red;">
  828. <td style="padding-left: 10px;"><img src="images/fireSpell.png" class="img-small"></td>
  829. <td style="text-align:right;padding-right:20px;width:100%">SPELL</td></tr></tbody></table>
  830. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptCousinToggle" onclick="window.autoChangeVar2('toggleCousin',!toggleCousin,this.id)" style="cursor: pointer; color: red;">
  831. <td style="padding-left: 10px;"><img src="images/goblinCousin.png" class="img-small"></td>
  832. <td style="text-align:right;padding-right:20px;width:100%">GOBLIN COUSIN</td></tr></tbody></table>
  833. <table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptCousinArea" style="color: white;">
  834. <td style="padding-left: 10px;"><img src="images/fields.png" class="img-small"></td>
  835. <td style="padding-left: 50px;"><select name="scriptCousinAreaOptions" onchange="window.autoChangeVar2('scriptCousinArea',this.value)" id="scriptCousinAreaOptions">
  836. <option value="fields">Fields</option>
  837. <option value="forests">Forests</option>
  838. <option value="caves">Caves</option>
  839. <option value="volcano">Volcano</option>
  840. <option value="northernFields">Northern Fields</option>
  841. <option value="hauntedMansion">Haunted Mansion</option>
  842. <option value="desert">Desert</option>
  843. <option value="ocean">Ocean</option>
  844. <option value="jungle">Jungle</option>
  845. <option value="dungeonEntrance">Dungeon Entrance</option>
  846. <option value="dungeon">Dungeon</option>
  847. <option value="castle">Castle</option>
  848. <option value="cemetery">Cemetery</option>
  849. <option value="factory">Factory</option>
  850. <option value="hauntedWoods">Haunted Woods</option>
  851. <option value="deepOcean">Deep Ocean</option>
  852. </select></td><td style="text-align:right;padding-right:20px;width:100%">COUSIN AREA</td></tr></tbody></table><table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptStatueToggle" onclick="window.autoChangeVar2('toggleStatue',!toggleStatue,this.id)" style="cursor: pointer; color: red;">
  853. <td style="padding-left: 10px;"><img src="images/bronzeStatueMetalDetector.png" class="img-small"></td>
  854. <td style="text-align:right;padding-right:20px;width:100%">STATUE SELL</td></tr></tbody></table><table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptArtifactToggle" onclick="window.autoChangeVar2('toggleArtifact',!toggleArtifact,this.id)" style="cursor: pointer; color: red;">
  855. <td style="padding-left: 10px;"><img src="images/skullArtifact.png" class="img-small"></td>
  856. <td style="text-align:right;padding-right:20px;width:100%">ARTIFACT CONVERT</td></tr></tbody></table></div>`
  857.  
  858. scriptConfCookingTab.innerHTML= `<div id="tab-scriptConfigCooking" style="display:none">
  859. <div class="main-button-lighter">
  860. <table><tbody><tr onclick="navigate('scriptConfig');playPreviousMenuSound();" style="cursor: pointer;">
  861. <td><img src="images/back.png" class="img-small"></td>
  862. <td class="back-label">BACK</td></tr></tbody></table>
  863. </div>
  864. <table style="cursor: pointer;border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 32px;"><tbody><tr id="scriptBoatToggle" onclick="window.autoChangeVar2('toggleBoat',!toggleBoat,this.id)" style="cursor: pointer; color: green;">
  865. <td style="padding-left: 10px;"><img src="images/sailBoat.png" class="img-small"></td>
  866. <td style="text-align:right;padding-right:20px;width:100%">BOAT</td></tr></tbody></table><table style="border: 1px solid grey;border-radius: 6px;margin: 10px 7px;background: #1a1a1a;font-size: 20px;width: 97%;"><tbody style="display: block;"><tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptBoatSend','rowBoat',!scriptBoatSend.rowBoat,this.id)" id="rowBoatSendToggle">
  867. <td style="padding-left: 10px;width: 5%;"><img src="images/rowBoat.png" class="img-small"></td>
  868. <td style="text-align: center;width: 40%">ROW BOAT</td></tr><tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptBoatSend','canoeBoat',!scriptBoatSend.canoeBoat,this.id)" id="canoeBoatSendToggle">
  869. <td style="padding-left: 10px;width: 5%;"><img src="images/canoeBoat.png" class="img-small"></td>
  870. <td style="text-align: center;width: 40%">CANOE</td></tr><tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptBoatSend','sailBoat',!scriptBoatSend.sailBoat,this.id)" id="sailBoatSendToggle">
  871. <td style="padding-left: 10px;width: 5%;"><img src="images/sailBoat.png" class="img-small"></td>
  872. <td style="text-align: center;width: 40%">SAIL BOAT</td></tr><tr style="display: inline-block; color: red; width: 50%;" onclick="window.autoChangeObject2('scriptBoatSend','highWind',!scriptBoatSend.highWind,this.id)" id="highWindSendToggle">
  873. <td style="padding-left: 10px;width: 5%;"><img src="images/windIcon.png" class="img-small"></td>
  874. <td style="text-align: center;width: 40%">WAIT HIGH WIND</td></tr><tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptBoatSend','steamBoat',!scriptBoatSend.steamBoat,this.id)" id="steamBoatSendToggle">
  875. <td style="padding-left: 10px;width: 5%;"><img src="images/steamBoat.png" class="img-small"></td>
  876. <td style="text-align: center;width: 40%">STEAM BOAT</td></tr><tr style="display: inline-block; color: green; width: 50%;" onclick="window.autoChangeObject2('scriptBoatSend','trawler',!scriptBoatSend.trawler,this.id)" id="trawlerSendToggle">
  877. <td style="padding-left: 10px;width: 5%;"><img src="images/trawler.png" class="img-small"></td>
  878. <td style="text-align: center;width: 40%">TRAWLER</td></tr></tbody></table>
  879.  
  880.  
  881. </div>`;
  882. gameScreen.insertBefore(scriptConfTab,logoutTab);
  883. gameScreen.insertBefore(scriptConfMiningTab,logoutTab);
  884. gameScreen.insertBefore(scriptConfCraftingTab,logoutTab);
  885. gameScreen.insertBefore(scriptConfWoodcuttingTab,logoutTab);
  886. gameScreen.insertBefore(scriptConfFarmingTab,logoutTab);
  887. gameScreen.insertBefore(scriptConfSeedsTab,logoutTab);
  888. gameScreen.insertBefore(scriptConfBrewingTab,logoutTab);
  889. gameScreen.insertBefore(scriptConfPotionsTab,logoutTab);
  890. gameScreen.insertBefore(scriptConfExploringTab,logoutTab);
  891. gameScreen.insertBefore(scriptConfCookingTab,logoutTab);
  892. }
  893.  
  894. function scriptStyleTabs() {
  895. document.getElementById('scriptGlobalToggle').style.color = toggleGlobal ? 'green' : 'red';
  896. document.getElementById('scriptGeodeToggle').style.color = toggleGeodeOpen ? 'green' : 'red';
  897. document.getElementById('scriptMineralToggle').style.color = toggleMineralIdentify ? 'green' : 'red';
  898. document.getElementById('scriptNecklaceToggle').style.color = toggleNecklaceCharge ? 'green' : 'red';
  899. document.getElementById('scriptTrainToggle').style.color = toggleTrain ? 'green' : 'red';
  900. document.getElementById('scriptSmeltingToggle').style.color = toggleSmelting ? 'green' : 'red';
  901. document.getElementById('scriptRefinaryToggle').style.color = toggleRefinary ? 'green' : 'red';
  902. document.getElementById('scriptRefinaryOptions').value = scriptRefinaryBar;
  903. document.getElementById('scriptFoundryToggle').style.color = toggleCharcoal ? 'green' : 'red';
  904. document.getElementById('scriptFoundryWoodOptions').value = scriptFoundryWood;
  905. document.getElementById('scriptLumberToggle').style.color = toggleWoodcutting ? 'green' : 'red';
  906. document.getElementById('treeIgnoreToggle').style.color = scriptTreeIgnore.tree ? 'green' : 'red';
  907. document.getElementById('oakTreeIgnoreToggle').style.color = scriptTreeIgnore.oakTree ? 'green' : 'red';
  908. document.getElementById('willowTreeIgnoreToggle').style.color = scriptTreeIgnore.willowTree ? 'green' : 'red';
  909. document.getElementById('mapleTreeIgnoreToggle').style.color = scriptTreeIgnore.mapleTree ? 'green' : 'red';
  910. document.getElementById('redwoodTreeIgnoreToggle').style.color = scriptTreeIgnore.redwoodTree ? 'green' : 'red';
  911. document.getElementById('pineTreeIgnoreToggle').style.color = scriptTreeIgnore.pineTree ? 'green' : 'red';
  912. document.getElementById('hauntedTreeIgnoreToggle').style.color = scriptTreeIgnore.hauntedTree ? 'green' : 'red';
  913. document.getElementById('jungleTreeIgnoreToggle').style.color = scriptTreeIgnore.jungleTree ? 'green' : 'red';
  914. document.getElementById('lavaTreeIgnoreToggle').style.color = scriptTreeIgnore.lavaTree ? 'green' : 'red';
  915. document.getElementById('goldTreeIgnoreToggle').style.color = scriptTreeIgnore.goldTree ? 'green' : 'red';
  916. document.getElementById('magicTreeIgnoreToggle').style.color = scriptTreeIgnore.magicTree ? 'green' : 'red';
  917. document.getElementById('appleTreeIgnoreToggle').style.color = scriptTreeIgnore.appleTree ? 'green' : 'red';
  918. document.getElementById('cactusTreeIgnoreToggle').style.color = scriptTreeIgnore.cactusTree ? 'green' : 'red';
  919. document.getElementById('bananaTreeIgnoreToggle').style.color = scriptTreeIgnore.bananaTree ? 'green' : 'red';
  920. document.getElementById('palmTreeIgnoreToggle').style.color = scriptTreeIgnore.palmTree ? 'green' : 'red';
  921. document.getElementById('pineappleTreeIgnoreToggle').style.color = scriptTreeIgnore.pineappleTree ? 'green' : 'red';
  922. document.getElementById('starfruitTreeIgnoreToggle').style.color = scriptTreeIgnore.starfruitTree ? 'green' : 'red';
  923. document.getElementById('scriptFarmingToggle').style.color = toggleFarming ? 'green' : 'red';
  924. document.getElementById('scriptBonesToggle').style.color = toggleBones ? 'green' : 'red';
  925. document.getElementById('bonesIgnoreToggle').style.color = scriptBonesIgnore.bones ? 'green' : 'red';
  926. document.getElementById('ashesIgnoreToggle').style.color = scriptBonesIgnore.ashes ? 'green' : 'red';
  927. document.getElementById('iceBonesIgnoreToggle').style.color = scriptBonesIgnore.iceBones ? 'green' : 'red';
  928. document.getElementById('zombieBonesIgnoreToggle').style.color = scriptBonesIgnore.zombieBones ? 'green' : 'red';
  929. document.getElementById('bloodBonesIgnoreToggle').style.color = scriptBonesIgnore.bloodBones ? 'green' : 'red';
  930. document.getElementById('fishBonesIgnoreToggle').style.color = scriptBonesIgnore.fishBones ? 'green' : 'red';
  931. document.getElementById('scriptDrinkToggle').style.color = toggleDrink ? 'green' : 'red';
  932. document.getElementById('scriptBrewToggle').style.color = toggleBrew ? 'green' : 'red';
  933. document.getElementById('scriptExploreToggle').style.color = toggleExplore ? 'green' : 'red';
  934. document.getElementById('scriptAreaOptions').value = scriptArea;
  935. document.getElementById('scriptFightToggle').style.color = toggleFight ? 'green' : 'red';
  936. document.getElementById('scriptShinyToggle').style.color = toggleShiny ? 'green' : 'red';
  937. document.getElementById('scriptSpellToggle').style.color = toggleSpell ? 'green' : 'red';
  938. document.getElementById('scriptCousinToggle').style.color = toggleCousin ? 'green' : 'red';
  939. document.getElementById('scriptCousinArea').value = scriptCousinArea;
  940. document.getElementById('scriptStatueToggle').style.color = toggleStatue ? 'green' : 'red';
  941. document.getElementById('scriptArtifactToggle').style.color = toggleArtifact ? 'green' : 'red';
  942. document.getElementById('scriptBoatToggle').style.color = toggleBoat ? 'green' : 'red';
  943. document.getElementById('rowBoatSendToggle').style.color = scriptBoatSend.rowBoat ? 'green' : 'red';
  944. document.getElementById('canoeBoatSendToggle').style.color = scriptBoatSend.canoeBoat ? 'green' : 'red';
  945. document.getElementById('sailBoatSendToggle').style.color = scriptBoatSend.sailBoat ? 'green' : 'red';
  946. document.getElementById('highWindSendToggle').style.color = scriptBoatSend.highWind ? 'green' : 'red';
  947. document.getElementById('steamBoatSendToggle').style.color = scriptBoatSend.steamBoat ? 'green' : 'red';
  948. document.getElementById('trawlerSendToggle').style.color = scriptBoatSend.trawler ? 'green' : 'red';
  949. }
  950.  
  951. function saveOreOrder() {
  952. var oreItems = document.getElementById("sortableOres").getElementsByTagName("li");
  953. var oreOrder = [];
  954.  
  955. for (var i = 0; i < oreItems.length; i++) {
  956. var oreValue = oreItems[i].getAttribute("value");
  957. var oreMinimum = oreItems[i].querySelector(".oreMinimum").value;
  958.  
  959.  
  960. oreOrder.push({ value: oreValue, minimum: oreMinimum });
  961. }
  962.  
  963. localStorage.setItem("oreOrder", JSON.stringify(oreOrder));
  964. }
  965.  
  966. function loadOreOrder() {
  967. var oreOrderData = localStorage.getItem("oreOrder");
  968.  
  969. if (oreOrderData) {
  970. oreOrderData = JSON.parse(oreOrderData);
  971. var oreOrderList = document.getElementById("sortableOres");
  972.  
  973. for (var i = 0; i < oreOrderData.length; i++) {
  974. var oreValue = oreOrderData[i].value;
  975. var minimum = oreOrderData[i].minimum;
  976. var oreItem = oreOrderList.querySelector("[value='" + oreValue + "']");
  977.  
  978. oreMinimum.value = minimum
  979. oreOrderList.appendChild(oreItem);
  980. }
  981. }
  982. }
  983.  
  984. function saveSeedOrder() {
  985. var seedOrderList = document.getElementById("sortableSeeds");
  986. var seedItems = seedOrderList.getElementsByTagName("li");
  987. var seedOrder = [];
  988.  
  989. for (var i = 0; i < seedItems.length; i++) {
  990. var seedValue = seedItems[i].getAttribute("value");
  991. var seedCheckbox = seedItems[i].querySelector(".seed-checkbox");
  992. var isChecked = seedCheckbox.checked;
  993.  
  994. seedOrder.push({ value: seedValue, checked: isChecked });
  995. }
  996.  
  997. localStorage.setItem("seedOrder", JSON.stringify(seedOrder));
  998. }
  999.  
  1000. function loadSeedOrder() {
  1001. var seedOrderData = localStorage.getItem("seedOrder");
  1002.  
  1003. if (seedOrderData) {
  1004. seedOrderData = JSON.parse(seedOrderData);
  1005. var seedOrderList = document.getElementById("sortableSeeds");
  1006.  
  1007. for (var i = 0; i < seedOrderData.length; i++) {
  1008. var seedValue = seedOrderData[i].value;
  1009. var isChecked = seedOrderData[i].checked;
  1010. var seedItem = seedOrderList.querySelector("[value='" + seedValue + "']");
  1011. var seedCheckbox = seedItem.querySelector(".seed-checkbox");
  1012.  
  1013. if (isChecked) {
  1014. seedCheckbox.checked = true;
  1015. } else {
  1016. seedCheckbox.checked = false;
  1017. }
  1018.  
  1019. seedOrderList.appendChild(seedItem);
  1020. }
  1021. }
  1022. }
  1023.  
  1024. function savePotions() {
  1025. var potionList = document.getElementById("sortablePotions");
  1026. var potionItems = potionList.getElementsByTagName("li");
  1027. var potionState = [];
  1028.  
  1029. for (var i = 0; i < potionItems.length; i++) {
  1030. var potionValue = potionItems[i].getAttribute("value");
  1031. var drinkCheckbox = potionItems[i].querySelector(".drink-checkbox");
  1032. var brewCheckbox = potionItems[i].querySelector(".brew-checkbox");
  1033. var isDrinkChecked = drinkCheckbox.checked;
  1034. var isBrewChecked = brewCheckbox.checked;
  1035.  
  1036. potionState.push({
  1037. value: potionValue,
  1038. drinkChecked: isDrinkChecked,
  1039. brewChecked: isBrewChecked
  1040. });
  1041. }
  1042.  
  1043. localStorage.setItem("potionState", JSON.stringify(potionState));
  1044. }
  1045.  
  1046. window.savePotions2 = savePotions
  1047.  
  1048. function loadPotions() {
  1049. var potionState = localStorage.getItem("potionState");
  1050.  
  1051. if (potionState) {
  1052. potionState = JSON.parse(potionState);
  1053. var potionList = document.getElementById("sortablePotions");
  1054. var potionItems = potionList.getElementsByTagName("li");
  1055.  
  1056. for (var i = 0; i < potionState.length; i++) {
  1057. var potionValue = potionState[i].value;
  1058. var drinkCheckbox = potionItems[i].querySelector(".drink-checkbox");
  1059. var brewCheckbox = potionItems[i].querySelector(".brew-checkbox");
  1060. var isDrinkChecked = potionState[i].drinkChecked;
  1061. var isBrewChecked = potionState[i].brewChecked;
  1062.  
  1063. drinkCheckbox.checked = isDrinkChecked;
  1064. brewCheckbox.checked = isBrewChecked;
  1065. }
  1066. }
  1067. }
  1068.  
  1069. window.onload = function() {
  1070. scriptAddTabs();
  1071. scriptStyleTabs();
  1072. $(function() {
  1073. $("#sortableSeeds").sortable({
  1074. update: function(event, ui) {saveSeedOrder()}
  1075. });
  1076. $("#sortableSeeds").disableSelection();
  1077. $("#sortableOres").sortable({
  1078. update: function(event, ui) {saveOreOrder()}
  1079. });
  1080. $("#sortableOres").disableSelection();
  1081. });
  1082. loadSeedOrder();
  1083. loadOreOrder();
  1084. loadPotions();
  1085. };
  1086.  
  1087. function autoGameLoop() {
  1088. if (toggleGlobal === true) {
  1089. if (toggleGeodeOpen === true) autoGeodeOpen();
  1090. if (toggleMineralIdentify === true) autoIdentify();
  1091. if (toggleNecklaceCharge === true) autoNecklaceCharge();
  1092. if (toggleTrain === true) autoTrain();
  1093. if (toggleSmelting === true) autoSmelt();
  1094. if (toggleRefinary === true) autoRefine();
  1095. if (toggleCharcoal === true) autoFoundry();
  1096. if (toggleWoodcutting === true) autoLumber();
  1097. if (toggleFarming === true) autoPlant();
  1098. if (toggleBones === true) autoBones();
  1099. if (toggleDrink === true) autoDrink();
  1100. if (toggleBrew === true) autoBrew();
  1101. if (toggleExplore === true) autoExplore();
  1102. if (toggleCousin === true) autoCousin();
  1103. if (toggleStatue === true) autoStatue();
  1104. if (toggleArtifact === true) autoArtifact();
  1105. if (toggleBoat === true) autoBoat();
  1106. if (toggleFight === true) autoFight();
  1107. }
  1108. }
  1109.  
  1110. function autoGameLoopFast() {
  1111. if (toggleGlobal === true) {
  1112. if (toggleSpell === true) autoSpell();
  1113. //if (toggleShiny === true) autoShiny();
  1114. }
  1115. }
  1116.  
  1117. const gameLoopInterval = setInterval(function(){
  1118. autoGameLoop()
  1119. }, 5000);
  1120.  
  1121. const gameLoopFastInterval = setInterval(function(){
  1122. autoGameLoopFast()
  1123. }, 1000);
  1124. })();