Created
February 28, 2020 12:37
-
-
Save R1DD1387/0756d2675e21410afd0d7f32382bf63e to your computer and use it in GitHub Desktop.
Modmenu for the game Prodigy
ok I have better version
(() => {
// Constants
const MAX_QUANTITY = 9999999999;
const MAX_LEVEL = 100;
// Create menu container
const prodigydiv = document.createElement("div");
prodigydiv.style.width = "200px";
prodigydiv.style.height = "auto";
prodigydiv.style.background = "black";
prodigydiv.style.color = "purple";
prodigydiv.style.padding = "10px";
prodigydiv.style.position = "fixed";
prodigydiv.style.top = "10px";
prodigydiv.style.left = "10px";
prodigydiv.style.zIndex = "9999";
// Game modification functions
const createButton = (text, onClick) => {
const button = document.createElement('button');
button.textContent = text;
button.style.display = 'block';
button.style.margin = '5px';
button.onclick = onClick;
return button;
};
const buttons = [
['Close Menu', () => prodigydiv.remove()],
['Free Membership', () => PIXI?.game?.prodigy?.player && (PIXI.game.prodigy.player.tt = true)],
['Max Coins', () => PIXI?.game?.prodigy?.player && (PIXI.game.prodigy.player.data.gold = MAX_QUANTITY)],
['Get All Pets', () => PIXI?.game?.prodigy?.debugMisc?.getAllPets?.()],
['Infinite Wheel Spins', () => PIXI?.game?.prodigy?.player?.backpack?.data?.item?.push({N: 999999, ID: 130})],
['Level Up', () => PIXI?.game?.prodigy?.player && (PIXI.game.prodigy.player.data.level = MAX_LEVEL)],
['Level Up Pets', () => {
if (PIXI?.game?.prodigy?.player?.kennel?.data) {
PIXI.game.prodigy.player.kennel.data.forEach(pet => pet.level = MAX_LEVEL);
}
}],
['W12-4RD Nickname', () => PIXI?.game?.prodigy?.player?.appearance?._name && (PIXI.game.prodigy.player.appearance._name.nickname = 7)],
['Get All Items', () => {
if (PIXI?.game?.state?.states?.Boot?._gameData) {
const gameData = PIXI.game.state.states.Boot._gameData;
['item', 'follow', 'spellRelic', 'hat', 'outfit', 'boots', 'weapon', 'key'].forEach(type => {
PIXI.game.prodigy.player.backpack.data[type] = gameData[type].map(item => ({
ID: item.ID,
N: type === 'follow' || type === 'weapon' || type === 'key' ? 1 : MAX_QUANTITY
}));
});
}
}]
];
// Add buttons to menu
buttons.forEach(([text, onClick]) => {
prodigydiv.appendChild(createButton(text, onClick));
});
// Add credit text
const credit = document.createElement('p');
credit.textContent = 'Custom Prodigy Mod Menu made by R1DD13 #8209';
credit.style.marginTop = '10px';
prodigydiv.appendChild(credit);
// Add menu to page
document.body.appendChild(prodigydiv);
})();
ok so everything in the like grey ish area?
in prodigy i think there was a bit of time where you could go over level 100 to 125 max
wow its been a year since i last played no joke
it doesnt seem to work...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If it doesn't work I will be actively working on it