Scripting and Extensions: Difference between revisions

From Melvor Idle
 
(157 intermediate revisions by 23 users not shown)
Line 1: Line 1:
{{V0.16.3}}
<!--No version number since version is per tool/script
Many people have developed scripts and extensions that add QOL, automatication, calculators and more. There is an active community of people trying to develop new scripts and extensions on the [https://discord.gg/KNakXTh Melvor Idle Discord].
--><div class="warningbox">While mod developers take every precaution to ensure their mods are stable, it is possible that mods could contain bugs which in the worst case may corrupt your saves. Therefore, it is highly recommended to '''BACKUP YOUR SAVES''' before using any mods, and to take backups on a regular schedule thereafter.</div>


'''Disclaimer:''' It is possible that there are bugs in these scripts that could corrupt your game. Also note that many of these scripts and extensions were created for earlier versions of the game and could not be working in newer versions, or worst case senario, corrupt your save. It is highly recommended to '''BACKUP YOUR SAVE''' before running any scripts or extensions.
Many people have developed scripts and extensions that add QOL, automation, calculators and more. There is an active community of people trying to develop new scripts and extensions on the [https://discord.gg/MelvorIdle Melvor Idle Discord].


'''Disclaimer:''' Do not run code you can not understand or do not trust. Malicious code could be included in any of these scripts and extensions.
From [[V1.1]] onwards, all mods available for the game can be browsed either on [https://mod.io/g/melvoridle mod.io] or through the in-game mod manager. Mods may then also be subscribed to via the in-game mod manager. The mod manager must first be enabled within the in-game settings, after which the mod manager will be accessible from the side bar.


== List of Scripts and Extensions ==
For spreadsheet based calculators instead, see [[Spreadsheets and Theorycrafting]].
{| class="wikitable sortable"
 
|-
== List of Independent Tools ==
These tools are used independently of the Melvor Idle app and website. Usually they are independent reference tools or interact with game data via the save data export.
{| class="wikitable sortable stickyHeader"
|- class="headerRow-0"
! Name
! Name
! Description
! Description
Line 15: Line 18:
! Aspects
! Aspects
|-
|-
| [https://github.com/visua0/Melvor-Idle-Combat-Simulator-Reloaded Combat Simulator Reloaded]
| [https://melvor-calc.kpwn243.com/ Melvor Calculators]
| An updated fork of the original Combat Simulator
| Contains various calculators for the game, currently a combat level calculator is available with more planned in the future.
| Visua
| [https://discordapp.com/users/145335611631337472 kpwn243]
| style="background-color:#E8FFEB;" | 0.16.3
{{VColor|1.0.5}}
| [[Combat]]
|-
| [https://greasyfork.org/en/scripts/400936-melvor-timeremaining Melvor TimeRemaining]
| Shows time remaining for completing a task with current resources
| Breindahl
| style="background-color:#E8FFEB;" | 0.16.2
| UI/QOL
|-
| [https://greasyfork.org/en/scripts/405082-melvor-completion-log-helper Melvor Completion Log Helper]
| Shows greyed out images of items/monsters that you have yet to get/kill in the completion log and adds links to the wiki.
| Breindahl
| style="background-color:#E8FFEB;" | 0.16.2
| UI/QOL
|-
| [https://greasyfork.org/en/scripts/404853-melvor-slayer-task-notification Melvor Slayer Task Notification]
| Gives you notification on [[Slayer#Slayer Tasks|slayer task]] completion.
| Breindahl
| style="background-color:#E8FFEB;" | 0.16.2
| QOL
|-
| [https://greasyfork.org/en/scripts/408741-melvor-makex MakeX]
| Adds button to Make X amount of actions of a skill and then stop.
| Breindahl
| style="background-color:#E8FFEB;" | 0.16.2
| UI/QOL
|-
| [https://greasyfork.org/en/scripts/404416-melvor-auto-farming-mastery Melvor Auto Farming Mastery]
| Automatically plants your lowest mastery seeds.
| JHawk55#8345
| style="background-color:#E8FFEB;" | 0.16.2
| [[Farming]]
|-
| [https://gitlab.com/aldousWatts/SEMI Scripting Engine for Melvor Idle]
| Adds automation and functionality to Melvor Idle, combining several userscripts into one
| Aldous Watts
| style="background-color:#E8FFEB;" | 0.16.2
| Multi
|-
| [https://github.com/coolrox95/Melvor-Idle-Combat-Simulator Melvor Combat Simulator]
| Full [[Combat]] Simulator
| Coolrox95
| style="background-color:#FFFFE8;" | 0.16.1
| [[Combat]]
|-
| [https://greasyfork.org/en/scripts/394850-melvor-auto-eat Melvor Auto Eat]
| Automatically eats [[Food|food]] when [[Hitpoints|health]] is low
| Not Arcanus
| style="background-color:#FFE8E8;" | 0.15.2
| Auto-Eat
|-
| [https://greasyfork.org/en/scripts/394854-melvor-auto-loot Melvor Auto Loot]
| Automatically loot [[Enemies|enemy]] drops
| Not Arcanus
| style="background-color:#FFE8E8;" | 0.15.2
| Auto-Loot
|-
| [https://greasyfork.org/en/scripts/394855-melvor-auto-replant Melvor Auto Replant]
| Automatically replants the same seed for [[Farming]]
| Not Arcanus
| style="background-color:#FFE8E8;" | 0.15.2
| [[Farming]]
|-
| [https://greasyfork.org/en/scripts/400027-melvor-idle-autosell-fishing-junk/code Melvor Idle AutoSell Fishing Junk]
| Automatically sells [[Fishing#Junk|junk]] caught while [[Fishing|fishing]]
| Aldous Watts
| style="background-color:#FFE8E8;" | 0.15.2
| Auto-Sell
|-
| [https://pastebin.com/N36QMx2S Melvor Idle Auto Eat Just Enough]
| Tries to eat just enough to survive the next attack
| Lamb#3856
| style="background-color:#FFE8E8;" | 0.15.1
| Auto-Eat
|-
| [https://pastebin.com/KjJnLt7f Auto planter by priorities]
| Automatically tries to plant the highest tier seeds avaible
| Dejv#3141
| style="background-color:#FFE8E8;" | 0.15.1
| [[Farming]]
|-
| [https://github.com/Katorone/AutoMelvorIdle AutoMelvorIdle]
| Several automatic functionalities
| Katorone
| style="background-color:#FFE8E8;" | 0.12.2
| Multi
| Multi
|-
|-
| [https://discordapp.com/channels/625838709203271680/664637399028072470/669475769671483392 Auto Bonfire]
| Automatically lights [[Firemaking#Bonfire|bonfires]] for [[Firemaking]]
| Dream
| style="background-color:#FFE8E8;" | 0.11.2
| [[Firemaking]]
|-
| [https://discordapp.com/channels/625838709203271680/664637399028072470/670601663467487242 Auto Cook]
| Automatically [[Cooking|cooks]] [[Fishing|fish]]
| Dream
| style="background-color:#FFE8E8;" | 0.11.2
| [[Cooking]]
|-
| [https://discordapp.com/channels/625838709203271680/664637399028072470/671126592591757332 Auto Eat]
| Automatically eats if health is less than equipped food
| Shakalaka
| style="background-color:#FFE8E8;" | 0.11.2
| Auto-eat
|-
| [https://discordapp.com/channels/625838709203271680/664637399028072470/668666998992928779 Auto Mine Tracker]
| Mines highest ore available
| Natsulus
| style="background-color:#FFE8E8;" | 0.11.2
| [[Mining]]
|-
| [https://discordapp.com/channels/625838709203271680/664637399028072470/667770884278321222 Auto Slayer]
| Automatically switches to new [[Slayer#Slayer Tasks|slayer task]]
| nysos3
| style="background-color:#FFE8E8;" | 0.11.2
| [[Combat]]
|-
| [https://discordapp.com/channels/625838709203271680/664637399028072470/667406487785570304 Balanced Bronze Mining]
| Switches between [[Tin Ore|tin]] and [[Copper Ore|copper]] to mine for [[Bronze Bar|bronze]]
| nysos3
| style="background-color:#FFE8E8;" | 0.11.2
| [[Mining]]
|-
| [https://discordapp.com/channels/625838709203271680/664637399028072470/672289426310823972 Get Specific Task]
| Automatically rerolls [[Slayer#Slayer Tasks|Slayer Tasks]] from defined list
| Coolrox95
| style="background-color:#FFE8E8;" | 0.11.2
| [[Combat]]
|-
| [https://discordapp.com/channels/625838709203271680/664637399028072470/668936067331653642 Mine Priority List]
| Automatically [[Mining|mines]] based on input ore priority
| Brqqq
| style="background-color:#FFE8E8;" | 0.11.2
| [[Mining]]
|-
| [https://discordapp.com/channels/625838709203271680/664637399028072470/671113318135627808 Smithing HUD]
| Adds [[Smithing]] HUD and XP calculator
| Bioniclegenius
| style="background-color:#FFE8E8;" | 0.11.2
| [[Smithing]]
|-
| [https://pastebin.com/wq641Nhx XPH]
| Monitors XP/HR stats experimentally
| Breakit
| style="background-color:#FFE8E8;" | 0.11.2
| UI/QOL
|-
| [https://pastebin.com/5JDEGcWP Coolrox95's Gear Swapper]
| Automatically switches [[Equipment|gear]]
| Coolrox95
| style="background-color:#FFE8E8;" | 0.11.1
| [[Combat]]
|}
|}
=== In-game functions ===
It is possible to interact directly with the ingame functions of the game through the console. This can be used to add items, levels, GP and more.
''See list of [[In-game Functions]].''
== How to Use? ==
Depending on the type of script or extension there are different ways needed to add them to the game.
=== Extensions ===
Extensions are independent add-ons that run in the browser. How to install varies from different browsers.
For Firefox, most extensions can be installed directly to the browser from the [https://addons.mozilla.org/en-US/firefox/extensions/ Firefox Extension Store].
For Chrome, many extensions needs to be added as an [https://developer.chrome.com/extensions/getstarted upacked extension] while in Developer Mode.
Some extensions might require you to edit specific files or set specific variables before they can run. The page with the download link will usually have a more detailed explanation on how to install.
Remember to refresh the game for the extension to take effect.
=== Userscripts ===
Userscripts are programs that run by the help of userscript manager browser extensions such as [https://www.greasespot.net/ Greasemonkey] or [https://www.tampermonkey.net/ Tampermonkey].
If the source of your userscript is a userscript repository, such as [https://greasyfork.org/ Greasyfork], simply Install by clicking the button on the page.
If the userscript is shared through a plain text sharing site, such as [https://pastebin.com/ Pastebin], copy the code into a new userscript in your userscript manager browser extension.
Remember to refresh the game for the userscript to take effect.
=== Console scripts ===
The simplest form of scripts are javascript code that are pasted directly into the console of of your browser.
To access the console open Developer Tools (usually by pressing F12) in your browser and navigate to the console. Then, simply paste the code in the input field and press enter. Most console scripts will require you to fill out variables in the code before executing them.


Do note that unlike extensions and userscripts, console scripts will run without refreshing the game, but will in turn not be saved when the game is closed.
=== In-Game Functions ===
{{Main|Reference=In-game Functions}}
It is possible to interact directly with the in-game functions of the game through the console. This can be used to add items, levels, GP and more.


{{Menu}}
{{Menu}}
[[Category:Guides]]
[[Category:Guides]]

Latest revision as of 12:57, 26 July 2024

While mod developers take every precaution to ensure their mods are stable, it is possible that mods could contain bugs which in the worst case may corrupt your saves. Therefore, it is highly recommended to BACKUP YOUR SAVES before using any mods, and to take backups on a regular schedule thereafter.

Many people have developed scripts and extensions that add QOL, automation, calculators and more. There is an active community of people trying to develop new scripts and extensions on the Melvor Idle Discord.

From V1.1 onwards, all mods available for the game can be browsed either on mod.io or through the in-game mod manager. Mods may then also be subscribed to via the in-game mod manager. The mod manager must first be enabled within the in-game settings, after which the mod manager will be accessible from the side bar.

For spreadsheet based calculators instead, see Spreadsheets and Theorycrafting.

List of Independent Tools

These tools are used independently of the Melvor Idle app and website. Usually they are independent reference tools or interact with game data via the save data export.

In-Game Functions

It is possible to interact directly with the in-game functions of the game through the console. This can be used to add items, levels, GP and more.