Rename and clean up MapleLifeFactory
This commit is contained in:
@@ -148,9 +148,9 @@ function setup(level, lobbyid) {
|
||||
|
||||
var mapObj = eim.getInstanceMap(670010700);
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mobObj = MapleLifeFactory.getMonster(9400536);
|
||||
var mobObj = LifeFactory.getMonster(9400536);
|
||||
mapObj.spawnMonsterOnGroundBelow(mobObj, new Point(942, 478));
|
||||
|
||||
respawnStages(eim);
|
||||
|
||||
@@ -40,9 +40,9 @@ function cancelSchedule() {
|
||||
}
|
||||
|
||||
function start() {
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
var mapObj = em.getChannelServer().getMapFactory().getMap(800020120); // original mapid was 251010101
|
||||
var mobObj = MapleLifeFactory.getMonster(6090002);
|
||||
var mobObj = LifeFactory.getMonster(6090002);
|
||||
|
||||
if(mapObj.getMonsterById(6090002) != null) {
|
||||
em.schedule("start", 3 * 60 *60 * 1000);
|
||||
|
||||
@@ -47,11 +47,11 @@ function start() {
|
||||
return;
|
||||
}
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
|
||||
var gcent = MapleLifeFactory.getMonster(5220004);
|
||||
var gcent = LifeFactory.getMonster(5220004);
|
||||
herbGarden.spawnMonsterOnGroundBelow(gcent, new Point(560, 50));
|
||||
herbGarden.broadcastMessage(PacketCreator.serverNotice(6, "From the mists surrounding the herb garden, the gargantuous Giant Centipede appears."));
|
||||
em.schedule("start", 3 * 60 *60 * 1000);
|
||||
|
||||
@@ -47,11 +47,11 @@ function start() {
|
||||
return;
|
||||
}
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
|
||||
var deo = MapleLifeFactory.getMonster(3220001);
|
||||
var deo = LifeFactory.getMonster(3220001);
|
||||
royalCatthusDesert.spawnMonsterOnGroundBelow(deo, new Point(645, 275));
|
||||
royalCatthusDesert.broadcastMessage(PacketCreator.serverNotice(6, "Deo slowly appeared out of the sand dust."));
|
||||
em.schedule("start", 3 * 60 *60 * 1000);
|
||||
|
||||
@@ -50,9 +50,9 @@ function start() {
|
||||
|
||||
const Point = Java.type('java.awt.Point');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
|
||||
var boss = MapleLifeFactory.getMonster(bossMobid);
|
||||
var boss = LifeFactory.getMonster(bossMobid);
|
||||
var bossPos = new Point(467, 0);
|
||||
map.spawnMonsterOnGroundBelow(boss, bossPos);
|
||||
map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg));
|
||||
|
||||
@@ -48,11 +48,11 @@ function start() {
|
||||
return;
|
||||
}
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
|
||||
var boss = MapleLifeFactory.getMonster(bossMobid);
|
||||
var boss = LifeFactory.getMonster(bossMobid);
|
||||
var bossPos = new Point(201, 80);
|
||||
map.spawnMonsterOnGroundBelow(boss, bossPos);
|
||||
map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg));
|
||||
|
||||
@@ -48,11 +48,11 @@ function start() {
|
||||
return;
|
||||
}
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
|
||||
var boss = MapleLifeFactory.getMonster(bossMobid);
|
||||
var boss = LifeFactory.getMonster(bossMobid);
|
||||
var bossPos = new Point(251, -841);
|
||||
map.spawnMonsterOnGroundBelow(boss, bossPos);
|
||||
map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg));
|
||||
|
||||
@@ -48,11 +48,11 @@ function start() {
|
||||
return;
|
||||
}
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
|
||||
var boss = MapleLifeFactory.getMonster(bossMobid);
|
||||
var boss = LifeFactory.getMonster(bossMobid);
|
||||
var bossPos = new Point(842, 0);
|
||||
map.spawnMonsterOnGroundBelow(boss, bossPos);
|
||||
map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg));
|
||||
|
||||
@@ -48,11 +48,11 @@ function start() {
|
||||
return;
|
||||
}
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
|
||||
var boss = MapleLifeFactory.getMonster(bossMobid);
|
||||
var boss = LifeFactory.getMonster(bossMobid);
|
||||
var bossPos = new Point(461, 61);
|
||||
map.spawnMonsterOnGroundBelow(boss, bossPos);
|
||||
map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg));
|
||||
|
||||
@@ -48,11 +48,11 @@ function start() {
|
||||
return;
|
||||
}
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
|
||||
var boss = MapleLifeFactory.getMonster(bossMobid);
|
||||
var boss = LifeFactory.getMonster(bossMobid);
|
||||
var bossPos = new Point(171, 50);
|
||||
map.spawnMonsterOnGroundBelow(boss, bossPos);
|
||||
map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg));
|
||||
|
||||
@@ -47,11 +47,11 @@ function start() {
|
||||
return;
|
||||
}
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
const spawnpoint = new Point(90, 119);
|
||||
dangeroudCroko1.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(6220000), spawnpoint);
|
||||
dangeroudCroko1.spawnMonsterOnGroundBelow(LifeFactory.getMonster(6220000), spawnpoint);
|
||||
dangeroudCroko1.broadcastMessage(PacketCreator.serverNotice(6, "The huge crocodile Dyle has come out from the swamp."));
|
||||
setupTask = em.schedule("start", 3 * 60 * 60 * 1000);
|
||||
}
|
||||
|
||||
@@ -43,8 +43,8 @@ function cancelSchedule() {
|
||||
}
|
||||
|
||||
function start() {
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
var eliza = MapleLifeFactory.getMonster(8220000);
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
var eliza = LifeFactory.getMonster(8220000);
|
||||
var stairwayToTheSky2 = em.getChannelServer().getMapFactory().getMap(200010300);
|
||||
|
||||
if(stairwayToTheSky2.getMonsterById(8220000) != null) {
|
||||
|
||||
@@ -47,11 +47,11 @@ function start() {
|
||||
return;
|
||||
}
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
|
||||
var faust1 = MapleLifeFactory.getMonster(5220002);
|
||||
var faust1 = LifeFactory.getMonster(5220002);
|
||||
const spawnpoint = new Point(456, 278);
|
||||
theForestOfEvil1.spawnMonsterOnGroundBelow(faust1, spawnpoint);
|
||||
theForestOfEvil1.broadcastMessage(PacketCreator.serverNotice(6, "Faust appeared amidst the blue fog."));
|
||||
|
||||
@@ -41,9 +41,9 @@ function cancelSchedule() {
|
||||
}
|
||||
|
||||
function start() {
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
var theForestOfEvil2 = em.getChannelServer().getMapFactory().getMap(100040106);
|
||||
var faust2 = MapleLifeFactory.getMonster(5220002);
|
||||
var faust2 = LifeFactory.getMonster(5220002);
|
||||
|
||||
if(theForestOfEvil2.getMonsterById(5220002) != null) {
|
||||
em.schedule("start", 3 * 60 *60 * 1000);
|
||||
|
||||
@@ -41,9 +41,9 @@ function cancelSchedule() {
|
||||
}
|
||||
|
||||
function start() {
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
var labSecretBasementPath = em.getChannelServer().getMapFactory().getMap(261030000);
|
||||
var chimera = MapleLifeFactory.getMonster(8220002);
|
||||
var chimera = LifeFactory.getMonster(8220002);
|
||||
|
||||
if(labSecretBasementPath.getMonsterById(8220002) != null) {
|
||||
em.schedule("start", 3 * 60 *60 * 1000);
|
||||
|
||||
@@ -49,8 +49,8 @@ function start() {
|
||||
return;
|
||||
}
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
var kingClang = MapleLifeFactory.getMonster(5220001);
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
var kingClang = LifeFactory.getMonster(5220001);
|
||||
var posX;
|
||||
var posY = 140;
|
||||
posX = Math.floor((Math.random() * 2400) - 1600);
|
||||
|
||||
@@ -42,8 +42,8 @@ function cancelSchedule() {
|
||||
|
||||
function start() {
|
||||
var goblinForest2 = em.getChannelServer().getMapFactory().getMap(250010504);
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
var kingSageCat = MapleLifeFactory.getMonster(7220002);
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
var kingSageCat = LifeFactory.getMonster(7220002);
|
||||
|
||||
if(goblinForest2.getMonsterById(7220002) != null) {
|
||||
em.schedule("start", 3 * 60 *60 * 1000);
|
||||
|
||||
@@ -42,8 +42,8 @@ function cancelSchedule() {
|
||||
|
||||
function start() {
|
||||
var leviathansCanyon = em.getChannelServer().getMapFactory().getMap(240040401);
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
var leviathan = MapleLifeFactory.getMonster(8220003);
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
var leviathan = LifeFactory.getMonster(8220003);
|
||||
if(leviathansCanyon.getMonsterById(8220003) != null) {
|
||||
em.schedule("start", 3 * 60 *60 * 1000);
|
||||
return;
|
||||
|
||||
@@ -41,8 +41,8 @@ function cancelSchedule() {
|
||||
|
||||
function start() {
|
||||
var thicketAroundTheBeach3 = em.getChannelServer().getMapFactory().getMap(104000400);
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
var mano = MapleLifeFactory.getMonster(2220000);
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
var mano = LifeFactory.getMonster(2220000);
|
||||
if(thicketAroundTheBeach3.getMonsterById(2220000) != null) {
|
||||
em.schedule("start", 3 * 60 * 60 * 1000);
|
||||
return;
|
||||
|
||||
@@ -42,8 +42,8 @@ function cancelSchedule() {
|
||||
|
||||
function start() {
|
||||
var moonRidge = em.getChannelServer().getMapFactory().getMap(222010310);
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
var nineTailedFox = MapleLifeFactory.getMonster(7220001);
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
var nineTailedFox = LifeFactory.getMonster(7220001);
|
||||
if(moonRidge.getMonsterById(7220001) != null) {
|
||||
em.schedule("start", 3 * 60 *60 * 1000);
|
||||
return;
|
||||
|
||||
@@ -43,8 +43,8 @@ function cancelSchedule() {
|
||||
|
||||
function start() {
|
||||
var theSeaweedTower = em.getChannelServer().getMapFactory().getMap(230020100);
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
var seruf = MapleLifeFactory.getMonster(4220001);
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
var seruf = LifeFactory.getMonster(4220001);
|
||||
|
||||
if(theSeaweedTower.getMonsterById(4220001) != null) {
|
||||
em.schedule("start", 3 * 60 * 60 * 1000);
|
||||
|
||||
@@ -50,11 +50,11 @@ function start() {
|
||||
var setPos = [[-626, -604], [735, -600]];
|
||||
var rndPos = setPos[Math.floor(Math.random() * setPos.length)];
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
|
||||
var snackBar = MapleLifeFactory.getMonster(8220008);
|
||||
var snackBar = LifeFactory.getMonster(8220008);
|
||||
snackBarMap.spawnMonsterOnGroundBelow(snackBar, new Point(rndPos[0], rndPos[1]));
|
||||
snackBarMap.broadcastMessage(PacketCreator.serverNotice(6, "Slowly, a suspicious food stand opens up on a strangely remote place."));
|
||||
em.schedule("start", 3 * 60 * 60 * 1000);
|
||||
|
||||
@@ -42,8 +42,8 @@ function cancelSchedule() {
|
||||
|
||||
function start() {
|
||||
var eastRockyMountain5 = em.getChannelServer().getMapFactory().getMap(101030404);
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
var stumpy = MapleLifeFactory.getMonster(3220000);
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
var stumpy = LifeFactory.getMonster(3220000);
|
||||
|
||||
if(eastRockyMountain5.getMonsterById(3220000) != null) {
|
||||
em.schedule("start", 3 * 60 * 60 * 1000);
|
||||
|
||||
@@ -42,8 +42,8 @@ function cancelSchedule() {
|
||||
|
||||
function start() {
|
||||
var territoryOfWanderingBear = em.getChannelServer().getMapFactory().getMap(250010304);
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
var taeRoon = MapleLifeFactory.getMonster(7220000);
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
var taeRoon = LifeFactory.getMonster(7220000);
|
||||
|
||||
if(territoryOfWanderingBear.getMonsterById(7220000) != null) {
|
||||
em.schedule("start", 3 * 60 * 60 * 1000);
|
||||
|
||||
@@ -41,8 +41,8 @@ function cancelSchedule() {
|
||||
|
||||
function start() {
|
||||
var whirlpoolOfTime = em.getChannelServer().getMapFactory().getMap(220050100);
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
var timer1 = MapleLifeFactory.getMonster(5220003);
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
var timer1 = LifeFactory.getMonster(5220003);
|
||||
|
||||
if(whirlpoolOfTime.getMonsterById(5220003) != null) {
|
||||
em.schedule("start", 3 * 60 * 60 * 1000);
|
||||
|
||||
@@ -42,8 +42,8 @@ function cancelSchedule() {
|
||||
|
||||
function start() {
|
||||
var lostTime1 = em.getChannelServer().getMapFactory().getMap(220050000);
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
var timer2 = MapleLifeFactory.getMonster(5220003);
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
var timer2 = LifeFactory.getMonster(5220003);
|
||||
|
||||
if(lostTime1.getMonsterById(5220003) != null) {
|
||||
em.schedule("start", 3 * 60 * 60 * 1000);
|
||||
|
||||
@@ -43,8 +43,8 @@ function cancelSchedule() {
|
||||
|
||||
function start() {
|
||||
var lostTime2 = em.getChannelServer().getMapFactory().getMap(220050200);
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
var timer3 = MapleLifeFactory.getMonster(5220003);
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
var timer3 = LifeFactory.getMonster(5220003);
|
||||
|
||||
if(lostTime2.getMonsterById(5220003) != null) {
|
||||
em.schedule("start", 3 * 60 * 60 * 1000);
|
||||
|
||||
@@ -47,11 +47,11 @@ function start() {
|
||||
return;
|
||||
}
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
|
||||
var zeno = MapleLifeFactory.getMonster(6220001);
|
||||
var zeno = LifeFactory.getMonster(6220001);
|
||||
graysPrairie.spawnMonsterOnGroundBelow(zeno, new Point(-4224, 776));
|
||||
graysPrairie.broadcastMessage(PacketCreator.serverNotice(6, "Zeno has appeared with a heavy sound of machinery."));
|
||||
em.schedule("start", 3 * 60 * 60 * 1000);
|
||||
|
||||
@@ -135,16 +135,16 @@ function releaseLeftClaw(eim) {
|
||||
function spawnBalrog(eim) {
|
||||
var mapObj = eim.getInstanceMap(entryMap);
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
mapObj.spawnFakeMonsterOnGroundBelow(MapleLifeFactory.getMonster(8830000), new Point(412, 258));
|
||||
mapObj.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8830002), new Point(412, 258));
|
||||
mapObj.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8830006), new Point(412, 258));
|
||||
mapObj.spawnFakeMonsterOnGroundBelow(LifeFactory.getMonster(8830000), new Point(412, 258));
|
||||
mapObj.spawnMonsterOnGroundBelow(LifeFactory.getMonster(8830002), new Point(412, 258));
|
||||
mapObj.spawnMonsterOnGroundBelow(LifeFactory.getMonster(8830006), new Point(412, 258));
|
||||
}
|
||||
|
||||
function spawnSealedBalrog(eim) {
|
||||
const Point = Java.type('java.awt.Point');
|
||||
eim.getInstanceMap(entryMap).spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(bossMobId), new Point(412, 258));
|
||||
eim.getInstanceMap(entryMap).spawnMonsterOnGroundBelow(LifeFactory.getMonster(bossMobId), new Point(412, 258));
|
||||
}
|
||||
|
||||
function playerEntry(eim, player) {
|
||||
|
||||
@@ -135,16 +135,16 @@ function releaseLeftClaw(eim) {
|
||||
function spawnBalrog(eim) {
|
||||
var mapObj = eim.getInstanceMap(entryMap);
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
mapObj.spawnFakeMonsterOnGroundBelow(MapleLifeFactory.getMonster(8830007), new Point(412, 258));
|
||||
mapObj.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8830009), new Point(412, 258));
|
||||
mapObj.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8830013), new Point(412, 258));
|
||||
mapObj.spawnFakeMonsterOnGroundBelow(LifeFactory.getMonster(8830007), new Point(412, 258));
|
||||
mapObj.spawnMonsterOnGroundBelow(LifeFactory.getMonster(8830009), new Point(412, 258));
|
||||
mapObj.spawnMonsterOnGroundBelow(LifeFactory.getMonster(8830013), new Point(412, 258));
|
||||
}
|
||||
|
||||
function spawnSealedBalrog(eim) {
|
||||
const Point = Java.type('java.awt.Point');
|
||||
eim.getInstanceMap(entryMap).spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(bossMobId), new Point(412, 258));
|
||||
eim.getInstanceMap(entryMap).spawnMonsterOnGroundBelow(LifeFactory.getMonster(bossMobId), new Point(412, 258));
|
||||
}
|
||||
|
||||
function playerEntry(eim, player) {
|
||||
|
||||
@@ -95,17 +95,17 @@ function approach() {
|
||||
}
|
||||
|
||||
function invasion() {
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
|
||||
var map1 = Boat_to_Ellinia;
|
||||
var pos1 = new java.awt.Point(-538, 143);
|
||||
map1.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8150000), pos1);
|
||||
map1.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8150000), pos1);
|
||||
map1.spawnMonsterOnGroundBelow(LifeFactory.getMonster(8150000), pos1);
|
||||
map1.spawnMonsterOnGroundBelow(LifeFactory.getMonster(8150000), pos1);
|
||||
|
||||
var map2 = Boat_to_Orbis;
|
||||
var pos2 = new java.awt.Point(339, 148);
|
||||
map2.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8150000), pos2);
|
||||
map2.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8150000), pos2);
|
||||
map2.spawnMonsterOnGroundBelow(LifeFactory.getMonster(8150000), pos2);
|
||||
map2.spawnMonsterOnGroundBelow(LifeFactory.getMonster(8150000), pos2);
|
||||
}
|
||||
|
||||
function cancelSchedule() {}
|
||||
|
||||
@@ -304,9 +304,9 @@ function snowmanEvolve(eim, curLevel) {
|
||||
eim.setIntProperty("snowmanLevel", curLevel + 2); // increment by 2 to decrement by 1 on friendlyKilled
|
||||
mapobj.killMonster(snowman, null, false, 2);
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var snowman = MapleLifeFactory.getMonster(9400317 + (5 * difficulty) + curLevel);
|
||||
var snowman = LifeFactory.getMonster(9400317 + (5 * difficulty) + curLevel);
|
||||
mapobj.spawnMonsterOnGroundBelow(snowman, new Point(-180, 15));
|
||||
|
||||
if(curLevel >= 4) {
|
||||
|
||||
@@ -304,9 +304,9 @@ function snowmanEvolve(eim, curLevel) {
|
||||
eim.setIntProperty("snowmanLevel", curLevel + 2); // increment by 2 to decrement by 1 on friendlyKilled
|
||||
mapobj.killMonster(snowman, null, false, 2);
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var snowman = MapleLifeFactory.getMonster(9400317 + (5 * difficulty) + curLevel);
|
||||
var snowman = LifeFactory.getMonster(9400317 + (5 * difficulty) + curLevel);
|
||||
mapobj.spawnMonsterOnGroundBelow(snowman, new Point(-180, 15));
|
||||
|
||||
if(curLevel >= 4) {
|
||||
|
||||
@@ -304,9 +304,9 @@ function snowmanEvolve(eim, curLevel) {
|
||||
eim.setIntProperty("snowmanLevel", curLevel + 2); // increment by 2 to decrement by 1 on friendlyKilled
|
||||
mapobj.killMonster(snowman, null, false, 2);
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var snowman = MapleLifeFactory.getMonster(9400317 + (5 * difficulty) + curLevel);
|
||||
var snowman = LifeFactory.getMonster(9400317 + (5 * difficulty) + curLevel);
|
||||
mapobj.spawnMonsterOnGroundBelow(snowman, new Point(-180, 15));
|
||||
|
||||
if(curLevel >= 4) {
|
||||
|
||||
@@ -96,15 +96,15 @@ function setup(channel) {
|
||||
eim.getInstanceMap(240060100).resetPQ(level);
|
||||
eim.getInstanceMap(240060200).resetPQ(level);
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var map, mob;
|
||||
map = eim.getInstanceMap(240060000);
|
||||
mob = MapleLifeFactory.getMonster(8810000);
|
||||
mob = LifeFactory.getMonster(8810000);
|
||||
map.spawnMonsterOnGroundBelow(mob, new Point(960, 120));
|
||||
|
||||
map = eim.getInstanceMap(240060100);
|
||||
mob = MapleLifeFactory.getMonster(8810001);
|
||||
mob = LifeFactory.getMonster(8810001);
|
||||
map.spawnMonsterOnGroundBelow(mob, new Point(-420, 120));
|
||||
|
||||
eim.startEventTimer(eventTime * 60000);
|
||||
|
||||
@@ -63,9 +63,9 @@ function respawn(eim){
|
||||
|
||||
var weddinghall = eim.getMapInstance(entryMap);
|
||||
weddinghall.getPortal(1).setPortalState(false);
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
weddinghall.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), new Point(292, 143));
|
||||
weddinghall.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), new Point(292, 143));
|
||||
} else {
|
||||
eim.schedule("respawn", 10000);
|
||||
}
|
||||
|
||||
@@ -54,9 +54,9 @@ function respawn(eim){
|
||||
|
||||
var weddinghall = eim.getMapInstance(entryMap);
|
||||
weddinghall.getPortal(1).setPortalState(false);
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
weddinghall.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), new Point(292, 143));
|
||||
weddinghall.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), new Point(292, 143));
|
||||
} else {
|
||||
eim.schedule("respawn", 10000);
|
||||
}
|
||||
|
||||
@@ -244,16 +244,16 @@ function respawnStages(eim) {
|
||||
var mapobj = eim.getMapInstance(926110401);
|
||||
var mobcount = mapobj.countMonster(9300150);
|
||||
var mobobj;
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
if(mobcount == 0) {
|
||||
mobobj = MapleLifeFactory.getMonster(9300150);
|
||||
mobobj = LifeFactory.getMonster(9300150);
|
||||
mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-278, -126));
|
||||
|
||||
mobobj = MapleLifeFactory.getMonster(9300150);
|
||||
mobobj = LifeFactory.getMonster(9300150);
|
||||
mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-542, -126));
|
||||
} else if(mobcount == 1) {
|
||||
mobobj = MapleLifeFactory.getMonster(9300150);
|
||||
mobobj = LifeFactory.getMonster(9300150);
|
||||
mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-542, -126));
|
||||
}
|
||||
}
|
||||
@@ -313,12 +313,12 @@ function yuleteAction(eim) {
|
||||
|
||||
mapobj.destroyNPC(2112010);
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mobobj1, mobobj2;
|
||||
for(var i = 0; i < 5; i++) {
|
||||
mobobj1 = MapleLifeFactory.getMonster(mob1);
|
||||
mobobj2 = MapleLifeFactory.getMonster(mob2);
|
||||
mobobj1 = LifeFactory.getMonster(mob1);
|
||||
mobobj2 = LifeFactory.getMonster(mob2);
|
||||
|
||||
mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(-455, 135));
|
||||
mapobj.spawnMonsterOnGroundBelow(mobobj2, new Point(-455, 135));
|
||||
@@ -326,8 +326,8 @@ function yuleteAction(eim) {
|
||||
|
||||
|
||||
for(var i = 0; i < 5; i++) {
|
||||
mobobj1 = MapleLifeFactory.getMonster(mob1);
|
||||
mobobj2 = MapleLifeFactory.getMonster(mob2);
|
||||
mobobj1 = LifeFactory.getMonster(mob1);
|
||||
mobobj2 = LifeFactory.getMonster(mob2);
|
||||
|
||||
mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(0, 135));
|
||||
mapobj.spawnMonsterOnGroundBelow(mobobj2, new Point(0, 135));
|
||||
@@ -335,8 +335,8 @@ function yuleteAction(eim) {
|
||||
|
||||
|
||||
for(var i = 0; i < 5; i++) {
|
||||
mobobj1 = MapleLifeFactory.getMonster(mob1);
|
||||
mobobj2 = MapleLifeFactory.getMonster(mob2);
|
||||
mobobj1 = LifeFactory.getMonster(mob1);
|
||||
mobobj2 = LifeFactory.getMonster(mob2);
|
||||
|
||||
mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(360, 135));
|
||||
mapobj.spawnMonsterOnGroundBelow(mobobj2, new Point(360, 135));
|
||||
|
||||
@@ -244,16 +244,16 @@ function respawnStages(eim) {
|
||||
var mapobj = eim.getMapInstance(926100401);
|
||||
var mobcount = mapobj.countMonster(9300150);
|
||||
var mobobj;
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
if(mobcount == 0) {
|
||||
mobobj = MapleLifeFactory.getMonster(9300150);
|
||||
mobobj = LifeFactory.getMonster(9300150);
|
||||
mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-278, -126));
|
||||
|
||||
mobobj = MapleLifeFactory.getMonster(9300150);
|
||||
mobobj = LifeFactory.getMonster(9300150);
|
||||
mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-542, -126));
|
||||
} else if(mobcount == 1) {
|
||||
mobobj = MapleLifeFactory.getMonster(9300150);
|
||||
mobobj = LifeFactory.getMonster(9300150);
|
||||
mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-542, -126));
|
||||
}
|
||||
}
|
||||
@@ -313,12 +313,12 @@ function yuleteAction(eim) {
|
||||
|
||||
mapobj.destroyNPC(2112000);
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mobobj1, mobobj2;
|
||||
for(var i = 0; i < 5; i++) {
|
||||
mobobj1 = MapleLifeFactory.getMonster(mob1);
|
||||
mobobj2 = MapleLifeFactory.getMonster(mob2);
|
||||
mobobj1 = LifeFactory.getMonster(mob1);
|
||||
mobobj2 = LifeFactory.getMonster(mob2);
|
||||
|
||||
mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(-455, 135));
|
||||
mapobj.spawnMonsterOnGroundBelow(mobobj2, new Point(-455, 135));
|
||||
@@ -326,8 +326,8 @@ function yuleteAction(eim) {
|
||||
|
||||
|
||||
for(var i = 0; i < 5; i++) {
|
||||
mobobj1 = MapleLifeFactory.getMonster(mob1);
|
||||
mobobj2 = MapleLifeFactory.getMonster(mob2);
|
||||
mobobj1 = LifeFactory.getMonster(mob1);
|
||||
mobobj2 = LifeFactory.getMonster(mob2);
|
||||
|
||||
mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(0, 135));
|
||||
mapobj.spawnMonsterOnGroundBelow(mobobj2, new Point(0, 135));
|
||||
@@ -335,8 +335,8 @@ function yuleteAction(eim) {
|
||||
|
||||
|
||||
for(var i = 0; i < 5; i++) {
|
||||
mobobj1 = MapleLifeFactory.getMonster(mob1);
|
||||
mobobj2 = MapleLifeFactory.getMonster(mob2);
|
||||
mobobj1 = LifeFactory.getMonster(mob1);
|
||||
mobobj2 = LifeFactory.getMonster(mob2);
|
||||
|
||||
mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(360, 135));
|
||||
mapobj.spawnMonsterOnGroundBelow(mobobj2, new Point(360, 135));
|
||||
|
||||
@@ -102,9 +102,9 @@ function setup(channel) {
|
||||
eim.getInstanceMap(270050200).resetPQ(level);
|
||||
eim.getInstanceMap(270050300).resetPQ(level);
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mob = MapleLifeFactory.getMonster(8820000);
|
||||
var mob = LifeFactory.getMonster(8820000);
|
||||
mob.disableDrops();
|
||||
eim.getInstanceMap(270050100).spawnMonsterOnGroundBelow(mob, new Point(0, -42));
|
||||
|
||||
@@ -234,8 +234,8 @@ function spawnJrBoss(mobObj, gotKilled) {
|
||||
spawnid = mobObj.getId() - 17;
|
||||
}
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
var mob = MapleLifeFactory.getMonster(spawnid);
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
var mob = LifeFactory.getMonster(spawnid);
|
||||
mobObj.getMap().spawnMonsterOnGroundBelow(mob, mobObj.getPosition());
|
||||
}
|
||||
|
||||
|
||||
@@ -72,9 +72,9 @@ function setEventRewards(eim) {
|
||||
function spawnCakeBoss(eim) {
|
||||
var mapObj = eim.getMapInstance(680000400);
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mobObj = MapleLifeFactory.getMonster(9400606);
|
||||
var mobObj = LifeFactory.getMonster(9400606);
|
||||
mapObj.spawnMonsterOnGroundBelow(mobObj, new Point(777, -177));
|
||||
}
|
||||
|
||||
|
||||
@@ -72,9 +72,9 @@ function setEventRewards(eim) {
|
||||
function spawnCakeBoss(eim) {
|
||||
var mapObj = eim.getMapInstance(680000400);
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mobObj = MapleLifeFactory.getMonster(9400606);
|
||||
var mobObj = LifeFactory.getMonster(9400606);
|
||||
mapObj.spawnMonsterOnGroundBelow(mobObj, new Point(777, -177));
|
||||
}
|
||||
|
||||
|
||||
@@ -9,8 +9,8 @@ function start(ms){
|
||||
return;
|
||||
}
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), new Point(-1027, 216));
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), new Point(-1027, 216));
|
||||
}
|
||||
}
|
||||
@@ -16,8 +16,8 @@ function spawnMob(x, y, id, map) {
|
||||
if(map.getMonsterById(id) != null)
|
||||
return;
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mob = MapleLifeFactory.getMonster(id);
|
||||
var mob = LifeFactory.getMonster(id);
|
||||
map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
|
||||
}
|
||||
@@ -16,8 +16,8 @@ function spawnMob(x, y, id, map) {
|
||||
if(map.getMonsterById(id) != null)
|
||||
return;
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mob = MapleLifeFactory.getMonster(id);
|
||||
var mob = LifeFactory.getMonster(id);
|
||||
map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
|
||||
}
|
||||
@@ -16,8 +16,8 @@ function spawnMob(x, y, id, map) {
|
||||
if(map.getMonsterById(id) != null)
|
||||
return;
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mob = MapleLifeFactory.getMonster(id);
|
||||
var mob = LifeFactory.getMonster(id);
|
||||
map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
|
||||
}
|
||||
@@ -16,8 +16,8 @@ function spawnMob(x, y, id, map) {
|
||||
if(map.getMonsterById(id) != null)
|
||||
return;
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mob = MapleLifeFactory.getMonster(id);
|
||||
var mob = LifeFactory.getMonster(id);
|
||||
map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
|
||||
}
|
||||
@@ -16,8 +16,8 @@ function spawnMob(x, y, id, map) {
|
||||
if(map.getMonsterById(id) != null)
|
||||
return;
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mob = MapleLifeFactory.getMonster(id);
|
||||
var mob = LifeFactory.getMonster(id);
|
||||
map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
|
||||
}
|
||||
@@ -11,7 +11,7 @@ function start(ms) {
|
||||
return;
|
||||
}
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), pos);
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), pos);
|
||||
player.message(mobName + " has appeared!");
|
||||
}
|
||||
@@ -11,7 +11,7 @@ function start(ms) {
|
||||
return;
|
||||
}
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), pos);
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), pos);
|
||||
player.message(mobName + " has appeared!");
|
||||
}
|
||||
@@ -11,7 +11,7 @@ function start(ms) {
|
||||
return;
|
||||
}
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), pos);
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), pos);
|
||||
player.message(mobName + " has appeared!");
|
||||
}
|
||||
@@ -11,7 +11,7 @@ function start(ms) {
|
||||
return;
|
||||
}
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), pos);
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), pos);
|
||||
player.message(mobName + " has appeared!");
|
||||
}
|
||||
@@ -11,7 +11,7 @@ function start(ms) {
|
||||
return;
|
||||
}
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), pos);
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), pos);
|
||||
player.message(mobName + " has appeared!");
|
||||
}
|
||||
@@ -11,7 +11,7 @@ function start(ms) {
|
||||
return;
|
||||
}
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), pos);
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), pos);
|
||||
player.message(mobName + " has appeared!");
|
||||
}
|
||||
@@ -2,15 +2,15 @@ function start(ms) {
|
||||
var player = ms.getPlayer();
|
||||
var map = player.getMap();
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
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));
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.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));
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(9300344), new Point(680, 258));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,8 +3,8 @@ function start(ms){
|
||||
var map = player.getMap();
|
||||
|
||||
if(ms.isQuestStarted(21747) && ms.getQuestProgressInt(21747, 9300351) == 0) {
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(9300351), new Point(897, 51));
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(9300351), new Point(897, 51));
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@ function start(ms) {
|
||||
map.resetPQ(1);
|
||||
|
||||
if(map.countMonster(9100013) == 0) {
|
||||
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(9100013), new java.awt.Point(82, 200));
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(9100013), new java.awt.Point(82, 200));
|
||||
}
|
||||
|
||||
return(true);
|
||||
|
||||
@@ -3,7 +3,7 @@ function start(ms){
|
||||
var player = ms.getPlayer();
|
||||
var map = player.getMap();
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), new Point(-28, -67));
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), new Point(-28, -67));
|
||||
}
|
||||
@@ -35,14 +35,14 @@ function action(mode, type, selection){
|
||||
var player = cm.getPlayer();
|
||||
var map = player.getMap();
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
for(var i = 0; i < 10; i++)
|
||||
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), new Point(117, 183));
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), new Point(117, 183));
|
||||
for(var i = 0; i < 10; i++)
|
||||
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), new Point(4, 183));
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), new Point(4, 183));
|
||||
for(var i = 0; i < 10; i++)
|
||||
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), new Point(-109, 183));
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), new Point(-109, 183));
|
||||
|
||||
cm.completeQuest(20718, 1103003);
|
||||
cm.gainExp(4000 * cm.getPlayer().getExpRate());
|
||||
|
||||
@@ -31,7 +31,7 @@ function action(mode, type, selection) {
|
||||
} else {
|
||||
const MapleLifeFactoroy = Java.type('server.life.MapleLifeFactoroy');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
cm.getWarpMap(910510202).spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(9300346), new Point(95, 200));
|
||||
cm.getWarpMap(910510202).spawnMonsterOnGroundBelow(LifeFactory.getMonster(9300346), new Point(95, 200));
|
||||
cm.warp(910510202, 0);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,9 +34,9 @@ function action(mode, type, selection) {
|
||||
if (mode == 0 && type > 0) {
|
||||
cm.getPlayer().dropMessage(5, "Eleanor: Oh, lost the Empress and still challenging us? Now you've done it! Prepare yourself!!!");
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
mapobj.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(9001010), new Point(850, 0));
|
||||
mapobj.spawnMonsterOnGroundBelow(LifeFactory.getMonster(9001010), new Point(850, 0));
|
||||
mapobj.destroyNPC(1104002);
|
||||
|
||||
cm.dispose();
|
||||
|
||||
@@ -63,8 +63,8 @@ function spawnMob(x, y, id, map) {
|
||||
if(map.getMonsterById(id) != null)
|
||||
return;
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mob = MapleLifeFactory.getMonster(id);
|
||||
var mob = LifeFactory.getMonster(id);
|
||||
map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
|
||||
}
|
||||
@@ -63,8 +63,8 @@ function spawnMob(x, y, id, map) {
|
||||
if(map.getMonsterById(id) != null)
|
||||
return;
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mob = MapleLifeFactory.getMonster(id);
|
||||
var mob = LifeFactory.getMonster(id);
|
||||
map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
|
||||
}
|
||||
@@ -63,8 +63,8 @@ function spawnMob(x, y, id, map) {
|
||||
if(map.getMonsterById(id) != null)
|
||||
return;
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mob = MapleLifeFactory.getMonster(id);
|
||||
var mob = LifeFactory.getMonster(id);
|
||||
map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
|
||||
}
|
||||
@@ -63,8 +63,8 @@ function spawnMob(x, y, id, map) {
|
||||
if(map.getMonsterById(id) != null)
|
||||
return;
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mob = MapleLifeFactory.getMonster(id);
|
||||
var mob = LifeFactory.getMonster(id);
|
||||
map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
|
||||
}
|
||||
@@ -63,8 +63,8 @@ function spawnMob(x, y, id, map) {
|
||||
if(map.getMonsterById(id) != null)
|
||||
return;
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mob = MapleLifeFactory.getMonster(id);
|
||||
var mob = LifeFactory.getMonster(id);
|
||||
map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
|
||||
}
|
||||
@@ -90,7 +90,7 @@ function action(mode, type, selection) {
|
||||
} else {
|
||||
var state = eim.getIntProperty("yuletePassed");
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
if(state == -1) {
|
||||
cm.sendOk("Behold! The pinnacle of Magatia's alchemy studies! Hahahahahahaha...");
|
||||
@@ -99,7 +99,7 @@ function action(mode, type, selection) {
|
||||
eim.dropMessage(5, "Yulete: I present you my newest weapon, brought by the finest alchemy, Frankenroid!");
|
||||
|
||||
var mapobj = eim.getMapInstance(926100401);
|
||||
var bossobj = MapleLifeFactory.getMonster(9300139);
|
||||
var bossobj = LifeFactory.getMonster(9300139);
|
||||
|
||||
//mapobj.spawnMonsterWithEffect(bossobj, 13, new Packages.java.awt.Point(250, 100));
|
||||
mapobj.spawnMonsterOnGroundBelow(bossobj, new Point(250, 100));
|
||||
@@ -111,7 +111,7 @@ function action(mode, type, selection) {
|
||||
eim.dropMessage(5, "Yulete: I present you my newest weapon, brought by the finest combined alchemy of Alcadno's and Zenumist's, those that the boring people of Magatia societies have banned to bring along, the mighty Frankenroid!!");
|
||||
|
||||
var mapobj = eim.getMapInstance(926100401);
|
||||
var bossobj = MapleLifeFactory.getMonster(9300140);
|
||||
var bossobj = LifeFactory.getMonster(9300140);
|
||||
|
||||
//mapobj.spawnMonsterWithEffect(bossobj, 14, new Packages.java.awt.Point(250, 100));
|
||||
mapobj.spawnMonsterOnGroundBelow(bossobj, new Point(250, 100));
|
||||
|
||||
@@ -90,7 +90,7 @@ function action(mode, type, selection) {
|
||||
} else {
|
||||
var state = eim.getIntProperty("yuletePassed");
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
if(state == -1) {
|
||||
cm.sendOk("Behold! The pinnacle of Magatia's alchemy studies! Hahahahahahaha...");
|
||||
@@ -99,7 +99,7 @@ function action(mode, type, selection) {
|
||||
eim.dropMessage(5, "Yulete: I present you my newest weapon, brought by the finest alchemy, Frankenroid!");
|
||||
|
||||
var mapobj = eim.getMapInstance(926110401);
|
||||
var bossobj = MapleLifeFactory.getMonster(9300151);
|
||||
var bossobj = LifeFactory.getMonster(9300151);
|
||||
mapobj.spawnMonsterOnGroundBelow(bossobj, new Point(250, 100));
|
||||
|
||||
eim.setIntProperty("statusStg7", 1);
|
||||
@@ -109,7 +109,7 @@ function action(mode, type, selection) {
|
||||
eim.dropMessage(5, "Yulete: I present you my newest weapon, brought by the finest combined alchemy of Alcadno's and Zenumist's, those that the boring people of Magatia societies have banned to bring along, the mighty Frankenroid!!");
|
||||
|
||||
var mapobj = eim.getMapInstance(926110401);
|
||||
var bossobj = MapleLifeFactory.getMonster(9300152);
|
||||
var bossobj = LifeFactory.getMonster(9300152);
|
||||
mapobj.spawnMonsterOnGroundBelow(bossobj, new Point(250, 100));
|
||||
|
||||
eim.setIntProperty("statusStg7", 2);
|
||||
|
||||
@@ -211,8 +211,8 @@ function randX() {
|
||||
}
|
||||
|
||||
function spawnMob(id, x, y, map) {
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mob = MapleLifeFactory.getMonster(id);
|
||||
var mob = LifeFactory.getMonster(id);
|
||||
map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
|
||||
}
|
||||
@@ -129,7 +129,7 @@ function insidePqAction(mode, type, selection) {
|
||||
}
|
||||
}
|
||||
} else if(status == 1) {
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
|
||||
if(stg == -1) {
|
||||
@@ -140,7 +140,7 @@ function insidePqAction(mode, type, selection) {
|
||||
}
|
||||
|
||||
mapobj.allowSummonState(true);
|
||||
var snowman = MapleLifeFactory.getMonster(9400317 + (5 * difficulty));
|
||||
var snowman = LifeFactory.getMonster(9400317 + (5 * difficulty));
|
||||
mapobj.spawnMonsterOnGroundBelow(snowman, new Point(-180, 15));
|
||||
eim.setIntProperty("snowmanLevel", 1);
|
||||
eim.dropMessage(5, "The snowman appeared on the field! Protect it using all means necessary!");
|
||||
@@ -158,7 +158,7 @@ function insidePqAction(mode, type, selection) {
|
||||
mapobj.broadcastStringMessage(5, "As the snowman grows to it's prime, the Scrooge appears!");
|
||||
eim.getEm().getIv().invokeFunction("snowmanHeal", eim);
|
||||
|
||||
var boss = MapleLifeFactory.getMonster(9400318 + difficulty);
|
||||
var boss = LifeFactory.getMonster(9400318 + difficulty);
|
||||
mapobj.spawnMonsterOnGroundBelow(boss, new Point(-180, 15));
|
||||
eim.setProperty("spawnedBoss", "true");
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ function spawnMobs(maxSpawn) {
|
||||
var spawnPosY;
|
||||
|
||||
var mapObj = cm.getMap();
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
if (stage == 2) {
|
||||
spawnPosX = [619, 299, 47, -140, -471];
|
||||
@@ -45,9 +45,9 @@ function spawnMobs(maxSpawn) {
|
||||
|
||||
for(var i = 0; i < 5; i++) {
|
||||
for(var j = 0; j < 2; j++) {
|
||||
var mobObj1 = MapleLifeFactory.getMonster(9400515);
|
||||
var mobObj2 = MapleLifeFactory.getMonster(9400516);
|
||||
var mobObj3 = MapleLifeFactory.getMonster(9400517);
|
||||
var mobObj1 = LifeFactory.getMonster(9400515);
|
||||
var mobObj2 = LifeFactory.getMonster(9400516);
|
||||
var mobObj3 = LifeFactory.getMonster(9400517);
|
||||
|
||||
mapObj.spawnMonsterOnGroundBelow(mobObj1, new Point(spawnPosX[i], spawnPosY[i]));
|
||||
mapObj.spawnMonsterOnGroundBelow(mobObj2, new Point(spawnPosX[i], spawnPosY[i]));
|
||||
@@ -62,7 +62,7 @@ function spawnMobs(maxSpawn) {
|
||||
var rndMob = 9400519 + Math.floor(Math.random() * 4);
|
||||
var rndPos = Math.floor(Math.random() * 5);
|
||||
|
||||
var mobObj = MapleLifeFactory.getMonster(rndMob);
|
||||
var mobObj = LifeFactory.getMonster(rndMob);
|
||||
mapObj.spawnMonsterOnGroundBelow(mobObj, new Point(spawnPosX[rndPos], spawnPosY[rndPos]));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,9 +66,9 @@ function action(mode, type, selection) {
|
||||
var mapObj = cm.getMap();
|
||||
mapObj.toggleDrops();
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mobObj = MapleLifeFactory.getMonster(9400518);
|
||||
var mobObj = LifeFactory.getMonster(9400518);
|
||||
mapObj.spawnMonsterOnGroundBelow(mobObj, new Point(-245, 810));
|
||||
|
||||
cm.sendOk("The fierry appeared! Defeat it to get the #b#t4031596##k!");
|
||||
|
||||
@@ -244,9 +244,9 @@ function getPlayerCardTierPower() {
|
||||
countTier[ceTier] += ce.getValue();
|
||||
|
||||
if (ceTier >= 8) { // is special card
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const MapleItemInformationProvider = Java.type('server.MapleItemInformationProvider');
|
||||
var mobLevel = MapleLifeFactory.getMonsterLevel(MapleItemInformationProvider.getInstance().getCardMobId(cardid));
|
||||
var mobLevel = LifeFactory.getMonsterLevel(MapleItemInformationProvider.getInstance().getCardMobId(cardid));
|
||||
var mobTier = getLevelTier(mobLevel) - 1;
|
||||
|
||||
countTier[mobTier] += (ce.getValue() * 1.2);
|
||||
|
||||
@@ -7,10 +7,10 @@ function enter(pi) {
|
||||
var chests = parseInt(eim.getProperty("openedChests"));
|
||||
var boss;
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
if(chests == 0) boss = MapleLifeFactory.getMonster(9300119); //lord pirate
|
||||
else if(chests == 1) boss = MapleLifeFactory.getMonster(9300105); //angry lord pirate
|
||||
else boss = MapleLifeFactory.getMonster(9300106); //enraged lord pirate
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
if(chests == 0) boss = LifeFactory.getMonster(9300119); //lord pirate
|
||||
else if(chests == 1) boss = LifeFactory.getMonster(9300105); //angry lord pirate
|
||||
else boss = LifeFactory.getMonster(9300106); //enraged lord pirate
|
||||
|
||||
boss.changeDifficulty(level, true);
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
function enter(pi) {
|
||||
var mapobj = pi.getWarpMap(104000004);
|
||||
if(pi.isQuestActive(21733) && pi.getQuestProgressInt(21733, 9300345) == 0 && mapobj.countMonsters() == 0) {
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
mapobj.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(9300345), new Point(0, 0));
|
||||
mapobj.spawnMonsterOnGroundBelow(LifeFactory.getMonster(9300345), new Point(0, 0));
|
||||
pi.setQuestProgress(21733, 21762, 2);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,8 +34,8 @@ function spawnMob(x, y, id, map) {
|
||||
if(map.getMonsterById(id) != null)
|
||||
return;
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mob = MapleLifeFactory.getMonster(id);
|
||||
var mob = LifeFactory.getMonster(id);
|
||||
map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
|
||||
}
|
||||
@@ -7,9 +7,9 @@ function enter(pi) {
|
||||
mapobj1.resetPQ(1);
|
||||
mapobj2.resetPQ(1);
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
mapobj2.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(9300348), new Point(591, -34));
|
||||
mapobj2.spawnMonsterOnGroundBelow(LifeFactory.getMonster(9300348), new Point(591, -34));
|
||||
|
||||
pi.playPortalSound(); pi.warp(920030000,2);
|
||||
return true;
|
||||
|
||||
@@ -42,8 +42,8 @@ function spawnMob(x, y, id, map) {
|
||||
if(map.getMonsterById(id) != null)
|
||||
return;
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mob = MapleLifeFactory.getMonster(id);
|
||||
var mob = LifeFactory.getMonster(id);
|
||||
map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
|
||||
}
|
||||
@@ -75,8 +75,8 @@ function spawnMob(x, y, id, map) {
|
||||
if(map.getMonsterById(id) != null)
|
||||
return;
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mob = MapleLifeFactory.getMonster(id);
|
||||
var mob = LifeFactory.getMonster(id);
|
||||
map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
|
||||
}
|
||||
@@ -24,8 +24,8 @@ function spawnJrBoss(mobObj) {
|
||||
mobObj.getMap().killMonster(mobObj.getId());
|
||||
var spawnid = mobObj.getId() - 17;
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
var mob = MapleLifeFactory.getMonster(spawnid);
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
var mob = LifeFactory.getMonster(spawnid);
|
||||
mobObj.getMap().spawnMonsterOnGroundBelow(mob, mobObj.getPosition());
|
||||
}
|
||||
|
||||
|
||||
@@ -30,9 +30,9 @@ function act(){
|
||||
var startId = 9400523;
|
||||
var mobObj, mapObj = rm.getMap();
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
for(var i = 0; i < 7; i++) {
|
||||
mobObj = MapleLifeFactory.getMonster(startId + Math.floor(Math.random() * 3));
|
||||
mobObj = LifeFactory.getMonster(startId + Math.floor(Math.random() * 3));
|
||||
mapObj.spawnMonsterOnGroundBelow(mobObj, rm.getReactor().getPosition());
|
||||
}
|
||||
}
|
||||
@@ -30,9 +30,9 @@ function act(){
|
||||
var startId = 9400523;
|
||||
var mobObj, mapObj = rm.getMap();
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
for(var i = 0; i < 7; i++) {
|
||||
mobObj = MapleLifeFactory.getMonster(startId + Math.floor(Math.random() * 3));
|
||||
mobObj = LifeFactory.getMonster(startId + Math.floor(Math.random() * 3));
|
||||
mapObj.spawnMonsterOnGroundBelow(mobObj, rm.getReactor().getPosition());
|
||||
}
|
||||
}
|
||||
@@ -30,9 +30,9 @@ function act(){
|
||||
var startId = 9400523;
|
||||
var mobObj, mapObj = rm.getMap();
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
for(var i = 0; i < 7; i++) {
|
||||
mobObj = MapleLifeFactory.getMonster(startId + Math.floor(Math.random() * 3));
|
||||
mobObj = LifeFactory.getMonster(startId + Math.floor(Math.random() * 3));
|
||||
mapObj.spawnMonsterOnGroundBelow(mobObj, rm.getReactor().getPosition());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user