Detta skript bör inte installeras direkt. Det är ett bibliotek för andra skript att inkludera med meta-direktivet // @require https://update.greasyfork.org/scripts/372694/632840/Stamer%20Koyer%20hack%20foda%20krl.js
ddEventListener("keydown", function(a) {
if (a.keyCode == 73) { //
socket.emit("1",2.10,132,1);
socket.emit("1",2.62,132,1);
socket.emit("1",3.14,132,1);
socket.emit("1",3.66,132,1);
socket.emit("1",4.18,132,1);
socket.emit("1",4.70,132,1);
socket.emit("1",5.22,132,1);
socket.emit("1",5.74,132,1);
socket.emit("1",6.26,132,1);
socket.emit("1",6.78,132,1);
socket.emit("1",7.30,132,1);
socket.emit("1",2.35,132,1);
}
if (a.keyCode == 73) { //
socket.emit("1",UTILS.roundToTwo(1.56),UTILS.roundToTwo(132),1);
}
if (a.keyCode == 73) { //
socket.emit("1",2.54,245,1);
socket.emit("1",2.82,245,1);
socket.emit("1",3.09,245,1);
socket.emit("1",3.36,245,1);
socket.emit("1",3.62,245,1);
socket.emit("1",3.90,245,1);
socket.emit("1",4.17,245,1);
socket.emit("1",4.44,245,1);
socket.emit("1",5.02,245,1);
socket.emit("1",5.29,245,1);
socket.emit("1",5.56,245,1);
socket.emit("1",5.82,245,1);
socket.emit("1",6.08,245,1);
socket.emit("1",6.35,245,1);
socket.emit("1",6.62,245,1);
socket.emit("1",6.90,245,1);
socket.emit("1",1.89,186,1);
socket.emit("1",2.35,184,1);
socket.emit("1",2.88,184,1);
socket.emit("1",3.41,184,1);
socket.emit("1",3.93,184,1);
socket.emit("1",4.45,184,1);
socket.emit("1",4.97,184,1);
socket.emit("1",5.47,184,1);
socket.emit("1",5.98,184,1);
socket.emit("1",6.51,184,1);
socket.emit("1",7.03,184,1);
socket.emit("1",7.50,186,1);
socket.emit("1",7.44,245,1);
socket.emit("1",7.72,245,1);
socket.emit("1",8.00,245,1);
socket.emit("1",8.28,245,1);
socket.emit("1",7.44,245,1);
socket.emit("1",7.72,245,1);
socket.emit("1",8.00,245,1);
socket.emit("1",8.28,245,1);
socket.emit("1",4.72,245,1);
socket.emit("1",2.26,245,1);
socket.emit("1",7.19,245,1);
}
if (a.keyCode == 79){
for(i=0;i<units.length;++i){
if(0===units[i].type&&1==units[i].turretIndex&&"circle"==units[i].shape&&units[i].owner==player.sid){
socket.emit("4",units[i].id,1);
}
}
}
if (a.keyCode == 79){
for(i=0;i<units.length;++i){
if(0===units[i].type&&3==units[i].turretIndex&&"circle"==units[i].shape&&units[i].owner==player.sid){
socket.emit("4",units[i].id,0);
}
}
}
if (a.keyCode == 79){
for(i=0;i<units.length;++i){
if(3==units[i].type&&"circle"==units[i].shape&&units[i].owner==player.sid){
socket.emit("4",units[i].id,0);
}
}
}
if (a.keyCode == 79){
for(i=0;i<units.length;++i){
if(3==units[i].type&&"hexagon"==units[i].shape&&units[i].owner==player.sid){
socket.emit("4",units[i].id,0);
}
}
}
});
addEventListener("keydown", function(a) {
if (a.keyCode == 100) { //Generators
socket.emit("1",2.10,132,3);
socket.emit("1",2.62,132,3);
socket.emit("1",3.14,132,3);
socket.emit("1",3.66,132,3);
socket.emit("1",4.18,132,3);
socket.emit("1",4.70,132,3);
socket.emit("1",5.22,132,3);
socket.emit("1",5.74,132,3);
socket.emit("1",6.26,132,3);
socket.emit("1",6.78,132,3);
socket.emit("1",7.30,132,3);
socket.emit("1",2.35,132,3);
socket.emit("1",2.35,184,3);
socket.emit("1",2.88,184,3);
socket.emit("1",3.41,183,3);
socket.emit("1",3.93,183,3);
socket.emit("1",4.45,183,3);
socket.emit("1",4.97,183,3);
socket.emit("1",5.47,184,3);
socket.emit("1",5.98,184,3);
socket.emit("1",6.51,184,3);
socket.emit("1",7.03,184,3);
}
if (a.keyCode == 103) { //Armory
socket.emit("1",UTILS.roundToTwo(1.56),UTILS.roundToTwo(132),7);
}
if (a.keyCode == 98) { //Houses
socket.emit("1",2.54,245,4);
socket.emit("1",2.82,245,4);
socket.emit("1",3.09,245,4);
socket.emit("1",3.36,245,4);
socket.emit("1",3.62,245,4);
socket.emit("1",3.90,245,4);
socket.emit("1",4.17,245,4);
socket.emit("1",4.44,245,4);
socket.emit("1",5.02,245,4);
socket.emit("1",5.29,245,4);
socket.emit("1",5.56,245,4);
socket.emit("1",5.82,245,4);
socket.emit("1",6.08,245,4);
socket.emit("1",6.35,245,4);
socket.emit("1",6.62,245,4);
socket.emit("1",6.90,245,4);
socket.emit("1",7.44,245,4);
socket.emit("1",7.72,245,4);
socket.emit("1",8.00,245,4);
socket.emit("1",8.28,245,4);
socket.emit("1",1.89,186,4);
socket.emit("1",2.35,184,4);
socket.emit("1",2.88,184,4);
socket.emit("1",3.41,184,4);
socket.emit("1",3.93,184,4);
socket.emit("1",4.45,184,4);
socket.emit("1",4.97,184,4);
socket.emit("1",5.47,184,4);
socket.emit("1",5.98,184,4);
socket.emit("1",6.51,184,4);
socket.emit("1",7.03,184,4);
socket.emit("1",7.50,186,4);
}
if (a.keyCode == 101) {//Turrets
socket.emit("1",2.62,132,5);
socket.emit("1",4.70,132,5);
socket.emit("1",6.78,132,5);
socket.emit("1",2.35,184,5);
socket.emit("1",2.88,184,5);
socket.emit("1",3.41,183,5);
socket.emit("1",3.93,183,5);
socket.emit("1",4.45,183,5);
socket.emit("1",4.97,183,5);
socket.emit("1",5.47,184,5);
socket.emit("1",5.98,184,5);
socket.emit("1",6.51,184,5);
socket.emit("1",7.03,184,5);
}
if (a.keyCode == 114) {//Walls
for(i=-3.14;i<3.14;i+=0.075){
socket.emit("1",i,1e3,1);
}
}
if (a.keyCode == 104) {//Barracks
socket.emit("1",4.72,310,8);
socket.emit("1",2.26,310,8);
socket.emit("1",7.19,310,8);
}
});
(function() {
'use strict';
// Your code here...
})();addEventListener("keydown", function(a) {
if (a.keyCode == 97) {//Walls
for(i=-3.14;i<3.14;i+=0.075){
socket.emit("1",i,1e3,1);
}
}
});