Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Please read the forum rules before posting.



Check if you are posting in the correct category.



The Off Topic section is not meant for discussing Cookie Clicker.

/* *Fast Cheat system by JuhaJGamer *for *CookieClicker by Orteil *2016 */ //CookieClicker fast

JuhaJGamerJuhaJGamer Posts: 16Member ✭✭
wtf is wrong with my code halp
Tagged:

Comments

  • JuhaJGamerJuhaJGamer Posts: 16Member ✭✭
    /*
    *Fast Cheat system by JuhaJGamer
    *for
    *CookieClicker by Orteil
    *2016
    */

    //CookieClicker fast cheat system
    {
    //Upgrades
    {

    //Upgrade Functions

    var UpgradeFunctions = {}
    //Function variables
    {
    //On/off booleans
    UpgradeFunctions.LCbool = false
    UpgradeFunctions.BCbool = false;
    UpgradeFunctions.PCbool = false;
    UpgradeFunctions.AGbool = false;

    //Upgrade Intervals
    UpgradeFunctions.LCI = 0;
    UpgradeFunctions.BCI = 0;
    UpgradeFunctions.PCI = 0;
    UpgradeFunctions.AGI = 0;
    }
    //Functions
    {
    //Little Cliky
    UpgradeFunctions.LittleClicky = function()
    {
    if(UpgradeFunctions.LCbool == true)
    {
    UpgradeFunctions.LCI = setInterval(Game.ClickCookie(),100);
    UpgradeFunctions.LCbool = true;
    }
    else
    {
    clearInterval(UpgradeFunctions.LCI);
    UpgradeFunctions.LCbool = false;
    }
    Game.Unlock("Little Clicky");
    }
    //Bigger Clicky
    UpgradeFunctions.BiggerClicky = function()
    {
    if(UpgradeFunctions.BCbool == true)
    {
    UpgradeFunctions.BCI = setInterval(Game.ClickCookie(),10);
    UpgradeFunctions.BCbool = true;
    }
    else
    {
    clearInterval(UpgradeFunctions.BCI);
    UpgradeFunctions.BCbool = false;
    }
    Game.Unlock("Bigger Clicky");
    }
    //Prime Clicky
    UpgradeFunctions.PrimeClicky = function()
    {
    if(UpgradeFunctions.PCbool == true)
    {
    UpgradeFunctions.PCI = setInterval(Game.ClickCookie(),1);
    UpgradeFunctions.PCbool = true;
    }
    else
    {
    clearInterval(UpgradeFunctions.PCI);
    UpgradeFunctions.PCbool = false;
    }
    Game.Unlock("Clickitymus Prime");
    }
    //Auto-Click and spawn Golden cookies
    UpgradeFunctions.AutoGold = function()
    {
    if(UpgradeFunctions.AGbool == true)
    {
    UpgradeFunctions.AGI = setInterval(function() {Game.goldenCookie.life = 1;Game.goldenCookie.click();},10000);
    UpgradeFunctions.AGbool = true;
    }
    else
    {
    clearInterval(UpgradeFunctions.AGI);
    UpgradeFunctions.AGbool = false;
    }
    Game.Unlock("Ridicugold");
    }
    }



    function setCheatUpgrades()
    {
    //Adding Cookies
    new Game.Upgrade('Boatful of Cookies',"A trading boat gives you a million cookies. Who said we couldn't make cookies on the move?",0,[0,1],function()
    {
    Game.cookies = Game.cookies + 1000000;
    Game.earnedCookies = Game.earnedCookies + 1000000;

    setTimeout(Game.Upgrades["Boatful of Cookies"].bought = 0,500)
    Game.Unlock('Boatful of Cookies');
    });
    //Set Cheats
    new Game.Upgrade('Cheats',"Turn CHEATS on. This will ruin your fun YOU HAVE BEEN WARNED ,0,[10,0]",function()
    {
    ActivateCheats();
    });
    //Golden Cookies
    new Game.Upgrade('Goldcookies INC',"You ordered a Golden cookie oooo shiny...",Game.cookies,[10,0],function()
    {
    Game.goldenCookie.spawn();
    setTimeout(Game.Upgrades["Goldcookies INC"].bought = 0,500)
    Game.Unlock('Goldcookies INC')
    });
    //Auto-Click

    //Little Clicky?
    new Game.Upgrade('Little Clicky',"Little clicky, auto-clicks the cookie every 1/10th of a second. Counts towards mouse clicks Not a cursor, it acts like your mouse?",0,[0,0],UpgradeFunctions.LittleClicky());
    //Bigger Clicky
    new Game.Upgrade('Bigger Clicky',"Little clicky's bigger brother, auto-clicks every 1/100th of a second. Little clicky for 10 seconds isnt enough? Hmph!",0,[0,1],UpgradeFunctions.BiggerClicky);
    //Massive Clicky
    new Game.Upgrade('Clikitymus Prime',"Bigger Clickys Bodybuilder cousin, half robot, half bad source code. auto clicks every 1000/th of a second. Autoclicks, roll out",0,[0,3],UpgradeFunctions.PrimeClicky);

    //Auto-Goldcookies
    new Game.Upgrade('Ridicugold',"So spawning one isn't enough?, how ABOUT THIS!MORE SHINEE",0,[10,1],UpgradeFunctions.AutoGold);
    }
    }
    function ActivateCheats()
    {
    setCheatUpgrades();

    Game.Unlock("Boatful of Cookies");
    Game.Unlock("Goldcookies INC");
    Game.Unlock("Little Clicky");
    Game.Unlock("Bigger Clicky");
    Game.Unlock("Clickitymus Prime");
    Game.Unlock("Ridicugold");
    }
    }
    Game.Unlock("Cheats");
  • JuhaJGamerJuhaJGamer Posts: 16Member ✭✭
    my cide
  • ¤RunninginReverse¤¤RunninginReverse¤ Posts: 14,937Member, Friendly ✭✭✭✭✭
    I'm just here to say, next time fit the whole thing in one post instead of triple-posting.
    "My game will be playable on all Samsung Microwaves with firmware update 5.3.2 and up." - Audiot
    "tfw he won't listen to a 40 year old man rap about vegetables and then he tells me this" - Goldra
  • JuhaJGamerJuhaJGamer Posts: 16Member ✭✭
    k
Sign In or Register to comment.