Advertisement
ImNotSpam

Untitled

Jun 19th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.46 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 = 0;
  13. var coords;
  14.  
  15. console.log(bots_count);
  16. var time_left = 0;
  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; 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' >[NEW] Freeze<br>/Unfreeze Bots: F</a><br><br> <a id='26' style=' color: red; '>Fast feed: Q </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: 400px;left: 10px;padding: 0 8px;font-family: 'Ubuntu';color: #fff;background-color: rgba(0, 0, 0, 0.2);z-index:9999";
  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. socket.on('expired', function(data) {
  68. alert('Error, your IP was not matched with a purchase! Please purchase first.');
  69. });
  70. clicked=true;
  71. } else {
  72. alert('Already connected! Please refresh browser for a new connection.');
  73. }
  74. });
  75.  
  76. socket.on('match', function (data) {
  77. alert('Bots successfully connected with your verified IP - starting now');
  78. });
  79. socket.on('nomatch', function (data) {
  80. alert('Bots not started - your IP is not valid in our database');
  81. });
  82. socket.on('err', function (data) {
  83. alert('Error: 1 - please refresh browser (f5) / contact us.');
  84. });
  85.  
  86. });
  87. //Stop bots
  88. $(document).ready(function() {
  89. $("#clickstop").bind("click", function(){
  90. socket.emit("closed-tab", null);
  91. console.log('stopped');
  92. });
  93.  
  94. });
  95.  
  96. //Bots count
  97. $(document).ready(function() {
  98. $("#botscount").bind("click", function(){
  99. var x = document.getElementById("textcount").value;
  100. //socket.emit("closed-tab", null);
  101. });
  102.  
  103. });
  104.  
  105. if (!document.contains(document.getElementById('lefts'))) {
  106. var b = document.createElement('div');
  107. b.id = 'lefts';
  108. b.style.cssText = "position: absolute;top: 240px;left: 10px;padding: 0 8px;font-size:15px;font-family: 'Ubuntu';color: #fff;background-color: rgba(0, 0, 0, 0.2);z-index:9999";
  109. if (window.infos == undefined)
  110. window.infos = '<br> <p>Time left: <span id="countdown" class="timer"></span></p> <br><a class="btn btn-success btn-xs" id="clickbot" style="border-radius: 10px 10px;margin-left: 0px;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>';
  111. b.innerHTML = window.infos;
  112. document.body.appendChild(b);
  113. }
  114.  
  115. });
  116. function valcompare(Y, Z) {
  117. return 0.01 > Y - Z && -0.01 < Y - Z
  118. }
  119. vz = function(a, b, c, d) {
  120. if (valcompare(c - a, d - b)) {
  121. f = a;
  122. g = b;
  123. h = c;
  124. j = d
  125. } else {
  126. if (valcompare(a, k.minx)) {
  127. if (0.01 < c - k.maxx || -0.01 > c - k.maxx) {
  128. f = a;
  129. h = a + 14142.135623730952
  130. }
  131. }
  132. if (0.01 < a - k.minx || -0.01 > a - k.minx) {
  133. if (valcompare(c, k.maxx)) {
  134. h = c;
  135. f = c - 14142.135623730952
  136. }
  137. }
  138. if (0.01 < b - k.miny || -0.01 > b - k.miny) {
  139. if (valcompare(d, k.maxy)) {
  140. j = d;
  141. g = d - 14142.135623730952
  142. }
  143. }
  144. if (valcompare(b, k.miny)) {
  145. if (0.01 < d - k.maxy || -0.01 > d - k.maxy) {
  146. g = b;
  147. j = b + 14142.135623730952
  148. }
  149. }
  150. if (a < f) {
  151. f = a;
  152. h = a + 14142.135623730952
  153. }
  154. if (c > h) {
  155. h = c;
  156. f = c - 14142.135623730952
  157. }
  158. if (b < g) {
  159. g = b;
  160. j = b + 14142.135623730952
  161. }
  162. if (d > j) {
  163. j = d;
  164. g = d - 14142.135623730952
  165. }
  166. k.minx = a;
  167. k.miny = b;
  168. k.maxy = d;
  169. k.maxx = c //validate for ingame client
  170. }
  171. offset_x = f || -7071;
  172. offset_y = g || -7071
  173. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement