White scroll & PiratePQ fix + Party for starters + concurrency protection on event scripts
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.
This commit is contained in:
@@ -23,11 +23,22 @@
|
||||
*@Author Jvlaple
|
||||
*Pirate PQ Reactor
|
||||
*/
|
||||
|
||||
|
||||
function passedGrindMode(map, eim) {
|
||||
if(eim.getIntProperty("grindMode") == 0) return true;
|
||||
return eim.activatedAllReactorsOnMap(map, 2511000, 2517999);
|
||||
}
|
||||
|
||||
function act() {
|
||||
var eim = rm.getPlayer().getEventInstance();
|
||||
var now = parseInt(eim.getProperty("openedBoxes"));
|
||||
var now = eim.getIntProperty("openedBoxes");
|
||||
var nextNum = now + 1;
|
||||
eim.setProperty("openedBoxes", nextNum);
|
||||
eim.setIntProperty("openedBoxes", nextNum);
|
||||
|
||||
rm.dropItems(true, 1, 30, 60, 15);
|
||||
|
||||
var map = rm.getMap();
|
||||
if (map.getMonsters().size() == 0 && passedGrindMode(map, eim)) {
|
||||
eim.showClearEffect(map.getId());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user