Convert reactor scripts to Graal

This commit is contained in:
P0nk
2021-04-17 20:03:24 +02:00
parent 984adc7885
commit 542a7b7fd2
10 changed files with 16 additions and 29 deletions

View File

@@ -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());