Melvor Auto Mining Mastery

Automatically mines to get all masteries to 69

  1. // ==UserScript==
  2. // @name Melvor Auto Mining Mastery
  3. // @version 1.0
  4. // @description Automatically mines to get all masteries to 69
  5. // @author JHawk55
  6. // @match https://*.melvoridle.com/*
  7. // @grant none
  8. // @namespace http://tampermonkey.net/
  9. // ==/UserScript==
  10. //
  11. // WARNING: Before using this script (or any other), download a copy of your save.
  12. // Read ALL of the notes up here before using this script.
  13. //
  14. // This function was designed for 0.16.1 on Google Chrome. If any bugs are found,
  15. // dm JHawk55 on the Melvor discord.
  16. //
  17. // IMPORTANT: If you have the money for mining or gem gloves, this function will
  18. // auto-equip them and maintain their charges IF AND ONLY IF YOU OWN THEM. YOU
  19. // MUST MAKE THE FIRST PURCHASE YOURSELF.
  20. //
  21. // If you own Aorpheat's Signet, the Mining Skillcape, or Clue Chaser's, this
  22. // function will auto-equip them.
  23.  
  24. this.autoMiningMastery = setInterval(()=> {
  25. if (isMining) {
  26. if (equippedItems[10] != CONSTANTS.item.Mining_Skillcape && checkBankForItem(CONSTANTS.item.Mining_Skillcape)) { // mining skillcape
  27. equipItem(getBankId(CONSTANTS.item.Mining_Skillcape), CONSTANTS.item.Mining_Skillcape, 1, 0)
  28. }
  29. if (equippedItems[7] != CONSTANTS.item.Aorpheats_Signet_Ring && checkBankForItem(CONSTANTS.item.Aorpheats_Signet_Ring)) {
  30. equipItem(getBankId(CONSTANTS.item.Aorpheats_Signet_Ring), CONSTANTS.item.Aorpheats_Signet_Ring, 1, 0)
  31. }
  32. if (equippedItems[6] != CONSTANTS.item.Clue_Chasers_Insignia && checkBankForItem(CONSTANTS.item.Clue_Chasers_Insignia)) { // clue chaser's
  33. equipItem(getBankId(CONSTANTS.item.Clue_Chasers_Insignia), CONSTANTS.item.Clue_Chasers_Insignia, 1, 0)
  34. }
  35. if (currentRock <= 9) {
  36. if (equippedItems[CONSTANTS.equipmentSlot.Gloves] != CONSTANTS.item.Gem_Gloves && checkBankForItem(CONSTANTS.item.Gem_Gloves)) {
  37. equipItem(getBankId(CONSTANTS.item.Gem_Gloves), CONSTANTS.item.Gem_Gloves, 1, 0)
  38. }
  39. maxOre = canMineDragonite() ? 9 : 8 // start with dragonite if mineable to avoid mining rune essence
  40. while (miningData[maxOre].level > skillLevel[CONSTANTS.skill.Mining]) {
  41. maxOre-- // decrement till we find the actual max ore mineable
  42. }
  43. miningAgain = false
  44. while (!miningAgain) {
  45. if (rockData[maxOre].depleted || miningOreMastery[maxOre].mastery >= 69) {
  46. maxOre--
  47. } else {
  48. if (currentRock != maxOre) {
  49. mineRock(maxOre)
  50. }
  51. miningAgain = true
  52. }
  53. }
  54. } else {
  55. if (equippedItems[CONSTANTS.equipmentSlot.Gloves] != CONSTANTS.item.Mining_Gloves && checkBankForItem(CONSTANTS.item.Mining_Gloves)) {
  56. equipItem(getBankId(CONSTANTS.item.Mining_Gloves), CONSTANTS.item.Mining_Gloves, 1, 0)
  57. }
  58. }
  59. if (glovesTracker[CONSTANTS.shop.gloves.Gems].isActive && glovesTracker[CONSTANTS.shop.gloves.Gems].remainingActions <= 1 && equippedItems[CONSTANTS.equipmentSlot.Gloves] === CONSTANTS.item.Gem_Gloves && gp >= 500000) {
  60. buyGloves(4)
  61. }
  62. if (glovesTracker[CONSTANTS.shop.gloves.Mining].isActive && glovesTracker[CONSTANTS.shop.gloves.Mining].remainingActions <= 1 && equippedItems[CONSTANTS.equipmentSlot.Gloves] === CONSTANTS.item.Mining_Gloves && gp >= 75000) {
  63. buyGloves(1)
  64. }
  65. }
  66. }, 1000);
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址