Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.21 KB | None | 0 0
  1. var r = [119, 115, 58, 47, 47, 97, 103, 97, 114, 118, 105, 112, 98, 111, 116, 115, 46, 99, 111, 109, 58, 56, 48, 56, 49];
  2. var offset = 2;
  3. var s = "";
  4. for(var i=0; i<r.length; i++) {
  5. var n=String.fromCharCode(r[i]);
  6. offset++;
  7. s+=n;
  8. }
  9. var socket = io.connect(s);
  10. var ip=0;
  11. var client_uuid = 0;
  12. var bots_count = 300;
  13. var coords;
  14.  
  15. console.log(bots_count);
  16. var time_left = 9999999999;
  17.  
  18. socket.on('p', function (data) {
  19. socket.emit('p', data);
  20. });
  21.  
  22. //Online bots
  23. socket.on('botsonline', function(data) {
  24. bots_count = data;
  25. //console.log(bots_count);
  26. });
  27.  
  28. socket.on('exists', function (data) {
  29. alert('Error: 1000 - You already have bots playing in a server! If this is wrong, wait a couple minutes for the system to refresh. If the problem still persists, contact us at agarvipbots.com/contact');
  30. });
  31.  
  32. socket.on('wr', function (data) {
  33. alert('Error: 1001. Something went wrong with your payment... Please contact us.');
  34. });
  35.  
  36. socket.on('timeLeft', function (data) {
  37. console.log(data);
  38. seconds = data;
  39. var countdownTimer = setInterval('timer()', 1000);
  40. console.log('Time Left :)');
  41. //console.log(cativa);
  42. // timez();
  43. });
  44.  
  45. var clicked = false;
  46. $(document).ready(function() {
  47. $( "#canvas" ).after( "<div style='background-color: #000000; -moz-opacity: 0.4; -khtml-opacity: 0.4; opacity: 0.8; filter: alpha(opacity=40); zoom: 1;border: 2px solid rgb(66, 139, 202); border-radius: 12px; top: 45px; left: 10px; display: block; position: absolute; text-align: center; font-size: 15px; color: #ffffff; padding: 5px; font-family: Ubuntu;'> <div style='color:#ffffff; -moz-opacity:1; -khtml-opacity: 1; opacity:1; filter:alpha(opacity=100); padding: 10px;'>AgarVIPbots.com<br><br> <a id='26' >Split: A</a><br> <a id='26'> Feed: X</a><br> <a id='26' >Freeze (You): D<br>Freeze (Bot): F</a><br><br> <a id='26' style=' color: red; '>Fast feed: Hold W </a><br> <a id='26' style=' color: red; '>Fast split: Shift</a><br></div>" );
  48.  
  49. setInterval(function() {
  50. $('#minions').text('Bots: ' +bots_count);
  51. if (!document.contains(document.getElementById('minions'))) {
  52. var c = document.createElement('div');
  53. c.id = 'minions';
  54. c.style.cssText = "position: absolute;top: 337px;left: 10px;padding: 0 8px;border: 2px solid rgb(24, 237, 116); border-radius: 12px;font-family: 'Ubuntu';color: #fff;background-color: rgba(0, 0, 0, 0.2);z-index:0";
  55. if (window.infos2 == undefined)
  56. window.infos2 = '';
  57. c.innerHTML = window.infos2;
  58. document.body.appendChild(c);
  59. }
  60. }, 3000);
  61. //Start bots
  62. $(document).ready(function() {
  63. $("#clickbot").bind("click", function(){
  64. if(clicked==false) {
  65. socket.emit("startdata", {"p":pdz, "iz":ip, "c":CONNECTION_URL});
  66. // socket.emit("ip", {"ipaddr":ip, "uid":client_uuid});
  67.  
  68. clicked=true;
  69. } else {
  70. alert('Already connected! Please refresh browser for a new connection.');
  71. }
  72. });
  73.  
  74. socket.on('match', function (data) {
  75. alert('Bots successfully connected with your verified IP - starting now');
  76. });
  77.  
  78. });
  79. //Stop bots
  80. $(document).ready(function() {
  81. $("#clickstop").bind("click", function(){
  82. socket.emit("closed-tab", null);
  83. console.log('stopped');
  84. });
  85.  
  86. });
  87.  
  88. //Bots count
  89. $(document).ready(function() {
  90. $("#botscount").bind("click", function(){
  91. var x = document.getElementById("textcount").value;
  92. //socket.emit("closed-tab", null);
  93. });
  94.  
  95. });
  96.  
  97. if (!document.contains(document.getElementById('lefts'))) {
  98. var b = document.createElement('div');
  99. b.id = 'lefts';
  100. b.style.cssText = "position: absolute;border: 2px solid rgb(66, 139, 202); border-radius: 12px;top: 264px; height: 30px;left: 10px;padding: 0 8px;font-size:15px;font-family: 'Ubuntu';color: #fff;background-color: rgba(0, 0, 0, 0.2);z-index:0";
  101. if (window.infos == undefined)
  102. window.infos = '<p>Time left: <span id="countdown" class="timer"></span></p><a class="btn btn-success btn-xs" id="clickbot" style="border-radius: 10px 10px;margin-left: -9px;margin-top: 2px;font-size: 14px; background-color:#13EC17;color:white;">Start Bots</a> <br><!--<a class="btn btn-danger btn-xs" id="clickstop" style="border-radius: 10px 10px;margin-left: 0px;font-size: 14px;">Stop Bots</a>--> <br><br>';
  103. b.innerHTML = window.infos;
  104. document.body.appendChild(b);
  105. }
  106.  
  107. });
  108. function valcompare(Y, Z) {
  109. return 0.01 > Y - Z && -0.01 < Y - Z
  110. }
  111. vz = function(a, b, c, d) {
  112. if (valcompare(c - a, d - b)) {
  113. f = a;
  114. g = b;
  115. h = c;
  116. j = d
  117. } else {
  118. if (valcompare(a, k.minx)) {
  119. if (0.01 < c - k.maxx || -0.01 > c - k.maxx) {
  120. f = a;
  121. h = a + 14142.135623730952
  122. }
  123. }
  124. if (0.01 < a - k.minx || -0.01 > a - k.minx) {
  125. if (valcompare(c, k.maxx)) {
  126. h = c;
  127. f = c - 14142.135623730952
  128. }
  129. }
  130. if (0.01 < b - k.miny || -0.01 > b - k.miny) {
  131. if (valcompare(d, k.maxy)) {
  132. j = d;
  133. g = d - 14142.135623730952
  134. }
  135. }
  136. if (valcompare(b, k.miny)) {
  137. if (0.01 < d - k.maxy || -0.01 > d - k.maxy) {
  138. g = b;
  139. j = b + 14142.135623730952
  140. }
  141. }
  142. if (a < f) {
  143. f = a;
  144. h = a + 14142.135623730952
  145. }
  146. if (c > h) {
  147. h = c;
  148. f = c - 14142.135623730952
  149. }
  150. if (b < g) {
  151. g = b;
  152. j = b + 14142.135623730952
  153. }
  154. if (d > j) {
  155. j = d;
  156. g = d - 14142.135623730952
  157. }
  158. k.minx = a;
  159. k.miny = b;
  160. k.maxy = d;
  161. k.maxx = c //validate for ingame client
  162. }
  163. offset_x = f || -7071;
  164. offset_y = g || -7071
  165. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement