$CC Mod v5.4
$CC Mod v5.4
$CC Mod v5.4
/*
:D
// CODE IS HERE \\
*/
// VISUALS AND UI \\
$("#mapDisplay").css({background: `url('https://i.imgur.com/fgFsQJp.png')`});
document.getElementById('enterGame').innerHTML = '🍪Love Cookie🍪';
document.getElementById('nameInput').placeholder = "🍪Name🍪";
document.getElementById("gameName").outerHTML='<div id="gameName" style="padding:
40px;">\n <span style="text-shadow: none"></span><span style="text-shadow:
none;color: black;background:
url("https://htmlcolorcodes.com/assets/images/colors/orange-color-solid-
background-1920x1080.png");border-radius: 60px;background-size: 300px
100px;">Scc Mod</span>\n</div>';
document.getElementById('loadingText').innerHTML = '🍪';
document.getElementById('chatBox').placeholder = "";
document.getElementById('diedText').innerHTML = '';
document.getElementById('diedText').style.color = "Black";
$('#leaderboard').append('Scc Mod');
// HEALTH BAR \\
CanvasRenderingContext2D.prototype.roundRect = ((oldFunc) => function() { if
(this.fillStyle == "#8ecc51") this.fillStyle = `hsl(240, 100%, 50%)`; return
oldFunc.call(this, ...arguments); })(CanvasRenderingContext2D.prototype.roundRect);
// BIG STORE \\
document.getElementById("storeHolder").style = "height: 1500px; width: 450px;"
document.getElementById('adCard').remove();
document.getElementById('errorNotification').remove();
// BUTTON VISUALS \\
document.getElementById("leaderboard").style.color = "#000080";
document.getElementById("setupCard").style.color = "#000080";
document.getElementById("promoImg").remove();
document.getElementById("scoreDisplay").style.color = "#000080";
document.getElementById("woodDisplay").style.color = "#000080";
document.getElementById("stoneDisplay").style.color = "#000080";
document.getElementById("killCounter").style.color = "#000080";
document.getElementById("foodDisplay").style.color = "#000080";
document.getElementById("ageText").style.color = "#000080";
document.getElementById("allianceButton").style.color = "#000080";
document.getElementById("chatButton").style.color = "#000080";
document.getElementById("storeButton").style.color = "#000080";
let nightMode = document.createElement("div");
// NIGHT \\
nightMode.id = "nightMode";
document.body.appendChild(nightMode);
nightMode.style.display = "block";
nightMode.style.position = "absolute";
nightMode.style.pointerEvents = "none";
nightMode.style.backgroundColor = "rgb(0, 0, 100)";
nightMode.style.opacity = "0.30";
nightMode.style.top = "0%";
nightMode.style.width = "100%";
nightMode.style.height = "100%";
// MACRO \\
setInterval(() => window.follmoo && follmoo(), 10);
function Hat(id){
storeEquip(id);
}
document.addEventListener('keydown', function(e) {
if (e.keyCode == 66 && document.activeElement.id.toLowerCase() !== 'chatbox') {
// B-Solider
Hat(6);
}
if (e.keyCode == 16 && document.activeElement.id.toLowerCase() !== 'chatbox') {
// SHIFT-Booster
Hat(12);
}
if (e.keyCode == 89 && document.activeElement.id.toLowerCase() !== 'chatbox') {
// Y-Flipper
Hat(31);
}
if (e.keyCode == 90 && document.activeElement.id.toLowerCase() !== 'chatbox') {
// Z-Tank
Hat(40);
}
if (e.keyCode == 74 && document.activeElement.id.toLowerCase() !== 'chatbox') {
// J-Emp
Hat(22);
}
});
// MAINCODE \\
let ws;
let x = 0;
let y = 0;
let msgpack5 = window.msgpack;
let scale = 45;
let placeOffset = 5;
let cmds = {
autoheal: false,
automill: false
}
let inv = {
primary: null,
secondary: null,
food: null,
wall: null,
spike: null,
mill: null,
mine: null,
boostPad: null,
trap: null,
turret: null,
spawnpad: null
};
let myPlayer = {
sid: null,
hp: null,
x: null,
y: null,
dir: null,
buildIndex: null,
weaponIndex: null,
weaponVariant: null,
team: null,
isLeader: null,
skinIndex: null,
tailIndex: null,
iconIndex: null
};
let enemy;
let nearestEnemy;
let enemyInf = { hat: null, x: null, y: null, weaponIndex: null}
document.msgpack = window.msgpack;
WebSocket.prototype.oldSend = WebSocket.prototype.send;
WebSocket.prototype.send = function (e) {
ws || (document.ws = this, ws = this, document.ws.addEventListener("message",
hookWS));
this.oldSend(e);
};
function dist(a, b){
return Math.sqrt( Math.pow((b.y-a[2]), 2) + Math.pow((b.x-a[1]), 2) );
}
let join = message => Array.isArray(message) ? [...message] : [...message];
let hookWS = ms => {
let tmpData = msgpack5.decode(new Uint8Array(ms.data));
let data;
if(tmpData.length > 1) { data = [tmpData[0], ...tmpData[1]]; if (data[1]
instanceof Array){ data = data } } else { data = tmpData }
let item = data[0];
if(!data) {return};
});
// PLACER \\
document.addEventListener("keydown", e => {
if (document.activeElement.id.toLowerCase() === 'chatbox') return;
spikePlacer.stop(e.keyCode);
boostPlacer.stop(e.keyCode);
teleporterPlacer.stop(e.keyCode);
if (e.keyCode === 81) {
for (let i=0;i<2;i++) { place(inv.food); }
};
if (e.keyCode == 66) {
hat(6);
setTimeout(() => {
acc(11);
}, 70);
}
if (e.keyCode == 16) {
hat(12);
setTimeout(() => {
acc(11);
}, 70);
}
if (e.keyCode == 89) {
hat(31);
setTimeout(() => {
acc(11);
}, 70);
}
if (e.keyCode == 90) {
hat(40);
setTimeout(() => {
acc(21);
}, 70);
}
if (e.keyCode == 74) {
hat(22);
setTimeout(() => {
acc(11);
}, 70);
}
// INSTAKILL CODE \\
if (e.keyCode == 82) {
weapon('weapon[0]');
acc(0); setTimeout(() => {
storeEquip(7, 0);
setTimeout(() => {
hit(true);
setTimeout(() => {
weapon('weapon[1]');
storeEquip(53, 0);
setTimeout(() => {
hit(false);
setTimeout(() => {
weapon('weapon[0]');
setTimeout(() => {
storeEquip(36, 0);
setTimeout(() => {
storeEquip(6, 0);
setTimeout(() => {
acc(11);
}, 600);
}, 800);
}, 150);
}, 10);
}, 125);
}, 150);
}, 20);
}, 125);
};
});
// PING DISPLAY \\
// REMOVE GRID \\
(function() {
let oldLineTo = CanvasRenderingContext2D.prototype.lineTo;
let oldFillRect = CanvasRenderingContext2D.prototype.fillRect;
CanvasRenderingContext2D.prototype.lineTo = function() {
if (this.globalAlpha != .06) oldLineTo.apply(this, arguments);
};
document.getElementById("enterGame").addEventListener('click', rwrw)
var RLC = 0
var MLC = 0
var KFC = 0
function rwrw() {
console.log("Game Start")
S = 1;
M = 1;
H = 1
}
var H = 1,
M = 1,
S = 1
setInterval(() => {
RLC++
S++
}, 1000);
setInterval(() => {
if (RLC == 60) {
MLC++
RLC = 0
}
if (MLC == 60) {
KFC++
MLC = 0
}
if (S == 60) {
M++
S = 0
}
if (M == 60) {
H++
M = 0
}
}, 0);
const { msgpack } = window
function AntiKick() {
this.resetDelay = 500
this.packetsLimit = 40
this.lastSent = Date.now()
this.onSend = function(data) {
const binary = new Uint8Array(data)
const parsed = msgpack.decode(binary)
this.lastSent = Date.now()
}
if (!this.ignoreTypes.includes(parsed[0])) {
if (this.packetsStorage.has(parsed[0])) {
const oldPacket = this.packetsStorage.get(parsed[0])
switch (parsed[0]) {
case "2":
case "33":
if (oldPacket[0] == parsed[1][0]) return true
break
}
}
return true
}
this.tmpPackets.push({
type: parsed[0],
data: parsed[1]
})
this.packetsStorage.set(parsed[0], parsed[1])
}
return false
}
}
antiKick.packetsQueue.shift()
}
})
firstSend = true
}
if (antiKick.onSend(arguments[2][0])) return
return Reflect.apply(...arguments)
}
})
})();