sweetgum83/scripts/map/onUserEnter/926120300.js

20 lines
444 B
JavaScript
Raw Normal View History

2024-01-19 08:56:28 +00:00
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);
}