Sunday, September 1, 2019
Cookie Clicker Cheats Userscript Essay
// ==UserScript== // @name Cookie Clicker Cheats // @namespace http://userscripts.org/users/zackton // @description Enable/Disable different cheats/hacks for Cookie Clicker // @include http://orteil.dashnet.org/cookieclicker/ // @include orteil.dashnet.org/cookieclicker/ // @updateURL http://userscripts.org/scripts/source/176985.meta.js // @require http://userscripts.org/scripts/source/187400.user.js // @require http://userscripts.org/scripts/source/276064.user.js // @icon http://images2.wikia.nocookie.net/__cb20130827014914/cookieclicker/images/5/5a/PerfectCookie.png // @grant none // @run-at document-end // @version 1.7 // ==/UserScript== // Main wait loop setTimeout(doSomething, 1000); function doSomething() { var element = document.getElementById(ââ¬Ëparticle0ââ¬â¢); if (typeof (element) != ââ¬Ëundefinedââ¬â¢ && element != null) { //Game particles have loaded, FIRE AWAY! (function () { var options = { panelId: ââ¬Ëcookie-cheaterââ¬â¢, intervalDelay: 1, longDelay: 250, buttons: { ââ¬ËbigCookieââ¬â¢: { label: ââ¬ËAutoclick Big Cookieââ¬â¢, action: function () { toggleAutoAction(ââ¬ËbigCookieââ¬â¢, function () { Game.ClickCookie(); }) } }, ââ¬ËspawnGoldenCookieââ¬â¢: { label: ââ¬ËSpawn a Golden Cookieââ¬â¢, action: function () { Game.goldenCookie.life = 0; Game.goldenCookie.time = Game.goldenCookie.minTime; Game.goldenCookie.spawn(); } }, ââ¬ËautoGoldenCookieââ¬â¢: { label: ââ¬ËAutospawnclick GCsââ¬â¢, action: function () { toggleAutoAction(ââ¬ËautoGoldenCookieââ¬â¢, function () { if (Game.frenzy 0) { Game.goldenCookie.last = ââ¬Å"blood frenzyâ⬠} else { Game.goldenCookie.last = ââ¬Å"frenzyâ⬠} Game.frenzy = 1 } if (Game.frenzy > 0) { Game.goldenCookie.toDie = 1 } if (Game.goldenCookie.life >= 0 && (Game.frenzy 0)) { Game.goldenCookie.click(); } }) } }, ââ¬ËautoBuyUpgradesââ¬â¢: { label: ââ¬ËAutobuy Upgradesââ¬â¢, action: function () { toggleAutoAction(ââ¬ËautoBuyUpgradesââ¬â¢, function () { buyUpgrades(); }) } }, ââ¬ËfuckThemWrinklersââ¬â¢: { label: ââ¬ËSlaughter Wrinklersââ¬â¢, action: function () { toggleAutoAction(ââ¬ËfuckThemWrinklersââ¬â¢, function () { setTimeout(function() { for (var i in Game.wrinklers) { var me=Game.wrinklers[i]; if (me.phase==2) { me.hurt=1; me.hpââ¬â; var x=me.x+(Math.sin(me.r*Math.PI/180)*100); var y=me.y+(Math.cos(me.r*Math.PI/180)*100); for (var ii=0;ii 0) {Game.seasonPopup.click()}},Math.floor(((Math.random()*7)+3)*2500)); }) } }, } }; addStyleSheet(); addPanel(); for (var name in options.buttons) { if (!options.buttons[name]) { return; } addButton(name, options.buttons[name].label, options.buttons[name].action); } function buyUpgrades() { for (var i = 0; i < Game.UpgradesById.length; i++) { if ((i > 63 && i < 75) || i === 79 || (i > 82 && i < 86) || i === 91 || i === 124 || (i > 140 && i < 143) || i === 167 || (i > 181 && i < 186)) { continue; } else { if (Game.UpgradesById[i].unlocked === 1) { if(Game.cookies >= Game.UpgradesById[i].basePrice) { Game.UpgradesById[i].buy(); } } } } } //Lets bind some keys!!! //Buys one of specified building Mousetrap.bind(ââ¬Ëshift+1ââ¬â¢, function() { Game.ObjectsById[Game.ObjectsById.length ââ¬â 11].buy(); }); //Cursor Mousetrap.bind(ââ¬Ëshift+2ââ¬â¢, function() { Game.ObjectsById[Game.ObjectsById.length ââ¬â 10].buy(); }); //Grandma Mousetrap.bind(ââ¬Ëshift+3ââ¬â¢, function() { Game.ObjectsById[Game.ObjectsById.length ââ¬â 9].buy(); }); //Farm Mousetrap.bind(ââ¬Ëshift+4ââ¬â¢, function() { Game.ObjectsById[Game.ObjectsById.length ââ¬â 8].buy(); }); //Factory Mousetrap.bind(ââ¬Ëshift+5ââ¬â¢, function() { Game.ObjectsById[Game.ObjectsById.length ââ¬â 7].buy(); }); //Mine Mousetrap.bind(ââ¬Ëshift+6ââ¬â¢, function() { Game.ObjectsById[Game.ObjectsById.length ââ¬â 6].buy(); }); //Shipment Mousetrap.bind(ââ¬Ëshift+7ââ¬â¢, function() { Game.ObjectsById[Game.ObjectsById.length ââ¬â 5].buy(); }); //Alchemy Lab Mousetrap.bind(ââ¬Ëshift+8ââ¬â¢, function() { Game.ObjectsById[Game.ObjectsById.length ââ¬â 4].buy(); }); //Portal Mousetrap.bind(ââ¬Ëshift+9ââ¬â¢, function() { Game.ObjectsById[Game.ObjectsById.length ââ¬â 3].buy(); }); //Time Machine Mousetrap.bind(ââ¬Ëshift+0ââ¬â¢, function() { Game.ObjectsById[Game.ObjectsById.length ââ¬â 2].buy(); }); //Antimatter Condenser Mousetrap.bind(ââ¬Ëshift+-ââ¬Ë, function() { Game.ObjectsById[Game.ObjectsById.length ââ¬â 1].buy(); }); //Prism //Sells one of specified building Mousetrap.bind(ââ¬Ëoption+1ââ¬â¢, function() { Game.ObjectsById[Game.ObjectsById.length ââ¬â 11].sell(); }); //Cursor Mousetrap.bind(ââ¬Ëoption+2ââ¬â¢, function() { Game.ObjectsById[Game.ObjectsById.length ââ¬â 10].sell(); }); //Grandma Mousetrap.bind(ââ¬Ëoption+3ââ¬â¢, function() { Game.ObjectsById[Game.ObjectsById.length ââ¬â 9].sell(); }); //Farm Mousetrap.bind(ââ¬Ëoption+4ââ¬â¢, function() { Game.ObjectsById[Game.ObjectsById.length ââ¬â 8].sell(); }); //Factory Mousetrap.bind(ââ¬Ëoption+5ââ¬â¢, function() { Game.ObjectsById[Game.ObjectsById.length ââ¬â 7].sell(); }); //Mine Mousetrap.bind(ââ¬Ëoption+6ââ¬â¢, function() { Game.ObjectsById[Game.ObjectsById.length ââ¬â 6].sell(); }); //Shipment Mousetrap.bind(ââ¬Ëoption+7ââ¬â¢, function() { Game.ObjectsById[Game.ObjectsById.length ââ¬â 5].sell(); }); //Alchemy Lab Mousetrap.bind(ââ¬Ëoption+8ââ¬â¢, function() { Game.ObjectsById[Game.ObjectsById.length ââ¬â 4].sell(); }); //Portal Mousetrap.bind(ââ¬Ëoption+9ââ¬â¢, function() { Game.ObjectsById[Game.ObjectsById.length ââ¬â 3].sell(); }); //Time Machine Mousetrap.bind(ââ¬Ëoption+0ââ¬â¢, function() { Game.ObjectsById[Game.ObjectsById.length ââ¬â 2].sell(); }); //Antimatter Condenser Mousetrap.bind(ââ¬Ëoption+-ââ¬Ë, function() { Game.ObjectsById[Game.ObjectsById.length ââ¬â 1].sell(); }); //Prism // Awesome textParticle mod, mostly for execution of ââ¬Å"Cookie Clicker Cheats v.X.X launched!â⬠message. Game.textParticlesAdd = function (text, el) { //pick the first free (or the oldest) particle to replace it var highest = 0; var highestI = 0; for (var i in Game.textParticles) { if (Game.textParticles[i].life == -1) { highestI = i; break; } if (Game.textParticles[i].life > highest) { highest = Game.textParticles[i].life; highestI = i; } } var i = highestI; var x = (Math.random() ââ¬â 0.5) * 40; var y = 0; //+(Math.random()-0.5)*40; if (!el) { var rect = l(ââ¬Ëgameââ¬â¢).getBoundingClientRect(); var x = Math.floor((rect.left + rect.right) / 2); var y = Math.floor(((rect.bottom)) ââ¬â 60); x += (Math.random() ââ¬â 0.5) * 40; y += 0; //(Math.random()-0.5)*40; } var me = Game.textParticles[i]; if (!me.l) me.l = l(ââ¬Ëparticleââ¬â¢ + i); me.life = 0; me.x = x; me.y = y ââ¬â Game.textParticlesY; if (me.y < 60) { for (var j = 0; j
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.