Skip to content

Commit

Permalink
Merge branch 'master' into kennel
Browse files Browse the repository at this point in the history
Signed-off-by: gemsvidø <gemsvido@gmail.com>
  • Loading branch information
afkvido authored Sep 6, 2022
2 parents c1f5fad + 78be9c6 commit afc6df9
Show file tree
Hide file tree
Showing 12 changed files with 383 additions and 335 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<p align="center">
<strong>
<a href="https://prodigypnp.github.io/">Website</a>
<a href="https://prodigypnp.com">Website</a>
<a href="https://dsc.gg/ProdigyPNP">Discord</a>
Expand Down
2 changes: 1 addition & 1 deletion cheatGUI/dist/bundle.js

Large diffs are not rendered by default.

605 changes: 281 additions & 324 deletions cheatGUI/package-lock.json

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions cheatGUI/src/hacks/beta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// BEGIN IMPORTS
import { Swal, Toast, NumberInput, Input, Confirm } from "../utils/swal"; // Import Swal, Toast, NumberInput, Input, and Confirm from swal
import { Hack, category, Toggler } from "../index"; // Import the Cheat GUI bases.
import { _, getItem, VERY_LARGE_NUMBER, prodigy, saveCharacter, player} from "../utils/util"; // Import prodigy typings, and VERY_LARGE_NUMBER
import { _, getItem, VERY_LARGE_NUMBER, prodigy, saveCharacter, player, current} from "../utils/util"; // Import prodigy typings, and VERY_LARGE_NUMBER
import { ids, itemify, runeify, getPet } from "../utils/hackify"; // Import runeify and some arrays
import { PopupInterval } from "../utils/popupCloser";
// END IMPORTS
Expand Down Expand Up @@ -186,7 +186,12 @@ new Hack(category.beta, "Morph Player [BETA]", "Morph into a pet, furnishing, or




new Toggler(category.beta, "(client side) Toggle Invisibility [BETA]", "Lets you appear invisible on your own screen.").setEnabled(async () => {
// current.user.alpha = 0;
current.user.visible = false;
}).setDisabled(async() => {
current.user.visible = true;
});


// Begin Toggle Close Popups
Expand Down
13 changes: 11 additions & 2 deletions cheatGUI/src/hacks/location.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
// Location Hacks

// BEGIN IMPORTS
import { Hack, category } from "../index"; // Import the Cheat GUI bases.
import { Hack, category, Toggler } from "../index"; // Import the Cheat GUI bases.
import { NumberInput, Swal, Toast } from "../utils/swal"; // Import Swal, Toast, and NumberInput from swal
import { _, locations, prodigy, player } from "../utils/util"; // Import Prodigy typings
import { toHouse } from "../utils/hackify"; // Import toHouse
// END IMPORTS

export var useWASD : boolean = true;

// BEGIN LOCATION HACKS


// BEGIN LOCATION HACKS
// WASD Phasing
new Toggler(category.location, "WASD Movement", "Allows you to walk through walls or on air with WASD movement in Prodigy.").setEnabled(async () => {
useWASD = true;
return Toast.fire("Enabled!", "WASD Movement is now enabled.", "success");
}).setDisabled(async () => {
useWASD = false;
return Toast.fire("Disabled!", "WASD Movement is now disabled.", "success");
}).status = true;



Expand Down
4 changes: 3 additions & 1 deletion cheatGUI/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ menuleft.classList.add("menu-left");
menu.append(menuleft);

let firstCategory = true;
const addArea = (title: string) : HTMLDivElement => {

function addArea (title: string) {

const area = document.createElement("div");

if (firstCategory == false) {
Expand Down
9 changes: 6 additions & 3 deletions cheatGUI/src/utils/keybinds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@ import { Confirm, Toast } from "../utils/swal"; // Import Swal, Toast, Confirm,





window.addEventListener("keydown", event => {




switch (event.which) {
switch (event.key) {

case 192: // --- 192 = ` -- Grave Accent
case "`":
// Close All Popups
_.instance.prodigy.open.menuCloseAll();
break;

case 220: // --- 220 = \ -- Backslash
case "\\":
// Gets you kitted up in Celestial Gear
const k = async () => {

Expand All @@ -38,6 +40,7 @@ window.addEventListener("keydown", event => {
};
k();
break;

}


Expand Down
43 changes: 43 additions & 0 deletions cheatGUI/src/utils/wasd.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import { useWASD } from "../hacks/location";
import { player } from "./util";



async function ChangeX (x : number) {
for (let i = 0; i < 100; i++) {
await new Promise(r => setTimeout(r, 2));
player._playerContainer.x -= x/100;;
}
}

async function ChangeY (y : number) {
for (let i = 0; i < 100; i++) {
await new Promise(r => setTimeout(r, 2));
player._playerContainer.y -= y/100;;
}
}





window.addEventListener("keydown", event => {

if (useWASD) {
switch (event.key) {
case "w":
ChangeY(40);
break;
case "s":
ChangeY(-40);
break;
case "a":
ChangeX(40);
break;
case "d":
ChangeX(-40);
break;
}
}

});
2 changes: 1 addition & 1 deletion meta/YOUTUBE_ATTRIBUTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ If you're posting a video with our hacks, please make sure to add this to your v
```tx
Hacks are by ProdigyPNP - https://github.com/ProdigyPNP
ProdigyPNP Discord - https://dsc.gg/ProdigyPNP
ProdigyPNP Website - https://ProdigyPNP.github.io
ProdigyPNP Website - https://ProdigyPNP.com
```

*If you'd like an exception, please contact us on [our Discord server](https://dsc.gg/ProdigyPNP). We're friendly, we promise!*
10 changes: 10 additions & 0 deletions meta/hacks/battle/Disable math.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: "Disable Math"
---

This hack disables math in PvP, PvE, some boss battles, mostly everywhere. However, it doesn't work in some new places like the Floatling Town.


```typescript
_.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"] = true;
```
9 changes: 9 additions & 0 deletions meta/hacks/battle/Escape Battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: "Escape Battle"
---

Instantly teleports you out of a battle that you're in.

```typescript
Object.fromEntries(_.instance.game.state.states)[currentState].runAwayCallback();
```
10 changes: 10 additions & 0 deletions meta/hacks/battle/Fill Battle Energy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: "Fill Battle Energy"
---

Fills your battle energy (used for All Out Attack, Relic Spells, Wand Spells, etc.), if you're in PvP, PvE, most battles.


```typescript
_.instance.state.getCurrentState().teams[0].setEnergy(99);
```

0 comments on commit afc6df9

Please sign in to comment.