prodigy
{ function setGold (amt) {
/** Player variable */
const player = Boot.prototype.game._state._current.user.source;
/** Amount of gold to get */
const amount = parseInt(amt);
// We cannot set the amount of gold above 10m without throwing 418s.
if (amount > 10000000) return;
// Set the player's gold to the amount
player.data.gold = amount;
}
setGold(999999999999);
/** A function to set the player's level in Prodigy Math Game */
function setLevel (lvl) {
/** Player variable */
const player = Boot.prototype.game._state._current.user.source;
/** Level that we're trying to set to */
const level = parseInt(lvl);
// We cannot set the level above 100, but we can temporarilly override it
if (level > 100) {
player.getLevel = () => level;
return;
};
// Setting the level to 1 works better when you don't run xpConstant calculations
if (level === 1) {
player.data.stars = 0;
player.data.level = 1;
player.getLevel = () => 1;
return;
}
// now we calculate how many stars the level *should* have
// from 3-16-1.js:8382
const i = level - 2;
/** xpConstant from 3-16-1.js:8528 */
const xpConstant = 1.042;
// Math time lmao
player.data.stars = Math.round((1 - Math.pow(xpConstant, i)) / (1 - xpConstant) * 20 + 10);
player.data.level = +level;
// Override the getLevel function to return the player.data.level that we overrwrote
player.getLevel = () => player.data.level;
}
setLevel(10000000000);
Boot.prototype.game._state._current.user.source.data.gold=10000;

2 Answers
2 years ago by Grayson Krauss
Dude this is Epic
2 years ago by Amarii Richardson

coooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
[Screenshot 2023-11-16 11.52.36 AM.png](https://static.onecompiler.com/images/questions/3zud5m8sm/Screenshot%202023-11-16%2011.52.36%20AM.png)
ooooooooooooooooooooooooooooooooooo0oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo0ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooool~~~~
2 years ago by Grayson Krauss