News:

Forums are back up, but many custom plugins and theming has been lost. If I get the time, I'll try and fix it back up - Kaise123

Other:KCv2 Files are still available for download here -> http://forums.kaise123.com/index.php?topic=4977.0

Main Menu

Cookie Clicker + Savegame + Cheats

Started by Michael5017, October 11, 2013, 02:12:29 AM

Previous topic - Next topic

Michael5017

Hello

Bored? Play this game Cookie Clicker!/Cookie Clicker Classic!

New: http://orteil.dashnet.org/cookieclicker/
Old/Classic: http://orteil.dashnet.org/experiments/cookie/

Ive also got a savegame for both and cheats (cheats for new cookieclicker only)

New:

[spoiler]MS4wMzc1fHwxMzgwMTA5NDc1MzM5fDExMTExMXwxMDIwMTY5MTE3NTI0MjY4LjQ7MzI5MjE4NTYyMzQzNTY0MjQ7NDMxNzsyNzYwOzI2ODUzODk4NTA1ODc2NTc7MTstMTstMTswOzA7MDswOzY1OzQzNjEyfDIwNiwyMDYsMTQ0MzMyMzA3NiwwOzE5NCwxOTQsMjUxMzc2MzYzLDA7MTAwLDEwMCw2NzYxNDYsMDsxMDAsMTAwLDM0MTI0NDAsMDsxMDAsMTAwLDExMjU3ODc2LDA7MTAwLDEwMCwyODgxODgzNCwwOzEwMCwxMDAsMTA5OTEyMTQ1LDA7MTAwLDEwMCwxNzU2MzU4MTU0LDA7MTAwLDEwMCwxNTYzNTM5MTQyMSwwOzk5LDk5LDE5NTMwMDU3MTc0NCwwO3w0NTAzNTk5NjI3MzcwNDk1OzQ1MDM1OTk2MjczNzA0OTU7MjI1MTgwMTk2MTE2ODg5NTs0NTAzNTczNzQ4NjQ0MzUxOzU2NDczNjY1ODI0MzU4M3w0NTAyNDk4MTAyNDc2Nzk5OzIyNTQ4Nzk3MDU3MjY5NzU7MjM%3D%21END%21[/spoiler]

Old/Classic: 0.1251|99999999999|6|30|1|111|0|500|0|2000|0|7000|0|50000|0|1000000|0|123456789

Now some cheats:

[spoiler]

To do some cheats, you need to right click en select Element Inspector/Inspect Elements and go to Developer/Console

Gaining Cookies

To change the amount of cookies in bank, use:

Game.cookies = <amount>;

To add more cookies to the existing amount in bank, use:

Game.Earn(<amount adding>);

Removing Cookies

To remove a specific amount of cookies, use:

Game.cookies -= <amount removing>;

Infinity Cookies

To obtain an infinite amount of cookies, use:

Game.cookies = Infinity;

Changing CpS

To change the CpS (will self-correct when new buildings/upgrades are bought), use:

Game.cookiesPs = <CpS>;

To make the effect stay until the page is refreshed, use:

Game.CalculateGains = function() { Game.cookiesPs = <CpS>; Game.computedMouseCps = Game.mouseCps(); Game.recalculateGains = 0; }; Game.recalculateGains = 1;

Auto-Click Big Cookie

To auto-click the big cookie at a set interval, use:

setInterval(Game.ClickCookie, <milliseconds interval>);

Note that this will be in effect until you refresh the page.
Faster Auto-Click

The auto-click cheat above can only click as fast as the CPU can handle. To produce an even faster effect, use:


var autoClicker = function(clicksAtOnce, repeatInterval) { var cheated = false; var intoTheAbyss = function() { if(!cheated) { cheated = true; for(var i = 0; i < clicksAtOnce; i++) { Game.ClickCookie(); Game.lastClick = 0; } cheated = false; } } return setInterval(intoTheAbyss, repeatInterval); }; autoClicker(<amount of clicks>, <milliseconds interval>);
Auto-Click Only During Click Frenzy

To enable auto-click only during the Click Frenzy, use:


setInterval(function() { if (Game.clickFrenzy > 0) Game.ClickCookie(); }, <milliseconds interval>);

Prices Stay at Base Price

If you want all the prices to stay at base price despite amount owned, use:

Game.priceIncrease = 1; Game.ObjectsById.forEach(function (e) { e.refresh(); }); Game.storeToRebuild = 1;
All Buildings Are Free

