Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getCookies(amount) {
- //Gets you cookies. Usage: getCookies(1000) where 1000 can be any number
- Game.cookies = Game.cookiesEarned + amount;
- }
- function setCookies(amount) {
- //Sets your cookies to the number in the function. Usage: setCookies(1000) where 1000 can be any number
- Game.Cookies = amount;
- }
- function earnCookies(amount) {
- //Earns you cookies. Usage: earnCookies(1000) where 1000 can be any number
- Game.Earn(amount);
- }
- function removeCookies(amount) {
- //Reduces cookies. Usage: removeCookies(1000) where 1000 can be any number
- Game.cookies -= amount;
- }
- function alterCPS(amount) {
- //Change your cps. Usage: alterCPS(10) where 10 can be any number
- Game.cookiesPS = amount;
- }
- function autoClick(ms) {
- //Autoclicks the cookie Usage: autoClick(10000) where 10000 is milliseconds and can be any number
- var autoClicker = setInterval(Game.ClickCookie, ms);
- }
- function fastAutoClick(ms) {
- //Same as above, just faster.
- 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(2000, ms);
- }
- function autoClickFrenzy() {
- //Autoclicks when a frenzy has started.
- setInterval(function() {
- if (Game.clickFrenzy > 0) Game.ClickCookie();
- }, ms);
- }
- function samePriceBuildings() {
- //Makes all buildings the same price.
- Game.priceIncrease = 1;
- Game.ObjectsById.forEach(function(e) {
- e.refresh();
- });
- Game.storeToRebuild = 1;
- }
- function allBuildingsFree() {
- //Makes all buildings free.
- Game.ObjectsById.forEach(function(e) {
- e.basePrice = 0;
- e.refresh();
- });
- Game.storeToRebuild = 1;
- }
- function stopAutoClick() {
- //Stops autoclicker.
- clearInterval(autoClicker);
- }
- function spawnGoldenCookie() {
- //Spawns a golden cookie.
- Game.goldenCookie.time = 0;
- Game.goldenCookie.spawn();
- }
- function achCheatCookies() {
- //Gives you the achievement Cheated cookies taste awful
- Game.Win('Cheated cookies taste awful');
- }
- function removeCheatCookies() {
- //Removes above achievement.
- Game.Achievements['Cheated cookies taste awful'].won = 0;
- }
- function RuinFun() {
- //Self-explanatory
- Game.RuinTheFun();
- }
- function openSesameMenu() {
- //Opens the sesame menu.
- Game.OpenSesame();
- }
- function gimmeClickFrenzy(time) {
- //Starts a Click Frenzy. Usage: gimmeClickFrenzy(1000) where 1000 is any number in milliseconds.
- Game.clickFrenzy = Game.fps * time;
- Game.recalculateGains = 1;
- Game.Popup('Click frenzy! Clicking power x777 for ' + time + ' seconds!');
- }
- function infiniteGrimoreMagic() {
- //Gives you infinite Grimore Magic.
- Game.Objects['Wizard tower'].minigame.magic = Infinity;
- }
- function sacrificeBuildings() {
- //Sacrifices buildings.
- Game.ObjectsById[ID].sacrifice(1);
- }
- function setGoldenCookiesClicked(amount) {
- //Sets your golden cookies to a number. Usage: setGoldenCookiesClicked(1000) where 1000 can be any number
- Game.goldenClicks = amount;
- }
- function autoClickGolden() {
- //Autoclicks golden cookies.
- setInterval(function() {
- Game.shimmers.forEach(function(shimmer) {
- if (shimmer.type == 'golden') {
- shimmer.pop();
- }
- });
- }, 500);
- }
- function spawnGoldenCookies(amount) {
- //Spawns golden cookies. Usage: spawnGoldenCookies(100) where 100 can be any number
- for (var i = 0; i < amount; i++) {
- new Game.shimmer('golden', { noWrath: true }).pop();
- }
- }
- function automateTasks() {
- //Put any tasks in here that you would like to be automated.
- setInterval(function() {
- if (Game.UpgradesInStore.indexOf(Game.Upgrades['Elder Pledge']) != -1) {
- Game.Upgrades['Elder Pledge'].buy();
- //Any new tasks go under this note.
- }
- }, 500);
- }
- function fuckWrinklers() {
- //Self-explanatory
- var noWrinkler = setInterval(Game.CollectWrinklers, 500);
- }
- function spamKillWrinklers() {
- //Self-explanatory
- var noWrinkler = setInterval(function() {
- Game.CollectWrinklers();
- for (i = 0; i < Game.wrinklers.length; i++) {
- Game.wrinklers[i].phase = 2;
- }
- }, 100);
- }
- function spawnAllWrinklers() {
- //might not work after activating fuckWrinklers()
- for (i = 0; i < Game.wrinklers.length; i++) {
- Game.wrinklers[i].phase = 1;
- }
- }
- function unlockAllAch() {
- Game.AchievementsById.forEach(function(e) {
- // if (e.hide != 3)
- Game.Win(e.name);
- });
- }
- function unlockAch(name) {
- Game.Win(name);
- }
- function removeAch(name) {
- Game.Achievements[name].won = 0;
- }
- function unlockUpgrade(name) {
- Game.Unlock(name);
- }
- function unlockandbuyUpgrade(name) {
- Game.Upgrades[name].earn();
- }
- function unlockAllUpgrades() {
- Game.UpgradesById.forEach(function(e) {
- Game.Unlock(e.name);
- });
- }
- function unlockandbuyAllUpgrades() {
- Game.UpgradesById.forEach(function(e) {
- if (e.bought === 0) e.earn();
- });
- }
- function makeallUpgradesFree() {
- Game.UpgradesById.forEach(function(e) {
- e.basePrice = 0;
- });
- Game.upgradesToRebuild = 1;
- }
- function instantResearch() {
- setInterval(function() {
- Game.researchT = 0;
- }, 1);
- }
- function changeHeavenChipsTemp(amount) {
- Game.prestige = [];
- Game.prestige['Heavenly chips'] = amount;
- }
- function changeHeavenChips(amount) {
- var nhc = amount;
- Game.cookiesReset = nhc * (nhc + 1) * 1e12 / 2;
- Game.CalculatePrestige();
- }
- function openHeavenlyMenu() {
- Game.FreeHeavenlyChips();
- }
- function maxHeavenChips() {
- Game.cookiesReset = Number.MAX_VALUE;
- Game.CalculatePrestige();
- }
- function infiniteHeavenChips() {
- Game.prestige = [];
- Game.prestige['Heavenly chips'] = Infinity;
- Game.prestige.ready = 1;
- Game.recalculateGains = 1;
- }
- function dungeonSpeed(ms) {
- setInterval(function() {
- Game.Objects['Factory'].dungeon.timer = 0;
- }, ms);
- }
- function dungeonLevel(level) {
- Game.Objects.Factory.dungeon.level = level;
- }
- function setSugarLumps(amount) {
- Game.lumps = amount;
- }
- function SugarLumpType(type) {
- //0 for normal, 1 for bifuricated, 2 for golden and 3 for meaty.
- Game.lumpCurrentType = type;
- }
- function gameFPS(fps) {
- Game.fps = fps;
- }
- function autoClickReindeer() {
- setInterval( function() { Game.shimmers.forEach(function(shimmer) { if (shimmer.type == 'reindeer') { shimmer.pop() } }) }, 500)
- }
- function spawnReindeer() {
- Game.seasonPopup.spawn();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement