Professional Documents
Culture Documents
$("#consentBlock").css({display: "none"});
//$("#youtuberOf").css({display: "none"});
document.getElementById("moomooio_728x90_home").style.display = "none";
$("#moomooio_728x90_home").parent().css({display: "none"});
window.onbeforeunload = null;
let mouseX;
let mouseY;
let width;
let height;
setInterval(() => {
if(clanTroll == 1) {
doNewSend(["9", [null]]);
doNewSend(["8", [troll(false, 5)]])
}
doNewSend(["testing", [6]]);
}, 0);
setInterval(() => {
if(clanToggle == 1) {
doNewSend(["9", [null]]);
doNewSend(["8", [animate(false, 5)]])
doNewSend(["9", [null]]);
}
doNewSend(["testing", [6]]);
}, 0);
setInterval(() => {
if(clanfake == 1) {
doNewSend(["9", [null]]);
doNewSend(["8", [fake(false, 5)]])
}
doNewSend(["testing", [6]]);
}, 0);
setInterval(() => {
if(messageToggle == 1) {
doNewSend(["ch", [animate(true, 5)]])
}
}, 0);
setInterval(() => {
if(messageTroll == 1) {
doNewSend(["ch", [troll(true, 5)]])
}
}, 0);
setInterval(() => {
if(messagefake == 1) {
doNewSend(["ch", [fake(true, 5)]])
}
}, 0);
setInterval(() => {
if(autoaim == true) {
doNewSend(["2", [nearestEnemyAngle]]);
}
}, 0);
setInterval(() => {
if(hatToggle == 1) {
if(oldHat != normalHat) {
hat(normalHat);
console.log("Tried. - Hat")
}
if(oldAcc != normalAcc) {
acc(normalAcc);
console.log("Tried. - Acc")
}
oldHat = normalHat;
oldAcc = normalAcc
}
}, 25);
function normal() {
hat(normalHat);
acc(normalAcc);
}
}));
}
var nearestEnemy;
var nearestEnemyAngle;
var isEnemyNear;
var instaSpeed = 210;
var primary;
var secondary;
var foodType;
var wallType;
var spikeType;
var millType;
var mineType;
var boostType;
var turretType;
var spawnpadType;
var autoaim = false;
var tick = 1;
var oldHat;
var oldAcc;
var enemiesNear;
var normalHat;
var normalAcc;
var ws;
var msgpack5 = msgpack;
var boostDir;
let myPlayer = {
id: null,
x: null,
y: null,
dir: null,
object: null,
weapon: null,
clan: null,
isLeader: null,
hat: null,
accessory: null,
isSkull: null
};
let healSpeed = 35;
var messageToggle = 0;
var messageTroll = 0;
var messagefake = 0;
var clanToggle = 0;
var clanTroll = 0;
var clanfake = 0;
let healToggle = 1;
let hatToggle = 1;
document.msgpack = msgpack;
function n(){
this.buffer = new Uint8Array([0]);
this.buffer.__proto__ = new Uint8Array;
this.type = 0;
}
WebSocket.prototype.oldSend = WebSocket.prototype.send;
WebSocket.prototype.send = function(m){
if (!ws){
document.ws = this;
ws = this;
socketFound(this);
}
this.oldSend(m);
};
function socketFound(socket){
socket.addEventListener('message', function(message){
handleMessage(message);
});
}
function handleMessage(m){
let temp = msgpack5.decode(new Uint8Array(m.data));
let data;
if(temp.length > 1) {
data = [temp[0], ...temp[1]];
if (data[1] instanceof Array){
data = data;
}
} else {
data = temp;
}
let item = data[0];
if(!data) {return};
if (item == "33") {
enemiesNear = [];
for(let i = 0; i < data[1].length / 13; i++) {
let playerInfo = data[1].slice(13*i, 13*i+13);
if(playerInfo[0] == myPlayer.id) {
myPlayer.x = playerInfo[1];
myPlayer.y = playerInfo[2];
myPlayer.dir = playerInfo[3];
myPlayer.object = playerInfo[4];
myPlayer.weapon = playerInfo[5];
myPlayer.clan = playerInfo[7];
myPlayer.isLeader = playerInfo[8];
myPlayer.hat = playerInfo[9];
myPlayer.accessory = playerInfo[10];
myPlayer.isSkull = playerInfo[11];
} else if(playerInfo[7] != myPlayer.clan || playerInfo[7] === null) {
enemiesNear.push(playerInfo);
}
}
}
isEnemyNear = false;
if(enemiesNear) {
nearestEnemy = enemiesNear.sort((a,b) => dist(a, myPlayer) - dist(b,
myPlayer))[0];
}
if(nearestEnemy) {
nearestEnemyAngle = Math.atan2(nearestEnemy[2]-myPlayer.y, nearestEnemy[1]-
myPlayer.x);
if(Math.sqrt(Math.pow((myPlayer.y-nearestEnemy[2]), 2) +
Math.pow((myPlayer.x-nearestEnemy[1]), 2)) < 300) {
isEnemyNear = true;
if(autoaim == false && myPlayer.hat != 7 && myPlayer.hat != 53) {
normalHat = 6;
if(primary != 8) {
normalAcc = 21
}
};
}
}
if(isEnemyNear == false && autoaim == false) {
normalAcc = 19;
if (myPlayer.y < 2400){
normalHat = 15;
} else if (myPlayer.y > 6850 && myPlayer.y < 7550){
normalHat = 31;
} else {
normalHat = 12;
}
}
if (!nearestEnemy) {
nearestEnemyAngle = myPlayer.dir;
}
if(item == "h" && data[1] == myPlayer.id) {
if(data[2] < 100 && data[2] > 0 && healToggle == 1) {
setTimeout( () => {
place(foodType, null);
}, healSpeed);
}
}
update();
}
function doNewSend(sender){
ws.send(new Uint8Array(Array.from(msgpack5.encode(sender))));
}
function acc(id) {
doNewSend(["13c", [0, 0, 1]]);
doNewSend(["13c", [0, id, 1]]);
}
function hat(id) {
doNewSend(["13c", [0, id, 0]]);
}
function boostSpike() {
if(boostDir == null) {
boostDir = nearestEnemyAngle;
}
place(spikeType, boostDir + toRad(90));
place(spikeType, boostDir - toRad(90));
place(boostType, boostDir);
doNewSend(["33", [boostDir]]);
}
function boostWall() {
if(boostDir == null) {
boostDir = nearestEnemyAngle;
}
place(wallType, boostDir + toRad(90));
place(wallType, boostDir - toRad(90));
place(boostType, boostDir);
doNewSend(["33", [boostDir]]);
}
return {
start(keycode) {
if(keycode == key && document.activeElement.id.toLowerCase() !==
'chatbox') {
_isKeyDown = true;
if(_intervalId === undefined) {
_intervalId = setInterval(() => {
action();
if(!_isKeyDown){
clearInterval(_intervalId);
_intervalId = undefined;
console.log("claered");
}
}, interval);
}
}
},
stop(keycode) {
if(keycode == key && document.activeElement.id.toLowerCase() !==
'chatbox') {
_isKeyDown = false;
}
}
};
document.addEventListener('keydown', (e)=>{
healer.start(e.keyCode);
healer1.start(e.keyCode);
healer2.start(e.keyCode);
healer3.start(e.keyCode);
healer4.start(e.keyCode);
healer5.start(e.keyCode);
healer6.start(e.keyCode);
healer7.start(e.keyCode);
healer8.start(e.keyCode);
healer9.start(e.keyCode);
boostPlacer.start(e.keyCode);
spikePlacer.start(e.keyCode);
spikePlacer1.start(e.keyCode);
spawnPlacer.start(e.keyCode);
spikePlacer2.start(e.keyCode);
spikePlacer3.start(e.keyCode);
spikePlacer4.start(e.keyCode);
boostWaller.start(e.keyCode);
boostSpiker.start(e.keyCode);
millPlacer.start(e.keyCode);
millPlacer1.start(e.keyCode);
millPlacer2.start(e.keyCode);
millPlacer3.start(e.keyCode);
millPlacer4.start(e.keyCode);
turretPlacer.start(e.keyCode);
turretPlacer1.start(e.keyCode);
turretPlacer2.start(e.keyCode);
turretPlacer3.start(e.keyCode);
turretPlacer4.start(e.keyCode);
setTimeout( () => {
doNewSend(["5", [primary, true]]);
doNewSend(["c", [0, null]]);
doNewSend(["13c", [0, 6, 0]]);
doNewSend(["13c", [0, 21, 1]]);
autoaim = false;
healToggle = true;
}, instaSpeed);
}
setTimeout( () => {
doNewSend(["5", [primary, true]]);
doNewSend(["c", [0, null]]);
doNewSend(["13c", [0, 6, 0]]);
doNewSend(["13c", [0, 21, 1]]);
autoaim = false;
}, instaSpeed);
}
setTimeout( () => {
doNewSend(["6", [5]]);
}, 100);
setTimeout( () => {
doNewSend(["13c", [0, 53, 0]]);;
place(spikeType, myPlayer.dir + toRad(0));
}, 200);
setTimeout( () => {
doNewSend(["5", [primary, true]]);
doNewSend(["c", [0, null]]);
doNewSend(["13c", [0, 0, 0]]);
doNewSend(["13c", [0, 6, 0]]);
doNewSend(["13c", [0, 21, 1]]);
autoaim = false;
}, 300);
}
setTimeout( () => {
doNewSend(["13c", [0, 53, 0]]);
}, 100);
setTimeout( () => {
doNewSend(["c", [0, null]]);
doNewSend(["13c", [0, 6, 0]]);
autoaim = false;
}, 200);
}
setTimeout( () => {
doNewSend(["c", [0, null]]);
doNewSend(["13c", [0, 11, 0]]);
doNewSend(["13c", [0, 21, 1]]);
autoaim = false;
}, 200);
}
if (e.keyCode == 120 && document.activeElement.id.toLowerCase() !==
'chatbox') {
place(millType, myPlayer.dir + toRad(90));
place(millType, myPlayer.dir + toRad(270));
place(boostType, myPlayer.dir + toRad(0));
place(millType, myPlayer.dir + toRad(90));
place(millType, myPlayer.dir + toRad(270));
place(boostType, myPlayer.dir + toRad(0));
place(millType, myPlayer.dir + toRad(90));
place(millType, myPlayer.dir + toRad(270));
place(boostType, myPlayer.dir + toRad(0));
}
if (e.keyCode == 188 && document.activeElement.id.toLowerCase() !==
'chatbox') {
place(millType, myPlayer.dir + toRad(90));
place(millType, myPlayer.dir + toRad(270));
place(millType, myPlayer.dir + toRad(0));
}
if (e.keyCode == 190 && document.activeElement.id.toLowerCase() !==
'chatbox') {
place(turretType, myPlayer.dir + toRad(90));
place(turretType, myPlayer.dir + toRad(270));
place(turretType, myPlayer.dir + toRad(0));
}
setTimeout( () => {
doNewSend(["5", [primary, true]]);
doNewSend(["c", [0, null]]);
doNewSend(["13c", [0, 6, 0]]);
doNewSend(["13c", [0, 21, 1]]);
autoaim = false;
}, instaSpeed);
}
setTimeout( () => {
doNewSend(["5", [primary, true]]);
doNewSend(["c", [0, null]]);
doNewSend(["13c", [0, 6, 0]]);
doNewSend(["13c", [0, 21, 1]]);
autoaim = false;
}, instaSpeed);
}
document.addEventListener('keyup', (e)=>{
spikePlacer.stop(e.keyCode);
spawnPlacer.stop(e.keyCode);
spikePlacer1.stop(e.keyCode);
spikePlacer2.stop(e.keyCode);
spikePlacer3.stop(e.keyCode);
spikePlacer4.stop(e.keyCode);
boostPlacer.stop(e.keyCode);
boostSpiker.stop(e.keyCode);
boostWaller.stop(e.keyCode);
millPlacer.stop(e.keyCode);
millPlacer1.stop(e.keyCode);
millPlacer2.stop(e.keyCode);
millPlacer3.stop(e.keyCode);
millPlacer4.stop(e.keyCode);
turretPlacer.stop(e.keyCode);
turretPlacer1.stop(e.keyCode);
turretPlacer2.stop(e.keyCode);
turretPlacer3.stop(e.keyCode);
turretPlacer4.stop(e.keyCode);
healer.stop(e.keyCode);
healer1.stop(e.keyCode);
healer2.stop(e.keyCode);
healer3.stop(e.keyCode);
healer4.stop(e.keyCode);
healer5.stop(e.keyCode);
healer6.stop(e.keyCode);
healer7.stop(e.keyCode);
healer8.stop(e.keyCode);
healer9.stop(e.keyCode);
function isElementVisible(e) {
return (e.offsetParent !== null);
}
function toRad(angle) {
return angle * 0.01745329251;
}
document.title = ""
function update() {
for (let i=0;i<9;i++){
if (isElementVisible(document.getElementById("actionBarItem" +
i.toString()))){
primary = i;
}
}
spawnpadType = 36;
}
function createTribe(name) {
leaveTribe();
doNewSend(["8", [name]]);
}
function leaveTribe() {
doNewSend(["9", [null]]);
}
if (storageAvailable('localStorage')){
if (!localStorage.getItem("msgs")){
localStorage.setItem("msgs", JSON.stringify(msgs));
}else{
let temp;
try{
temp = JSON.parse(localStorage.getItem("msgs"));
}
catch (e){
alert("Invalid Array! Setting default...");
saveData();
temp = "";
}
if (temp !== ""){
msgs = temp;
}
}
}
function styleInit() {
addGlobalStyle(`#chatCyclerUI{padding: 0.2em; margin:0.2em; position:
absolute;top: 0;left: 0;width: 30%;
background-color: RGB(255, 4, 4);display:none;}`);
addGlobalStyle(".table{ display: table; text-align: center; width: 100%;
height: 80%;}");
addGlobalStyle(".row{ display: table-row; }");
addGlobalStyle(`.cell{ display: table-cell; padding: 0px 0.3em;border: 1px
solid black;}`);
addGlobalStyle(`.backRed{background-color:#FFFF00}`);
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) {
return;
}
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
}
function toggleOverlay(tf){
if (tf){
document.querySelector('#chatCyclerUI').style.display = "block";
}else{
document.querySelector('#chatCyclerUI').style.display = "none";
}
};
function ren_overlay(){
const title = `<div style="font-size:32px">Chat Cycle Menu</div>`;
const descr = `<div>Press HOME to toggle this menu.</div>`;
const body = `
<div class="table">
<div class="row">Message Cycle Settings
</div>
<div class="row">
<div class="cell" style="vertical-align:middle">Messages</div>
<div class="cell" style="vertical-align:middle"><textarea
name="overlay_messages" rows=4 cols=32 style="resize:none"></textarea></div>
</div>
<div class="row">
<div class="cell" style="vertical-align:middle">Update Message
Cycle</div>
<div class="cell" style="vertical-align:middle"><input
type="button" name="overlay_update_cycle" value="Update"></div>
</div>
<br>
<div class="row">Message Cycle Toggle
</div>
<div class="row">
<div class="cell" style="vertical-align:middle">Toggle<br><span
class="overlay_cycle_toggle_value"><span style="font-
size:24px;color:#FF0000";>off</span></span></div>
<div class="cell" style="vertical-align:middle"><input
type="button" name="overlay_cycle_toggle" value="Toggle"></div>
</div>
</div>`;
const footer = `<div style="font-size:24px;color:red">Made by
Mega_Mewthree</div>`;
const temp = `${title} ${body} ${descr} ${footer}`;
const d = document.createElement("div");
d.id = "chatCyclerUI";
d.innerHTML = temp;
d.style.zIndex = 999999;
document.body.appendChild(d);
const val = document.querySelector('textarea[name="overlay_messages"]');
val.value = overlay.inputString;
val.addEventListener('input', function(e) {
overlay.inputString = e.target.value;
});
document.querySelector('input[name="overlay_update_cycle"]').addEventListener('clic
k', function() {
if (!overlay.inputString){
overlay.tempMsgs = _msgs;
}else{
overlay.tempMsgs = overlay.inputString.split(/\r?\n/);
}
msgNum = 1;
msgs = overlay.tempMsgs;
saveData();
});
document.querySelector('input[name="overlay_cycle_toggle"]').addEventListener('clic
k', function(e) {
msgCycleSwitch = !msgCycleSwitch;
if (msgCycleSwitch){
chat = setInterval(autoChat, 1);
document.querySelector('.overlay_cycle_toggle_value').innerHTML =
`<span style="font-size:24px;color:#00FF00";>on</span>`;
}else{
document.querySelector('.overlay_cycle_toggle_value').innerHTML =
`<span style="font-size:24px;color:#FF0000";>off</span>`;
clearInterval(chat);
msgNum = 0;
}
});
}
function autoChat(){
socket && socket.send(msgpack.encode(["ch", [msgs[msgNum]]]));
msgNum++;
if (msgNum >= msgs.length) msgNum = 0;
}
function storageAvailable(type){
try{
var storage = window[type],
x = '__storage_test__';
storage.setItem(x, x);
storage.removeItem(x);
return true;
}
catch(e){
return false;
}
}
function saveData(){
if (storageAvailable('localStorage')){
localStorage.setItem("msgs", JSON.stringify(msgs));
}
}
// <3 Jesus
var mk = document.getElementById("gameCanvas").getContext("2d");
var Laa = 0;
var Lab = 0;
var aVZ = 0;
var fBX = "<3 KatieW.";
var resForRANC = 1;
// 1920-1080
function rainbowColor(){
if(resForRANC === 1){
aNC = [255,0,0];
resForRANC = 0;
}
if(aNC[0] === 255 && aNC[1] !== 255 && aNC[2] === 0){aNC[1] += 255/rANC[1];}
if(aNC[0] !== 0 && aNC[1] === 255 && aNC[2] === 0){aNC[0] += 255/rANC[1]*-1;}
if(aNC[0] === 0 && aNC[1] === 255 && aNC[2] !== 255){aNC[2] += 255/rANC[1];}
if(aNC[0] === 0 && aNC[1] !== 0 && aNC[2] === 255){aNC[1] += 255/rANC[1]*-1;}
if(aNC[0] !== 255 && aNC[1] === 0 && aNC[2] === 255){aNC[0] += 255/rANC[1];}
if(aNC[0] === 255 && aNC[1] === 0 && aNC[2] !== 0){aNC[2] += 255/rANC[1]*-1;}
if(aNC[0] < 0){aNC[0] = 0;} if(255 < aNC[0]){aNC[0] = 255;}
if(aNC[1] < 0){aNC[1] = 0;} if(255 < aNC[1]){aNC[1] = 255;}
if(aNC[2] < 0){aNC[2] = 0;} if(255 < aNC[2]){aNC[2] = 255;}
}
function katie(){
if(document.getElementById("actionBarItem0")){
if(document.getElementById("actionBarItem3").style.display === "inline-block"){
if(fBX !== 3){
aVZ = [[0,480],[0,360],[0,255]];
if(sANC === 1){aNC = [0, 255, 0];}
fBX = 3;
}
aVZ[0][0] += 1;
if(aVZ[0][1] <= aVZ[0][0]){
aVZ[0][0] = 0;
}
aVZ[1][0] += 1;
if(aVZ[1][1] <= aVZ[1][0]){
aVZ[1][0] = 0;
}
aVZ[2][0] += 1;
if(aVZ[2][1] <= aVZ[2][0]){
aVZ[2][0] = 0;
}
mk.beginPath();
mk.lineWidth = 24;
mk.strokeStyle = "rgb("+Math.round(aNC[0])+","+Math.round(aNC[1])
+","+Math.round(aNC[2])+",0.625)";
mk.arc(960,540,212,0+Math.PI/(aVZ[0][1]/2)*aVZ[0][0],7/8*Math.PI+Math.PI/
(aVZ[0][1]/2)*aVZ[0][0]);
mk.stroke();
mk.beginPath();
mk.lineWidth = 30;
mk.strokeStyle =
"rgb("+Math.round(aNC[0]/255*220)+","+Math.round(aNC[1]/255*220)+","+Math.round(aNC
[2]/255*220)+",0.625)";
mk.arc(960,540,185,0+Math.PI/(aVZ[1][1]/2)*aVZ[1][0],2/3*Math.PI+Math.PI/
(aVZ[1][1]/2)*aVZ[1][0]);
mk.stroke();
mk.beginPath();
mk.lineWidth = 45;
mk.strokeStyle = "rgb("+Math.round(aNC[0])+","+Math.round(aNC[1])
+","+Math.round(aNC[2])+",0.5)";
mk.arc(960,540,85,0+Math.PI/(aVZ[2][1]/2)*aVZ[2][0],1/3*Math.PI+Math.PI/
(aVZ[2][1]/2)*aVZ[2][0]);
mk.stroke();
}
if(document.getElementById("actionBarItem4").style.display === "inline-block"){
if(fBX !== 4){
aVZ = [[0,360],[0,250],[0,225],[0,250]];
if(sANC === 1){aNC = [255, 255, 0];}
fBX = 4;
}
aVZ[0][0] += -1;
if(aVZ[0][1] <= aVZ[0][0]){
aVZ[0][0] = 0;
}
aVZ[1][0] += 1;
if(aVZ[1][1] <= aVZ[1][0]){
aVZ[1][0] = 0;
}
aVZ[2][0] += -1;
if(aVZ[2][1] <= aVZ[2][0]){
aVZ[2][0] = 0;
}
aVZ[3][0] += 1;
if(aVZ[3][1] <= aVZ[3][0]){
aVZ[3][0] = 0;
}
mk.beginPath();
mk.lineWidth = 36;
mk.strokeStyle = "rgb("+Math.round(aNC[0])+","+Math.round(aNC[1])
+","+Math.round(aNC[2])+",0.45)";
mk.arc(960,540,251,0+Math.PI/(aVZ[0][1]/2)*aVZ[0][0],15/16*Math.PI+Math.PI/
(aVZ[0][1]/2)*aVZ[0][0]);
mk.stroke();
mk.beginPath();
mk.lineWidth = 46;
mk.strokeStyle =
"rgb("+Math.round(aNC[0]/255*220)+","+Math.round(aNC[1]/255*220)+","+Math.round(aNC
[2]/255*220)+",0.45)";
mk.arc(960,540,210,0+Math.PI/(aVZ[1][1]/2)*aVZ[1][0],7/9*Math.PI+Math.PI/
(aVZ[1][1]/2)*aVZ[1][0]);
mk.stroke();
mk.beginPath();
mk.lineWidth = 32;
mk.strokeStyle = "rgb("+Math.round(aNC[0])+","+Math.round(aNC[1])
+","+Math.round(aNC[2])+",0.383)";
mk.arc(960,540,109,0+Math.PI/(aVZ[2][1]/2)*aVZ[2][0],2/3*Math.PI+Math.PI/
(aVZ[2][1]/2)*aVZ[2][0]);
mk.stroke();
mk.beginPath();
mk.lineWidth = 26;
mk.strokeStyle =
"rgb("+Math.round(aNC[0]/255*235)+","+Math.round(aNC[1]/255*235)+","+Math.round(aNC
[2]/255*235)+",0.383)";
mk.arc(960,540,80,0+Math.PI/(aVZ[3][1]/2)*aVZ[3][0],7/8*Math.PI+Math.PI/
(aVZ[3][1]/2)*aVZ[3][0]);
mk.stroke();
}
if(document.getElementById("actionBarItem5").style.display === "inline-block"){
if(fBX !== 5){
aVZ = [[0,250,2.5,10,1.2]];
if(sANC === 1){aNC = [255, 0, 0];}
fBX = 5;
}
aVZ[0][0] += 1;
if(aVZ[0][1] <= aVZ[0][0]){
aVZ[0][0] = 0;
}
function letThereBeLight(){
if(rANC[0] === 1){
rainbowColor();
}
katie();
window.requestAnimationFrame(letThereBeLight);
}
window.requestAnimationFrame(letThereBeLight);
// http://keycode.info/
// https://www.cambiaresearch.com/articles/15/javascript-char-codes-key-codes
// Keys
try {
document.getElementById("moomooio_728x90_home").style.display = "none";
$("moomooio728x90_home").parent().css({display: "none"});
} catch (e) {
console.log("There was an error removing the ads.");
}
$("#tankGear").on("input", () => {
var cval = $("#tankGear").val();
if (cval){
TankGearKey = cval.toUpperCase();
TankGearKey = TankGearKey.charCodeAt(0);
console.log(TankGearKey);
}
});
$("#scavengerGear").on("input", () => {
var cval = $("#scavengerGear").val();
if (cval){
ScavengerGearKey = cval.toUpperCase();
ScavengerGearKey = ScavengerGearKey.charCodeAt(0);
console.log(ScavengerGearKey);
}
});
$("#assassinGear").on("input", () => {
var cval = $("#assassinGear").val();
if (cval){
AssassinGearKey = cval.toUpperCase();
AssassinGearKey = AssassinGearKey.charCodeAt(0);
console.log(AssassinGearKey);
}
});
$("#empHelmet").on("input", () => {
var cval = $("#empHelmet").val();
if (cval){
EmpHelmetKey = cval.toUpperCase();
EmpHelmetKey = EmpHelmetKey.charCodeAt(0);
console.log(EmpHelmetKey);
}
});
$("#bullHelm").on("input", () => {
var cval = $("#bullHelm").val();
if (cval){
BullHelmetKey = cval.toUpperCase();
BullHelmetKey = BullHelmetKey.charCodeAt(0);
console.log(BullHelmetKey);
}
});
$("#bushGear").on("input", () => {
var cval = $("#bushGear").val();
if (cval){
BushGearKey = cval.toUpperCase();
BushGearKey = BushGearKey.charCodeAt(0);
console.log(BushGearKey);
}
});
$("#samuraiArmor").on("input", () => {
var cval = $("#samuraiArmor").val();
if (cval){
SamuraiArmorKey = cval.toUpperCase();
SamuraiArmorKey = SamuraiArmorKey.charCodeAt(0);
console.log(SamuraiArmorKey);
}
});
$("#soldier").on("input", () => {
var cval = $("#soldier").val();
if (cval){
SoldierHelmetKey = cval.toUpperCase();
SoldierHelmetKey = SoldierHelmetKey.charCodeAt(0);
console.log(SoldierHelmetKey);
}
});
$("#turret").on("input", () => {
var cval = $("#turret").val();
if (cval){
TurretKey = cval.toUpperCase();
TurretKey = TurretKey.charCodeAt(0);
console.log(TurretKey);
}
});
.menuPrompt {
font-size: 17px;
font-family: 'Hammersmith One';
color: #4A4A4A;
flex: 0.2;
text-align: center;
margin-top: 10px;
display: inline-block;
}
.modal {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
overflow: auto;
height: 100%;
width: 100%;
}
.modal-content {
margin: 10% auto;
width: 40%;
box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 7px 20px 0 rgba(0, 0, 0, 0.17);
font-size: 14px;
line-height: 1.6;
}
.modal-header h2,
.modal-footer h3 {
margin: 0;
}
.modal-header {
background: #00FF00;
padding: 15px;
color: #fff;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
.modal-body {
padding: 10px 20px;
background: #fff;
}
.modal-footer {
background: #00FF00;
padding: 10px;
color: #fff;
text-align: center;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
}
.closeBtn {
color: #ccc;
float: right;
font-size: 30px;
color: #fff;
}
.closeBtn:hover,
.closeBtn:focus {
color: #000;
text-decoration: none;
cursor: pointer;
}
`))
document.head.appendChild(styleItem);
$("#adCard").css({display: "none"});
document.addEventListener('keydown', function(e) {
if (e.keyCode == uneqiup && document.activeElement.id.toLowerCase() !==
'chatbox'){
console.log("done")
storeEquip(0);
} else if (e.keyCode == 113){
if (modal.style.display = "none") {
modal.style.display = "block";
} else {
modal.style.display = "none";
}
} else if (e.keyCode == ScavengerGearKey &&
document.activeElement.id.toLowerCase() !== 'chatbox'){
storeEquip(ID_ScavengerGearGear);
} else if (e.keyCode == AssassinGearKey &&
document.activeElement.id.toLowerCase() !== 'chatbox'){
storeEquip(ID_AssassinGear);
} else if (e.keyCode == BushGearKey &&
document.activeElement.id.toLowerCase() !== 'chatbox'){
storeEquip(ID_BushGear);
} else if (e.keyCode == EmpHelmetKey && document.activeElement.id.toLowerCase()
!== 'chatbox'){
storeEquip(ID_EmpHelmet);
} else if (e.keyCode == TankGearKey &&
document.activeElement.id.toLowerCase() !== 'chatbox'){
storeEquip(ID_TankGear);
} else if (e.keyCode == SamuraiArmorKey &&
document.activeElement.id.toLowerCase() !== 'chatbox'){
storeEquip(ID_SamuraiArmor);
} else if (e.keyCode == SoldierHelmetKey &&
document.activeElement.id.toLowerCase() !== 'chatbox'){
storeEquip(ID_SoldierHelmet);
} else if (e.keyCode == BullHelmetKey &&
document.activeElement.id.toLowerCase() !== 'chatbox'){
storeEquip(ID_BullHelmet);
} else if (e.keyCode == BoosterHatKey &&
document.activeElement.id.toLowerCase() !== 'chatbox'){
storeEquip(ID_BoosterHat);
} else if (e.keyCode == SpikeGearKey &&
document.activeElement.id.toLowerCase() !== 'chatbox'){
storeEquip(ID_SpikeGear);
} else if (e.keyCode == TurretKey && document.activeElement.id.toLowerCase() !
== 'chatbox'){
storeEquip(ID_TurretGear);
}
})
// Events
closeBtn.addEventListener('click', closeModal);
window.addEventListener('click', outsideClick);
// Close
function closeModal() {
modal.style.display = 'none';
}
function Parse() {
document.addEventListener('keydown', function (CustomKey1) {
if (CustomKey1.keyCode == 223) {
storeBuy(6)
console.info('Attempted to buy soldier')
}
});
};
$('#gameName').css({'color': '#000000',
'text-shadow': '0 1px 0 rgba(231, 76, 60), 0 2px 0 rgba(231,
76, 60), 0 3px 0 rgba(231, 76, 60), 0 4px 0 rgba(231, 76, 60), 0 5px 0 rgba(231,
76, 60), 0 6px 0 rgba(231, 76, 60), 0 7px 0 rgba(231, 76, 60), 0 8px 0 rgba(231,
76, 60), 0 9px 0 rgba(255, 0, 0)',
'text-align': 'center',
'font-size': '156px',
'margin-bottom': '-30px'});
$('#gameName').css({'color': '#000000',
'text-shadow': '0 1px 0 rgba(231, 76, 60), 0 2px 0 rgba(231,
76, 60), 0 3px 0 rgba(231, 76, 60), 0 4px 0 rgba(231, 76, 60), 0 5px 0 rgba(231,
76, 60), 0 6px 0 rgba(231, 76, 60), 0 7px 0 rgba(231, 76, 60), 0 8px 0 rgba(231,
76, 60), 0 9px 0 rgba(255, 0, 0)',
'text-align': 'center',
'font-size': '156px',
'margin-bottom': '-30px'});
document.getElementById('adCard').remove();
document.getElementById('errorNotification').remove();
document.getElementById("leaderboard").style.color = "black";
document.getElementById("gameName").style.color = "blue";
document.getElementById("setupCard").style.color = "blue";
document.getElementById("promoImg").remove();
document.getElementById("scoreDisplay").style.color = "red";
document.getElementById("woodDisplay").style.color = "light blue";
document.getElementById("stoneDisplay").style.color = "black";
document.getElementById("killCounter").style.color = "blue";
document.getElementById("foodDisplay").style.color = "red";
document.getElementById("ageText").style.color = "black";
document.getElementById("allianceButton").style.color = "black";
document.getElementById("chatButton").style.color = "black";
document.getElementById("storeButton").style.color = "black";
$("#mapDisplay").css({background: `url('https://yt3.ggpht.com/a/AATXAJyH-
SPlIzKnLf7yxVI-aBjXSMy7sC5ynS3F=s144-c-k-c0xffffffff-no-rj-mo')`});
$("#mapDisplay").css({
'border-radious':'350px',
'border':'3px solid #ff0202'
});
$('.menuCard').css({'white-space': 'normal',
'text-align': 'center',
'background-color': 'rgba(0, 0, 0, 0)',
'-moz-box-shadow': '0px 0px rgba(255, 255, 255, 0)',
'-webkit-box-shadow': '0px 0px rgba(255, 255, 255, 0)',
'box-shadow': '0px 0px rgba(255, 255, 255, 0)',
'-webkit-border-radius': '0px',
'-moz-border-radius': '0px',
'border-radius': '0px',
'margin': '15px',
'margin-top': '15px'});
$('#menuContainer').css({'white-space': 'normal'});
$('#nativeResolution').css({'cursor': 'pointer'});
$('#playMusic').css({'cursor': 'pointer'});
$('#guideCard').css({'overflow-y': 'hidden',
'margin-top': 'auto',
'margin-bottom': '30px'});
$('#gameName').css({'color': '#000000',
'text-shadow': '0 1px 0 rgba(231, 76, 60), 0 2px 0 rgba(231,
76, 60), 0 3px 0 rgba(231, 76, 60), 0 4px 0 rgba(231, 76, 60), 0 5px 0 rgba(231,
76, 60), 0 6px 0 rgba(231, 76, 60), 0 7px 0 rgba(231, 76, 60), 0 8px 0 rgba(231,
76, 60), 0 9px 0 rgba(255, 0, 0)',
'text-align': 'center',
'font-size': '156px',
'margin-bottom': '-30px'});
$('#skinColorHolder').css({'margin-bottom': '30.75px'});
$('.settingRadio').css({'margin-bottom': '30.75px'});
$('#gameName').css({'color': '#000000',
'text-shadow': '0 1px 0 rgba(231, 76, 60), 0 2px 0 rgba(231,
76, 60), 0 3px 0 rgba(231, 76, 60), 0 4px 0 rgba(231, 76, 60), 0 5px 0 rgba(231,
76, 60), 0 6px 0 rgba(231, 76, 60), 0 7px 0 rgba(231, 76, 60), 0 8px 0 rgba(231,
76, 60), 0 9px 0 rgba(255, 0, 0)',
'text-align': 'center',
'font-size': '156px',
'margin-bottom': '-30px'});
$("#leaderboard").css({
'border':'3px solid #ff0202'
});
$('pingDisplay').css({'color': '#ff0202',
'text-shadow': '0 1px 0 rgba(255, 255, 255, 0), 0 2px 0
rgba(255, 255, 255, 0), 0 3px 0 rgba(255, 255, 255, 0), 0 4px 0 rgba(255, 255, 255,
0), 0 5px 0 rgba(255, 255, 255, 0), 0 6px 0 rgba(255, 255, 255, 0), 0 7px 0
rgba(255, 255, 255, 0), 0 8px 0 rgba(255, 255, 255, 0), 0 9px 0 rgba(255, 255, 255,
0)',
'text-align': 'center',
'font-size': '156px',
'margin-bottom': '-30px'});
$('#loadingText').css({'color': '#000000',
'background-color': 'rgba(0, 0, 0, 0)',
'padding': '8px',
'right': '150%',
'left': '150%',
'margin-top': '40px'});
$('.ytLink').css({'color': '#144db4',
'padding': '8px',
'background-color': 'rgba(255, 0, 0, 0)'});
$('.menuLink').css({'color': '#144db4'});
$('#nameInput').css({'border-radius': '0px',
'-moz-border-radius': '0px',
'-webkit-border-radius': '0px',
'border': 'hidden'});
$('#serverSelect').css({'cursor': 'pointer',
'color': '#000000',
'background-color': '#808080',
'border': 'hidden',
'font-size': '20px'});
$('.menuButton').css({'border-radius': '0px',
'-moz-border-radius': '0px',
'-webkit-border-radius': '0px'});
$('#promoImgHolder').css({'position': 'absolute',
'bottom': '-7%',
'left': '20px',
'width': '420px',
'height': '236.25px',
'padding-bottom': '18px',
'margin-top': '0px'});
$('#adCard').css({'position': 'absolute',
'bottom': '-7%',
'right': '20px',
'width': '420px',
'height': '236.25px',
'padding-bottom': '18px'});
$('#killCounter').css({'color': '#ededed'});
$('#gameCanvas').css({'background-color': '#f4f4f4'});
$('#partyButton').css({'color': '#000000',
'text-shadow': '0 3px 0 rgba(231, 76, 60), 0 3px 0 rgba(231, 76, 60), 0 3px 0
rgba(231, 76, 60), 0 3px 0 rgba(231, 76, 60), 0 3px 0 rgba(231, 76, 60), 0 3px 0
rgba(231, 76, 60), 0 3px 0 rgba(231, 76, 60), 0 3px 0 rgba(231, 76, 60), 0 3px 0
rgba(255, 0, 0)',
'text-align': 'center',
'font-size': '30px',
'margin-bottom': '30px'});
$('#joinPartyButton').css({'color': '#000000',
'text-shadow': '0 3px 0 rgba(231, 76, 60), 0 3px 0 rgba(231, 76, 60), 0 3px 0
rgba(231, 76, 60), 0 3px 0 rgba(231, 76, 60), 0 3px 0 rgba(231, 76, 60), 0 3px 0
rgba(231, 76, 60), 0 3px 0 rgba(231, 76, 60), 0 3px 0 rgba(231, 76, 60), 0 3px 0
rgba(255, 0, 0)',
'text-align': 'center',
'font-size': '30px',
'margin-bottom': '30px'});
$('.uiElement, .resourceDisplay').css({'-webkit-border-radius': '0px',
'-moz-border-radius': '0px',
'border-radius': '0px',
'background-color': 'rgb(101, 11, 11);'});
$('#chatBox').css({'-webkit-border-radius': '0px',
'-moz-border-radius': '0px',
'border-radius': '700px',
'background-color': 'rgba(0, 0, 0, 0.18)',
'text-align': 'center'});
$('#mainMenu').css({'-webkit-border-radius': '0px',
'text-align': 'center'});
$('#foodDisplay').css({'color': '#F40D0D'});
$('#killCounter').css({'color': '#F40D0D'});
$('#woodDisplay').css({'color': '#49FF00'});
$('#stoneDisplay').css({'color': '#404040'});
$('#scoreDisplay').css({'color': '#ffd700'});
$('#ageBar').css({'-webkit-border-radius': '0px',
'-moz-border-radius': '0px',
'border-radius': '0px',
'background-color': 'rgba(0, 0, 0, 0.4)'});
$('#ageBarBody').css({'-webkit-border-radius': '0px',
'-moz-border-radius': '0px',
'border-radius': '0px',
'background-color': '#FF0000'});
$('.storeTab').css({'-webkit-border-radius': '0px',
'-moz-border-radius': '0px',
'border-radius': '0px',
'background-color': 'rgba(0, 0, 0, 0.4)'});
$('#storeHolder').css({'-webkit-border-radius': '0px',
'-moz-border-radius': '0px',
'border-radius': '0px',
'background-color': 'rgba(0, 0, 0, 0.4)'});
$('#allianceHolder').css({'-webkit-border-radius': '0px',
'-moz-border-radius': '0px',
'border-radius': '0px',
'background-color': 'rgba(0, 0, 0, 0.4)'});
$('.actionBarItem').css({'-webkit-border-radius': '0px',
'border-radius': '0px',
'background-color': 'rgba(0, 0, 0, 0.4)'});
document.getElementById("followText").innerHTML = "unsub^^^"
document.getElementById("followText").style = "bottom: -0px;"
document.getElementById("linksContainer2").innerHTML = "NoobKiller69 has come to
life";
$('#menuContainer').append('kill noobs')