forked from kit2d2alt/florr.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
super-petals.js
28 lines (22 loc) · 1.09 KB
/
super-petals.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// **WARNING**
// - This script makes it seem like you have petals that you actually don't.
// Therefore, if you equip them or use them for crafting more than once, your account will be banned.
// - We do NOT recommend running the script outside of a guest account if you are not a ban speedrunner!
// - Don't forget that we do NOT have any responsibility for any damage to you caused by the script.
(async () => {
const currentVersionHash = (await (await fetch("https://florr.io")).text()).match(/const\sversionHash\s=\s"(.*)";/)[1];
if (currentVersionHash !== "4733a70a94f465baf2811a935223e9fa13e709cb") {
console.error("VersionHash error (tell this to kit2d2 if broken on discord)");
return;
}
const kMaxRarities = 8;
const kMaxPetals = 80;
const petalInventoryBaseAddress = 2160116;
for (let petalIndex = 1; petalIndex <= kMaxPetals; petalIndex++) {
for (let rarityIndex = 0; rarityIndex < kMaxRarities; rarityIndex++) {
const offset = ((petalIndex * kMaxRarities + rarityIndex) << 2);
Module.HEAPU32[(petalInventoryBaseAddress + offset) >> 2] = 20;
}
}
console.log("success!");
})();