You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
newToggler(category.battle,"Disable math [PvP, PvE]","Disable math in PvP, PvE, anywhere! This doesn't work in the Floatling town.").setEnabled(async()=>{
17
20
18
-
// Use Prodigy's debug stuff to set EDUCATION_ENABLED to false
"You have successfully escaped from the PvE battle.",
97
+
"success"
98
+
);
99
+
}
76
100
});
77
101
// End Escape Battle
78
102
79
103
80
104
105
+
106
+
81
107
// Begin Win Battle
82
108
newHack(category.battle,"Win Battle [PvE]","Instantly win a battle in PvE.").setClick(async()=>{
109
+
83
110
constcurrentState=game.state.current;
84
-
console.log("Current State: "+currentState);
111
+
BattleInfo("Current State: "+currentState);
85
112
86
113
switch(currentState){
87
114
case"PVP":
@@ -113,56 +140,64 @@ new Hack(category.battle, "Win Battle [PvE]", "Instantly win a battle in PvE.").
113
140
);
114
141
}
115
142
143
+
116
144
});
117
145
// End Win Battle
118
146
119
147
120
148
121
149
150
+
151
+
122
152
// Begin Set Battle Hearts
123
153
newHack(category.battle,"Set Battle Hearts [PvP, PvE]","Sets your hearts in battle, automatically raise your max hearts in PvP or PvE.").setClick(async()=>{
124
-
consthp=awaitNumberInput.fire("Health Amount","How much HP do you want?","question");
125
-
if(hp.value===undefined)return;
126
-
_.player.getMaxHearts=()=>+hp.value;
127
-
_.player.pvpHP=+hp.value;
128
-
_.player.data.hp=+hp.value;
129
-
returnToast.fire("Success!","Your hearts have been set.","success");
154
+
consthp=awaitNumberInput.fire("Health Amount","How much HP do you want?","question");
155
+
if(hp.value===undefined)return;
156
+
_.player.getMaxHearts=()=>+hp.value;
157
+
_.player.pvpHP=+hp.value;
158
+
_.player.data.hp=+hp.value;
159
+
returnToast.fire("Success!","Your hearts have been set.","success");
130
160
});
131
161
// End Set Battle Hearts
132
162
133
163
134
164
165
+
166
+
135
167
// Begin Fill Battle Energy
136
168
newHack(category.battle,"Fill Battle Energy [PvP, PvE]","Fills up your battle energy, if you are in PvP or PvE.").setClick(async()=>{
137
-
conststate=game.state.getCurrentState();
138
-
if(!("teams"instate))returnToast.fire("Error","You are currently not in a battle.","error");
139
-
state.teams[0].setEnergy(99);
140
-
returnToast.fire("Success!","Your battle energy has been filled.","success");
169
+
conststate=game.state.getCurrentState();
170
+
if(!("teams"instate))returnToast.fire("Error","You are currently not in a battle.","error");
171
+
state.teams[0].setEnergy(99);
172
+
returnToast.fire("Success!","Your battle energy has been filled.","success");
141
173
});
142
174
// End Fill Battle Energy
143
175
144
176
145
177
146
178
179
+
180
+
147
181
// Begin Heal Team
148
182
newHack(category.battle,"Heal Team [PvE]","Instantly heals you and your pets, if you are in PvE.").setClick(async()=>{
149
183
150
184
151
-
constcurrentState: string=game.state.current;
185
+
constcurrentState: string=game.state.current;
152
186
153
187
154
-
if(currentState==="PVP"||currentState==="CoOp"){
188
+
if(currentState==="PVP"||currentState==="CoOp"){
155
189
156
-
returnToast.fire("Invalid State.","PvP is not supported for this hack.","error");
190
+
returnToast.fire("Invalid State.","PvP is not supported for this hack.","error");
0 commit comments