// ==UserScript==
// @name Masterix Cheat Console 1.7
// @run-at document-start
// @version 1.7
// @description https://discord.gg/jrQFASdVnV
// @author Masterix
// @match https://www.kogama.com/page/webgl-frame/*
// @match https://kogama.com.br/page/webgl-frame/*
// @match https://friends.kogama.com/page/webgl-frame/*
// @grant none
// @namespace https://greasyfork.org/users/810089
// ==/UserScript==
/*sniffers*/
WS_Original = WebSocket;
WebSocket = function(url, type){
let ws = new WS_Original(url, type);
kcc.ws = ws;
ws._send = ws.send;
ws.send = kcc.injectClient;
kcc.logClient('Attention!!! Be careful when using codes from others! Attackers can gain access to your account.');
function waitServer(e){
kcc.injectServer(e);
if(!this.editServer){
this.removeEventListener('message', waitServer);
this._msg = this.onmessage;
this.onmessage = kcc.injectServer;
}
kcc.consoleServer('Console by Masterix.');
}
ws.addEventListener('message', waitServer);
return ws;
};
/*Utils*/
Uint8Array.prototype.equals=
Array.prototype.equals=function(array){
if(!(array&&this.length==array.length))return false;
for(var i=0,l=this.length;i<l;i++){
if(this[i] instanceof Array&&array[i] instanceof Array){
if(!this[i].equals(array[i]))return false;
}else if(this[i]!=array[i]){return false;}
}
return true;
}
Object.defineProperty(window.Uint8Array.prototype,"equals",{enumerable:false});
Object.defineProperty(window.Array.prototype,"equals",{enumerable:false});
decode=d=>new TextDecoder().decode(d);
encode=d=>new TextEncoder().encode(d);
top.toByte16=toByte16=num=>new Uint8Array(new Uint16Array([num]).buffer).reverse();
top.toNum16Sign=toNum16Sign=nums=>new Int16Array(new Uint8Array(nums).reverse().buffer)[0];
top.toNum16=toNum16=nums=>new Uint16Array(new Uint8Array(nums).reverse().buffer)[0];
top.unsign16=unsign16=num=>new Uint16Array([num])[0];
top.toByte32=toByte32=num=>new Uint8Array(num?new Uint32Array([num]).buffer:[]).reverse();
top.toNum32=toNum32=nums=>new Uint32Array(nums?new Uint8Array(nums).reverse().buffer:0)[0];
getJSON=str=>{
let pos=0,left=0,i=0,arr=[];
while(i++<str.length){
if(str[i]=='{'&&str[i+1]=='"'){
if(!left)pos=i;
left++;
}
if(str[i]=='}'){
if(left>0){
left--;
if(!left)arr.push(str.slice(pos,i+1));
}
}
}
return arr.map(a=>JSON.parse(a));
}
top.format=format=str=>{//ff0011->[255,0,17]
let rez=[];
let n=0;
for(let i=0;i<str.length;i++){
rez.push(str[i]);
if((i+2-n)%3==0){n+=2;rez.push(" ");}
}
rez.pop();
return new Uint8Array(rez.join('').split(' ').map(n=>parseInt(n,16)))
};
/*Cheat Console*/
{
window.html=top.html=id=>top.document.getElementById(id);
window.make=top.make=tag=>top.document.createElement(tag);
window.kc=top.kc={darkgreen:'#04B404',darkred:'#B40404',darkblue:'#0431B4',darkyellow:'#AEB404',purple:'#7410EE',white:'#FFFFFF',black:'#000000',orange:'#DF7401',red:'#FF0000',turquoise:'#01A9DB',catecolor:'#FF0000',
//__________________________________________________________________________________GUNS__________________________________________________________________________________//
cubegun:()=>{
kcc.ws._send(new Uint8Array([
243,2,25,0,2,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,20
]));
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,20,254,105,0,0,0,0
]).buffer});
},
impulsegun:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,2,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,3,115,0,4,116,121,112,101,105,0,0,0,2,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,9,97,110,105,109,97,116,105,111,110,68,0,0,0,2,115,0,5,115,116,97,116,101,115,0,4,73,100,108,101,115,0,9,116,105,109,101,83,116,97,109,112,105,70,131,252,232,254,105,0,0,0,0
]).buffer});
},
mousegun:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,3,115,0,4,116,121,112,101,105,0,0,0,60,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,254,105,0,0,0,0
]).buffer});
},
bazooka:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,3,115,0,4,116,121,112,101,105,0,0,0,4,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,254,105,0,0,0,0
]).buffer});
},
bazooka2:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,3,115,0,4,116,121,112,101,105,0,0,0,4,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,5,254,105,0,0,0,0
]).buffer});
},
healgun:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,3,115,0,4,116,121,112,101,105,0,0,0,70,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,254,105,0,0,0,0
]).buffer});
},
shotgun:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,3,115,0,4,116,121,112,101,105,0,0,0,9,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,254,105,0,0,0,0
]).buffer});
},
centralgun:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,3,115,0,4,116,121,112,101,105,0,0,0,1,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,254,105,0,0,0,0
]).buffer});
},
railgun:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,3,115,0,4,116,121,112,101,105,0,0,0,6,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,254,105,0,0,0,0
]).buffer});
},
sword:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,3,115,0,4,116,121,112,101,105,0,0,0,8,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,254,105,0,0,0,0
]).buffer});
},
growthgun:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,2,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,3,115,0,4,116,121,112,101,105,0,0,0,62,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,9,97,110,105,109,97,116,105,111,110,68,0,0,0,2,115,0,5,115,116,97,116,101,115,0,4,73,100,108,101,115,0,9,116,105,109,101,83,116,97,109,112,105,80,15,108,52,254,105,0,0,0,0
]).buffer});
},
pistol:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,3,115,0,4,116,121,112,101,105,0,0,0,12,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,254,105,0,0,0,0
]).buffer});
},
pistol2x:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,3,115,0,4,116,121,112,101,105,0,0,0,13,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,254,105,0,0,0,0
]).buffer});
},
flamethrower:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,3,115,0,4,116,121,112,101,105,0,0,0,10,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,254,105,0,0,0,0
]).buffer});
},
shuriken:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,3,115,0,4,116,121,112,101,105,0,0,0,45,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,254,105,0,0,0,0
]).buffer});
},
shuriken5x:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,3,115,0,4,116,121,112,101,105,0,0,0,46,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,254,105,0,0,0,0
]).buffer});
},
slapgun:()=>{kcc.ws._msg({data:new Uint8Array([243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,3,115,0,4,116,121,112,101,105,0,0,0,65,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,254,105,0,0,0,0]).buffer});
},
autofire:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,8,105,115,70,105,114,105,110,103,111,1,254,105,0,0,0,0
]).buffer});
},
//__________________________________________________________________________________CUBE COLORS__________________________________________________________________________________//
ice:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,25,254,105,0,0,0,0
]).buffer});
},
darkice:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,43,254,105,0,0,0,0
]).buffer});
},
poison:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,28,254,105,0,0,0,0
]).buffer});
},
wood:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,31,254,105,0,0,0,0
]).buffer});
},
darkwood:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,53,254,105,0,0,0,0
]).buffer});
},
lava:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,26,254,105,0,0,0,0
]).buffer});
},
bounce:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,27,254,105,0,0,0,0
]).buffer});
},
superbounce:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,54,254,105,0,0,0,0
]).buffer});
},
stripedcement:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,60,254,105,0,0,0,0
]).buffer});
},
machinery:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,61,254,105,0,0,0,0
]).buffer});
},
embossedmetal:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,62,254,105,0,0,0,0
]).buffer});
},
scrolling:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,63,254,105,0,0,0,0
]).buffer});
},
blockred:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,2,254,105,0,0,0,0
]).buffer});
},
blockblue:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,7,254,105,0,0,0,0
]).buffer});
},
blockgreen:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,12,254,105,0,0,0,0
]).buffer});
},
blockyellow:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,16,254,105,0,0,0,0
]).buffer});
},
blockblack:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,23,254,105,0,0,0,0
]).buffer});
},
blockgrey:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,22,254,105,0,0,0,0
]).buffer});
},
pink:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,44,254,105,0,0,0,0
]).buffer});
},
camouflage:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,34,254,105,0,0,0,0
]).buffer});
},
zigzag:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,39,254,105,0,0,0,0
]).buffer});
},
cloud:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,55,254,105,0,0,0,0
]).buffer});
},
parkour:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,29,254,105,0,0,0,0
]).buffer});
},
stonebricks:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,48,254,105,0,0,0,0
]).buffer});
},
stonebricks2:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,32,254,105,0,0,0,0
]).buffer});
},
redbrick:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,37,254,105,0,0,0,0
]).buffer});
},
yellowbrick:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,38,254,105,0,0,0,0
]).buffer});
},
slime:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,51,254,105,0,0,0,0
]).buffer});
},
mushroom:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,42,254,105,0,0,0,0
]).buffer});
},
greenmushroom:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,49,254,105,0,0,0,0
]).buffer});
},
waste:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,50,254,105,0,0,0,0
]).buffer});
},
pavment:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,35,254,105,0,0,0,0
]).buffer});
},
oldboulder:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,36,254,105,0,0,0,0
]).buffer});
},
destroy1:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,56,254,105,0,0,0,0
]).buffer});
},
destroy2:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,57,254,105,0,0,0,0
]).buffer});
},
destroy3:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,58,254,105,0,0,0,0
]).buffer});
},
destroy4:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,59,254,105,0,0,0,0
]).buffer});
},
wrappingpaper:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,52,254,105,0,0,0,0
]).buffer});
},
stonebricks:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,48,254,105,0,0,0,0
]).buffer});
},
stonebricks2:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,32,254,105,0,0,0,0
]).buffer});
},
cement:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,33,254,105,0,0,0,0
]).buffer});
},
metal:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,4,115,0,4,116,121,112,101,105,0,0,0,11,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,8,105,116,101,109,68,97,116,97,68,0,0,0,1,115,0,8,109,97,116,101,114,105,97,108,98,41,254,105,0,0,0,0
]).buffer});
},
//__________________________________________________________________________________PLAYERS__________________________________________________________________________________//
levelup:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,94,0,2,245,115,0,31,123,34,108,101,118,101,108,71,111,108,100,82,101,119,97,114,100,115,34,58,123,34,49,51,34,58,49,48,56,125,125,254,105,0,0,0,1
]).buffer});
},
goldhack:()=>{kcc.ws._msg({data:new Uint8Array([243,4,95,0,2,245,115,0,29,123,34,108,101,118,101,108,34,58,49,51,44,34,103,111,108,100,82,101,119,97,114,100,34,58,57,57,57,125,254,105,0,0,0,1]).buffer});},
setLevel1:(level=1, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
},
setLevel2:(level=2, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
},
setLevel3:(level=3, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
},
setLevel4:(level=4, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
},
setLevel5:(level=5, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
},
setLevel6:(level=6, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
},
setLevel7:(level=7, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
},
setLevel8:(level=8, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
},
setLevel9:(level=9, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
},
setLevel10:(level=10, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
},
setLevel11:(level=11, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
},
setLevel12:(level=12, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
},
setLevel13:(level=13, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
},
setLevel14:(level=14, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
},
setLevel15:(level=15, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
},
setLevel16:(level=16, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
},
setLevel17:(level=17, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
},
setLevel18:(level=18, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
},
setLevel19:(level=19, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
},
setLevel20:(level=20, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
},
setLevel21:(level=21, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
},
setLevel22:(level=22, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
},
setLevel23:(level=23, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
},
setLevel24:(level=24, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
}, setLevel25:(level=25, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
}, setLevel26:(level=26, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
}, setLevel27:(level=27, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
}, setLevel28:(level=28, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
}, setLevel29:(level=29, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
}, setLevel30:(level=30, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
}, setLevel31:(level=31, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
}, setLevel32:(level=32, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
}, setLevel33:(level=33, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
}, setLevel34:(level=34, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
}, setLevel35:(level=35, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
}, setLevel36:(level=36, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
}, setLevel37:(level=37, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
}, setLevel38:(level=38, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
}, setLevel39:(level=39, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
}, setLevel40:(level=40, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
}, setLevel41:(level=41, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
}, setLevel42:(level=42, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
}, setLevel43:(level=43, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
}, setLevel44:(level=44, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
}, setLevel45:(level=45, actorNr)=>{
kcc.ws.send(new Uint8Array([243,2,56,0,1,169,105,...toByte32(level)]))
kcc.ws._msg({data:new Uint8Array([243,4,55,0,2,169,105,...toByte32(level),254,105,...toByte32(actorNr)]).buffer})
},
shield:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,9,109,111,100,105,102,105,101,114,115,68,0,0,0,2,115,0,26,95,84,105,109,101,65,116,116,97,99,107,70,108,97,103,68,101,98,114,105,101,102,83,108,111,119,98,0,115,0,16,95,83,112,97,119,110,80,114,111,116,101,99,116,105,111,110,98,0,254,105,0,0,0,0
]).buffer});
},
ringeffect:()=>{
var effectID = 1;
for(var boss = 0; boss < 20; effectID++){
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,9,109,111,100,105,102,105,101,114,115,68,0,0,0,effectID,115,0,9,95,83,104,105,101,108,100,101,100,98,0,254,105,0,0,0,0
]).buffer});
if(effectID > 20){
break;
}
}
},
nitro:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,1,115,0,9,109,111,100,105,102,105,101,114,115,68,0,0,0,1,115,0,9,95,78,105,110,106,97,82,117,110,98,0,254,105,0,0,0,0
]).buffer});
},
freezeAni:()=>{
kcc.ws._msg({data:new Uint8Array([
243,4,29,0,3,22,105,...toByte32(kcc.self),70,68,0,0,0,2,115,0,11,99,117,114,114,101,110,116,73,116,101,109,68,0,0,0,3,115,0,4,116,121,112,101,105,0,0,0,16,115,0,9,118,97,114,105,97,110,116,73,100,105,0,0,0,0,115,0,15,117,112,100,97,116,101,73,116,101,109,83,116,97,116,101,105,0,0,0,4,115,0,9,97,110,105,109,97,116,105,111,110,68,0,0,0,2,115,0,5,115,116,97,116,101,115,0,4,73,100,108,101,115,0,9,116,105,109,101,83,116,97,109,112,105,70,131,252,232,254,105,0,0,0,0
]).buffer});
},
action:(actionId,PID=kcc.self)=>kcc.ws.send(new Uint8Array([243,2,27,0,2,22,105,...toByte32(PID),83,68,0,0,0,1,98,0,120,0,0,0,2,1,actionId])),
freeze:(PID=kcc.self)=>kcc.ws.send(new Uint8Array([243,2,27,0,2,22,105,...toByte32(PID),83,68,0,0,0,1,98,0,120,0,0,0,2,1,11])),
damadge:(PID=kcc.self)=>kcc.ws.send(new Uint8Array([243,2,27,0,2,22,105,...toByte32(PID),83,68,0,0,0,1,98,0,120,0,0,0,2,1,10])),
heal:(PID=kcc.self)=>kcc.ws.send(new Uint8Array([243,2,27,0,2,22,105,...toByte32(PID),83,68,0,0,0,1,98,0,120,0,0,0,2,1,27])),
big:(PID=kcc.self)=>kcc.ws.send(new Uint8Array([243,2,27,0,2,22,105,...toByte32(PID),83,68,0,0,0,1,98,0,120,0,0,0,2,1,17])),
freezeme:(PID=kcc.self)=>kcc.ws.send(new Uint8Array([243,2,27,0,2,22,105,...toByte32(PID),83,68,0,0,0,1,98,0,120,0,0,0,2,1,11])),
sword_kill:(PID=kcc.self)=>kcc.ws.send(new Uint8Array([243,2,27,0,2,22,105,...toByte32(PID),83,68,0,0,0,1,98,0,120,0,0,0,2,1,5])),
small:(PID=kcc.self)=>kcc.ws.send(new Uint8Array([243,2,27,0,2,22,105,...toByte32(PID),83,68,0,0,0,1,98,0,120,0,0,0,2,1,16])),
mutant_kill:(PID=kcc.self)=>kcc.ws.send(new Uint8Array([243,2,27,0,2,22,105,...toByte32(PID),83,68,0,0,0,1,98,0,120,0,0,0,2,1,6])),
rail_kill:(PID=kcc.self)=>kcc.ws.send(new Uint8Array([243,2,27,0,2,22,105,...toByte32(PID),83,68,0,0,0,1,98,0,120,0,0,0,2,1,4])),
shotgun_kill:(PID=kcc.self)=>kcc.ws.send(new Uint8Array([243,2,27,0,2,22,105,...toByte32(PID),83,68,0,0,0,1,98,0,120,0,0,0,2,1,7])),
slapgun_kill:(PID=kcc.self)=>kcc.ws.send(new Uint8Array([243,2,27,0,2,22,105,...toByte32(PID),83,68,0,0,0,1,98,0,120,0,0,0,2,1,9])),
flamethrower_kill:(PID=kcc.self)=>kcc.ws.send(new Uint8Array([243,2,27,0,2,22,105,...toByte32(PID),83,68,0,0,0,1,98,0,120,0,0,0,2,1,8])),
testkill:(PID=kcc.self)=>kcc.ws.send(new Uint8Array([243,2,27,0,2,22,105,...toByte32(PID),83,68,0,0,0,1,98,0,120,0,0,0,2,1,3])),
oculus_kill:(PID=kcc.self)=>kcc.ws.send(new Uint8Array([243,2,27,0,2,22,105,...toByte32(PID),83,68,0,0,0,1,98,0,120,0,0,0,2,1,12])),
none_kill:(PID=kcc.self)=>kcc.ws.send(new Uint8Array([243,2,27,0,2,22,105,...toByte32(PID),83,68,0,0,0,1,98,0,120,0,0,0,2,1,13])),
nofall:(PID=kcc.self)=>kcc.ws.send(new Uint8Array([243,2,27,0,2,22,105,...toByte32(PID),83,68,0,0,0,1,98,0,120,0,0,0,2,1,2])),
fast:(PID=kcc.self)=>kcc.ws.send(new Uint8Array([243,2,27,0,2,22,105,...toByte32(PID),83,68,0,0,0,1,98,0,120,0,0,0,2,1,13])),
invisible:(PID=kcc.self)=>kcc.ws.send(new Uint8Array([243,4,2,0,8,22,105,0,3,...toByte32(PID),70,68,0,0,0,1,115,0,17,115,112,97,119,110,82,111,108,101,77,111,100,101,84,121,112,101,105,0,0,0,4])),
finish:()=>kcc.ws.send(new Uint8Array([243,2,23,0,1,191,105,0,3,0,0])),
tred:()=>kcc.ws.send(new Uint8Array([243,2,29,0,1,89,105,0,0,0,1])), //change to red team
tgreen:()=>kcc.ws.send(new Uint8Array([243,2,29,0,1,89,105,0,0,0,2])), //change to green team
tyellow:()=>kcc.ws.send(new Uint8Array([243,2,29,0,1,89,105,0,0,0,3])), //change to yellow team
tblue:()=>kcc.ws.send(new Uint8Array([243,2,29,0,1,89,105,0,0,0,0])), //change to blue team
twhite:()=>kcc.ws.send(new Uint8Array([243,2,29,0,1,89,105,0,0,0,5])), //change to white team
tnull:()=>kcc.ws.send(new Uint8Array([243,2,29,0,1,89,105,0,0,0,6])), //change to null team
//__________________________________________________________________________________GAME LOG__________________________________________________________________________________//
log:(msg,clr='#FFF')=>{
if(html('console_log').lastChild&&msg==html('console_log').lastChild.textContent){
let counter=html('console_log').lastChild.children[0];
if(counter){
counter.value=1+Number(counter.value);
}else{
counter=make('input');
counter.style=`height:20px;width:20px;
text-align:center;padding:0px;
background:${kc.green};color:#fff;
border:true;border-radius:100%;cursor:default;`;
counter.value=2;
counter.disabled=true;
html('console_log').lastChild.appendChild(counter)
}
return;
}
let scroll=html('console_log').scrollTop/(html('console_log').scrollHeight-html('console_log').offsetHeight);
if(isNaN(scroll)||scroll>0.9)scroll=true;
else scroll=false;
let el=make('div');
el.style='padding:2% 1% 0px 2%;width:100%;color:'+clr+';';
el.textContent=msg;
html('console_log').appendChild(el);
if(scroll)html('console_log').scrollTop=html('console_log').scrollHeight-html('console_log').offsetHeight;
},
command:str=>{
kc.log(str,'#FFF8');
}
};
//__________________________________________________________________________________CONSOLE__________________________________________________________________________________//
//____________________________________________________Game Log____________________________________________________//
window.consoleCheat=top.consoleCheat=(name='unknown',clr='#888',func=()=>{})=>{
let el=make('input');
el.id=name;
el.value=name;
el.className='cheat_element';
el.type='button';
el.style=`color:${clr};background-color:#F2F2F2;border-radius:10px;border:true;padding:2px;`;
el.addEventListener('click',func);
html('console_box').appendChild(el);
};
//____________________________________________________Players____________________________________________________//
window.makeCheat=top.makeCheat=(name='unknown',clr='#888',func=()=>{})=>{
let el=make('input');
el.id=name;
el.value=name;
el.className='cheat_element';
el.type='button';
el.style=`color:${clr};background-color:#F2F2F2;border-radius:3px;border:true;padding:1px;`;
el.addEventListener('click',func);
html('cheat_box').appendChild(el);
};
window.levelCheat=top.levelCheat=(name='unknown',clr='#888',func=()=>{})=>{
let el=make('input');
el.id=name;
el.value=name;
el.className='cheat_element';
el.type='button';
el.style=`color:${clr};background-color:#F2F2F2;border-radius:15px;border:true;padding:1px;`;
el.addEventListener('click',func);
html('cheat_box').appendChild(el);
};
window.makeCate=top.makeCate=(name='unknown',clr='#888',func=()=>{})=>{//new
let el=make('input');
el.id=name;
el.value=name;
el.className='cheat_Cate';
el.type='button';
el.style=`color:${clr};background-color:#000;
border-top:none;
border-right:none;
border-left:none;
border-color:#ffffff;
border-size:0px;
border:none;
padding:2px 111px 2px 145px;
margin:10px 2px 2px 2px;
`;
el.addEventListener('click',func);
html('cheat_box').appendChild(el);
};
//____________________________________________________Deathgenerator____________________________________________________//
window.killCheat=top.killCheat=(name='unknown',clr='#888',func=()=>{})=>{
let el=make('input');
el.id=name;
el.value=name;
el.className='kill_element';
el.type='checkbox';
el.style=`color:${clr};background-color:#F2F2F2;border-radius:3px;border:true;padding:1px;width:50px;height:30px;`;
el.addEventListener('click',func);
html('kill_box').appendChild(el);
};
window.killCate=top.killCate=(name='unknown',clr='#888',func=()=>{})=>{//new
let el=make('input');
el.id=name;
el.value=name;
el.className='kill_Cate';
el.type='button';
el.style=`color:${clr};background-color:#000;
border-top:none;
border-right:none;
border-left:none;
border-color:#ffffff;
border-size:0px;
border:none;
padding:2px 75px 2px 110px;
margin:10px 2px 2px 2px;
`;
el.addEventListener('click',func);
html('kill_box').appendChild(el);
};
window.warningCate=top.warningCate=(name='unknown',clr='#888',func=()=>{})=>{//new
let el=make('input');
el.id=name;
el.value=name;
el.className='warning_Cate';
el.type='button';
el.style=`color:${clr};background-color:#424242;
border-top:none;
border-right:none;
border-left:none;
border:none;
border-color:#ffffff;
border-size:0px;
padding:2px 75px 2px 110px;
margin:10px 2px 2px 2px;
`;
el.addEventListener('click',func);
html('kill_box').appendChild(el);
};
//____________________________________________________Guns____________________________________________________//
window.gunCheat=top.gunCheat=(name='unknown',clr='#888',func=()=>{})=>{//new
let el=make('input');
el.id=name;
el.value=name;
el.className='cheat_element';
el.type='button';
el.style=`color:${clr};background-color:#F2F2F2;border-radius:3px;border:true;padding:1px;`;
el.addEventListener('click',func);
html('gun_box').appendChild(el);
};
window.gunCate=top.gunCate=(name='unknown',clr='#888',func=()=>{})=>{//new
let el=make('input');
el.id=name;
el.value=name;
el.className='gun_Cate';
el.type='button';
el.style=`color:${clr};background-color:#000;
border-top:none;
border-right:none;
border-left:none;
border-color:#ffffff;
border-size:0px;
border:none;
padding:2px 75px 2px 110px;
margin:10px 2px 2px 2px;
`;
el.addEventListener('click',func);
html('gun_box').appendChild(el);
};
//____________________________________________________Cube Forms____________________________________________________//
window.cubeCheat=top.cubeCheat=(name='unknown',clr='#888',func=()=>{})=>{//new
let el=make('input');
el.id=name;
el.value=name;
el.className='cheat_element';
el.type='button';
el.style=`color:${clr};background-color:#F2F2F2;border-radius:3px;border:true;padding:1px;`;
el.addEventListener('click',func);
html('cube_box').appendChild(el);
};
window.cubeCate=top.cubeCate=(name='unknown',clr='#888',func=()=>{})=>{//new
let el=make('input');
el.id=name;
el.value=name;
el.className='cube_Cate';
el.type='button';
el.style=`color:${clr};background-color:#000;
border-top:none;
border-right:none;
border-left:none;
border-color:#ffffff;
border-size:0px;
border:none;
padding:2px 75px 2px 110px;
margin:10px 2px 2px 2px;
`;
el.addEventListener('click',func);
html('cube_box').appendChild(el);
};
window.creatorCheat=top.creatorCheat=(name='unknown',clr='#888',func=()=>{})=>{//new
let el=make('input');
el.id=name;
el.value=name;
el.className='cheat_element';
el.type='checklist';
el.style=`color:${clr};background-color:#F2F2F2;border-radius:0px;border:true;padding:1px;display: block;`;
el.addEventListener('click',func);
html('cube_box').appendChild(el);
};
window.okCheat=top.okCheat=(name='unknown',clr='#888',func=()=>{})=>{//new
let el=make('input');
el.id=name;
el.value=name;
el.className='cheat_element';
el.type='button';
el.style=`color:${clr};background-color:#D8D8D8;border-radius:20px;border:true;padding:1px;display: block;`;
el.addEventListener('click',func);
html('cube_box').appendChild(el);
};
window.creatorCate=top.creatorCate=(name='unknown',clr='#888',func=()=>{})=>{//new
let el=make('input');
el.id=name;
el.value=name;
el.className='creator_Cate';
el.type='button';
el.style=`color:${clr};background-color:#000;
border-top:none;
border-right:none;
border-left:none;
border-color:#ffffff;
border-size:0px;
padding:2px 75px 2px 110px;
margin:10px 2px 2px 2px;
`;
el.addEventListener('click',func);
html('cube_box').appendChild(el);
};
//____________________________________________________Cube Colors____________________________________________________//
window.colorCheat=top.colorCheat=(name='unknown',clr='#888',func=()=>{})=>{
let el=make('input');
el.id=name;
el.value=name;
el.className='cheat_element';
el.type='button';
el.style=`color:${clr};background-color:#F2F2F2;border-radius:3px;border:true;padding:1px;`;
el.addEventListener('click',func);
html('color_box').appendChild(el);
};
//____________________________________________________About____________________________________________________//
window.aboutCheat=top.aboutCheat=(name='unknown',clr='#888',func=()=>{})=>{//new
let el=make('input');
el.id=name;
el.value=name;
el.className='cheat_element';
el.type='button';
el.style=`color:${clr};background-color:#39ak1f;border-radius:10px;border:true;padding:1px;`;
el.addEventListener('click',func);
html('about_box').appendChild(el);
};
window.addBB=top.addBB=(name='unknown',id='unknown',box='unknown_box',choosen=0)=>{
let el=make('div');
el.id=box;
el.style=`
position:absolute;
display:${choosen?'block':'none'};
width:75%;height:90%;
top:10%;
right:0px;
`;
html('console').appendChild(el);
el=make('div');
el.id='console_bar_'+id;
el.className='bar_element bar_element_'+(choosen?'on':'off');
el.textContent=name;
el.addEventListener('click',function(e){
if(this!=html('console_bar').cur){
html(box).style.display='block';
html('console').cur.style.display='none';
html('console').cur=html(box);
this.className='bar_element bar_element_on';
html('console_bar').cur.className='bar_element bar_element_off';
html('console_bar').cur=this;
}
});
html('console_bar').appendChild(el);
};
var sheet=top.document.head.appendChild(make('style')).sheet;
sheet.insertRules=rules=>rules.replace(/\}/g,'}^').split('^').map(r=>(r.indexOf('{')+1)&&sheet.insertRule(r));
sheet.insertRules(`
.scroller{overflow-y:auto;}
.scroller::-webkit-scrollbar{
width:10px;
}
.scroller::-webkit-scrollbar-thumb{
background-color:rgba(0,0,0,.4);
-webkit-box-shadow:inset 0 0 2px rgba(0,0,0,.5);
box-shadow:inset 0 0 2px rgba(0,0,0,.5);
}
.scroller::-webkit-scrollbar-track{
background-color:#585858;
border-radius:8px;
}
.scroller::-webkit-scrollbar-thumb{
background:#000000;
border-radius:8px;
}
.bar_element:hover{
opacity:0.9;
background:#40444bAA;
transition-duration: 0.3s;
}
.bar_element{
color:#FFF;
line-height: 200%;
cursor:pointer;
height:10%;
width:100%;
}
.cheat_element:hover{
color:#FFF !important;
}
.bar_element_off{
opacity:0.5;
background:#0000;
}
.bar_element_on{
opacity:1;
background:#000000;
}
`);
let el=make('div');
top.document.body.appendChild(el);
el.id='console';
el.style=`
position:fixed;
display:none;
z-index:9999;
background-color:#424242;
text-align:center;
border-radius:5px;
border:3px #000000 solid;
`;
top.addEventListener('resize',function(){
html('console').style.width=top.outerWidth*0.35+'px';
html('console').style.height=top.outerHeight*0.40+'px';
});
top.dispatchEvent(new Event('resize'));
top.document.addEventListener('mouseup',e=>{
if(html('console').movement){
html('console').movement=false;
e.preventDefault();
e.stopPropagation();
}
})
top.document.addEventListener('mousemove',e=>{
if(html('console').movement){
html('console').style.left=(html('console').startPos.x+e.x-html('console').startPos.mx)+'px';
html('console').style.top=(html('console').startPos.y+e.y-html('console').startPos.my)+'px';
if(html('console').offsetTop<0)html('console').style.top='0px';
e.preventDefault();
e.stopPropagation();
}
});
top.document.addEventListener('contextmenu', e=>{
if(e.target==top.document.querySelector('#profile-extended-toggle>a>i')){
html('console').style.display='block';
e.preventDefault();
}
});
el=make('div');
el.id='console_head';
el.innerHTML='Masterix Cheat Console 1.7';
el.style=`
width:100%;height:6%;
background-color:#000000;
cursor:default;
border-top-left-radius:3px;
border-top-right-radius:3px;
`;
html('console').appendChild(el);
html('console_head').addEventListener('mousedown',e=>{
html('console').movement=true;
html('console').startPos={x:html('console').offsetLeft,y:html('console').offsetTop,mx:e.x,my:e.y};
e.preventDefault();
e.stopPropagation();
});
el=make('input');
el.id='console_close';
el.type='button';
el.value='X';
el.style=`
position:absolute;
height:6%;width:5%;
right:0px;
background-color:${kc.red};
color:#FFF;line-height:0.5;
border:none;
border-top-right-radius:3px;
`;
html('console_head').appendChild(el);
html('console_close').addEventListener('mousedown',e=>{
if(e.which==1){
pos={x:html('console').offsetLeft,y:html('console').offsetTop};
html('console').style.display='none';
html('console').style.left=pos.x+'px';
html('console').style.top=pos.y+'px';
}
e.preventDefault();
e.stopPropagation();
});
el=make('div');
el.id='console_bar';
el.style=`
position:absolute;
top:6%;left:0px;
width:25%;height:90%;
background-color:#2f31zt;
`;
html('console').appendChild(el);
addBB('Game Log','console','console_box',1);
html('console').appendChild(el);
el.placeholder='(not available)';
consoleCheat('commands',kc.black,()=>{
var comando=prompt('Write "help" to get the command list ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ Enter a command:')//new
if(comando == 'help'){
kc.log('commands: print, masterix, ids, 999 gold, big, small, shield, ring, boost, cubegun, bazooka, impulsegun','#6ea5ff')}
if(comando == 'print'){
window.print();
}
if(comando == 'masterix'){
window.open("https://www.kogama.com/profile/666876227/")();
}
if(comando == 'ids'){
kc.log(`ID List:${JSON.stringify(kcc.names)}`,'#DF01D7');
}
if(comando == '999 gold'){
kc.goldhack();
}
if(comando == 'big'){
kc.big();
}
if(comando == 'small'){
kc.small();
}
if(comando == 'shield'){
kc.shield();
}
if(comando == 'ring'){
kc.ringeffect();
}
if(comando == 'boost'){
kc.nitro();
}
if(comando == 'cubegun'){
kc.cubegun();
}
if(comando == 'bazooka'){
kc.bazooka();
}
if(comando == 'impulsegun'){
kc.impulsegun();
}
});
el=make('input');
el.id='console_input';
html('console_box').appendChild(el);
html('console_input').index=-1;
html('console_input').old=[];
html('console_input').addEventListener('keydown',function(e){
switch(e.keyCode){
case 13:
if(this.value){
kc.command(this.value);
if(this.old[this.old.length-1]!=this.value)this.old.push(this.value);
if(this.old>30)this.old.splice(0,1);
this.was=undefined;
this.index=this.old.length;
this.value='';
}
break;
case 38://up
this.index-=2;
case 40://down
this.index++;
if(this.index>this.old.length-1)this.index=this.old.length;
if(this.index<0)this.index=0;
if(this.index>this.old.length-1){
if(this.was!==undefined)this.value=this.was;
this.was=undefined;
}else{
if(this.was===undefined)this.was=this.value;
this.value=this.old[this.index];
}
break;
}
});
el=make('div');
el.id='console_log';
el.className='scroller';
el.style=`
position:absolute;
text-align:left;
width:100%;height:85%;
word-break:break-all;
`;
html('console_box').appendChild(el);
html('console').cur=html('console_box');
html('console_bar').cur=html('console_bar_console');
addBB('Players','list','cheat_box');
html('cheat_box').className='scroller';
let actornr = 0;
let firstJoinData = true;
makeCate('Other Players',kc.white);
makeCheat('win',kc.orange,()=>kc.finish());
makeCheat('autowin',kc.orange,()=>{//new
if(kc.idfinish){clearInterval(kc.idfinish);kc.idfinish=0;}
else kc.idfinish=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.finish(kcc.names[n])),5e2);//new
});
makeCheat('mutantkill',kc.darkred,()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.mutant_kill(kcc.names[n])));
makeCheat('railkill',kc.darkred,()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.rail_kill(kcc.names[n])));
makeCheat('swordkill',kc.darkred,()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.sword_kill(kcc.names[n])));
makeCheat('slapgunkill',kc.darkred,()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.slapgun_kill(kcc.names[n])));// new
makeCheat('shotgunkill',kc.darkred,()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.shotgun_kill(kcc.names[n])));// new
makeCheat('automutantkill',kc.darkred,()=>{//new
if(kc.idmutant_kill){clearInterval(kc.idmutant_kill);kc.idmutant_kill=0;}
else kc.idmutant_kill=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.mutant_kill(kcc.names[n])),5e2);
});
makeCheat('autoflamethrowerkill',kc.darkred,()=>{//new
if(kc.idflamethrower_kill){clearInterval(kc.idflamethrower_kill);kc.idflamethrower_kill=0;}
else kc.idflamethrower_kill=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.flamethrower_kill(kcc.names[n])),5e2);
});
makeCheat('autofreeze',kc.darkred,()=>{
if(kc.idFreeze){clearInterval(kc.idFreeze);kc.idFreeze=0;}
else kc.idFreeze=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.freeze(kcc.names[n])),5e2);
});
makeCheat('autoheal',kc.darkgreen,()=>{
if(kc.idHeal){clearInterval(kc.idHeal);kc.idHeal=0;}
else kc.idHeal=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.heal(kcc.names[n])),5e2);
});
makeCheat('autobig',kc.darkgreen,()=>{
if(kc.idBig){clearInterval(kc.idBig);kc.idBig=0;}
else kc.idBig=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.big(kcc.names[n])),5e2);
});
makeCheat('autosmall',kc.darkgreen,()=>{
if(kc.idSmall){clearInterval(kc.idSmall);kc.idSmall=0;}
else kc.idSmall=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.small(kcc.names[n])),5e2);
});
makeCate('You Player',kc.white);
makeCheat(' i ',kc.black,()=>{
window.alert('Press Flyspeed 1 + 2 for working!')
});
makeCheat('big',kc.darkgreen,()=>kc.big());
makeCheat('small',kc.darkgreen,()=>kc.small());
makeCheat('heal',kc.darkgreen,()=>kc.heal())
makeCheat('freeze',kc.darkgreen,()=>kc.freeze());//new
makeCheat('flyspeed(1)',kc.black,()=>kc.big());
makeCheat('flyspeed(2)',kc.black,()=>kc.ringeffect());
makeCheat('shield',kc.purple,()=>kc.shield());//new
makeCheat("ringeffect",kc.purple,()=>kc.ringeffect());//new
makeCheat('boost',kc.purple,()=>kc.nitro());//new
makeCheat('nofall',kc.darkyellow,()=>{
if(kc.idNofall){clearInterval(kc.idNofall);kc.idNofall=0;}
else kc.idNofall=setInterval(()=>Object.keys(kcc.names).map(n=>kc.nofall(kcc.self[n])),1e2);
});
makeCheat('freezeAnimation',kc.darkred,()=>{
if(kc.idfreezeAni){clearInterval(kc.idfreezeAni);kc.idfreezeAni=0;}
else kc.idfreezeAni=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.freezeAni(kcc.names[n])),5e2);
});
makeCheat('Immortality',kc.orange,()=>{//improved
if(kc.idHeal){clearInterval(kc.idHeal);kc.idHeal=0;}
else kc.idHeal=setInterval(()=>Object.keys(kcc.names).map(n=>kc.heal(kcc.self[n])),2e2);
if(kc.idpause){clearInterval(kc.idpause);kc.idpause=0;}
else kc.idpause=setInterval(()=>Object.keys(kcc.names).map(n=>kc.fast(kcc.self[n])),2e2);
});
makeCheat('you',kc.black,()=>window.open("https://www.kogama.com/profile/me/")());//new
makeCate('Teams',kc.white);
makeCheat('team blue',kc.darkblue,()=>kc.tblue());
makeCheat('team red',kc.darkred,()=>kc.tred());
makeCheat('team green',kc.darkgreen,()=>kc.tgreen());
makeCheat('team yellow',kc.darkyellow,()=>kc.tyellow());
makeCheat('team white',kc.black,()=>kc.twhite());
makeCheat('team none',kc.blue,()=>kc.tnull());//new
makeCheat('TeamAnimation',kc.purple,()=>{//new
if(kc.idtred){clearInterval(kc.idtred);kc.idtred=0;}
else kc.idtred=setInterval(()=>Object.keys(kcc.names).map(n=>kc.tred(kcc.self[n])),3.01e2);
if(kc.idtblue){clearInterval(kc.idtblue);kc.idtblue=0;}
else kc.idtblue=setInterval(()=>Object.keys(kcc.names).map(n=>kc.tblue(kcc.self[n])),3.02e2);
if(kc.idtgreen){clearInterval(kc.idtgreen);kc.idtgreen=0;}
else kc.idtgreen=setInterval(()=>Object.keys(kcc.names).map(n=>kc.tgreen(kcc.self[n])),3.03e2);
if(kc.idtyellow){clearInterval(kc.idtyellow);kc.idtyellow=0;}
else kc.idtyellow=setInterval(()=>Object.keys(kcc.names).map(n=>kc.tyellow(kcc.self[n])),3.04e2);
});
makeCate('Levels',kc.white);
makeCheat(' i ',kc.black,()=>{
window.alert('Levels only visible to others.')
});
makeCheat('LevelUp',kc.darkblue,()=>kc.levelup());//new
makeCheat('noLevel',kc.black,()=>{
if(kc.idsetLevel1){clearInterval(kc.idsetLevel1);kc.idsetLevel1=0;}
else kc.idsetLevel=setInterval(()=>Object.keys(kcc.names).map(n=>kc.setLevel1(kcc.names[n])),5e2);
if(kc.idsetLevel2){clearInterval(kc.idsetLevel2);kc.idsetLevel2=0;}
else kc.idsetLevel2=setInterval(()=>Object.keys(kcc.names).map(n=>kc.setLevel2(kcc.names[n])),5e2);
});
makeCheat('Level 1',kc.darkblue,()=>kc.setLevel1());//new
makeCheat('Level 6',kc.purple,()=>kc.setLevel6());//new
makeCheat('Level 11',kc.darkgreen,()=>kc.setLevel11());//new
makeCheat('Level 16',kc.black,()=>kc.setLevel16());//new
makeCheat('Level 21',kc.darkyellow,()=>kc.setLevel21());//new
makeCheat('Level 26',kc.red,()=>kc.setLevel26());//new
makeCheat('Level 31',kc.black,()=>kc.setLevel31());//new
makeCheat('Level 36',kc.darkred,()=>kc.setLevel36());//new
makeCheat('Level 41',kc.darkblue,()=>kc.setLevel41());//new
makeCheat('Level 45',kc.darkblue,()=>kc.setLevel45());//new
levelCheat('Levels',kc.black,()=>{
var comando=prompt('Select Level number (1-45)')
if(comando == '1'){
kc.setLevel1();
}
if(comando == '2'){
kc.setLevel2();
}
if(comando == '3'){
kc.setLevel3();
}
if(comando == '4'){
kc.setLevel4();
}
if(comando == '5'){
kc.setLevel5();
}
if(comando == '6'){
kc.setLevel6();
}
if(comando == '7'){
kc.setLevel7();
}
if(comando == '8'){
kc.setLevel8();
}
if(comando == '9'){
kc.setLevel9();
}
if(comando == '10'){
kc.setLevel10();
}
if(comando == '11'){
kc.setLevel11();
}
if(comando == '12'){
kc.setLevel12();
}
if(comando == '13'){
kc.setLevel13();
}
if(comando == '14'){
kc.setLevel14();
}
if(comando == '15'){
kc.setLevel15();
}
if(comando == '16'){
kc.setLevel16();
}
if(comando == '17'){
kc.setLevel17();
}
if(comando == '18'){
kc.setLevel18();
}
if(comando == '19'){
kc.setLevel19();
}
if(comando == '20'){
kc.setLevel20();
}
if(comando == '21'){
kc.setLevel21();
}
if(comando == '22'){
kc.setLevel22();
}
if(comando == '23'){
kc.setLevel23();
}
if(comando == '24'){
kc.setLevel24();
}
if(comando == '25'){
kc.setLevel25();
}
if(comando == '26'){
kc.setLevel26();
}
if(comando == '27'){
kc.setLevel27();
}
if(comando == '28'){
kc.setLevel28();
}
if(comando == '29'){
kc.setLevel29();
}
if(comando == '30'){
kc.setLevel30();
}
if(comando == '31'){
kc.setLevel31();
}
if(comando == '32'){
kc.setLevel32();
}
if(comando == '33'){
kc.setLevel33();
}
if(comando == '34'){
kc.setLevel34();
}
if(comando == '35'){
kc.setLevel35();
}
if(comando == '36'){
kc.setLevel36();
}
if(comando == '37'){
kc.setLevel37();
}
if(comando == '38'){
kc.setLevel38();
}
if(comando == '39'){
kc.setLevel39();
}
if(comando == '40'){
kc.setLevel40();
}
if(comando == '41'){
kc.setLevel41();
}
if(comando == '42'){
kc.setLevel42();
}
if(comando == '43'){
kc.setLevel43();
}
if(comando == '44'){
kc.setLevel44();
}
if(comando == '45'){
kc.setLevel45();
}
if(comando == null){
alert('Please enter a level.','#ff1e00')
}
if(comando == ''){
alert('Please enter a level.','#ff1e00')
}
});
//__________________________________________________________________________________HOTKEYS__________________________________________________________________________________//
document.addEventListener('keydown',e=>{
switch(e.key){
case '*':
kc.big();
break;
case '/':
kc.small();
break;
case '1':
kc.heal();
break;
case '2':
kc.freeze();
break;
case '5':
kc.tblue();
break;
case '6':
kc.tred();
break;
case '7':
kc.tgreen();
break;
case '8':
kc.tyellow();
break;
case '9':
kc.twhite();
break;
case '0':
kc.cubegun();
break;
case 'ß':
kc.shield();
break;
case 'B':
kc.bazooka();
break;
case 'I':
kc.impulsegun();
break;
case 'L':
kc.mousegun();
break;
case 'Insert':
var spamEncoder = new TextEncoder();
var spamCode = spamEncoder.encode('<color=#000000>Chatspam by Masterix.</color>');
var spamCode2 = spamEncoder.encode('<color=#0101DF>Chatspam by Masterix.</color>');
var spamCode3 = spamEncoder.encode('<color=red>Chatspam by Masterix.</color>');
var spamCode4 = spamEncoder.encode('<color=#01DF01>Chatspam by Masterix.</color>');
var spamCode5 = spamEncoder.encode('<color=#D7DF01>Chatspam by Masterix.</color>');
var spamCode6 = spamEncoder.encode('<color=#FFFFFF>Chatspam by Masterix.</color>');
var spamCode7 = spamEncoder.encode('<color=#000000>Chatspam by Masterix.</color>');
var spamCode8 = spamEncoder.encode('<color=#0101DF>Chatspam by Masterix.</color>');
var spamCode9 = spamEncoder.encode('<color=red>Chatspam by Masterix.</color>');
var spamCode10 = spamEncoder.encode('<color=#01DF01>Chatspam by Masterix.</color>');
var spamCode11 = spamEncoder.encode('<color=#D7DF01>Chatspam by Masterix.</color>');
var spamCode12 = spamEncoder.encode('<color=#FFFFFF>Chatspam by Masterix.</color>');
var spamCode13 = spamEncoder.encode('<color=#000000>Chatspam by Masterix.</color>');
var spamCode14 = spamEncoder.encode('<color=#0101DF>Chatspam by Masterix.</color>');
var spamCode15 = spamEncoder.encode('<color=red>Chatspam by Masterix.</color>');
var spamCode16 = spamEncoder.encode('<color=#01DF01>Chatspam by Masterix.</color>');
var spamCode17 = spamEncoder.encode('<color=#D7DF01>Chatspam by Masterix.</color>');
var spamCode18 = spamEncoder.encode('<color=#FFFFFF>Chatspam by Masterix.</color>');
var spamLength = spamCode.length
var spamLength2 = spamCode2.length
var spamLength3 = spamCode3.length
var spamLength4 = spamCode4.length
var spamLength5 = spamCode5.length
var spamLength6 = spamCode6.length
var spamLength7 = spamCode7.length
var spamLength8 = spamCode8.length
var spamLength9 = spamCode9.length
var spamLength10 = spamCode10.length
var spamLength11 = spamCode11.length
var spamLength12 = spamCode12.length
var spamLength13 = spamCode7.length
var spamLength14 = spamCode8.length
var spamLength15 = spamCode9.length
var spamLength16 = spamCode10.length
var spamLength17 = spamCode11.length
var spamLength18 = spamCode12.length
var spammer = [243,2,88,0,2,87,105,0,0,0,3,88,68,0,0,0,2,98,0,105,0,0,0,1,98,5,115,0,spamLength,...spamCode];
var spammer2 = [243,2,88,0,2,87,105,0,0,0,3,88,68,0,0,0,2,98,0,105,0,0,0,1,98,5,115,0,spamLength2,...spamCode2];
var spammer3 = [243,2,88,0,2,87,105,0,0,0,3,88,68,0,0,0,2,98,0,105,0,0,0,1,98,5,115,0,spamLength3,...spamCode3];
var spammer4 = [243,2,88,0,2,87,105,0,0,0,3,88,68,0,0,0,2,98,0,105,0,0,0,1,98,5,115,0,spamLength4,...spamCode4];
var spammer5 = [243,2,88,0,2,87,105,0,0,0,3,88,68,0,0,0,2,98,0,105,0,0,0,1,98,5,115,0,spamLength5,...spamCode5];
var spammer6 = [243,2,88,0,2,87,105,0,0,0,3,88,68,0,0,0,2,98,0,105,0,0,0,1,98,5,115,0,spamLength6,...spamCode6];
var spammer7 = [243,2,88,0,2,87,105,0,0,0,3,88,68,0,0,0,2,98,0,105,0,0,0,1,98,5,115,0,spamLength7,...spamCode7];
var spammer8 = [243,2,88,0,2,87,105,0,0,0,3,88,68,0,0,0,2,98,0,105,0,0,0,1,98,5,115,0,spamLength8,...spamCode8];
var spammer9 = [243,2,88,0,2,87,105,0,0,0,3,88,68,0,0,0,2,98,0,105,0,0,0,1,98,5,115,0,spamLength9,...spamCode9];
var spammer10 = [243,2,88,0,2,87,105,0,0,0,3,88,68,0,0,0,2,98,0,105,0,0,0,1,98,5,115,0,spamLength10,...spamCode10];
var spammer11 = [243,2,88,0,2,87,105,0,0,0,3,88,68,0,0,0,2,98,0,105,0,0,0,1,98,5,115,0,spamLength11,...spamCode11];
var spammer12 = [243,2,88,0,2,87,105,0,0,0,3,88,68,0,0,0,2,98,0,105,0,0,0,1,98,5,115,0,spamLength12,...spamCode12];
var spammer13 = [243,2,88,0,2,87,105,0,0,0,3,88,68,0,0,0,2,98,0,105,0,0,0,1,98,5,115,0,spamLength7,...spamCode7];
var spammer14 = [243,2,88,0,2,87,105,0,0,0,3,88,68,0,0,0,2,98,0,105,0,0,0,1,98,5,115,0,spamLength8,...spamCode8];
var spammer15 = [243,2,88,0,2,87,105,0,0,0,3,88,68,0,0,0,2,98,0,105,0,0,0,1,98,5,115,0,spamLength9,...spamCode9];
var spammer16 = [243,2,88,0,2,87,105,0,0,0,3,88,68,0,0,0,2,98,0,105,0,0,0,1,98,5,115,0,spamLength10,...spamCode10];
var spammer17 = [243,2,88,0,2,87,105,0,0,0,3,88,68,0,0,0,2,98,0,105,0,0,0,1,98,5,115,0,spamLength11,...spamCode11];
var spammer18 = [243,2,88,0,2,87,105,0,0,0,3,88,68,0,0,0,2,98,0,105,0,0,0,1,98,5,115,0,spamLength12,...spamCode12];
kcc.ws.send(new Uint8Array(spammer))
kcc.ws.send(new Uint8Array(spammer2))
kcc.ws.send(new Uint8Array(spammer3))
kcc.ws.send(new Uint8Array(spammer4))
kcc.ws.send(new Uint8Array(spammer5))
kcc.ws.send(new Uint8Array(spammer6))
kcc.ws.send(new Uint8Array(spammer7))
kcc.ws.send(new Uint8Array(spammer8))
kcc.ws.send(new Uint8Array(spammer9))
kcc.ws.send(new Uint8Array(spammer10))
kcc.ws.send(new Uint8Array(spammer11))
kcc.ws.send(new Uint8Array(spammer12))
kcc.ws.send(new Uint8Array(spammer13))
kcc.ws.send(new Uint8Array(spammer14))
kcc.ws.send(new Uint8Array(spammer15))
kcc.ws.send(new Uint8Array(spammer16))
kcc.ws.send(new Uint8Array(spammer17))
kcc.ws.send(new Uint8Array(spammer18))
break;
case 'Delete':
var spamEncoder = new TextEncoder();
var spamCode = spamEncoder.encode('<size=9999> < </size>');
var spamCode2 = spamEncoder.encode('<size=9999> < </size>');
var spamCode3 = spamEncoder.encode('<size=9999> < </size>');
var spamCode4 = spamEncoder.encode('<size=9999> < </size>');
var spamCode5 = spamEncoder.encode('<size=9999> < </size>');
var spamCode6 = spamEncoder.encode('<size=9999> < </size>');
var spamLength = spamCode.length
var spamLength2 = spamCode2.length
var spamLength3 = spamCode3.length
var spamLength4 = spamCode4.length
var spamLength5 = spamCode5.length
var spamLength6 = spamCode6.length
var spammer = [243,2,88,0,2,87,105,0,0,0,3,88,68,0,0,0,2,98,0,105,0,0,0,1,98,5,115,0,spamLength,...spamCode];
var spammer2 = [243,2,88,0,2,87,105,0,0,0,3,88,68,0,0,0,2,98,0,105,0,0,0,1,98,5,115,0,spamLength2,...spamCode2];
var spammer3 = [243,2,88,0,2,87,105,0,0,0,3,88,68,0,0,0,2,98,0,105,0,0,0,1,98,5,115,0,spamLength3,...spamCode3];
var spammer4 = [243,2,88,0,2,87,105,0,0,0,3,88,68,0,0,0,2,98,0,105,0,0,0,1,98,5,115,0,spamLength4,...spamCode4];
var spammer5 = [243,2,88,0,2,87,105,0,0,0,3,88,68,0,0,0,2,98,0,105,0,0,0,1,98,5,115,0,spamLength5,...spamCode5];
var spammer6 = [243,2,88,0,2,87,105,0,0,0,3,88,68,0,0,0,2,98,0,105,0,0,0,1,98,5,115,0,spamLength6,...spamCode6];
kcc.ws.send(new Uint8Array(spammer))
kcc.ws.send(new Uint8Array(spammer2))
kcc.ws.send(new Uint8Array(spammer3))
kcc.ws.send(new Uint8Array(spammer4))
kcc.ws.send(new Uint8Array(spammer5))
kcc.ws.send(new Uint8Array(spammer6))
break;
}
});
//------------------------------------------------------Guns
addBB('Guns','list','gun_box');
html('gun_box').className='scroller';
gunCheat(' i ',kc.black,()=>{
window.alert('Disable the gun you were using to be able to select a new one.')
});
gunCate('Spawn Weapons',kc.white);
gunCheat('cubegun',kc.darkblue,()=>kc.cubegun());
gunCheat('impulsegun',kc.black,()=>kc.impulsegun());
gunCheat('mousegun',kc.black,()=>kc.mousegun());
gunCheat('bazooka',kc.red,()=>kc.bazooka());
gunCheat('bazooka2',kc.red,()=>kc.bazooka2());//new
gunCheat('healgun',kc.black,()=>kc.healgun());
gunCheat('shotgun',kc.black,()=>kc.shotgun());
gunCheat('growthgun',kc.black,()=>kc.growthgun());
gunCheat('railgun',kc.black,()=>kc.railgun());//new
gunCheat('centralgun',kc.black,()=>kc.centralgun());//new
gunCheat('sword',kc.black,()=>kc.sword());//new
gunCheat('pistol',kc.black,()=>kc.pistol());//new
gunCheat('pistol2x',kc.black,()=>kc.pistol2x());//new
gunCheat('flamethrower',kc.black,()=>kc.flamethrower());//new
gunCheat('shuriken',kc.black,()=>kc.shuriken());//new
gunCheat('shuriken5x',kc.black,()=>kc.shuriken5x());//new
gunCheat('slapgun',kc.black,()=>kc.slapgun());//new
gunCate('Infinitie Ammo',kc.white);
gunCheat('INFcubegun',kc.purple,()=>{
if(kc.idcubegun){clearInterval(kc.idcubegun);kc.idcubegun=0;}
else kc.idcubegun=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.cubegun(kcc.names[n])),5e2);
});// new
gunCheat('INFbazooka',kc.purple,()=>{
if(kc.idbazooka){clearInterval(kc.idbazooka);kc.idbazooka=0;}
else kc.idbazooka=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.bazooka(kcc.names[n])),5e2);
});// new
gunCheat('INFshotgun',kc.purple,()=>{
if(kc.idshotgun){clearInterval(kc.idshotgun);kc.idshotgun=0;}
else kc.idshotgun=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.shotgun(kcc.names[n])),5e2);
});// new
gunCheat('INFgrowthgun',kc.purple,()=>{
if(kc.idgrowthgun){clearInterval(kc.idgrowthgun);kc.idgrowthgun=0;}
else kc.idgrowthgun=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.growthgun(kcc.names[n])),5e2);
});// new
gunCheat('INFmousegun',kc.purple,()=>{
if(kc.idmousegun){clearInterval(kc.idmousegun);kc.idmousegun=0;}
else kc.idmousegun=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.mousegun(kcc.names[n])),5e2);
});// new
gunCheat('INFcentralgun',kc.purple,()=>{
if(kc.idcentralgun){clearInterval(kc.idcentralgun);kc.idcentralgun=0;}
else kc.idcentralgun=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.centralgun(kcc.names[n])),5e2);
});// new
gunCheat('INFshuriken5x',kc.purple,()=>{
if(kc.idshuriken5x){clearInterval(kc.idshuriken5x);kc.idshuriken5x=0;}
else kc.idshuriken5x=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.shuriken5x(kcc.names[n])),5e2);
});// new
gunCate('Rapid Fire',kc.white);
gunCheat('RAPIDbazooka',kc.darkred,()=>{
if(kc.idHealy){clearInterval(kc.idHealy);kc.idHealy=0;}
else kc.idHealy=setInterval(()=>Object.keys(kcc.names).map(n=>kc.centralgun(kcc.self[n])),2e2);
if(kc.idHealh){clearInterval(kc.idHealh);kc.idHealh=0;}
else kc.idHealh=setInterval(()=>Object.keys(kcc.names).map(n=>kc.bazooka(kcc.self[n])),2e2);
});//new
gunCheat('RAPIDshotgun',kc.darkred,()=>{
if(kc.idHealy){clearInterval(kc.idHealy);kc.idHealy=0;}
else kc.idHealy=setInterval(()=>Object.keys(kcc.names).map(n=>kc.centralgun(kcc.self[n])),0e0);
if(kc.idHealh){clearInterval(kc.idHealh);kc.idHealh=0;}
else kc.idHealh=setInterval(()=>Object.keys(kcc.names).map(n=>kc.shotgun(kcc.self[n])),0e0);
});//new
gunCheat('RAPIDmousegun',kc.darkred,()=>{
if(kc.idHealy){clearInterval(kc.idHealy);kc.idHealy=0;}
else kc.idHealy=setInterval(()=>Object.keys(kcc.names).map(n=>kc.centralgun(kcc.self[n])),2e2);
if(kc.idHealh){clearInterval(kc.idHealh);kc.idHealh=0;}
else kc.idHealh=setInterval(()=>Object.keys(kcc.names).map(n=>kc.mousegun(kcc.self[n])),2e2);
});//new
gunCheat('RAPIDgrowthgun',kc.darkred,()=>{
if(kc.idHealy){clearInterval(kc.idHealy);kc.idHealy=0;}
else kc.idHealy=setInterval(()=>Object.keys(kcc.names).map(n=>kc.centralgun(kcc.self[n])),2e2);
if(kc.idHealh){clearInterval(kc.idHealh);kc.idHealh=0;}
else kc.idHealh=setInterval(()=>Object.keys(kcc.names).map(n=>kc.growthgun(kcc.self[n])),2e2);
});//new
gunCheat('RAPIDshuriken5x',kc.darkred,()=>{
if(kc.idHealy){clearInterval(kc.idHealy);kc.idHealy=0;}
else kc.idHealy=setInterval(()=>Object.keys(kcc.names).map(n=>kc.centralgun(kcc.self[n])),2e2);
if(kc.idHealh){clearInterval(kc.idHealh);kc.idHealh=0;}
else kc.idHealh=setInterval(()=>Object.keys(kcc.names).map(n=>kc.shuriken5x(kcc.self[n])),2e2);
});//new
gunCheat('AutoShot',kc.darkyellow,()=>{
if(kc.idHealqa){clearInterval(kc.idHealqa);kc.idHealqa=0;}
else kc.idHealqa=setInterval(()=>Object.keys(kcc.names).map(n=>kc.autofire(kcc.self[n])),1e1);
});
addBB('Deathgenerator','cheat_about','kill_box');
html('kill_box').className='scroller';
killCate('Activate autodamage!',kc.white);
killCheat('autodamage',kc.turquoise,()=>{
if(kc.idDamadge){clearInterval(kc.idDamadge);kc.idDamadge=0;}
else kc.idDamadge=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.damadge(kcc.names[n])),5e2);
});
killCate('<- oculuskill - nonekill ->',kc.white);
killCheat('oculuskill',kc.turquoise,()=>{//new
if(kc.idoculus_kill){clearInterval(kc.idoculus_kill);kc.idoculus_kill=0;}
else kc.idoculus_kill=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.oculus_kill(kcc.names[n])),5e2);
});
killCheat('nonekill',kc.turquoise,()=>{//new
if(kc.idnone_kill){clearInterval(kc.idnone_kill);kc.idnone_kill=0;}
else kc.idnone_kill=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.none_kill(kcc.names[n])),5e2);
});
warningCate('Doesn`t work for teams',kc.catecolor);
//------------------------------------------------------cubes
addBB('Cube Forms','list','cube_box');
html('cube_box').className='scroller';
cubeCheat(' i ',kc.black,()=>{
window.alert('Some cubeforms can lead to a short game lag!')
});
cubeCate('Cubeforms',kc.white);
cubeCheat('cubenormal',kc.darkblue,()=>kcc.cubeMode=0);
cubeCheat('normal',kc.darkblue,()=>kcc.cubeId=0);
cubeCheat('classicplane',kc.darkblue,()=>kcc.cubeMode=99);
cubeCheat('bigarea',kc.darkblue,()=>kcc.cubeMode=1);//new
cubeCheat('giant',kc.darkblue,()=>kcc.cubeMode=2);
cubeCheat('XMcube',kc.darkblue,()=>kcc.cubeMode=4);//improved
cubeCheat('XPcube',kc.darkblue,()=>kcc.cubeMode=5);//improved
cubeCheat('ZMcube',kc.darkblue,()=>kcc.cubeMode=6);//improved
cubeCheat('ZPcube',kc.darkblue,()=>kcc.cubeMode=7);//improved
cubeCheat('cubeXhouse',kc.darkblue,()=>kcc.cubeMode=22)//new
cubeCheat('cubeUfo',kc.purple,()=>kcc.cubeMode=14); // new
cubeCheat('cubeArena',kc.purple,()=>kcc.cubeMode=13);// new
cubeCheat('cubeTower',kc.darkblue,()=>kcc.cubeMode=3);//improved
cubeCheat('cubeHall',kc.darkblue,()=>kcc.cubeMode=17);//new
cubeCheat('cubeStick',kc.darkblue,()=>kcc.cubeMode=18);//new
cubeCheat('deletecubes',kc.darkblue,()=>kcc.cubeId=kcc.deletecubes);
cubeCheat('stripedcement',kc.darkred,()=>kcc.cubeId=kcc.stripedcement);//new
cubeCheat('machinery',kc.darkred,()=>kcc.cubeId=kcc.machinery);//new
cubeCheat('embossedmetal',kc.darkred,()=>kcc.cubeId=kcc.embossedmetal);//new
cubeCheat('scrolling',kc.darkred,()=>kcc.cubeId=kcc.scrolling);//new
cubeCheat('darkgreen',kc.orange,()=>kcc.cubeId=kcc.darkgreen);
cubeCheat('ceramic',kc.orange,()=>kcc.cubeId=kcc.ceramic);//new
cubeCheat('superbounce',kc.orange,()=>kcc.cubeId=kcc.superbounce);
cubeCheat('ice',kc.orange,()=>kcc.cubeId=kcc.ice);
cubeCheat('poison',kc.orange,()=>kcc.cubeId=kcc.poison);
cubeCheat('magma',kc.orange,()=>kcc.cubeId=kcc.magma);
cubeCheat('bounce',kc.orange,()=>kcc.cubeId=kcc.bounce);
cubeCheat('blackice',kc.orange,()=>kcc.cubeId=kcc.blackice);
cubeCheat('brightred',kc.orange,()=>kcc.cubeId=kcc.brightred);//new
cubeCheat('red',kc.orange,()=>kcc.cubeId=kcc.red);//new
cubeCheat('darkred',kc.orange,()=>kcc.cubeId=kcc.darkr);//new
cubeCheat('sand',kc.orange,()=>kcc.cubeId=kcc.sand);//new
cubeCheat('lightpurplefabric',kc.orange,()=>kcc.cubeId=kcc.lightpurplefabric);//new
cubeCheat('brightblue',kc.orange,()=>kcc.cubeId=kcc.brightblue);//new
cubeCheat('blue',kc.orange,()=>kcc.cubeId=kcc.blue);//new
cubeCheat('darkblue',kc.orange,()=>kcc.cubeId=kcc.darkb);//new
cubeCheat('caramel',kc.orange,()=>kcc.cubeId=kcc.caramel);//new
cubeCheat('camouflage',kc.orange,()=>kcc.cubeId=kcc.camouflage);//new
creatorCate('Form Creator [beta]',kc.white);
creatorCheat('X - Way',kc.black,()=>kcc.cubeId=kcc.xway);
creatorCheat('Y - Way',kc.black,()=>kcc.cubeId=kcc.yway);
creatorCheat('Z - Way',kc.black,()=>kcc.cubeId=kcc.zway);
creatorCheat('Radius',kc.black,()=>kcc.cubeId=kcc.radius);
okCheat('OK',kc.black,()=>kcc.cubeId=kcc.okay);
addBB('Cube Colors','list','color_box');//new list
html('color_box').className='scroller';
colorCheat('grey',kc.darkblue,()=>kc.blockgrey());
colorCheat('blue',kc.darkblue,()=>kc.blockblue());
colorCheat('red',kc.darkblue,()=>kc.blockred());
colorCheat('green',kc.darkblue,()=>kc.blockgreen());
colorCheat('yellow',kc.darkblue,()=>kc.blockyellow());
colorCheat('metal',kc.darkblue,()=>kc.metal());
colorCheat('cement',kc.darkblue,()=>kc.cement());
colorCheat('pavment',kc.darkblue,()=>kc.pavment());
colorCheat('oldboulder',kc.darkblue,()=>kc.oldboulder());
colorCheat('wrappingpaper',kc.darkblue,()=>kc.wrappingpaper());
colorCheat('stonebricks1',kc.darkblue,()=>kc.stonebricks());
colorCheat('stonebricks2',kc.darkblue,()=>kc.stonebricks2());
colorCheat('waste',kc.darkblue,()=>kc.waste());
colorCheat('pink',kc.darkblue,()=>kc.pink());
colorCheat('zigzag',kc.darkblue,()=>kc.zigzag());
colorCheat('slime',kc.darkblue,()=>kc.slime());
colorCheat('mushroom',kc.darkblue,()=>kc.mushroom());
colorCheat('greenmushroom',kc.darkblue,()=>kc.greenmushroom());
colorCheat('parkour',kc.darkblue,()=>kc.parkour());
colorCheat('cloud',kc.darkblue,()=>kc.cloud());
colorCheat('camouflage',kc.darkblue,()=>kc.camouflage());
colorCheat('bounce',kc.darkblue,()=>kc.bounce());
colorCheat('superbounce',kc.darkblue,()=>kc.superbounce());
colorCheat('lava',kc.darkblue,()=>kc.lava());
colorCheat('wood',kc.darkblue,()=>kc.wood());
colorCheat('darkwood',kc.darkblue,()=>kc.darkwood());
colorCheat('darkice',kc.darkblue,()=>kc.darkice());
colorCheat('poison',kc.darkblue,()=>kc.poison());
colorCheat('destroy1',kc.darkblue,()=>kc.destroy1());
colorCheat('destroy2',kc.darkblue,()=>kc.destroy2());
colorCheat('destroy3',kc.darkblue,()=>kc.destroy3());
colorCheat('destroy4',kc.darkblue,()=>kc.destroy4());
colorCheat('stripedcement',kc.darkred,()=>kc.stripedcement());
colorCheat('machinery',kc.darkred,()=>kc.machinery());
colorCheat('embossedmetal',kc.darkred,()=>kc.embossedmetal());
colorCheat('scrolling',kc.darkred,()=>kc.scrolling());
colorCheat('Rainbow',kc.darkgreen,()=>{
if(kc.idblockyellow){clearInterval(kc.idblockyellow);kc.idblockyellow=0;}
else kc.idblockyellow=setInterval(()=>Object.keys(kcc.names).map(n=>kc.blockyellow(kcc.names[n])),0e0);
if(kc.idblockblue){clearInterval(kc.idblockblue);kc.idblockblue=0;}
else kc.idblockblue=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.blockblue(kcc.names[n])),0e0);
if(kc.idblockred){clearInterval(kc.idblockred);kc.idblockred=0;}
else kc.idblockred=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.blockred(kcc.names[n])),0e0);
if(kc.idblockgreen){clearInterval(kc.idblockgreen);kc.idblockgreen=0;}
else kc.idblockgreen=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.blockgreen(kcc.names[n])),0e0);
if(kc.idcamouflage){clearInterval(kc.idcamouflage);kc.idcamouflage=0;}
else kc.idcamouflage=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.camouflage(kcc.names[n])),0e0);
if(kc.idmachinery){clearInterval(kc.idmachinery);kc.idmachinery=0;}
else kc.idmachinery=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.machinery(kcc.names[n])),0e0);
if(kc.idembossedmetal){clearInterval(kc.idembossedmetal);kc.idembossedmetal=0;}
else kc.idembossedmetal=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.embossedmetal(kcc.names[n])),0e0);
if(kc.idstripedcement){clearInterval(kc.idstripedcement);kc.idstripedcement=0;}
else kc.idstripedcement=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.stripedcement(kcc.names[n])),0e0);
});//new
colorCheat('INFpoisongun',kc.purple,()=>{
if(kc.idcubegun){clearInterval(kc.idcubegun);kc.idcubegun=0;}
else kc.idcubegun=setInterval(()=>Object.keys(kcc.names).map(n=>kcc.self!=kcc.names[n]&&kc.cubegun(kcc.names[n])),5e2);
if(kc.idHealh){clearInterval(kc.idHealh);kc.idHealh=0;}
else kc.idHealh=setInterval(()=>Object.keys(kcc.names).map(n=>kc.poison(kcc.self[n])),2e2);
});//new
addBB('Hotkeys','cheat_hotkeys','hotkeys_box');
html('hotkeys_box').className='scroller';
el=make('div');
el.id='hotkeys_box_info';
el.style.whiteSpace='pre';
el.textContent=`Hotkeys for weapons and more.
* = big
/ = small
1 = heal
2 = freeze
5 = team blue
6 = team red
7 = team green
8 = team yellow
9 = team white
0 = cube gun
ß = shield
I = impulsegun
L = mousegun
B = bazooka
Insertkey = Chatspam
Deletekey = Clear Chat`;
html('hotkeys_box').appendChild(el);
}
addBB('⠀','cheat_about','⠀_box');
html('⠀_box').className='scroller';
addBB('⠀','cheat_about','⠀_box');
html('⠀_box').className='scroller';
addBB('About','cheat_about','about_box');
html('about_box').className='scroller';
el=make('div');
el.id='about_box_info';
el.style.whiteSpace='pre';
el.textContent=`
This cheat console was developed
by Masterix.
New weapons, cube colours and player cheats.
It doesn't get any better than this.
Enjoy it!
Special thanks to Devork and Lawlao
for your support and thanks to the others!
---------------------------Change Log---------------------------
- reworked design
- clearer presentation
- new weapons
- new hotkeys
- new kill options
and much more... [check the update list file for
the whole list.]
[About Console]
Version: 1.7
Release date: 19th Juny 2021
Owner: Masterix
KoGaMa WWW name: .Masterix.
Console available on: WWW, Friends, BR
⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀ `;
html('about_box').appendChild(el);
aboutCheat('Profile',kc.black,()=>window.open("https://www.kogama.com/profile/666876227/")());//new
aboutCheat('Discord',kc.darkblue,()=>window.open("https://discord.gg/97K8pmePvB")());//new
aboutCheat('YouTube',kc.red,()=>window.open("https://www.youtube.com/channel/UCsgFtc1Z-rB5YiVktZzQ9Dg")());//new
kc.log('_________________________________________________')//new
kc.log('Thanks for using my Cheat Console!','#97FF00')//new
kc.log('Console developed by Masterix!')//new
/*Kogama Cheat Client*/
window.kcc=top.kcc={
ws:{},
self:0,
pos:[0,0,0],
names:{},
parts:[],
cubeSize:15,
cubeD:1812,
//----------------------cubecolors
superbounce:1846,
poison:1820,
machinery:1853,
stripedcement:1852,
embossedmetal:1854,
scrolling:1855,
mushroom:1834,// new
blackice:1835,// new
camouflage:1826,// new
ice:1817,// new
khaki:1816,// new
blackconcrete:1815,// new
darkconcrete:1814,// new
concrete:1813,// new
sandstone:1811,// new
butter:1810,// new
orange:1809,// new
brightorange:1808,// new
yellow:1807,// new
darkpurplefabric:1806,// new
ceramic:1805,// new
darkgreen:1804,// new
green:1803,// new
brightgreen:1802,// new
purplefabric:1801,// new
caramel:1800,// new
darkb:1799,// new
blue:1798,// new
brightblue:1797,// new
lightpurplefabric:1796,// new
sand:1795,// new
darkr:1794,// new
red:1793,// new
brightred:1792,// new
deletecubes:1700,
blackice:1835,
ice:1817,
magma:1818,
bounce:1819,
//----------------------cubesize
cubeId:0,
none:0,
cubeXX:13,
cubeXZ:100,
yup4x:120,
towerSize:8,
cubeMode:0,
cubeWay:100,
house:18,
cubesphere:5,//For cubeArena and cubeUfo's Height
cuberay:60,//For cubeArena and cubeUfos's Radius
cubePlane:20,
hallSize:40,
cubeRaio:44,
cubeServer:(randomId=kcc.self,x=0,y=0,z=0,material)=>new Uint8Array([243,4,10,0,3,47,105,...toByte32(randomId),49,120,0,0,0,...(material?[9,2]:[7,0]),...toByte16(x),...toByte16(y),...toByte16(z),...(material?toByte16(material):[]),254,105,0,0,0,material?3:1]),
cube:(randomId=kcc.self,x=0,y=0,z=0,material)=>new Uint8Array([243,2,7,0,2,47,105,...toByte32(randomId),49,120,0,0,0,...(material?[9,2]:[7,0]),...toByte16(x),...toByte16(y),...toByte16(z),...(material?toByte16(material):[])]),
logClient:(msg,...items)=>{
console.log.apply(console,['%c'+msg,"background-color:#FF0000;",...items]);
},
logServer:(msg,...items)=>{
console.log.apply(console,['%c'+msg,"background-color:#BE81F7;",...items]);
},
consoleServer:(msg,...items)=>{
console.log.apply(console,['%c'+msg,"background-color:#58FA58;",...items]);
},
injectClient:function(data){
data = new Uint8Array(data);
data = kcc.separator(data);
if(data)this._send(data);
},
injectServer:function(e){
let data = new Uint8Array(e.data);
if(this != kcc.ws){
kcc.logServer(`Have fun with my Console! #MCC`);
return;
}
data = kcc.separator(data);
if(data)this._msg({data:data.buffer});
}
};
/*requests separating*/
kcc.no_sense=data=>{
if(data.length<7)return true;//not action
return false;
/*
if(data.equals([243,4,81,0,0])){//each tick
//kcc.logServer('short_ping');
return true;
}else if(data.equals([243,2,58,0,0])){//1 time
//kcc.logClient('short_ping(1)');
return true;
}else if(data.equals([243,2,102,0,0])){//1 time
//kcc.logClient('short_ping(2)');
return true;
}else if(data.equals([243,2,95,0,0])){//1 time
//kcc.logClient('short_ping(3)');//build->game, once
return true;
}else if(data.equals([243,1,0])){//1 time
kcc.logServer('open connection');
return true;
}
*/
}
kcc.separator=data=>{
if(kcc.no_sense(data))return data;
let actorNr = Data.slice(10, 13+1)
actorNr = ((actorNr[0] << 8 | actorNr[1]) << 8 | actorNr[2]) << 8 | actorNr[3]
if(firstJoinData){
firstJoinData = false
actornr = actorNr
}
head = data.slice(0,7);//[243, (client:2|6, server:4|7), actionId(u32), 105]
reqId = head.slice(2,6);
/*
2,6 - client
4,7 - server
*/
source = (head[1]==2||head[1]==6)?"client":"server";
return new Uint8Array([...head, ...kcc[source+"Separator"](toNum32(reqId), data.slice(7))]);
}
none:kcc.separator=data=>{if(kcc.no_sense(data))return data;if(data[2] == 99)return;
head = data.slice(0,7);//[243, (client:2|6, server:4|7), actionId(u32), 105]
reqId = head.slice(2,6);
/*
2,6 - client
4,7 - server
*/
source = (head[1]==2||head[1]==6)?"client":"server";
return new Uint8Array([...head, ...kcc[source+"Separator"](toNum32(reqId), data.slice(7))]);
}
kcc.clientSeparator=(reqId,data)=>{
switch(reqId){
case 117441071://[7,0,2,47] 26->19 bytes
let id=toNum32(data.slice(0,4));
let material=toNum16(data.slice(17,19));
let x=toNum16Sign(data.slice(11,13));
let y=toNum16Sign(data.slice(13,15));
let z=toNum16Sign(data.slice(15,17));
//kc.log(`cube:{id:${id},x:${x},y:${y},z:${z}`,'#080'); --- Cube ID display
if(kcc.cubeMode){
let arr=[];
if(kcc.cubeMode==1){//bigarea
for(let i=x-kcc.cubeXZ;i<=x+kcc.cubeXZ;i++)
for(let i2=y+30;i2<=y+30;i2++)
for(let i3=z-kcc.cubeXZ;i3<=z+kcc.cubeXZ;i3++){
arr.push({x:unsign16(i),y:unsign16(i2),z:unsign16(i3)});
}
if(kcc.cubeMode==29){//nothing
for(let i=x-kcc.none;i<=x+kcc.none;i++)
for(let i2=y-1;i2<=y-1;i2++)
for(let i3=z-kcc.none;i3<=z+kcc.none;i3++){
arr.push({x:unsign16(i),y:unsign16(i2),z:unsign16(i3)});
}
}
}else if(kcc.cubeMode==99){//classicplane
for(let i=x-kcc.cubeXX;i<=x+kcc.cubeXX;i++)
for(let i2=y-1;i2<=y-1;i2++)
for(let i3=z-kcc.cubeXX;i3<=z+kcc.cubeXX;i3++){
arr.push({x:unsign16(i),y:unsign16(i2),z:unsign16(i3)});
}
}else if(kcc.cubeMode==2){//giant
for(let i=x-kcc.cubeSize;i<=x+kcc.cubeSize;i++)
for(let i2=y-kcc.cubeSize;i2<=y+kcc.cubeSize;i2++)
for(let i3=z-kcc.cubeSize;i3<=z+kcc.cubeSize;i3++){
arr.push({x:unsign16(i),y:unsign16(i2),z:unsign16(i3)});
}
}else if(kcc.cubeMode==3){//cubeTower
for(let i=x-kcc.towerSize;i<=x+kcc.towerSize;i++)
for(let i2=y-230;i2<=y+kcc.towerSize*82-122;i2++)
for(let i3=z-kcc.towerSize;i3<=z+kcc.towerSize;i3++){
if(i==x-kcc.towerSize||i==x+kcc.towerSize||
i2==y+kcc.towerSize*78-100||i2==y-74||
i3==z-kcc.towerSize||i3==z+kcc.towerSize){
arr.push({x:unsign16(i),y:unsign16(i2),z:unsign16(i3)});
}
}
}else if(kcc.cubeMode==17){//cubeHall
for(let i=x-kcc.hallSize;i<=x+kcc.hallSize;i++)
for(let i2=y-1;i2<=y+kcc.hallSize*1-1;i2++)
for(let i3=z-kcc.hallSize;i3<=z+kcc.hallSize;i3++){
if(i==x-kcc.hallSize||i==x+kcc.hallSize||
i2==y+kcc.hallSize*1-1||i2==y-1||
i3==z-kcc.hallSize||i3==z+kcc.hallSize){
arr.push({x:unsign16(i),y:unsign16(i2),z:unsign16(i3)});
}
}
}else if(kcc.cubeMode==13){//cubeArena
for(let grad2=0;grad2<=180;grad2++){
let dy=Math.floor(kcc.cubesphere*Math.sin(grad2*Math.PI/180));
let dy1=Math.floor(kcc.cuberay*Math.sin(grad2*Math.PI/180));
let r=Math.abs(dy1);
for(let grad=0;grad<360;grad++){
let x2=unsign16(x+Math.floor(r*Math.cos(grad*Math.PI/180)));
let y2=unsign16(y+dy*3-1);
let z2=unsign16(z+Math.floor(r*Math.sin(grad*Math.PI/180)));
if(!arr.find(v=>v.x==x2&&v.y==y2&&v.z==z2))
arr.push({x:x2,y:y2,z:z2});
}
}
}else if(kcc.cubeMode==14){//cubeUfo
for(let grad2=-180;grad2<=0;grad2++){
let dy=Math.floor(kcc.cubesphere*Math.sin(grad2*Math.PI/180));
let dy1=Math.floor(kcc.cuberay*Math.sin(grad2*Math.PI/180));
let r=Math.abs(dy1);
for(let grad=0;grad<360;grad++){
let x2=unsign16(x+Math.floor(r*Math.cos(grad*Math.PI/180)));
let y2=unsign16(y+kcc.cubesphere*3+dy*3-1);
let z2=unsign16(z+Math.floor(r*Math.sin(grad*Math.PI/180)));
if(!arr.find(v=>v.x==x2&&v.y==y2&&v.z==z2))
arr.push({x:x2,y:y2,z:z2});
}
}
}else if(kcc.cubeMode==22){//cubeXhouse
for(let i=x-kcc.house;i<=x+kcc.house;i++)
for(let i2=y+7;i2<=y+kcc.house*5-1;i2++)
for(let i3=z-kcc.house;i3<=z+kcc.house;i3++){
if(i==x+3||i==x+3||
i2==y+34-4||i2==y-45||
i3==z-8||i3==z+19){
arr.push({x:unsign16(i),y:unsign16(i2),z:unsign16(i3)});
}
}
}else if(kcc.cubeMode==18){//cubeStick
for(let i=x-0;i<=x+0;i++)
for(let i2=y-1;i2<=y+kcc.yup4x;i2++)
for(let i3=z-0;i3<=z+0;i3++){
arr.push({x:unsign16(i),y:unsign16(i2),z:unsign16(i3)});
}
}else if(kcc.cubeMode==4){//xm
for(let i=x-kcc.cubeWay;i<=x;i++)
for(let i2=y-1;i2<=y-1;i2++)
for(let i3=z-5;i3<=z+5;i3++){
arr.push({x:unsign16(i),y:unsign16(i2),z:unsign16(i3)});
}
}else if(kcc.cubeMode==5){//xp
for(let i=x;i<=x+kcc.cubeWay;i++)
for(let i2=y-1;i2<=y-1;i2++)
for(let i3=z-5;i3<=z+5;i3++){
arr.push({x:unsign16(i),y:unsign16(i2),z:unsign16(i3)});
}
}else if(kcc.cubeMode==6){//zm
for(let i=x-5;i<=x+5;i++)
for(let i2=y-1;i2<=y-1;i2++)
for(let i3=z-kcc.cubeWay;i3<=z;i3++){
arr.push({x:unsign16(i),y:unsign16(i2),z:unsign16(i3)});
}
}else if(kcc.cubeMode==7){//zp
for(let i=x-5;i<=x+5;i++)
for(let i2=y-1;i2<=y-1;i2++)
for(let i3=z;i3<=z+kcc.cubeWay;i3++){
arr.push({x:unsign16(i),y:unsign16(i2),z:unsign16(i3)});
}
}
arr.map((pos,i)=>{
kcc.ws._msg({data:kcc.cubeServer(id,pos.x,pos.y,pos.z,kcc.cubeId?kcc.cubeId:material).buffer});
kcc.ws._send(kcc.cube(id,pos.x,pos.y,pos.z,kcc.cubeId?kcc.cubeId:material));
});
}
break;
case 33556246://[2,0,7,22], 47->40 bytes
//kc.log('moving','#080');
//let PID=data.slice(0,4);//36 bytes
kcc.pos=data.slice(4);
break;
case 16777473://[1,0,1,1]
//kcc.logClient('ping time');//(11)
break;
case 4278192982://toNum32([255,0,11,86]):
kc.log('inject console with game...','#0431B4');
break;
case 1040188095://toNum32([62,0,2,191]):
kc.log('[image part]','#080');
break;
case 385876415://toNum32([23,0,1,191]):
kc.log('finish','#080');
break;
case 419430934://toNum32([25,0,2,22]):
//kcc.self=toNum32(data.slice(0,4));
break;
case 654311702://toNum32([39,0,1,22]):
//kcc.logClient('add model to inventory');
break;
case 738198312://toNum32([44,0,3,40]):
//kcc.logClient('push model to the marketplace');
break;
case 218104104://toNum32([13,0,1,40]):
//kcc.logClient('delete model from inventory');
break;
case 452985366://toNum32([27,0,2,22]):
//kcc.logClient('use effect on player');
break;
}
return data;
}
kcc.serverSeparator=(reqId,data)=>{
//server:243,4,10,0,3,47,105,...toByte32(randomId),49,120,0,0,0,9,2,...toNum16(x),...toNum16(y),...toNum16(z),7,material,254,105,0,0,0,3
//client:243,2,7,0,2,47,105, 0,0,5,196,49,120,0,0,0,9,2,255,211,0,4,255,225
// 243,4,10,0,3,47,105,0,0,5,207,49,120,0,0,0,7,0,255,229,0,4,255,213,254,105,0,0,0,1
//243,4,86,0,5,220,105,0,0,41,254,219,98,2,209,105,0,0,0,0,85,105,0,0,0,10,254,105,0,0,0,1
switch(reqId){
case toNum32([10,0,3,47])://case toNum32([86,0,5,220]):
//kc.log('cubegun another');
break;
case toNum32([1,0,0,42]):
//kcc.logServer('ping time');//(20)
break;
case toNum32([255,0,6,89]):
{
top.keks=top.keks?top.keks:[];
let info=getJSON(decode(data))[0];
top.keks.push(info);
//kc.log(`[${info.UserName}]->joining`,'#F80');
kcc.parts.push(info.UserName);
}
break;
case toNum32([104,0,2,245]):
{
top.keks=top.keks?top.keks:[];
let info=getJSON(decode(data))[0];
top.keks.push(info);
let actorNr=info.SpawnRolesRuntimeData.activeSpawnRole;//.spawnRoleAvatarIds[0];
let name=kcc.parts.pop();
kc.log(`[${name},${actorNr}]->joined`,'#F80');
kcc.names[name]=actorNr;
}
break;
case toNum32([102,0,10,245]):case toNum32([61,0,10,245]):
{
kc.log('⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ successful injected','#04B404');
let info=getJSON(decode(data));
top.kek=info;
kcc.self=info[info.length-1].spawnRolesDefaultTypeWoIDMap;
kcc.self=kcc.self?kcc.self.DefaultPlayModeSpawnRole:info[info.length-1].DefaultPlayModeSpawnRole;
info=info.slice(1,info.length-1);
for(let k=0;k<info.length;k+=3){
kcc.names[info[k].UserName]=info[k+2].activeSpawnRole;
}
kc.log(` ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ Your ID:
${JSON.stringify(kcc.self)}`,'#FF8000');
kc.log('Console version: 1.7','#DF0101');
}
break;
case toNum32([6,0,11,22]):
{
let id=toNum32(data.slice(0,4))-1;
for(let k in kcc.names)if(kcc.names[k]==id){
kc.log(`[${k}]->left`,'#D8D8D8');
delete kcc.names[k];break;
}
}
break;
}
return data;
}