If you want to make all buildings completely free, use:

Game.ObjectsById.forEach(function (e) { e.basePrice = 0; e.refresh(); }); Game.storeToRebuild = 1;

Spawn a Golden Cookie

To spawn a golden cookie, use:

/*Game.goldenCookie.wrath = 0;*/ Game.goldenCookie.spawn();

If you want to avoid getting the "Cheated cookies taste awful" achievement, use:

/*Game.goldenCookie.wrath = 0;*/ Game.goldenCookie.delay = Game.goldenCookie.life = 0;

If you want to spawn a golden cookie that starts a cookie chain, add the following script in addition to the ones provided above:

Game.goldenCookie.chain = <stage>;

If you want to start the cookie chain at 6 cookies, use "1" as the stage. 66 cookies = "2", 666 cookies = "3", and so on.
Golden Cookies with No Delay

If you want the golden cookies to spawn one after another without delay, use:

setInterval(function() { /*Game.goldenCookie.wrath = 0;*/ Game.goldenCookie.delay = 0; }, 1);
Set Golden Cookie Clicks

If you just want to set the amount of golden cookies clicked, use:

Game.goldenClicks = <amount>;

If you want to earn the related achievements, use one of the auto-click's below.
Auto-Click Golden Cookies

If you want the golden cookies to be auto-clicked as soon as they appear, use:

setInterval(function() { if (Game.goldenCookie.life > 0) { /*Game.goldenCookie.wrath = 0;*/ Game.goldenCookie.click(); } }, 500);

Alternatively, if you want to click only golden cookies as they appear, use:

setInterval(function() { if (Game.goldenCookie.life > 0 && Game.goldenCookie.wrath == 0) { Game.goldenCookie.click(); } }, 500);
Auto-Click Golden Cookies

If you want the golden cookies to be auto-clicked as soon as they appear, use:


setInterval(function() { if (Game.goldenCookie.life > 0) { /*Game.goldenCookie.wrath = 0;*/ Game.goldenCookie.click(); } }, 500);

Alternatively, if you want to click only golden cookies as they appear, use:


setInterval(function() { if (Game.goldenCookie.life > 0 && Game.goldenCookie.wrath == 0) { Game.goldenCookie.click(); } }, 500);
Auto-Spawn and Click Golden Cookies

If you want to automatically spawn and click a set amount of golden cookies instantaneously, use:


for (var i = 0; i < <amount>; i++) { /*Game.goldenCookie.wrath = 0;*/ Game.goldenCookie.life = 1; Game.goldenCookie.click(); }

If you want to automatically spawn and click a golden cookie at set interval, use:


setInterval(function() { /*Game.goldenCookie.wrath = 0;*/ Game.goldenCookie.life = 1; Game.goldenCookie.click(); }, <milliseconds interval>);
Frenzy

To produce a customized Frenzy effect, use:


var time = <seconds>; Game.frenzy = Game.fps * time; Game.frenzyPower = <multiplier>; Game.recalculateGains = 1; Game.Popup('Frenzy! Cookie production x' + Game.frenzyPower + ' for ' + time + ' seconds!');
Clicking Frenzy

To produce a customized Clicking Frenzy effect, use:


var time = <seconds>; Game.clickFrenzy = Game.fps * time; Game.recalculateGains = 1; Game.Popup('Click frenzy! Clicking power x777 for ' + time + ' seconds!');


Grandmapocalypse Related
Change Elder Pledge Time Left

If you want to change the time remained on the Elder Pledge, use:

Game.pledgeT = <minutes> * 60 * Game.fps;

Auto-Buy Elder Pledge

If you want to automatically buy Elder Pledge as it becomes available, use:


setInterval(function() { if (Game.UpgradesInStore.indexOf(Game.Upgrades["Elder Pledge"]) != -1) { Game.Upgrades["Elder Pledge"].buy(); } }, 500);

Unlocking an Achievement

If you want to unlock an achievement, use:

Game.Win(<name>);

or

Game.Win(Game.AchievementsById[<ID>].name);

Unlocking All Achievements

If you want to unlock every single achievement, use:


