Convert portal scripts to Graal

This commit is contained in:
P0nk
2021-04-17 19:59:27 +02:00
parent 938f7c9390
commit 984adc7885
6 changed files with 14 additions and 17 deletions

View File

@@ -25,14 +25,13 @@
* @maps: All Dojo fighting maps
*/
importPackage(Packages.constants.game);
function enter(pi) {
try {
if (pi.getPlayer().getMap().getMonsterById(9300216) != null) {
pi.goDojoUp();
pi.getPlayer().getMap().setReactorState();
var stage = Math.floor(pi.getPlayer().getMapId() / 100) % 100;
const GameConstants = Java.type('constants.game.GameConstants');
if ((stage - (stage / 6) | 0) == pi.getPlayer().getVanquisherStage() && !GameConstants.isDojoPartyArea(pi.getPlayer().getMapId())) // we can also try 5 * stage / 6 | 0 + 1
pi.getPlayer().setVanquisherKills(pi.getPlayer().getVanquisherKills() + 1);
} else {