Advertisement
Game_Logic

Cookie Clicker Mod Menu (WIP)

Jul 7th, 2019
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. document.getElementById('donate').outerHTML = '<a class="option" onclick="openMenu()">Open Menu</a><div hidden id="menu2"><a class="option" onclick="Game.cookies=Number(Game.cookies)+Number(1000000)">+1000000 Cookies</a><div><a class="option" onclick="Game.cookies=0">Reset Cookies</a><div><input id="cook" type="number"><a class="option" onclick="doThis()">Add Cookies</a></div><div><a class="option" onclick="closeMenu()">Close Menu</a></div></div>'; function openMenu() { document.getElementById('menu2').outerHTML = '<div id="menu2"><a class="option" onclick="Game.cookies=Number(Game.cookies)+Number(1000000)">+1000000 Cookies</a><div><a class="option" onclick="Game.cookies=0">Reset Cookies</a><div><input id="cook" type="number"><a class="option" onclick="doThis()">Add Cookies</a></div><div><a class="option" onclick="Game.goldenCookie.spawn()">Spawn Golden Cookie</a></div><div><a class="option" onclick="setInterval(function(){Game.cookies=Game.cookies+Number(1);},1000)">Add Auto Click</a></div><div><a class="option" onclick="closeMenu()">Close Menu</a></div></div>'; }; function closeMenu() { document.getElementById('menu2').outerHTML = '<div hidden id="menu2"><a class="option" onclick="Game.cookies=Number(Game.cookies)+Number(1000000)">+1000000 Cookies</a><div><a class="option" onclick="Game.cookies=0">Reset Cookies</a><div><input id="cook" type="number"><a class="option" onclick="doThis()">Add Cookies</a></div><div><a class="option" onclick="closeMenu()">Close Menu</a></div></div>'; }; function doThis() { Game.cookies = Number(Game.cookies)+Number(document.getElementById('cook').value); };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement