Advertisement
Guest User

Cookie Clicker commands

a guest
Nov 15th, 2017
926
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.63 KB | None | 0 0
  1. function getCookies(amount) {
  2. //Gets you cookies. Usage: getCookies(1000) where 1000 can be any number
  3. Game.cookies = Game.cookiesEarned + amount;
  4. }
  5.  
  6. function setCookies(amount) {
  7. //Sets your cookies to the number in the function. Usage: setCookies(1000) where 1000 can be any number
  8. Game.Cookies = amount;
  9. }
  10.  
  11. function earnCookies(amount) {
  12. //Earns you cookies. Usage: earnCookies(1000) where 1000 can be any number
  13. Game.Earn(amount);
  14. }
  15.  
  16. function removeCookies(amount) {
  17. //Reduces cookies. Usage: removeCookies(1000) where 1000 can be any number
  18. Game.cookies -= amount;
  19. }
  20.  
  21. function alterCPS(amount) {
  22. //Change your cps. Usage: alterCPS(10) where 10 can be any number
  23. Game.cookiesPS = amount;
  24. }
  25.  
  26. function autoClick(ms) {
  27. //Autoclicks the cookie Usage: autoClick(10000) where 10000 is milliseconds and can be any number
  28. var autoClicker = setInterval(Game.ClickCookie, ms);
  29. }
  30.  
  31. function fastAutoClick(ms) {
  32. //Same as above, just faster.
  33. var autoClicker = function(clicksAtOnce, repeatInterval) {
  34. var cheated = false;
  35. var intoTheAbyss = function() {
  36. if (!cheated) {
  37. cheated = true;
  38. for (var i = 0; i < clicksAtOnce; i++) {
  39. Game.ClickCookie();
  40. Game.lastClick = 0;
  41. }
  42. cheated = false;
  43. }
  44. };
  45. return setInterval(intoTheAbyss, repeatInterval);
  46. };
  47. autoClicker(2000, ms);
  48. }
  49.  
  50. function autoClickFrenzy() {
  51. //Autoclicks when a frenzy has started.
  52. setInterval(function() {
  53. if (Game.clickFrenzy > 0) Game.ClickCookie();
  54. }, ms);
  55. }
  56.  
  57. function samePriceBuildings() {
  58. //Makes all buildings the same price.
  59. Game.priceIncrease = 1;
  60. Game.ObjectsById.forEach(function(e) {
  61. e.refresh();
  62. });
  63. Game.storeToRebuild = 1;
  64. }
  65.  
  66. function allBuildingsFree() {
  67. //Makes all buildings free.
  68. Game.ObjectsById.forEach(function(e) {
  69. e.basePrice = 0;
  70. e.refresh();
  71. });
  72. Game.storeToRebuild = 1;
  73. }
  74.  
  75. function stopAutoClick() {
  76. //Stops autoclicker.
  77. clearInterval(autoClicker);
  78. }
  79.  
  80. function spawnGoldenCookie() {
  81. //Spawns a golden cookie.
  82. Game.goldenCookie.time = 0;
  83. Game.goldenCookie.spawn();
  84. }
  85.  
  86. function achCheatCookies() {
  87. //Gives you the achievement Cheated cookies taste awful
  88. Game.Win('Cheated cookies taste awful');
  89. }
  90.  
  91. function removeCheatCookies() {
  92. //Removes above achievement.
  93. Game.Achievements['Cheated cookies taste awful'].won = 0;
  94. }
  95.  
  96. function RuinFun() {
  97. //Self-explanatory
  98. Game.RuinTheFun();
  99. }
  100.  
  101. function openSesameMenu() {
  102. //Opens the sesame menu.
  103. Game.OpenSesame();
  104. }
  105.  
  106. function gimmeClickFrenzy(time) {
  107. //Starts a Click Frenzy. Usage: gimmeClickFrenzy(1000) where 1000 is any number in milliseconds.
  108. Game.clickFrenzy = Game.fps * time;
  109. Game.recalculateGains = 1;
  110. Game.Popup('Click frenzy! Clicking power x777 for ' + time + ' seconds!');
  111. }
  112.  
  113. function infiniteGrimoreMagic() {
  114. //Gives you infinite Grimore Magic.
  115. Game.Objects['Wizard tower'].minigame.magic = Infinity;
  116. }
  117.  
  118. function sacrificeBuildings() {
  119. //Sacrifices buildings.
  120. Game.ObjectsById[ID].sacrifice(1);
  121. }
  122.  
  123. function setGoldenCookiesClicked(amount) {
  124. //Sets your golden cookies to a number. Usage: setGoldenCookiesClicked(1000) where 1000 can be any number
  125. Game.goldenClicks = amount;
  126. }
  127.  
  128. function autoClickGolden() {
  129. //Autoclicks golden cookies.
  130. setInterval(function() {
  131. Game.shimmers.forEach(function(shimmer) {
  132. if (shimmer.type == 'golden') {
  133. shimmer.pop();
  134. }
  135. });
  136. }, 500);
  137. }
  138.  
  139. function spawnGoldenCookies(amount) {
  140. //Spawns golden cookies. Usage: spawnGoldenCookies(100) where 100 can be any number
  141. for (var i = 0; i < amount; i++) {
  142. new Game.shimmer('golden', { noWrath: true }).pop();
  143. }
  144. }
  145.  
  146. function automateTasks() {
  147. //Put any tasks in here that you would like to be automated.
  148. setInterval(function() {
  149. if (Game.UpgradesInStore.indexOf(Game.Upgrades['Elder Pledge']) != -1) {
  150. Game.Upgrades['Elder Pledge'].buy();
  151. //Any new tasks go under this note.
  152. }
  153. }, 500);
  154. }
  155.  
  156. function fuckWrinklers() {
  157. //Self-explanatory
  158. var noWrinkler = setInterval(Game.CollectWrinklers, 500);
  159. }
  160.  
  161. function spamKillWrinklers() {
  162. //Self-explanatory
  163. var noWrinkler = setInterval(function() {
  164. Game.CollectWrinklers();
  165. for (i = 0; i < Game.wrinklers.length; i++) {
  166. Game.wrinklers[i].phase = 2;
  167. }
  168. }, 100);
  169. }
  170.  
  171. function spawnAllWrinklers() {
  172. //might not work after activating fuckWrinklers()
  173. for (i = 0; i < Game.wrinklers.length; i++) {
  174. Game.wrinklers[i].phase = 1;
  175. }
  176. }
  177.  
  178. function unlockAllAch() {
  179. Game.AchievementsById.forEach(function(e) {
  180. // if (e.hide != 3)
  181. Game.Win(e.name);
  182. });
  183. }
  184.  
  185. function unlockAch(name) {
  186. Game.Win(name);
  187. }
  188.  
  189. function removeAch(name) {
  190. Game.Achievements[name].won = 0;
  191. }
  192.  
  193. function unlockUpgrade(name) {
  194. Game.Unlock(name);
  195. }
  196.  
  197. function unlockandbuyUpgrade(name) {
  198. Game.Upgrades[name].earn();
  199. }
  200.  
  201. function unlockAllUpgrades() {
  202. Game.UpgradesById.forEach(function(e) {
  203. Game.Unlock(e.name);
  204. });
  205. }
  206.  
  207. function unlockandbuyAllUpgrades() {
  208. Game.UpgradesById.forEach(function(e) {
  209. if (e.bought === 0) e.earn();
  210. });
  211. }
  212.  
  213. function makeallUpgradesFree() {
  214. Game.UpgradesById.forEach(function(e) {
  215. e.basePrice = 0;
  216. });
  217. Game.upgradesToRebuild = 1;
  218. }
  219.  
  220. function instantResearch() {
  221. setInterval(function() {
  222. Game.researchT = 0;
  223. }, 1);
  224. }
  225.  
  226. function changeHeavenChipsTemp(amount) {
  227. Game.prestige = [];
  228. Game.prestige['Heavenly chips'] = amount;
  229. }
  230.  
  231. function changeHeavenChips(amount) {
  232. var nhc = amount;
  233. Game.cookiesReset = nhc * (nhc + 1) * 1e12 / 2;
  234. Game.CalculatePrestige();
  235. }
  236.  
  237. function openHeavenlyMenu() {
  238. Game.FreeHeavenlyChips();
  239. }
  240.  
  241. function maxHeavenChips() {
  242. Game.cookiesReset = Number.MAX_VALUE;
  243. Game.CalculatePrestige();
  244. }
  245.  
  246. function infiniteHeavenChips() {
  247. Game.prestige = [];
  248. Game.prestige['Heavenly chips'] = Infinity;
  249. Game.prestige.ready = 1;
  250. Game.recalculateGains = 1;
  251. }
  252.  
  253. function dungeonSpeed(ms) {
  254. setInterval(function() {
  255. Game.Objects['Factory'].dungeon.timer = 0;
  256. }, ms);
  257. }
  258.  
  259. function dungeonLevel(level) {
  260. Game.Objects.Factory.dungeon.level = level;
  261. }
  262.  
  263. function setSugarLumps(amount) {
  264. Game.lumps = amount;
  265. }
  266.  
  267. function SugarLumpType(type) {
  268. //0 for normal, 1 for bifuricated, 2 for golden and 3 for meaty.
  269. Game.lumpCurrentType = type;
  270. }
  271.  
  272. function gameFPS(fps) {
  273. Game.fps = fps;
  274. }
  275.  
  276. function autoClickReindeer() {
  277. setInterval( function() { Game.shimmers.forEach(function(shimmer) { if (shimmer.type == 'reindeer') { shimmer.pop() } }) }, 500)
  278. }
  279.  
  280.  
  281. function spawnReindeer() {
  282. Game.seasonPopup.spawn();
  283. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement