20 lines
444 B
JavaScript
20 lines
444 B
JavaScript
function getInactiveReactors(map) {
|
|
var reactors = [];
|
|
|
|
var iter = map.getReactors().iterator();
|
|
while (iter.hasNext()) {
|
|
var mo = iter.next();
|
|
if (mo.getState() >= 7) {
|
|
reactors.push(mo);
|
|
}
|
|
}
|
|
|
|
return reactors;
|
|
}
|
|
|
|
function start(ms) {
|
|
var map = ms.getClient().getChannelServer().getMapFactory().getMap(926120300);
|
|
map.resetReactors(getInactiveReactors(map));
|
|
|
|
return (true);
|
|
} |