Fixed successful scrolled items not using up an upgrade slot when using white scroll. Fixed some issues with the PiratePQ and added a "clear all boxes to complete a stage"-mode. Added "Party for Starters" feature. Added concurrency protection on event script modules.
14 lines
438 B
JavaScript
14 lines
438 B
JavaScript
function passedGrindMode(map, eim) {
|
|
if(eim.getIntProperty("grindMode") == 0) return true;
|
|
return eim.activatedAllReactorsOnMap(map, 2511000, 2517999);
|
|
}
|
|
|
|
function enter(pi) {
|
|
if (pi.getMap().getMonsters().size() == 0 && passedGrindMode(pi.getMap(), pi.getEventInstance())) {
|
|
pi.warp(925100300,0); //next
|
|
return(true);
|
|
} else {
|
|
pi.playerMessage(5, "The portal is not opened yet.");
|
|
return(false);
|
|
}
|
|
} |