Convert portal scripts to Graal
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user