Convert reactor scripts to Graal
This commit is contained in:
@@ -26,12 +26,11 @@
|
||||
*
|
||||
*/
|
||||
|
||||
importPackage(Packages.server.life);
|
||||
|
||||
function act(){
|
||||
var startId = 9400523;
|
||||
var mobObj, mapObj = rm.getMap();
|
||||
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
for(var i = 0; i < 7; i++) {
|
||||
mobObj = MapleLifeFactory.getMonster(startId + Math.floor(Math.random() * 3));
|
||||
mapObj.spawnMonsterOnGroundBelow(mobObj, rm.getReactor().getPosition());
|
||||
|
||||
Reference in New Issue
Block a user