Advertisement
sanovskiy

Untitled

Feb 12th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. var waitTime = 10;
  2. var wtr = null;
  3. function clickTheCookie(){
  4. clearTimeout(wtr);
  5. Game.ClickCookie();
  6. if (Game.goldenCookie.life>0){
  7. Game.goldenCookie.click()
  8. }
  9. if (Game.seasonPopup.life>0){
  10. Game.seasonPopup.click();
  11. }
  12. wtr = setTimeout(clickTheCookie,waitTime);
  13. }
  14.  
  15. function stopClicking(){
  16. clearTimeout(wtr);
  17. }
  18.  
  19. var gcsWtr = null;
  20. function goldSpawning(){
  21. clearTimeout(gcsWtr);
  22. Game.goldenCookie.time=30000
  23. gcsWtr = setTimeout(goldSpawning,100);
  24. }
  25.  
  26. function stopGoldSpawning(){
  27. clearTimeout(gcsWtr);
  28. }
  29.  
  30. var wriWtr = null;
  31. function popWrinklers(){
  32. clearTimeout(wriWtr);
  33. var length = Game.wrinklers.length;
  34. for(var i=0;i<length;i++){
  35. var me = Game.wrinklers[i];
  36. if (me.sucked>0){
  37. me.hp=0;
  38. }
  39. }
  40. wriWtr = setTimeout(popWrinklers,1000);
  41. }
  42. function stopPopWrinklers(){
  43. clearTimeout(wriWtr);
  44. }
  45.  
  46. clickTheCookie();
  47. //goldSpawning();
  48. popWrinklers();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement