Convert map scripts to Graal

This commit is contained in:
P0nk
2021-04-17 19:53:15 +02:00
parent 3458d1c7b3
commit 938f7c9390
17 changed files with 75 additions and 77 deletions

View File

@@ -1,9 +1,9 @@
importPackage(Packages.server.life);
function start(ms){
var mobId = 3300000 + (Math.floor(Math.random() * 3) + 5);
var player = ms.getPlayer();
var map = player.getMap();
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), new java.awt.Point(-28, -67));
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const Point = Java.type('java.awt.Point');
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), new Point(-28, -67));
}