PokeClicker (browser) – cheats
It’s a single player game, cheat all you want. All stuff here you just paste directly to console of your browser when you are on PokeClicker website and in game. REMEMBER TO DOWNLOAD YOUR SAVE FIRST IN CASE ANYTHING BAD HAPPENS (Shouldn’t but yeah).
Unlock all Discord codes without connecting with Discord:
for(let i = 0; i < App.game.discord.codes.length; i++){App.game.discord.codes[i].claim();};
Make all farm plants mature (ready to be collected):
for(let i = 0; i < App.game.farming.plotList.length; i++){if(App.game.farming.plotList[i].berryData !== undefined){App.game.farming.plotList[i].age = App.game.farming.plotList[i].berryData.growthTime[3];}}
Very rough (and experimental) bot/autoclicker (you control it by directly modifying “VARIABLES TO MODIFY” in code/console). If you want to use it… good luck:
javascript:
var worker_fn = function(e)
{
var lastTick = Date.now();
while(true)
{
let currentTime = Date.now();
if(currentTime >= lastTick + 50)
{
self.postMessage("0");
lastTick = currentTime;
}
}
};
/* VARIABLES TO MODIFY */
var runDungeon = 0; /* Currently this is only option to turn it on, also declares how many dungeons to run */
var autoDungeonMode = 1; /* 0 - Just Run To boss ; 1 - Clear ALL before Boss ; 2 - Just Trainers, No Chests ; 3 - Just Chests, No trainers */
var safariSpawnMobs = false; /* Automatically spawn safari Pokemons. In grass / water. To stop it just change the variable again. */
var downloadSaveAutomatically = false; /* This is bool if game should download save automatically. */
var downloadSaveAutomaticallyEveryXTicks = 72000; /* around 1 hour */
var blob = new Blob(["onmessage ="+worker_fn.toString()],{
type: "text/javascript"
});
function CheckForMine()
{
var undergroundItemTiles = [];
const mineModal = document.getElementById("mineModal");
if(mineModal !== undefined)
{
for(let i = 0; i < App.game.underground.mine._grid.length; i++)
{
if(App.game.underground.mine._grid[i].reward !== undefined && App.game.underground.mine._grid[i].layerDepth <= 0)
{
}
}
undergroundItemTiles = App.game.underground.mine._grid.filter(tile => tile.reward);
if(mineModal.style.display == "block")
{
const BombTool = App.game.underground.tools.getTool(UndergroundToolType.Bomb);
if(BombTool.canUseTool())
{
App.game.underground.tools.useTool(UndergroundToolType.Bomb, 1, 1);
}
const HammerTool = App.game.underground.tools.getTool(UndergroundToolType.Hammer);
if(HammerTool.canUseTool())
{
}
const ChiselTool = App.game.underground.tools.getTool(UndergroundToolType.Chisel);
if(ChiselTool.canUseTool())
{
}
const tool = App.game.underground.tools.getTool(App.game.underground.tools.selectedToolType);
if(tool.canUseTool())
{
switch(App.game.underground.tools.selectedToolType)
{
case UndergroundToolType.Hammer:
break;
case UndergroundToolType.Chisel:
break;
case UndergroundToolType.Bomb:
break;
case UndergroundToolType.Survey:
break;
}
}
}
}
}
function CheckForEggs()
{
const breedingModal = document.getElementById("breedingModal");
if(breedingModal !== undefined)
{
if(breedingModal.style.display == "block")
{
if(App.game.breeding.canBreedPokemon())
{
App.game.breeding.addPokemonToHatchery()
}
}
}
}
/*
* DUNGEON
*/
var DungeonInProgress = false;
var BossOrLadderX = 0;
var BossOrLadderY = 0;
var StartFightWithBossOrLadder = true;
function DungeonGoToBoss()
{
if(DungeonRunner.map.playerPosition().y > BossOrLadderY)
{
DungeonRunner.map.moveUp();
}
else if(DungeonRunner.map.playerPosition().y < BossOrLadderY)
{
DungeonRunner.map.moveDown();
}
else if(DungeonRunner.map.playerPosition().x > BossOrLadderX)
{
DungeonRunner.map.moveLeft();
}
else if(DungeonRunner.map.playerPosition().x < BossOrLadderX)
{
DungeonRunner.map.moveRight();
}
}
function DungeonClearAll()
{
var playerFloor = DungeonRunner.map.playerPosition().floor;
var playerY = DungeonRunner.map.playerPosition().y;
var dungeonSizeX = DungeonRunner.map.board()[playerFloor][playerY].length - 1;
if(DungeonRunner.map.board()[playerFloor][playerY][dungeonSizeX].isVisited == false)
{
DungeonRunner.map.moveRight();
}
else if(DungeonRunner.map.board()[playerFloor][playerY][0].isVisited == false)
{
DungeonRunner.map.moveLeft();
}
else if(DungeonRunner.map.playerPosition().y != 0 && DungeonRunner.map.board()[playerFloor][0][0].isVisited == false)
{
DungeonRunner.map.moveUp();
}
else
{
StartFightWithBossOrLadder = true;
DungeonGoToBoss();
}
}
function DungeonLogic()
{
if(autoDungeon)
{
if(DungeonInProgress === false)
{
let isBossOrLadderFound = false;
for (let i = 0; i < DungeonRunner.map.board()[DungeonRunner.map.playerPosition().floor].length; i++)
{
for (let j = 0; j < DungeonRunner.map.board()[DungeonRunner.map.playerPosition().floor][i].length; j++)
{
if(DungeonRunner.map.board()[DungeonRunner.map.playerPosition().floor][i][j].type() === GameConstants.DungeonTileType.boss ||
DungeonRunner.map.board()[DungeonRunner.map.playerPosition().floor][i][j].type() === GameConstants.DungeonTileType.ladder)
{
BossOrLadderY = i;
BossOrLadderX = j;
isBossOrLadderFound = true;
break;
}
}
if(isBossOrLadderFound)
{
break;
}
}
isBossOrLadderFound = false;
DungeonInProgress = true;
if(autoDungeonMode === 0)
{
StartFightWithBossOrLadder = true;
}
}
switch(autoDungeonMode)
{
case 0: /* Just Run To boss */
DungeonGoToBoss();
break;
case 1: /* Clear ALL before Boss */
DungeonClearAll();
break;
case 2: /* Just Trainers, No Chests */
DungeonClearAll();
break;
case 3: /* Just Chests, No trainers */
break;
}
if (DungeonRunner.fighting() && !DungeonBattle.catching())
{
DungeonBattle.clickAttack();
}
else if (DungeonRunner.map.currentTile().type() === GameConstants.DungeonTileType.entrance)
{
}
else if (DungeonRunner.map.currentTile().type() === GameConstants.DungeonTileType.chest)
{
if(autoDungeonMode === 1)
{
DungeonRunner.openChest();
}
}
else if (DungeonRunner.map.currentTile().type() === GameConstants.DungeonTileType.boss && !DungeonRunner.fightingBoss())
{
if(StartFightWithBossOrLadder === true)
{
DungeonRunner.startBossFight();
}
}
else if (DungeonRunner.map.currentTile().type() === GameConstants.DungeonTileType.ladder)
{
if(StartFightWithBossOrLadder === true)
{
isBossOrLadderFound = false;
DungeonInProgress = false;
if(autoDungeonMode === 0)
{
StartFightWithBossOrLadder = true;
}
else
{
StartFightWithBossOrLadder = false;
}
DungeonRunner.nextFloor();
}
}
}
}
/*
* DUNGEON END
*/
var autoMines = false;
var autoEggs = false;
var autoDungeon = false;
var ticksToDownloadSave = downloadSaveAutomaticallyEveryXTicks;
var worker = new Worker(window.URL.createObjectURL(blob));
worker.onmessage = function(e)
{
if(App.game.gameState === GameConstants.GameState.fighting)
{
Battle.clickAttack();
}
else if(App.game.gameState === GameConstants.GameState.dungeon)
{
DungeonLogic();
}
else if(App.game.gameState === GameConstants.GameState.temporaryBattle)
{
TemporaryBattleBattle.clickAttack()
}
else if(App.game.gameState === GameConstants.GameState.gym)
{
if(GymBattle.enemyPokemon())
{
GymBattle.clickAttack();
}
}
else if(App.game.gameState === GameConstants.GameState.battleFrontier)
{
if(BattleFrontierBattle.enemyPokemon())
{
BattleFrontierBattle.clickAttack();
}
}
else if(App.game.gameState === GameConstants.GameState.town)
{
if(runDungeon > 0)
{
autoDungeon = true;
if(player.town.dungeon != null && DungeonRunner.canStartDungeon(player.town.dungeon))
{
DungeonInProgress = false;
StartFightWithBossOrLadder = false;
DungeonRunner.initializeDungeon(player.town.dungeon);
runDungeon -= 1;
}
}
else
{
autoDungeon = false;
}
}
else if(App.game.gameState === GameConstants.GameState.safari)
{
if(Safari.inBattle())
{
SafariBattle.throwBall();
}
else if(safariSpawnMobs)
{
const currentTile = Safari.grid[Safari.playerXY.y][Safari.playerXY.x];
if (Safari.balls() > 0 && (currentTile === GameConstants.SafariTile.grass || GameConstants.SAFARI_WATER_BLOCKS.includes(currentTile)))
{
SafariBattle.load();
}
}
}
CheckForMine();
if(downloadSaveAutomatically == true)
{
if(ticksToDownloadSave < 0)
{
Save.download();
ticksToDownloadSave = downloadSaveAutomaticallyEveryXTicks;
}
else
{
ticksToDownloadSave = ticksToDownloadSave - 1;
}
}
};
worker.postMessage("start");