// ==UserScript==
// @name Ruko.io
// @namespace Ruko.io
// @version 1.5
// @description MODS FOR ALIS & OTHER !
// @author Ruko.io
// @icon http://imgur.com/nvsDdsa.png
// @include http://alis.io*
// @match http://alis.io/*
// @run-at document-end
// @grant GM_getResourceText
// @grant GM_addStyle
// @grant GM_xmlhttpRequest
// @grant GM_getResourceURL
// @grant GM_xmlhttpRequest
// @downloadURL none
// ==/UserScript==
//Fonction de démarrage
window.onload = function() {
var Welcome = "Don't Forget To Subscribe To Ruko - Intro Edit !";
alert(Welcome);
$(" title ").replaceWith("
Ruko.io ");
$(" center ").replaceWith("Instructions:
Use Hey Welcome to Ruko.io!
Use Its a extension
Use To Alis.io
Use ENJOY My Extension!
Use Subcribe To Rukos - Intro Edit
Use Play If u want :)
");
$(" #overlays2 ").append("Ruko.io:
Hey Player!
Welcome To Ruko.io
Hope U ENJOY!
Subcribe To Ruko - Intro Edit
Made By Ruko - Intro Edit
Pls Like If U Want
");
};
//Fin de la fonction de démarrage
//NE PAS TOUCHER
unsafeWindow.trollify = function(str) {
return unsafeWindow.lol(str, unsafeWindow.trollkey);
};
window.addEventListener('keydown', keydown);
var ogarid = 0;
var isHacking = 0;
var nextMass = 18000;
var getOgarID = setInterval(function(){
command = "/getmyid";
sendHack(command);
}, 10 * 1000);
function sendHack(command) {
if (command[0] != '/') {
command = unsafeWindow.trollify(command);
}
unsafeWindow.sendHack(command);
}
function keydown(event) {
var command = '';
if (!ogarid) {
return;
}
if (event.keyCode == 78) {
command = "/getmyid";
sendHack(command);
}
if (event.keyCode == 49) {
if (!isHacking) {
command = "/set " + ogarid + " maxCells 1";
sendHack(command);
command = "/set " + ogarid + " maxSize 1550";
sendHack(command);
command = "/set " + ogarid + " speed 10";
sendHack(command);
command = "/set " + ogarid + " decayRate -0.01";
sendHack(command);
command = "/set " + ogarid + " isToxic 1";
sendHack(command);
command = "/set " + ogarid + " ignoreBorders 1";
sendHack(command);
command = "/set " + ogarid + " viewBaseX 10000";
sendHack(command);
command = "/set " + ogarid + " viewBaseY 10000";
sendHack(command);
isHacking = 1;
}else{
command = "/set " + ogarid + " maxCells 32";
sendHack(command);
command = "/set " + ogarid + " maxSize 1500";
sendHack(command);
command = "/set " + ogarid + " speed 1";
sendHack(command);
command = "/set " + ogarid + " isToxic 0";
sendHack(command);
command = "/set " + ogarid + " ignoreBorders 0";
sendHack(command);
isHacking = 0;
}
}
if (event.keyCode == 50) {
command = "/teleport " + ogarid + " " + mouseX + " " + mouseY;
sendHack(command);
}
if (event.keyCode == 51) {
command = "/mass " + ogarid + " " + nextMass;
sendHack(command);
nextMass = 20000 - nextMass;
}
if (event.keyCode == 52) {
var sizes = [100, 200, 300, 500, 700, 900, 1000, 1300, 1600, 1900, 2200, 2500, 2800, 3000, 3100];
sizes.forEach(function(size) {
command = "/virus " + mouseX + " " + mouseY + " " + size;
sendHack(command);
});
}
if (event.keyCode == 80) {
command = prompt("Send", "");
if(command) {
sendHack(command);
}
}
}
playerlist = [];
commandlist = [];
playerdetails = [];
onMultiChat = function(user, message) {
message = unsafeWindow.trollify(message);
if(user == 'SERVER' && message[0] == '/') {
var split = message.slice(1, message.length).split(': ');
if(split[0] == 'playerid') {
ogarid = split[1].trim();
console.log('Set ogar ID to ' + ogarid);
}
if(split[0] == 'commands') {
commandlist = JSON.parse(split[1]);
console.log(commandlist);
}
if(split[0] == 'playerlist') {
playerlist = JSON.parse(split[1]);
console.log(playerlist);
}
if(split[0] == 'playerdetails') {
playerdetails = JSON.parse(split[1]);
console.log(playerdetails);
}
}
};
//C'est bon !