Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hack] Ultimate Membership #139

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
1 change: 0 additions & 1 deletion cheatGUI/dist/bundle.js

Large diffs are not rendered by default.

26 changes: 25 additions & 1 deletion cheatGUI/src/hacks/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ new Hack(category.player, "Open ProdigyPNP Chat", "Opens a chat for ProdigyPNP u


// Begin Max Account
new Hack(category.player, "Max Account").setClick(async () => {
new Hack(category.player, "Max Account", "Gives you everything your account could possibly need.").setClick(async () => {
// max account made by gemsvidø

// ============================================
Expand Down Expand Up @@ -254,7 +254,31 @@ new Hack(category.player, "Set Level").setClick(async () => {
// End Set Level


// Begin Toggle membership
new Toggler(category.player, "Toggle Membership", "Gives you \"Level Up!\" Membership in Prodigy.").setEnabled(async () => {
_.instance.prodigy.gameContainer.get(getMemberModule()).data.membership.active = true;
_.player.appearanceChanged = true;
return Toast.fire("Success!", "You now have Prodigy membership!", "success");
}).setDisabled(() => {
_.instance.prodigy.gameContainer.get(getMemberModule()).data.membership.active = false;
_.player.appearanceChanged = true;
return Toast.fire("Success!", "You no longer have Prodigy membership!", "success");
});
// End Toggle membership


// Begin Ultimate membership
new Toggler(category.player, "Ultimate membership", "Gives you \"Ultimate\" Membership in Prodigy.").setEnabled(async () => {
player.hasLegacyMembership = () => false
player.appearanceChanged = true;
// prodigy.gameContainer.get(getMemberModule())._data.membership.__proto__.active
return Toast.fire("Success!", "You now have Ultimate membership!", "success");
}).setDisabled(() => {
player.hasLegacyMembership = () => true;
player.appearanceChanged = true;
return Toast.fire("Success!", "You no longer have Ultimate membership!", "success");
});
// End Ultimate membership



Expand Down
6 changes: 3 additions & 3 deletions cheatGUI/src/utils/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ export const player = _.player;
/** The alternate hack variable. */
export const current = window.Boot.prototype.game._state._current;

const base: { game: Game, prodigy: Prodigy } = _.instance;
const base : { game: Game, prodigy: Prodigy } = _.instance;

/** game */
export const game = base.game;
export const game : Game = base.game;

/** prodigy */
export const prodigy = base.prodigy;
export const prodigy : Prodigy = base.prodigy;

/** gameData */
export const gameData: GameData = _.instance.game.state.states.get("Boot").gameData;
Expand Down