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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user