Convert remaining scripts to Graal
Mainly missed scripts that use Nashorn's "Packages"
This commit is contained in:
@@ -65,9 +65,11 @@ function action(mode, type, selection) {
|
||||
|
||||
var mapObj = cm.getMap();
|
||||
mapObj.toggleDrops();
|
||||
|
||||
var mobObj = Packages.server.life.MapleLifeFactory.getMonster(9400518);
|
||||
mapObj.spawnMonsterOnGroundBelow(mobObj, new Packages.java.awt.Point(-245, 810));
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mobObj = MapleLifeFactory.getMonster(9400518);
|
||||
mapObj.spawnMonsterOnGroundBelow(mobObj, new Point(-245, 810));
|
||||
|
||||
cm.sendOk("The fierry appeared! Defeat it to get the #b#t4031596##k!");
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user