Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/cheatGUI/src/hacks/patched.ts
Views: 723
// Patched Hacks123// BEGIN IMPORTS4import { Swal, Confirm, Toast } from "../utils/swal";5import { category} from "../index"; // Import the Cheat GUI bases.6import Hack from "../class/Hack";7import { _, prodigy, player } from "../utils/util"; // Import Prodigy typings and VERY_LARGE_NUMBER8// END IMPORTS910111213// BEGIN PATCHED HACKS14151617// Begin Arena Point Increaser18let interval: unknown | null = null;1920new Hack(category.patched, "Arena Point Increaser [Patched]").setClick(async () => {212223if (interval) {24return Swal.fire("Already Enabled", "Arena Point Increaser is already enabled.", "error");25} else if (!(await Confirm.fire("This hack is patched.", "Running it will probably do nothing.")).value) {26return console.log("Cancelled");27} else {2829interval = setInterval(async () => {30const data = await (31await fetch(32`https://api.prodigygame.com/leaderboard-api/season/${prodigy.pvpNetworkHandler.seasonID}/user/${player.userID}/pvp?userID=${player.userID}`, {33headers: {34// @ts-expect-error35authorization: `Bearer ${prodigy.network.jwtAuthProvider.getToken()}`,36"content-type": "application/x-www-form-urlencoded; charset=UTF-8",37},38body: `seasonID=${prodigy.pvpNetworkHandler.seasonID}&action=win`,39method: "POST",40mode: "cors",41}42)43).text();44if (data !== "") {45const jsoned: {46points: number;47weeklyPoints: number;48modifiedDate: string;49seasonID: number;50numMatches: number;51} = JSON.parse(data);52console.log(`[API] ${jsoned.points} Points (+100)`);53} else console.log(`[API] Failed to add points.`);54}, 60500);55return Swal.fire("Enabled", "Arena Point Increaser has been enabled.", "success");56}57});58// End Arena Point Increaser5960616263// Begin Disable Timeout Dialog64new Hack(category.patched, "Disable Timeout Dialog [Patched]").setClick(async () => {65if (!(await Confirm.fire("This hack is patched.", "Running it will probably do nothing.")).value) {66return console.log("Cancelled");67} else {68// @ts-expect-error69prodigy.debugMisc.disableTimeoutDialogue();70}71return Toast.fire("Enabled", "Timeout Dialog has been disabled.", "success");72});73// End Disable Timeout Dialog74757677787980/* Old Inventory hacks, replaced by Selector8182const inventoryHack = (name: string, id: BackpackItemType, amount: number = 1) => {83new Hack(category.inventory, `Obtain All ${name}`).setClick(async () => {84if (!(await Confirm.fire(`Are you sure you want to get all ${name}?`)).value) return;85player.backpack.data[id] = itemify(_.gameData[id], amount);86Toast.fire(87`${name} Added!`,88`All ${name.toLowerCase()} have been added to your inventory!`,89"success"90);91});92};93inventoryHack("Boots", "boots");94inventoryHack("Buddies", "follow");95inventoryHack("Fossils", "fossil", VERY_LARGE_NUMBER);96inventoryHack("Hats", "hat");97inventoryHack("Items", "item", VERY_LARGE_NUMBER);98inventoryHack("Key Items", "key", VERY_LARGE_NUMBER);99inventoryHack("Math Town Frames", "mathTownFrame", VERY_LARGE_NUMBER);100inventoryHack("Math Town Interiors", "mathTownInterior", VERY_LARGE_NUMBER);101inventoryHack("Mounts", "mount");102inventoryHack("Outfits", "outfit");103inventoryHack("Relics", "relic");104inventoryHack("Spell Relics", "spellRelic");105inventoryHack("Weapons", "weapon");106inventoryHack("Currency", "currency", VERY_LARGE_NUMBER);107108End Old Inventory Hacks */109110// END PATCHED HACKS111112113