Mousehunt Brew Roots Automatically

Brew Roots Automatically

נכון ליום 02-11-2023. ראה הגרסה האחרונה.

// ==UserScript==
// @name         Mousehunt Brew Roots Automatically
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Brew Roots Automatically
// @author       kaninchen
// @match        https://www.mousehuntgame.com/camp.php
// @icon         https://www.google.com/s2/favicons?sz=64&domain=mousehuntgame.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    function brewRoot(){
        if (user.environment_name === "Gloomy Greenwood"){
            if (user.quests.QuestHalloweenBoilingCauldron.cauldrons[0].is_queue_full === false){
                $("a.halloweenBoilingCauldronHUD-bait-cauldronButton[data-cauldron-index='0'][data-recipe-type='halloween_extract_cauldron_recipe'][data-item-type='halloween_extract_stat_item']").click();
            }
            if (user.quests.QuestHalloweenBoilingCauldron.cauldrons[1].is_queue_full === false){
                $("a.halloweenBoilingCauldronHUD-bait-cauldronButton[data-cauldron-index='1'][data-recipe-type='halloween_extract_cauldron_recipe'][data-item-type='halloween_extract_stat_item']").click();
            }
        }
    }

    $(document).ajaxStop(brewRoot)
    $(document).ready(brewRoot)
})();