Game.AchievementsById.forEach(function(e) { // if (e.hide != 3) Game.Win(e.name); });

If you only want to unlock non-shadow achievements, remove the double slash (//);
Removing an Achievements

If you want to remove an achievement, use:

Game.Achievements[<name>].won = 0;

or

Game.AchievementsById[<ID>].won = 0;

Removing All Achievements

If you want to remove all the achievements, use:

Game.AchievementsById.forEach(function(e) { // if (e.hide == 3) e.won = 0; });

Unlocking/Buying an Upgrade

If you want to unlock a single upgrade, use:

Game.Unlock(Game.UpgradesById[<ID>].name);

or

Game.Unlock(<name>);

If you want to unlock AND buy an upgrade, use:

UpgradesById[<ID>].earn()

or

Upgrades[<name>].earn()

Unlocking/Buying All Upgrades

If you want to unlock all the upgrades, use:

Game.UpgradesById.forEach(function(e) { Game.Unlock(e.name); });

If you want to unlock AND obtain all upgrades, use:

Game.UpgradesById.forEach(function(e) { if (e.bought === 0) e.earn(); });
Free Upgrades

If you want to make all upgrades completely free, use:

Game.UpgradesById.forEach(function (e) { e.basePrice = 0; }); Game.upgradesToRebuild = 1;
Instant Research

If you want to make all researches instant, use:

setInterval(function() { Game.researchT = 0; }, 1);

Heavenly Chips Related

If you want to change the amount of heavenly chips temporarily, use:


Game.prestige = []; Game.prestige['Heavenly chips'] = <amount>;

This will make it so that when you refresh the page, the amount of heavenly chips returns back to normal. If you want it to be permanent, use:


var nhc = <amount>; Game.cookiesReset = nhc * (nhc + 1) * 10e12 / 2; Game.CalculatePrestige();

If you want to obtain the maximum amount of heavenly chips possible permanently, use:

Game.cookiesReset = Number.MAX_VALUE; Game.CalculatePrestige();

Change Dungeon Level

If you want to change the dungeon level, use:

Game.Objects.Factory.dungeon.level = <level>;

The level affects amount of cookies rewarded and spawning of monsters. The new level goes into effect after the boss is defeated.
Change Dungeon Speed

If you want to change the speed at which the hero goes through the dungeon, use:


setInterval(function() { Game.Objects['Factory'].dungeon.timer = 0; }, <milliseconds interval>);

THE FOLLOWING ARE UTILITIES/TOOLS NOT CHEATS!

Cosmetic Tweaks
Turn Big Cookie into Face Cookie

To add a grandma face on the big cookie (may be disturbing for some), use:

Game.addClass("elderWrath");

To remove this effect, refresh the page or use:

Game.removeClass("elderWrath");

Changing FPS

To change the FPS of the game, use:

Game.fps = <FPS>;

This will change the game's FPS without effecting the game, which could make it less of a CPU-hog. Do note that changing the FPS can cause current buffs duration and current golden cookie spawn time to be altered.


THE FOLLOWING ARE NOTIFICATORS (which are really handy :))

Golden Cookie Title Bar Alert

To make it so that the title of the webpage changes to an exclamation point whenever a golden/red cookie appears, use:

setInterval(function() { if (Game.goldenCookie.life > 0) document.title = '!' }, 100);
Golden Cookie Desktop Notification

To make it so that a desktop notification pops up whenever a golden/red cookie appears, use:


if (window.webkitNotifications.checkPermission()) { function askPermission() { window.webkitNotifications.requestPermission(); var element = document.getElementById('notifier_permission'); element.parentNode.removeChild(element); } var ask = document.createElement('BUTTON'); var askText = document.createTextNode('Ask for notification permission'); ask.id = 'notifier_permission'; ask.style.position = 'absolute'; ask.style.zIndex = 99999999; ask.appendChild(askText); document.body.appendChild(ask); ask.onclick = askPermission; } Game.goldenCookie.spawn = (function() { var spawn = Game.goldenCookie.spawn; return function() { popup = webkitNotifications.createNotification('img/goldCookie.png', 'Cookie Clicker', 'A wild golden cookie appeared!'); popup.show(); setTimeout(function(){ popup.cancel(); }, '10000'); spawn(); }; })(); // source: Cookie Clicker Subreddit

var gcbHasAlerted = false; setInterval(function() { if (!gcbHasAlerted && Game.goldenCookie.life > 0) { gcbHasAlerted = true; var a = new Audio("http://www.soundjay.com/button/beep-1.wav"); a.volume = 0.7; a.play(); } else if (Game.goldenCookie.life == 0) { gcbHasAlerted = false; } }, 100);
[/spoiler]
CREDITS: Orteil (cookieclicker) Some wiki (cheats :3) Me (writing and posting :P)

:3