Convert quest scripts to Graal

This commit is contained in:
P0nk
2021-04-17 20:22:49 +02:00
parent 542a7b7fd2
commit 256e5688e0
42 changed files with 116 additions and 181 deletions

View File

@@ -1,5 +1,3 @@
importPackage(Packages.server.life);
var status = -1;
function start(mode, type, selection) {
@@ -76,7 +74,9 @@ function end(mode, type, selection) {
function spawnMob(x, y, id, map) {
if(map.getMonsterById(id) != null)
return;
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const Point = Java.type('java.awt.Point');
var mob = MapleLifeFactory.getMonster(id);
map.spawnMonsterOnGroundBelow(mob, new java.awt.Point(x, y));
map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
}