Melvor Idle - AutoMastery

Automatically spends mastery when a pool is about to fill up

2020/10/29のページです。最新版はこちら

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
作者
Visua
評価
0 0 0
バージョン
1.3
作成日
2020/10/23
更新日
2020/10/29
大きさ
5.26KB
ライセンス
不明
対象サイト

When a pool is about to fill up it will select the highest mastery that can be leveled without dropping below 95% (or a custom threshold). If there is no mastery cheap enough then it will select the cheapest.

You can see everything it levels up in the console. For example: AutoMastery: Leveling up Teak Logs to 41

You can instead select a specific mastery to focus on via the console by setting autoMasterySelectedMasteries[skill] to the desired mastery id. Default is -1 for automatic selection.

You can change the threshold for a skill via the console by setting autoMasteryThresholds[skill] to the desired percentage. Default is 95.

The mastery to level up gets chosen like this:

if the pool is about to overflow:
    if a specific mastery has been selected by the user via autoMasterySelectedMasteries[skill] then select that
    if the selected mastery is 99+ or if no mastery selected:
        select the highest mastery that can be leveled while staying above the threshold (95% or custom via autoMasteryThresholds[skill])
        (if the highest value appears multiple times then select the last one in the list)
    if no mastery selected:
        select the cheapest to level mastery (because this will drop the pool below the threshold)
        (if the lowest value appears multiple times then select the last one in the list)
    if a mastery is selected then level up that mastery