Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name CellcraftBots-Ai
- // @namespace CC
- // @version 1.0.5
- // @description StrikerJs
- // @author StrikerJS
- // @match http://agar.bio/*
- // @match http://galx.io/*
- // @match http://cellcraft.io/*
- // @match http://play.agario0.com/*
- // @match http://blong.io/*
- // @match http://nbk.io/*
- // @match http://gaver.io/*
- // @match http://mgar.io/*
- // @match http://alis.io/*
- // @match http://agar.io/*
- // @match http://gota.io/*
- // @require https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.7.3/socket.io.min.js
- // @grant none
- // ==/UserScript==
- window.botMode = "Mouse";
- window.chatMsg = null;
- window.interv = 1000;
- (function() {
- 'use strict';
- window.trap = {
- x: 0,
- y: 0,
- ip: null,
- };
- WebSocket.prototype.Asend = WebSocket.prototype.send;
- WebSocket.prototype.send = function(a) {
- this.Asend.apply(this, arguments)
- var msg = new DataView(a);
- if (msg.byteLength === 21) {
- if (msg.getInt8(0, true) === 16) {
- trap.x = msg.getFloat64(1, true);
- trap.y = msg.getFloat64(9, true);
- }
- }
- if (msg.byteLength === 13) {
- console.log('MOUSE DATA!')
- if (msg.getUint8(0, true) === 16) {
- trap.x = msg.getInt32(1, true);
- trap.y = msg.getInt32(5, true);
- console.log('MOUSE DATA!')
- }
- }
- if(this.url !== null) {
- trap.ip = this.url;
- console.log(trap.ip);
- }
- };
- var socket = io.connect('ws://ulb-minestriker0010942351.codeanyapp.com:8080');
- document.addEventListener('keydown', function(e) {
- var key = e.keyCode || e.which;
- switch (key) {
- case 69:
- socket.emit('split');
- break;
- case 82:
- socket.emit('eject');
- break;
- case 67:
- socket.emit('botAi');
- window.botMode = "Ai"
- break;
- case 66:
- socket.emit('mouseMove')
- window.botMode = "Mouse"
- break;
- case 190:
- window.botAmount = prompt('Put in ur wished amount of bots');
- break;
- case 9:
- window.chatMsg = prompt('Spam => :');
- window.spam();
- break;
- case 16:
- socket.emit('stop');
- break;
- }
- });
- switch(window.botMode) {
- case "Mouse":
- setInterval(function() {
- socket.emit('pos', {
- x: trap.x,
- y: trap.y,
- });
- },200)
- break;
- case "Ai":
- console.log(window.botMode)
- break;
- }
- window.spam = () => {
- setInterval(function() {
- socket.emit('chat', {
- msg: window.chatMsg
- })
- }, window.interv)
- }
- window.botCount = null;
- window.start = function() {
- socket.emit('start', {
- ip : trap.ip !== null ? trap.ip : 0,
- origin : location.origin,
- bots: window.botAmount
- });
- };
- setTimeout(function() {
- $("#canvas").after("<div style='box-shadow: 0px 0px 20px black;z-index:9999999; background-color: #000000; -moz-opacity: 0.4; -khtml-opacity: 0.4; opacity: 0.7; zoom: 1; width: 205px; top: 300px; left: 10px; display: block; position: absolute; text-align: center; font-size: 15px; color: #ffffff; font-family: Ubuntu;border: 2px solid #0c31d4;'> <div style='color:#ffffff; display: inline; -moz-opacity:1; -khtml-opacity: 1; opacity:1;font-size: 22px; filter:alpha(opacity=100); padding: 10px;'><a>Striker'S Client</a></div> <div style=' color:#ffffff; display: inline; -moz-opacity:1; -khtml-opacity: 1; opacity:1; filter:alpha(opacity=100); padding: 10px;'><br>Minions: <a id='minionCount'>Offline</a> </div><button id='start-bots' style='display: block;border-radius: 5px;border: 2px solid #6495ED;background-color: #BCD2EE;height: 50px;width: 120px;margin: auto;text-align: center;'>StartBots </button><marquee>StrkerJS</marquee> </div>");
- document.getElementById('start-bots').onclick = function() {
- start();
- };
- },2000);
- socket.on('count', function(count) {
- $('#minionCount').html(count.amount);
- });
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement