message_1_1
message_1_1
message_1_1
const packets = {
extPut: 9,
extTake: 1,
placeBuild: 15,
joinTotem: 38,
angle: 19,
attack: 24,
stopAttack: 36,
chestPut: 13,
chestTake: 27,
equip: 16,
recycle:20,
craft: 2,
};
let Settings = {
ColoredSpikes: {
enabled: true
},
AutoSpike: {
key: "Space",
enabled: false
},
AutoPutRed: {
key:"KeyV",
enabled:false,
},
AMB: {
enabled: false,
key: "KeyF",
a: null,
t: null,
},
AutoFeed: {
enabled: true
},
AutoCraft: {
enabled: false,
key:"KeyB"
},
AutoRecycle: {
enabled: false,
key:"KeyL"
},
AutoSteal: {
enabled: false,
key: "KeyQ",
draw:true
},
AutoTotem: {
enabled: false,
key: "KeyH"
},
ExtractorInfo: {
enabled: true
},
ExtractorSteal: {
enabled: false,
key: "KeyI"
},
ExtractorPut: {
enabled: false,
key: "KeyP"
},
}
let LAST_CRAFT;
let world;
let client;
let user;
let mouse
let _this;
let log = console.log
let LAST_RECYCLE
log(unsafeWindow)
let master = Symbol()
function hooks() {
Object.defineProperty(Object.prototype, "timeout", {
get() {
return this[master]
},
set(data) {
this[master] = data;
if (!client) {
client = this;
log(client);
unsafeWindow.client = client;
}
},
})
Object.defineProperty(Object.prototype, "IDLE", {
get() {
return this[master]
},
set(data) {
this[master] = data;
if (!mouse) {
mouse = this;
log(mouse);
unsafeWindow.mouse = mouse;
}
},
})
Object.defineProperty(Object.prototype, "opacity", {
get() {
this[master] = 0.5
return this[master]
},
set(data) {
this[master] = data;
},
})
Object.defineProperty(Screen.prototype, "width", {
get: function() {
return 3840;
},
set: function(v) {
this[master] = v;
}
});
Object.defineProperty(Screen.prototype, "height", {
get: function() {
return 2160;
},
set: function(v) {
this[master] = v;
}
});
Object.defineProperty(Object.prototype, "mode", {
get() {
return this[master]
},
set(data) {
this[master] = data;
if (!world) {
world = this;
log(world);
unsafeWindow.world = world;
}
},
})
Object.defineProperty(Object.prototype, "control", {
get() {
return this[master]
},
set(data) {
this[master] = data;
if (!user) {
user = this;
log(user);
unsafeWindow.user = user;
ads()
}
},
})
}
hooks()
//////////////////////////////////////////////////////////////////////////////
function send(data) {
let sock;
let counter = 0;
if (counter === 1) {
sock = prop1;
break;
}
}
client[sock].send(JSON.stringify(data))
}
function unit() {
let units;
let counter = 0;
if (counter === 5) {
// log("hooked team: " + "world." + prop1);
units = world[prop1];
break;
}
}
return units;
function myplayer(){
let fast_units;
let counter = 0;
let pid
let counter2= 0
if (counter === 6) {
// log("hooked team: " + "world." + prop1);
fast_units = world[prop1][pid];
break;
}
}
return fast_units;
}
function pid(obj) {
return obj.Δ ⵠ ΔΔ;
}
function chatxterm() {
if(document.getElementById("chat_block").style.display === 'inline-block' ||
document.getElementById("commandMainBox").style.display === 'inline-block'){
return true;
}else{
return false;
}
}
function gauges(){
let gauge;
let gauge2;
let counter = 0;
// console.log("hooked" +prop1)
gauge = user[prop1];
let innerCounter = 0;
function gauges2(){
let gauge;
let gauge2;
let counter = 0;
// console.log("hooked" +prop1)
gauge = user[prop1];
let innerCounter = 0;
let inv;
let inv2;
let counter = 0;
function isAlive() {
let team;
let counter = 0;
return team;
}
function AutoFeed() {
if (user.Δ ⵠ ᐃ
Δᐃ) {
const foodItems = [110, 117]
const bottle = 127;
if (user.ⵠ ⲆⲆ ⵠ.ᐃᐃ < 0.45 && client.ᐃᐃ ⵠⵠ.readyState === 1) {
for (const item of foodItems) {
if (inventoryHas(item)) {
client.ping();
client.ⵠⵠⵠⵠ ᐃ(item);
}
}
}
if(user.ⵠ ⲆⲆ ⵠ.ᐃᐃ ⵠ < 0.40){
if (inventoryHas(bottle)) {
client.ping();
client.ⵠⵠⵠⵠ ᐃ(bottle);
}
}
}
}
function getUserPosition() {
let camx;
let camy;
for (let prop1 in user) {
for (let prop2 in user[prop1]) {
switch (prop2) {
case "x":
//log("hooked camx: " + "user." + prop1 + "." + prop2);
camx = user[prop1][prop2];
break;
case "y":
//log("hooked camy: " + "user." + prop1 + "." + prop2);
camy = user[prop1][prop2];
break;
}
}
}
return [camx, camy]
}
function drawsp() {
let drawSpike = null;
unsafeWindow.sp = drawsp
function ads() {
let uwu = document.getElementById("preroll")
let uws = document.getElementById("trevda")
let style = document.createElement('style');
uwu.remove()
uws.remove()
style.innerHTML = '.grecaptcha-badge { visibility: hidden; }';
document.head.appendChild(style);
console.log(uwu + ":" + uws)
console.log("removed")
}
function autoBook() {
let craft;
let counter = 0;
LAST_CRAFT = id
send([packets.equip, 28])
send([packets.craft, id]);
return 1;
};
}
function autoputred() {
let mp = myplayer()
function getdist(a, b) {
return Math.sqrt(((b.x - a.x) * (b.x - a.x)) + ((b.y - a.y) * (b.y -
a.y)));
}
send([packets.chestPut,202,10,pid(chest[i]),chest[i].id])
}
}
}
function aimbot() {
requestAnimationFrame(aimbot);
function isAlly(id) {
let team;
let counter = 0;
switch (id) {
case user.id:
return true;
default:
if (Array.isArray(team)) {
return team.includes(id);
}
}
}
function HoldWeapon(_, $) {
switch (_) {
case 34:
case 18:
case 33:
case 15:
case 14:
case 13:
case 12:
case 16:
case 17:
return 2;
case 57:
case 5:
case 6:
case 30:
case 62:
case 9:
case 0:
case 63:
case 19:
return 1;
case 64:
case 65:
case 66:
case 67:
case 68:
case 70:
case 69:
return 3;
case 94:
case 95:
case 96:
case 97:
case 98:
case 90:
case 99:
return 6;
case 45:
if ($) return 4;
case -1:
if ($) return 5;
}
return 0;
}
function calcAngle(_, $, o) {
return _ && $ ? (o ? Math.atan2($.r.y - _.r.y, $.r.x - _.r.x) : Math.atan2($.y
- _.y, $.x - _.x)) : null;
}
return nearest;
}
log(Angle255);
send([packets.angle, Angle255]);
if (Settings.AMB.a && RangeBetweenMeAndEnemy <= myRange - 22) {
send([packets.attack, Angle255]);
send([packets.stopAttack]);
}
} else {
Settings.AMB.a = null;
Settings.AMB.t = null;
}
} else {
Settings.AMB.a = null;
}
}
}
}
function autoCraft() {
let craftInterval;
function sendCraft() {
if (LAST_CRAFT !== undefined && gauges() < 0.60 && !window.AutoEatWait) {
window.AutoEatWait = true;
const foodItems = [110, 117]
for (const item of foodItems) {
if (inventoryHas(item)) {
send([packets.equip, item])
}
}
workerTimers.setTimeout(() => {
window.AutoEatWait = false;
}, 500);
} else {
send([packets.craft, LAST_CRAFT]);
}
}
document.addEventListener('keydown', function(event) {
if (event.code === Settings.AutoCraft.key) {
if (Settings.AutoCraft.enabled == false && chatxterm() === false) {
sendCraft();
craftInterval = workerTimers.setInterval(sendCraft, 20)
Settings.AutoCraft.enabled = true;
} else {
if (Settings.AutoCraft.enabled == true) {
workerTimers.clearInterval(craftInterval);
Settings.AutoCraft.enabled = false;
}
}
}
});
function autoRecycle() {
let RecycleInterval;
function sendRecycle() {
if (isAlive() === true && LAST_RECYCLE !== undefined && gauges() < 0.60
&& !window.AutoEatWait) {
window.AutoEatWait = true;
const foodItems = [110, 117]
for (const item of foodItems) {
if (inventoryHas(item)) {
send([packets.equip, item])
}
}
workerTimers.setTimeout(() => {
window.AutoEatWait = false;
}, 500);
} else {
send([packets.recycle, LAST_RECYCLE]);
}
}
document.addEventListener('keydown', function(event) {
if (event.code === Settings.AutoRecycle.key) {
if (Settings.AutoRecycle.enabled == false && chatxterm() === false) {
sendRecycle();
RecycleInterval = workerTimers.setInterval(sendRecycle, 20)
Settings.AutoRecycle.enabled = true;
} else {
if (Settings.AutoRecycle.enabled == true) {
workerTimers.clearInterval(RecycleInterval);
Settings.AutoRecycle.enabled = false;
}
}
}
});
}
function colors() {
if (isAlive() === true && Settings.ColoredSpikes.enabled) {
unsafeWindow.ReiditeSpikeAlly = new Image;
unsafeWindow.ReiditeSpikeAlly.src =
"https://raw.githubusercontent.com/sfagasdzdgfhs/spikes/main/day-reidite-spike-
ally.png"
unsafeWindow.AmethystSpikeAlly = new Image;
unsafeWindow.AmethystSpikeAlly.src =
"https://raw.githubusercontent.com/sfagasdzdgfhs/spikes/main/day-amethyst-spike-
ally.png"
unsafeWindow.DiamondSpikeAlly = new Image;
unsafeWindow.DiamondSpikeAlly.src =
"https://raw.githubusercontent.com/sfagasdzdgfhs/spikes/main/day-diamond-spike-
ally.png"
unsafeWindow.GoldSpikeAlly = new Image;
unsafeWindow.GoldSpikeAlly.src =
"https://raw.githubusercontent.com/sfagasdzdgfhs/spikes/main/day-gold-spike-
ally.png"
unsafeWindow.StoneSpikeAlly = new Image;
unsafeWindow.StoneSpikeAlly.src =
"https://raw.githubusercontent.com/sfagasdzdgfhs/spikes/main/day-stone-spike-
ally.png"
unsafeWindow.WoodSpikeAlly = new Image;
unsafeWindow.WoodSpikeAlly.src =
"https://raw.githubusercontent.com/sfagasdzdgfhs/spikes/main/day-wood-spike-
ally.png"
let ITEMS = {
SPIKE: 5,
STONE_SPIKE: 12,
GOLD_SPIKE: 13,
DIAMOND_SPIKE: 14,
AMETHYST_SPIKE: 20,
REIDITE_SPIKE: 52,
}
unsafeWindow.ITEMS_TO_CHECK = {
SPIKE: 5,
STONE_SPIKE: 12,
GOLD_SPIKE: 13,
DIAMOND_SPIKE: 14,
AMETHYST_SPIKE: 20,
REIDITE_SPIKE: 52,
}
let chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMOPQRSTUVWXYZ_0123456789";
function isAlly(id) {
switch (id) {
case user.id:
return true;
default:
return user.ⵠ ΔΔΔΔ.includes(id);
}
}
let push = Array.prototype.push
Array.prototype.push = function(p) {
if (p) {
let a = Object.keys(p);
5 == a.length && a.includes("draw") && a.includes("in_button") &&
32 !== p.id && 130 !== p.id && 127 !== p.id && 4 !== p.id && 25 !== p.id && 34 !==
p.id && 87 !== p.id && (unsafeWindow.inventory = this);
}
unsafeWindow.wow = 'Δ ⵠ ⲆⲆ'
if (p && null != p.type && null != p.id && p.x && p.y)
switch ((0 === p.type && pid(p) === unsafeWindow.playerID &&
(unsafeWindow.player = p), p.type)) {
case ITEMS.SPIKE: {
p.ally = unsafeWindow.playerID === pid(p) ||
isAlly(pid(p));
let l = p[wow]; // draw
p[wow] = function(a) {
return Settings.ColoredSpikes ? (p.ally ? l.apply(this,
[1e4]) : l.apply(this, [10001])) : l.apply(this, arguments);
};
break;
}
case ITEMS.STONE_SPIKE: {
p.ally = unsafeWindow.playerID === pid(p) ||
isAlly(pid(p));
let i = p[wow]; // draw
p[wow] = function(a) {
return Settings.ColoredSpikes ? (p.ally ? i.apply(this,
[10002]) : i.apply(this, [10003])) : i.apply(this, arguments);
};
break;
}
case ITEMS.GOLD_SPIKE: {
p.ally = unsafeWindow.playerID === pid(p) ||
isAlly(pid(p));
let e = p[wow]; // draw
p[wow] = function(a) {
return Settings.ColoredSpikes ? (p.ally ? e.apply(this,
[10004]) : e.apply(this, [10005])) : e.apply(this, arguments);
};
break;
}
case ITEMS.DIAMOND_SPIKE: {
p.ally = unsafeWindow.playerID === pid(p) ||
isAlly(pid(p));
let t = p[wow]; // draw
p[wow] = function(a) {
return Settings.ColoredSpikes ? (p.ally ? t.apply(this,
[10006]) : t.apply(this, [10007])) : t.apply(this, arguments);
};
break;
}
case ITEMS.AMETHYST_SPIKE: {
p.ally = unsafeWindow.playerID === pid(p) ||
isAlly(pid(p));
let r = p[wow]; // draw
p[wow] = function(a) {
return Settings.ColoredSpikes ? (p.ally ? r.apply(this,
[10008]) : r.apply(this, [10009])) : r.apply(this, arguments);
};
break;
}
case ITEMS.REIDITE_SPIKE: {
p.ally = unsafeWindow.playerID === pid(p) ||
isAlly(pid(p));
let y = p[wow]; // draw
p[wow] = function(a) {
return Settings.ColoredSpikes ? (p.ally ? y.apply(this,
[10010]) : y.apply(this, [10011])) : y.apply(this, arguments);
};
break;
}
case unit()[0]: {
console.log(p)
let w = p[wow]
console.log(w)
}
}
return push.apply(this, arguments);
};
}
}
function Visuals() {
requestAnimationFrame(Visuals);
try {
window.ctx = document.getElementById("game_canvas").getContext("2d");
} catch (error) {
return;
}
let i = 22.5;
for (hack in Settings) {
if (Settings[hack].enabled && Settings[hack].key) {
ctx.save();
ctx.beginPath();
ctx.lineWidth = 6;
ctx.fillStyle = "red";
ctx.strokeStyle = "black";
ctx.font = "22px Baloo Paaji";
ctx.strokeText(hack, 3, i);
ctx.fillText(hack, 3, i);
ctx.restore();
i += 22.5;
}
}
}
function extractorsInfo() {
function extractors_engine() {
requestAnimationFrame(extractors_engine);
const mp = myplayer()
function extractor_info() {
const extractor_ids = [24, 25, 26, 27, 28];
for (let i = 0; i < extractor_ids.length; ++i) {
const spikeType = extractor_ids[i];
const extractors = unit()[spikeType];
if (isAlive() === true) {
for (let j = 0; j < extractors.length; j++) {
const extractor = extractors[j];
ctx.save();
ctx.lineWidth = 8;
ctx.font = "26px Baloo Paaji";
ctx.strokeStyle = "#000";
ctx.fillStyle = (extractor.info & 0xFF) > 0 ? "lime" :
"white";
ctx.strokeText(`${extractor.info & 0xFF}`, (extractor.x -
20) + getUserPosition()[0], extractor.y + getUserPosition()[1]);
ctx.fillText(`${extractor.info & 0xFF}`, (extractor.x - 20)
+ getUserPosition()[0], extractor.y + getUserPosition()[1]);
ctx.restore();
}
extractor_info();
}
extractors_engine();
}
function tot() {
function getdist(a, b) {
return Math.sqrt(((b.x - a.x) * (b.x - a.x)) + ((b.y - a.y) * (b.y -
a.y)));
}
const mp = myplayer()
requestAnimationFrame(tot);
function totinfo() {
for (let i = 0; i < totem.length; ++i) {
const {
x,
y,
info
} = totem[i];
let totw = unit()[29][i]
ctx.save();
ctx.lineWidth = 8;
ctx.font = "26px Baloo Paaji";
ctx.strokeStyle = "#000";
ctx.fillStyle = totw.info >= 16 ? "red" : "lime";;
ctx.restore();
}
}
if (isAlive() === true && chatxterm() === false&& autototem) {
for (let i = 0; i < totem.length; ++i) {
if (getdist(mp, totem[i]) <= 300) {
send([packets.joinTotem, pid(totem[i]), totem[i].id])
}
}
}
totinfo();
let readys = {
AutoSpike: true,
AutoWall: true,
AutoCraft: true,
};
function auto() {
if (chatxterm() === false) {
let spikeToPlace = undefined;
if (inventoryHas(219)[0]) {
spikeToPlace = 219;
log("invhas: reidite spike");
} else if (inventoryHas(123)[0]) {
spikeToPlace = 123;
log("invhas: ame spike");
} else if (inventoryHas(170)[0]) {
spikeToPlace = 170;
log("invhas: dia spike");
} else if (inventoryHas(169)[0]) {
spikeToPlace = 169;
log("invhas: gold spike");
} else if (inventoryHas(168)[0]) {
spikeToPlace = 168;
log("invhas: stone spike");
} else if (inventoryHas(162)[0]) {
spikeToPlace = 162;
log("invhas: wall");
} else if (inventoryHas(113)[0]) {
spikeToPlace = 113;
log("invhas: wall");
}
}
}
}
let autoputredsinterval
let autoputreds = false
let placeSpikesInterval;
let pressed = false;
let autototemInterval;
let autototem = false;
let autoextractortakeInterval;
let autoextractortake = false;
let autoextractorputInterval;
let autoextractorput = false;
let awutostealInterval;
let awutosteal = false;
function main() {
Visuals()
autoCraft()
autoBook()
autoRecycle()
tot()
workerTimers.setInterval(AutoFeed, 600);
colors()
}
let ready_ = 0;
function initialize() {
try {
if (ready_ === 0 && user !== undefined && world !== undefined && client !==
undefined) {
main()
setInterval(auto, 80)
log("On");
ready_++;
}
} catch (err) {
log("Off");
log(err)
}
}
setInterval(initialize, 200);