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,16 +1,16 @@
importPackage(Packages.server.life);
function start(ms) {
var player = ms.getPlayer();
var map = player.getMap();
function start(ms){
var player = ms.getPlayer();
var map = player.getMap();
if(player.isCygnus()) {
if(ms.isQuestStarted(20730) && ms.getQuestProgressInt(20730, 9300285) == 0) {
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(9300285), new java.awt.Point(680, 258));
}
} else {
if(ms.isQuestStarted(21731) && ms.getQuestProgressInt(21731, 9300344) == 0) {
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(9300344), new java.awt.Point(680, 258));
}
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const Point = Java.type('java.awt.Point');
if (player.isCygnus()) {
if (ms.isQuestStarted(20730) && ms.getQuestProgressInt(20730, 9300285) == 0) {
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(9300285), new Point(680, 258));
}
} else {
if (ms.isQuestStarted(21731) && ms.getQuestProgressInt(21731, 9300344) == 0) {
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(9300344), new Point(680, 258));
}
}
}