Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. // ==UserScript==
  2. // @name New Userscript
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author You
  7. // @match http://oib.io/
  8. // @grant none
  9. // ==/UserScript==
  10. TUTO.SPLIT_DELAY_1 = -1;
  11. TUTO.SPLIT_DELAY_2 = -1;
  12. var closen = 0;
  13. var rainbow = 100000;
  14. var colorch = 6;
  15. var alpha = 0;
  16. var fsp = 0;
  17. var onsp = 0;
  18. var rainbowtick = setInterval(rainbowxp, 100);
  19. var tima = setInterval(ohno, 1);
  20. function rainbowxp(){
  21. rainbow += 111;
  22. DRAW.XP_COLOR = "#" + rainbow;
  23. DRAW.XP_REST_COLOR = "#080808";
  24. if (rainbow >= 161616){
  25. rainbow = 100000;
  26. }}
  27. function ohno(){
  28. DRAW.MINIMAP_BOSS_SIZE = 20;
  29. DRAW.MINIMAP_PLAYER_SIZE = 8;
  30. DRAW.GROUND_COLOR_DARKER = "#471758";
  31. S.WHITE = colorch;
  32. if (onsp == 1) {
  33. client.spawn();
  34. }
  35. if (fsp == 1) {
  36. player.select.only_oibs();
  37. client.split();
  38. fsp = 0;
  39. }
  40. if (alpha == 1) {
  41. for (var i = 0 ; i < players.length ; i++){ if (players[i]) players[i].vuln=1;}
  42. }
  43. if (alpha === 0) {
  44. for (var k = 0 ; k < players.length ; k++){ if (players[k]) players[k].vuln=0;}
  45. }
  46. if (closen == 1) {
  47. client.lost ();
  48. closen = 0;
  49. }
  50. }
  51. function mine() {
  52. player.select.only_oibs();
  53. client.feed();
  54. player.select.only_queen();
  55. client.move_units(mouse.pos);
  56. }
  57. function KeyCheck(e)
  58. {
  59. if (e.keyCode == 54) {
  60. onsp += 1;
  61. }
  62. if (onsp >= 2){
  63. onsp = 0;
  64. }
  65. if (e.keyCode == 55) {
  66. fsp += 1;
  67. }
  68. if (fsp >= 2){
  69. fsp = 0;
  70. }
  71. if (e.keyCode == 56) {
  72. alpha += 1;
  73. }
  74. if (alpha >= 2){
  75. alpha = 0;
  76. }
  77. if (e.keyCode == 57) {
  78. colorch += 1;
  79. }
  80. if (colorch >= 7){
  81. colorch = 0;
  82. }
  83. if (e.keyCode == 46) {
  84. closen += 1;
  85. }
  86. if (e.keyCode == 80) {
  87. playm += 1;
  88. }
  89. if (playm >= 2){
  90. playm = 0;
  91. }
  92. if (e.keyCode == 189) {
  93. volumeset -= 0.01;
  94. }
  95. if (e.keyCode == 187) {
  96. volumeset += 0.01;
  97. }
  98. if (e.keyCode == 192) {
  99. mine();
  100. }
  101. }
  102. var volumeset = 0.5;
  103. var playm = 0;
  104. var winterval = setInterval(play, 250);
  105. var music = new Audio('https://www.dropbox.com/s/sq1nk07npg7fck8/Xtrullor%20-%20Jnana.mp3?raw=1');
  106. var deathsound = new Audio('https://www.dropbox.com/s/cdw1zj7sevvzyed/Sad%20-%20Violin.mp3?raw=1');
  107. function play(){
  108. if(playm == 1){
  109. music.volume = volumeset;
  110. music.play();
  111. music.loop = true;
  112. }
  113. if(playm === 0){
  114. music.pause();
  115. }
  116. }
  117. window.addEventListener('keydown', KeyCheck, true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement