您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Basic Script to Automate Critter Mound
当前为
// ==UserScript== // @name Critter Auto Script // @namespace http://tampermonkey.net/ // @version 0.9 // @description Basic Script to Automate Critter Mound // @author You // @match https://crittermound.com/ // @grant none // ==/UserScript== (function() { 'use strict'; var first, mother, father; var test = function() { if (game.femaleMound().length > 0) { first = game.femaleMound()[0]; mother = game.mother(); if (first.traits[0].trueValue > mother.traits[0].trueValue && first.traits[1].trueValue > mother.traits[1].trueValue && first.traits[2].trueValue > mother.traits[2].trueValue && first.traits[3].trueValue > mother.traits[3].trueValue && first.traits[4].trueValue > mother.traits[4].trueValue) { game.Move("Mate", "Female", game, game) console.log("New Queen"); } else { if (Math.random() >= 0.5) { if (game.maxArmyMoundSize() > game.armyMound().length) { game.Move("Army", "Female", game, game) console.log("New Female Army"); } else { console.log("To many Army") } } else { game.Move("Worker", "Female", game, game) console.log("New Female Worker"); } } } if (game.maleMound().length > 0) { first = game.maleMound()[0]; mother = game.father(); if (first.traits[0].trueValue > mother.traits[0].trueValue && first.traits[1].trueValue > mother.traits[1].trueValue && first.traits[2].trueValue > mother.traits[2].trueValue && first.traits[3].trueValue > mother.traits[3].trueValue && first.traits[4].trueValue > mother.traits[4].trueValue) { game.Move("Mate", "Male", game, game); console.log("New King"); } else { if (Math.random() >= 0.5) { if (game.maxArmyMoundSize() > game.armyMound().length) { game.Move("Army", "Male", game, game) console.log("New Male Army"); } else { console.log("To many Army") } } else { game.Move("Worker", "Male", game, game) console.log("New Male Worker"); } } } } setInterval(test,500); })();