16 lines
654 B
JavaScript
16 lines
654 B
JavaScript
|
function act() {
|
||
|
var eim = rm.getEventInstance();
|
||
|
if (eim != null) {
|
||
|
var react = rm.getReactor().getMap().getReactorByName("fullmoon");
|
||
|
var stage = parseInt(eim.getProperty("stage")) + 1;
|
||
|
var newStage = stage.toString();
|
||
|
eim.setProperty("stage", newStage);
|
||
|
react.forceHitReactor(react.getState() + 1);
|
||
|
if (eim.getProperty("stage") === "6") {
|
||
|
rm.mapMessage(6, "Protect the Moon Bunny!!!");
|
||
|
var map = eim.getMapInstance(rm.getReactor().getMap().getId());
|
||
|
map.allowSummonState(true);
|
||
|
map.spawnMonsterOnGroundBelow(9300061, -183, -433);
|
||
|
}
|
||
|
}
|
||
|
}
|