您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Automatically plant and harvest berries.
// ==UserScript== // @name Plant random berry and auto harvest - pokeclicker.com // @namespace Violentmonkey Scripts // @match https://www.pokeclicker.com/ // @grant none // @version 1.9 // @author DrAK // @description Automatically plant and harvest berries. // ==/UserScript== function loopFarm() { var chooseRandBerry = 0; var farmLoop = setInterval(function () { for (let i = 0; i < 25; i++) { if (i == 12) { //leave middle empty App.game.farming.harvest(i, false); i++; } if(App.game.farming.plotList[i].stage() == 4 && App.game.farming.plotList[i].age > (App.game.farming.plotList[i].berryData.growthTime[4] * 0.7) ) { App.game.farming.harvest(i, false); } chooseRandBerry = Math.floor(Math.random() * (App.game.farming.highestUnlockedBerry()+0.25)); while(!App.game.farming.unlockedBerries[chooseRandBerry]()) { chooseRandBerry = Math.floor(Math.random() * (App.game.farming.highestUnlockedBerry()+0.25)); } App.game.farming.plant(i, chooseRandBerry, false); } }, 5000); } loopFarm();