Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Starve - kmccord1 + Chromium Script
- // @namespace http://tampermonkey.net/
- // @version WhoKnows
- // @description starve dieing from the inside :o
- // @author kmccord1 + Chromium
- // @match https://starve.io/
- // @grant none
- // ==/UserScript==
- (function() {
- // VARS
- var log = setInterval(tick,1000)
- var bootloop = setInterval(runbots,17);
- var bots = new Array();
- var botsconnecting = 0;
- var delay = 0;
- // KEYS
- // FUNCTIONS
- function botconnect()
- {
- botsconnecting = 0;
- for (var i = 0; i < bots.length; i++)
- {
- if (bots[i].connected == 0)
- {
- botsconnecting++;
- }
- }
- if (botsconnecting == 0)
- {
- var random = Math.round(Math.random() * 30);
- bots.push( new WebSocket("wss://" + Xm.ML[random].i + ":" + Xm.ML[random].p) );
- bots[bots.length - 1].connected = 0;
- bots[bots.length - 1].onopen = function()
- {
- bots[bots.length - 1].send(JSON.stringify(["omer is bad mod" + Math.round(Math.random()*1000),2120,1280,46,Math.round(Math.random()*50000000000000000000),"",0,0,0,0,0,1,0,0,0,null]))
- bots[bots.length - 1].connected = 1;
- }
- }
- }
- function filterbots()
- {
- for (var i = 0; i < bots.length; i++)
- {
- if (bots[i].connected == 1 && bots[i].readyState != 1)
- {
- bots.splice(i,1);
- }
- }
- }
- function dostuff()
- {
- delay++;
- if (delay >= 100)
- {
- delay = 0;
- for (var i = 0; i < bots.length; i++)
- {
- bots[i].send(JSON.stringify([13]));
- }
- }
- }
- function runbots()
- {
- filterbots();
- botconnect();
- }
- function tick()
- {
- console.log("Bots: " + bots.length);
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement