-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: gemsvidø <gemsvido@gmail.com>
- Loading branch information
Showing
12 changed files
with
383 additions
and
335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
``` |