Advertisement
Guest User

Untitled

a guest
May 30th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. // ==UserScript==
  2. // @name THIRD RULE OF SPRITE CLUB
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description BOT BUT DON'T TELL ANYBODY
  6. // @author ?
  7. // @match http://mugen.spriteclub.tv/
  8. // @match http://spriteclub.tv/
  9. // @grant none
  10. // ==/UserScript==
  11. var max = 20000;
  12. var modeState = "t"; // Tournament default assumed mode
  13. var betDuringTournament = false; // set to false for regular behaviour
  14. var stateChecked = false;
  15. function fiftyBot() {
  16. if (state === "m" && stateChecked === false) {
  17. if (document.querySelector('#bottomMsg').textContent.indexOf("exhibitions") !== -1) { modeState = "e"; }
  18. else if (document.querySelector('#bottomMsg').textContent.indexOf("tournament") !== -1) { modeState = "m"; }
  19. else { modeState = "t"; }
  20. stateChecked = true;
  21. setTimeout(fiftyBot, 20000);
  22. } else if (state === "b") {
  23. if (document.querySelector('#bottomControl').getAttribute('class') === "standardControl") {
  24. if (modeState !== "t" || betDuringTournament === true) {
  25. if (Math.random() >= 0.50) {
  26. setTimeout(clickButton(document.querySelector('#blueButton')), 20000);
  27. } else {
  28. setTimeout(clickButton(document.querySelector('#redButton')), 20000);
  29. }
  30. }
  31. } else {
  32. setTimeout(fiftyBot, 20000);
  33. }
  34. } else {
  35. setTimeout(fiftyBot, 5000);
  36. }
  37. }
  38. function clickButton(elementToClick) {
  39. if (max > parseInt(document.querySelector('#balance').textContent.substring(1, 10).replace(/,/gi, ''), 10)) {
  40. document.querySelector('#bottomButtons > input:nth-child(10)').click();
  41. } else {
  42. document.querySelector('#wager').value = "1000";
  43. }
  44. elementToClick.click();
  45. setTimeout(fiftyBot, 20000);
  46. }
  47. setTimeout(fiftyBot, 10000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement