Convert map scripts to Graal
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
importPackage(Packages.server.life);
|
||||
|
||||
function start(ms) {
|
||||
var pos = new java.awt.Point(201, 80);
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var pos = new Point(201, 80);
|
||||
var mobId = 9400609;
|
||||
var mobName = "Andras";
|
||||
var mobName = "Andras";
|
||||
|
||||
var player = ms.getPlayer();
|
||||
var map = player.getMap();
|
||||
@@ -12,6 +11,7 @@ function start(ms) {
|
||||
return;
|
||||
}
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), pos);
|
||||
player.message(mobName + " has appeared!");
|
||||
}
|
||||
Reference in New Issue
Block a user