Skip to content

Instantly share code, notes, and snippets.

@R1DD1387
Created February 28, 2020 12:37
Show Gist options
  • Save R1DD1387/0756d2675e21410afd0d7f32382bf63e to your computer and use it in GitHub Desktop.
Save R1DD1387/0756d2675e21410afd0d7f32382bf63e to your computer and use it in GitHub Desktop.
Modmenu for the game Prodigy
function closeit(){
prodigydiv.remove()
}
setTimeout("closeit", 3000);
function getallCurrencies() {
PIXI.game.prodigy.player.backpack.data.currency=[]
x = PIXI.game.state.states.Boot._gameData.currency
for (i in x) {
PIXI.game.prodigy.player.backpack.data.currency[i] = {"ID": x[i].ID, "N": 9999999999}
}
}
function getallBuddies() {
PIXI.game.prodigy.player.backpack.data.follow=[]
x = PIXI.game.state.states.Boot._gameData.follow
for (i in x) {
PIXI.game.prodigy.player.backpack.data.follow[i] = {"ID": x[i].ID, "N": 1}
}
}
function getallItems() {
PIXI.game.prodigy.player.backpack.data.item=[]
x = PIXI.game.state.states.Boot._gameData.item
for (i in x) {
PIXI.game.prodigy.player.backpack.data.item[i] = {"ID": x[i].ID, "N": 9999999999}
}
}
function getallRelics() {
PIXI.game.prodigy.player.backpack.data.spellRelic=[]
x = PIXI.game.state.states.Boot._gameData.spellRelic
for (i in x) {
PIXI.game.prodigy.player.backpack.data.spellRelic[i] = {"ID": x[i].ID, "N": 99999999999999}
}
}
function getallHats() {
PIXI.game.prodigy.player.backpack.data.hat=[]
x = PIXI.game.state.states.Boot._gameData.hat
for (i in x) {
PIXI.game.prodigy.player.backpack.data.hat[i] = {"ID": x[i].ID, "N": 9999999999999999}
}
}
function getallOutfits() {
PIXI.game.prodigy.player.backpack.data.outfit=[]
x = PIXI.game.state.states.Boot._gameData.outfit
for (i in x) {
PIXI.game.prodigy.player.backpack.data.outfit[i] = {"ID": x[i].ID, "N": 99999999999999}
}
}
function getallBoots() {
PIXI.game.prodigy.player.backpack.data.boots=[]
x = PIXI.game.state.states.Boot._gameData.boots
for (i in x) {
PIXI.game.prodigy.player.backpack.data.boots[i] = {"ID": x[i].ID, "N": 99999999999999}
}
}
function getallWeapons() {
PIXI.game.prodigy.player.backpack.data.weapon=[]
x = PIXI.game.state.states.Boot._gameData.weapon
for (i in x) {
PIXI.game.prodigy.player.backpack.data.weapon[i] = {"ID": x[i].ID, "N": 1}
}
}
function getallGems() {
PIXI.game.prodigy.player.backpack.data.key=[]
x = PIXI.game.state.states.Boot._gameData.key
for (i in x) {
PIXI.game.prodigy.player.backpack.data.key[i] = {"ID": x[i].ID, "N": 1}
}
}
function FreeMembership(){
PIXI.game.prodigy.player.tt=true
}
function levelup(){
PIXI.game.prodigy.player.data.level=100
}
function levelUpPets() {
for (let PetLoopTest = 0; PetLoopTest < PIXI.game.prodigy.player.kennel.data.length; PetLoopTest++) {
PIXI.game.prodigy.player.kennel.data[PetLoopTest].level=100
};
}
var prodigydiv = document.createElement("prodigydiv");
prodigydiv.style.width = "100px";
prodigydiv.style.height = "100px";
prodigydiv.style.background = "black";
prodigydiv.style.color = "purple";
prodigydiv.innerHTML = '<button type="button" onclick="{prodigydiv.remove();}">Close</button> <button type="button" onclick="{FreeMembership();}">Free Membership</button> <button type="button" onclick="{PIXI.game.prodigy.debugMisc.smallLoan(10000000000000);}">1,000,000,000,0000 Coins</button> <button type="button" onclick="{PIXI.game.prodigy.debugMisc.getAllPets();}">Get All Pets</button> <button type="button" onclick="{PIXI.game.prodigy.player.backpack.data.item.push({"N":999999,"ID":130});}">Infinite Wheel Spins</button> <button type="button" onclick="{FreeAtSchool()}">Unlock Zones at School</button> <button type="button" onclick="{levelup()}">Level Up</button> <button type="button" onclick="{levelUpPets()}">Level Up Pets</button> <button type="button" onclick="{PIXI.game.prodigy.player.appearance._name.nickname=7}">W12-4RD Nickname</button> <button type="button" onclick="{getallBuddies()}">Get All Buddies</button> <button type="button" onclick="{getallItems()}">Get All Items</button> <button type="button" onclick="{getallRelics()}">Get All Relics</button> <button type="button" onclick="{getallHats()}">Get All Hats</button> <button type="button" onclick="{getallOutfits()}">Get All Outfits</button> <button type="button" onclick="{getallBoots()}">Get All Boots</button> <button type="button" onclick="{getallWeapons()}">Get All Weapons</button> <button type="button" onclick="{getallGems()}">Get All Gems</button><p>Custom Prodigy Mod Menu made by R1DD13 #8209</p>';
document.body.insertBefore(prodigydiv, document.body.firstChild);
@Cosmic-Kitten
Copy link

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);

})();

@andrewclark3244
Copy link

ok so everything in the like grey ish area?

@andrewclark3244
Copy link

in prodigy i think there was a bit of time where you could go over level 100 to 125 max

@andrewclark3244
Copy link

wow its been a year since i last played no joke

@andrewclark3244
Copy link

it doesnt seem to work...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment