Rename and clean up MapleLifeFactory

This commit is contained in:
P0nk
2021-09-09 22:04:57 +02:00
parent 1f349d1dae
commit 38c700ca48
113 changed files with 309 additions and 308 deletions

View File

@@ -148,9 +148,9 @@ function setup(level, lobbyid) {
var mapObj = eim.getInstanceMap(670010700); 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'); const Point = Java.type('java.awt.Point');
var mobObj = MapleLifeFactory.getMonster(9400536); var mobObj = LifeFactory.getMonster(9400536);
mapObj.spawnMonsterOnGroundBelow(mobObj, new Point(942, 478)); mapObj.spawnMonsterOnGroundBelow(mobObj, new Point(942, 478));
respawnStages(eim); respawnStages(eim);

View File

@@ -40,9 +40,9 @@ function cancelSchedule() {
} }
function start() { 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 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) { if(mapObj.getMonsterById(6090002) != null) {
em.schedule("start", 3 * 60 *60 * 1000); em.schedule("start", 3 * 60 *60 * 1000);

View File

@@ -47,11 +47,11 @@ function start() {
return; return;
} }
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
const PacketCreator = Java.type('tools.PacketCreator'); const PacketCreator = Java.type('tools.PacketCreator');
var gcent = MapleLifeFactory.getMonster(5220004); var gcent = LifeFactory.getMonster(5220004);
herbGarden.spawnMonsterOnGroundBelow(gcent, new Point(560, 50)); herbGarden.spawnMonsterOnGroundBelow(gcent, new Point(560, 50));
herbGarden.broadcastMessage(PacketCreator.serverNotice(6, "From the mists surrounding the herb garden, the gargantuous Giant Centipede appears.")); herbGarden.broadcastMessage(PacketCreator.serverNotice(6, "From the mists surrounding the herb garden, the gargantuous Giant Centipede appears."));
em.schedule("start", 3 * 60 *60 * 1000); em.schedule("start", 3 * 60 *60 * 1000);

View File

@@ -47,11 +47,11 @@ function start() {
return; return;
} }
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
const PacketCreator = Java.type('tools.PacketCreator'); const PacketCreator = Java.type('tools.PacketCreator');
var deo = MapleLifeFactory.getMonster(3220001); var deo = LifeFactory.getMonster(3220001);
royalCatthusDesert.spawnMonsterOnGroundBelow(deo, new Point(645, 275)); royalCatthusDesert.spawnMonsterOnGroundBelow(deo, new Point(645, 275));
royalCatthusDesert.broadcastMessage(PacketCreator.serverNotice(6, "Deo slowly appeared out of the sand dust.")); royalCatthusDesert.broadcastMessage(PacketCreator.serverNotice(6, "Deo slowly appeared out of the sand dust."));
em.schedule("start", 3 * 60 *60 * 1000); em.schedule("start", 3 * 60 *60 * 1000);

View File

@@ -50,9 +50,9 @@ function start() {
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
const PacketCreator = Java.type('tools.PacketCreator'); 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); var bossPos = new Point(467, 0);
map.spawnMonsterOnGroundBelow(boss, bossPos); map.spawnMonsterOnGroundBelow(boss, bossPos);
map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg)); map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg));

View File

@@ -48,11 +48,11 @@ function start() {
return; return;
} }
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
const PacketCreator = Java.type('tools.PacketCreator'); const PacketCreator = Java.type('tools.PacketCreator');
var boss = MapleLifeFactory.getMonster(bossMobid); var boss = LifeFactory.getMonster(bossMobid);
var bossPos = new Point(201, 80); var bossPos = new Point(201, 80);
map.spawnMonsterOnGroundBelow(boss, bossPos); map.spawnMonsterOnGroundBelow(boss, bossPos);
map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg)); map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg));

View File

@@ -48,11 +48,11 @@ function start() {
return; return;
} }
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
const PacketCreator = Java.type('tools.PacketCreator'); const PacketCreator = Java.type('tools.PacketCreator');
var boss = MapleLifeFactory.getMonster(bossMobid); var boss = LifeFactory.getMonster(bossMobid);
var bossPos = new Point(251, -841); var bossPos = new Point(251, -841);
map.spawnMonsterOnGroundBelow(boss, bossPos); map.spawnMonsterOnGroundBelow(boss, bossPos);
map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg)); map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg));

View File

@@ -48,11 +48,11 @@ function start() {
return; return;
} }
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
const PacketCreator = Java.type('tools.PacketCreator'); const PacketCreator = Java.type('tools.PacketCreator');
var boss = MapleLifeFactory.getMonster(bossMobid); var boss = LifeFactory.getMonster(bossMobid);
var bossPos = new Point(842, 0); var bossPos = new Point(842, 0);
map.spawnMonsterOnGroundBelow(boss, bossPos); map.spawnMonsterOnGroundBelow(boss, bossPos);
map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg)); map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg));

View File

@@ -48,11 +48,11 @@ function start() {
return; return;
} }
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
const PacketCreator = Java.type('tools.PacketCreator'); const PacketCreator = Java.type('tools.PacketCreator');
var boss = MapleLifeFactory.getMonster(bossMobid); var boss = LifeFactory.getMonster(bossMobid);
var bossPos = new Point(461, 61); var bossPos = new Point(461, 61);
map.spawnMonsterOnGroundBelow(boss, bossPos); map.spawnMonsterOnGroundBelow(boss, bossPos);
map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg)); map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg));

View File

@@ -48,11 +48,11 @@ function start() {
return; return;
} }
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
const PacketCreator = Java.type('tools.PacketCreator'); const PacketCreator = Java.type('tools.PacketCreator');
var boss = MapleLifeFactory.getMonster(bossMobid); var boss = LifeFactory.getMonster(bossMobid);
var bossPos = new Point(171, 50); var bossPos = new Point(171, 50);
map.spawnMonsterOnGroundBelow(boss, bossPos); map.spawnMonsterOnGroundBelow(boss, bossPos);
map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg)); map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg));

View File

@@ -47,11 +47,11 @@ function start() {
return; return;
} }
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const PacketCreator = Java.type('tools.PacketCreator'); const PacketCreator = Java.type('tools.PacketCreator');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
const spawnpoint = new Point(90, 119); 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.")); dangeroudCroko1.broadcastMessage(PacketCreator.serverNotice(6, "The huge crocodile Dyle has come out from the swamp."));
setupTask = em.schedule("start", 3 * 60 * 60 * 1000); setupTask = em.schedule("start", 3 * 60 * 60 * 1000);
} }

View File

@@ -43,8 +43,8 @@ function cancelSchedule() {
} }
function start() { function start() {
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
var eliza = MapleLifeFactory.getMonster(8220000); var eliza = LifeFactory.getMonster(8220000);
var stairwayToTheSky2 = em.getChannelServer().getMapFactory().getMap(200010300); var stairwayToTheSky2 = em.getChannelServer().getMapFactory().getMap(200010300);
if(stairwayToTheSky2.getMonsterById(8220000) != null) { if(stairwayToTheSky2.getMonsterById(8220000) != null) {

View File

@@ -47,11 +47,11 @@ function start() {
return; return;
} }
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const PacketCreator = Java.type('tools.PacketCreator'); const PacketCreator = Java.type('tools.PacketCreator');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
var faust1 = MapleLifeFactory.getMonster(5220002); var faust1 = LifeFactory.getMonster(5220002);
const spawnpoint = new Point(456, 278); const spawnpoint = new Point(456, 278);
theForestOfEvil1.spawnMonsterOnGroundBelow(faust1, spawnpoint); theForestOfEvil1.spawnMonsterOnGroundBelow(faust1, spawnpoint);
theForestOfEvil1.broadcastMessage(PacketCreator.serverNotice(6, "Faust appeared amidst the blue fog.")); theForestOfEvil1.broadcastMessage(PacketCreator.serverNotice(6, "Faust appeared amidst the blue fog."));

View File

@@ -41,9 +41,9 @@ function cancelSchedule() {
} }
function start() { function start() {
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
var theForestOfEvil2 = em.getChannelServer().getMapFactory().getMap(100040106); var theForestOfEvil2 = em.getChannelServer().getMapFactory().getMap(100040106);
var faust2 = MapleLifeFactory.getMonster(5220002); var faust2 = LifeFactory.getMonster(5220002);
if(theForestOfEvil2.getMonsterById(5220002) != null) { if(theForestOfEvil2.getMonsterById(5220002) != null) {
em.schedule("start", 3 * 60 *60 * 1000); em.schedule("start", 3 * 60 *60 * 1000);

View File

@@ -41,9 +41,9 @@ function cancelSchedule() {
} }
function start() { function start() {
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
var labSecretBasementPath = em.getChannelServer().getMapFactory().getMap(261030000); var labSecretBasementPath = em.getChannelServer().getMapFactory().getMap(261030000);
var chimera = MapleLifeFactory.getMonster(8220002); var chimera = LifeFactory.getMonster(8220002);
if(labSecretBasementPath.getMonsterById(8220002) != null) { if(labSecretBasementPath.getMonsterById(8220002) != null) {
em.schedule("start", 3 * 60 *60 * 1000); em.schedule("start", 3 * 60 *60 * 1000);

View File

@@ -49,8 +49,8 @@ function start() {
return; return;
} }
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
var kingClang = MapleLifeFactory.getMonster(5220001); var kingClang = LifeFactory.getMonster(5220001);
var posX; var posX;
var posY = 140; var posY = 140;
posX = Math.floor((Math.random() * 2400) - 1600); posX = Math.floor((Math.random() * 2400) - 1600);

View File

@@ -42,8 +42,8 @@ function cancelSchedule() {
function start() { function start() {
var goblinForest2 = em.getChannelServer().getMapFactory().getMap(250010504); var goblinForest2 = em.getChannelServer().getMapFactory().getMap(250010504);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
var kingSageCat = MapleLifeFactory.getMonster(7220002); var kingSageCat = LifeFactory.getMonster(7220002);
if(goblinForest2.getMonsterById(7220002) != null) { if(goblinForest2.getMonsterById(7220002) != null) {
em.schedule("start", 3 * 60 *60 * 1000); em.schedule("start", 3 * 60 *60 * 1000);

View File

@@ -42,8 +42,8 @@ function cancelSchedule() {
function start() { function start() {
var leviathansCanyon = em.getChannelServer().getMapFactory().getMap(240040401); var leviathansCanyon = em.getChannelServer().getMapFactory().getMap(240040401);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
var leviathan = MapleLifeFactory.getMonster(8220003); var leviathan = LifeFactory.getMonster(8220003);
if(leviathansCanyon.getMonsterById(8220003) != null) { if(leviathansCanyon.getMonsterById(8220003) != null) {
em.schedule("start", 3 * 60 *60 * 1000); em.schedule("start", 3 * 60 *60 * 1000);
return; return;

View File

@@ -41,8 +41,8 @@ function cancelSchedule() {
function start() { function start() {
var thicketAroundTheBeach3 = em.getChannelServer().getMapFactory().getMap(104000400); var thicketAroundTheBeach3 = em.getChannelServer().getMapFactory().getMap(104000400);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
var mano = MapleLifeFactory.getMonster(2220000); var mano = LifeFactory.getMonster(2220000);
if(thicketAroundTheBeach3.getMonsterById(2220000) != null) { if(thicketAroundTheBeach3.getMonsterById(2220000) != null) {
em.schedule("start", 3 * 60 * 60 * 1000); em.schedule("start", 3 * 60 * 60 * 1000);
return; return;

View File

@@ -42,8 +42,8 @@ function cancelSchedule() {
function start() { function start() {
var moonRidge = em.getChannelServer().getMapFactory().getMap(222010310); var moonRidge = em.getChannelServer().getMapFactory().getMap(222010310);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
var nineTailedFox = MapleLifeFactory.getMonster(7220001); var nineTailedFox = LifeFactory.getMonster(7220001);
if(moonRidge.getMonsterById(7220001) != null) { if(moonRidge.getMonsterById(7220001) != null) {
em.schedule("start", 3 * 60 *60 * 1000); em.schedule("start", 3 * 60 *60 * 1000);
return; return;

View File

@@ -43,8 +43,8 @@ function cancelSchedule() {
function start() { function start() {
var theSeaweedTower = em.getChannelServer().getMapFactory().getMap(230020100); var theSeaweedTower = em.getChannelServer().getMapFactory().getMap(230020100);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
var seruf = MapleLifeFactory.getMonster(4220001); var seruf = LifeFactory.getMonster(4220001);
if(theSeaweedTower.getMonsterById(4220001) != null) { if(theSeaweedTower.getMonsterById(4220001) != null) {
em.schedule("start", 3 * 60 * 60 * 1000); em.schedule("start", 3 * 60 * 60 * 1000);

View File

@@ -50,11 +50,11 @@ function start() {
var setPos = [[-626, -604], [735, -600]]; var setPos = [[-626, -604], [735, -600]];
var rndPos = setPos[Math.floor(Math.random() * setPos.length)]; 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 Point = Java.type('java.awt.Point');
const PacketCreator = Java.type('tools.PacketCreator'); 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.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.")); snackBarMap.broadcastMessage(PacketCreator.serverNotice(6, "Slowly, a suspicious food stand opens up on a strangely remote place."));
em.schedule("start", 3 * 60 * 60 * 1000); em.schedule("start", 3 * 60 * 60 * 1000);

View File

@@ -42,8 +42,8 @@ function cancelSchedule() {
function start() { function start() {
var eastRockyMountain5 = em.getChannelServer().getMapFactory().getMap(101030404); var eastRockyMountain5 = em.getChannelServer().getMapFactory().getMap(101030404);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
var stumpy = MapleLifeFactory.getMonster(3220000); var stumpy = LifeFactory.getMonster(3220000);
if(eastRockyMountain5.getMonsterById(3220000) != null) { if(eastRockyMountain5.getMonsterById(3220000) != null) {
em.schedule("start", 3 * 60 * 60 * 1000); em.schedule("start", 3 * 60 * 60 * 1000);

View File

@@ -42,8 +42,8 @@ function cancelSchedule() {
function start() { function start() {
var territoryOfWanderingBear = em.getChannelServer().getMapFactory().getMap(250010304); var territoryOfWanderingBear = em.getChannelServer().getMapFactory().getMap(250010304);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
var taeRoon = MapleLifeFactory.getMonster(7220000); var taeRoon = LifeFactory.getMonster(7220000);
if(territoryOfWanderingBear.getMonsterById(7220000) != null) { if(territoryOfWanderingBear.getMonsterById(7220000) != null) {
em.schedule("start", 3 * 60 * 60 * 1000); em.schedule("start", 3 * 60 * 60 * 1000);

View File

@@ -41,8 +41,8 @@ function cancelSchedule() {
function start() { function start() {
var whirlpoolOfTime = em.getChannelServer().getMapFactory().getMap(220050100); var whirlpoolOfTime = em.getChannelServer().getMapFactory().getMap(220050100);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
var timer1 = MapleLifeFactory.getMonster(5220003); var timer1 = LifeFactory.getMonster(5220003);
if(whirlpoolOfTime.getMonsterById(5220003) != null) { if(whirlpoolOfTime.getMonsterById(5220003) != null) {
em.schedule("start", 3 * 60 * 60 * 1000); em.schedule("start", 3 * 60 * 60 * 1000);

View File

@@ -42,8 +42,8 @@ function cancelSchedule() {
function start() { function start() {
var lostTime1 = em.getChannelServer().getMapFactory().getMap(220050000); var lostTime1 = em.getChannelServer().getMapFactory().getMap(220050000);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
var timer2 = MapleLifeFactory.getMonster(5220003); var timer2 = LifeFactory.getMonster(5220003);
if(lostTime1.getMonsterById(5220003) != null) { if(lostTime1.getMonsterById(5220003) != null) {
em.schedule("start", 3 * 60 * 60 * 1000); em.schedule("start", 3 * 60 * 60 * 1000);

View File

@@ -43,8 +43,8 @@ function cancelSchedule() {
function start() { function start() {
var lostTime2 = em.getChannelServer().getMapFactory().getMap(220050200); var lostTime2 = em.getChannelServer().getMapFactory().getMap(220050200);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
var timer3 = MapleLifeFactory.getMonster(5220003); var timer3 = LifeFactory.getMonster(5220003);
if(lostTime2.getMonsterById(5220003) != null) { if(lostTime2.getMonsterById(5220003) != null) {
em.schedule("start", 3 * 60 * 60 * 1000); em.schedule("start", 3 * 60 * 60 * 1000);

View File

@@ -47,11 +47,11 @@ function start() {
return; return;
} }
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
const PacketCreator = Java.type('tools.PacketCreator'); const PacketCreator = Java.type('tools.PacketCreator');
var zeno = MapleLifeFactory.getMonster(6220001); var zeno = LifeFactory.getMonster(6220001);
graysPrairie.spawnMonsterOnGroundBelow(zeno, new Point(-4224, 776)); graysPrairie.spawnMonsterOnGroundBelow(zeno, new Point(-4224, 776));
graysPrairie.broadcastMessage(PacketCreator.serverNotice(6, "Zeno has appeared with a heavy sound of machinery.")); graysPrairie.broadcastMessage(PacketCreator.serverNotice(6, "Zeno has appeared with a heavy sound of machinery."));
em.schedule("start", 3 * 60 * 60 * 1000); em.schedule("start", 3 * 60 * 60 * 1000);

View File

@@ -135,16 +135,16 @@ function releaseLeftClaw(eim) {
function spawnBalrog(eim) { function spawnBalrog(eim) {
var mapObj = eim.getInstanceMap(entryMap); 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'); const Point = Java.type('java.awt.Point');
mapObj.spawnFakeMonsterOnGroundBelow(MapleLifeFactory.getMonster(8830000), new Point(412, 258)); mapObj.spawnFakeMonsterOnGroundBelow(LifeFactory.getMonster(8830000), new Point(412, 258));
mapObj.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8830002), new Point(412, 258)); mapObj.spawnMonsterOnGroundBelow(LifeFactory.getMonster(8830002), new Point(412, 258));
mapObj.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8830006), new Point(412, 258)); mapObj.spawnMonsterOnGroundBelow(LifeFactory.getMonster(8830006), new Point(412, 258));
} }
function spawnSealedBalrog(eim) { function spawnSealedBalrog(eim) {
const Point = Java.type('java.awt.Point'); 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) { function playerEntry(eim, player) {

View File

@@ -135,16 +135,16 @@ function releaseLeftClaw(eim) {
function spawnBalrog(eim) { function spawnBalrog(eim) {
var mapObj = eim.getInstanceMap(entryMap); 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'); const Point = Java.type('java.awt.Point');
mapObj.spawnFakeMonsterOnGroundBelow(MapleLifeFactory.getMonster(8830007), new Point(412, 258)); mapObj.spawnFakeMonsterOnGroundBelow(LifeFactory.getMonster(8830007), new Point(412, 258));
mapObj.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8830009), new Point(412, 258)); mapObj.spawnMonsterOnGroundBelow(LifeFactory.getMonster(8830009), new Point(412, 258));
mapObj.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8830013), new Point(412, 258)); mapObj.spawnMonsterOnGroundBelow(LifeFactory.getMonster(8830013), new Point(412, 258));
} }
function spawnSealedBalrog(eim) { function spawnSealedBalrog(eim) {
const Point = Java.type('java.awt.Point'); 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) { function playerEntry(eim, player) {

View File

@@ -95,17 +95,17 @@ function approach() {
} }
function invasion() { function invasion() {
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
var map1 = Boat_to_Ellinia; var map1 = Boat_to_Ellinia;
var pos1 = new java.awt.Point(-538, 143); var pos1 = new java.awt.Point(-538, 143);
map1.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8150000), pos1); map1.spawnMonsterOnGroundBelow(LifeFactory.getMonster(8150000), pos1);
map1.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8150000), pos1); map1.spawnMonsterOnGroundBelow(LifeFactory.getMonster(8150000), pos1);
var map2 = Boat_to_Orbis; var map2 = Boat_to_Orbis;
var pos2 = new java.awt.Point(339, 148); var pos2 = new java.awt.Point(339, 148);
map2.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8150000), pos2); map2.spawnMonsterOnGroundBelow(LifeFactory.getMonster(8150000), pos2);
map2.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8150000), pos2); map2.spawnMonsterOnGroundBelow(LifeFactory.getMonster(8150000), pos2);
} }
function cancelSchedule() {} function cancelSchedule() {}

View File

@@ -304,9 +304,9 @@ function snowmanEvolve(eim, curLevel) {
eim.setIntProperty("snowmanLevel", curLevel + 2); // increment by 2 to decrement by 1 on friendlyKilled eim.setIntProperty("snowmanLevel", curLevel + 2); // increment by 2 to decrement by 1 on friendlyKilled
mapobj.killMonster(snowman, null, false, 2); 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'); 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)); mapobj.spawnMonsterOnGroundBelow(snowman, new Point(-180, 15));
if(curLevel >= 4) { if(curLevel >= 4) {

View File

@@ -304,9 +304,9 @@ function snowmanEvolve(eim, curLevel) {
eim.setIntProperty("snowmanLevel", curLevel + 2); // increment by 2 to decrement by 1 on friendlyKilled eim.setIntProperty("snowmanLevel", curLevel + 2); // increment by 2 to decrement by 1 on friendlyKilled
mapobj.killMonster(snowman, null, false, 2); 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'); 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)); mapobj.spawnMonsterOnGroundBelow(snowman, new Point(-180, 15));
if(curLevel >= 4) { if(curLevel >= 4) {

View File

@@ -304,9 +304,9 @@ function snowmanEvolve(eim, curLevel) {
eim.setIntProperty("snowmanLevel", curLevel + 2); // increment by 2 to decrement by 1 on friendlyKilled eim.setIntProperty("snowmanLevel", curLevel + 2); // increment by 2 to decrement by 1 on friendlyKilled
mapobj.killMonster(snowman, null, false, 2); 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'); 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)); mapobj.spawnMonsterOnGroundBelow(snowman, new Point(-180, 15));
if(curLevel >= 4) { if(curLevel >= 4) {

View File

@@ -96,15 +96,15 @@ function setup(channel) {
eim.getInstanceMap(240060100).resetPQ(level); eim.getInstanceMap(240060100).resetPQ(level);
eim.getInstanceMap(240060200).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'); const Point = Java.type('java.awt.Point');
var map, mob; var map, mob;
map = eim.getInstanceMap(240060000); map = eim.getInstanceMap(240060000);
mob = MapleLifeFactory.getMonster(8810000); mob = LifeFactory.getMonster(8810000);
map.spawnMonsterOnGroundBelow(mob, new Point(960, 120)); map.spawnMonsterOnGroundBelow(mob, new Point(960, 120));
map = eim.getInstanceMap(240060100); map = eim.getInstanceMap(240060100);
mob = MapleLifeFactory.getMonster(8810001); mob = LifeFactory.getMonster(8810001);
map.spawnMonsterOnGroundBelow(mob, new Point(-420, 120)); map.spawnMonsterOnGroundBelow(mob, new Point(-420, 120));
eim.startEventTimer(eventTime * 60000); eim.startEventTimer(eventTime * 60000);

View File

@@ -63,9 +63,9 @@ function respawn(eim){
var weddinghall = eim.getMapInstance(entryMap); var weddinghall = eim.getMapInstance(entryMap);
weddinghall.getPortal(1).setPortalState(false); 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'); 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 { } else {
eim.schedule("respawn", 10000); eim.schedule("respawn", 10000);
} }

View File

@@ -54,9 +54,9 @@ function respawn(eim){
var weddinghall = eim.getMapInstance(entryMap); var weddinghall = eim.getMapInstance(entryMap);
weddinghall.getPortal(1).setPortalState(false); 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'); 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 { } else {
eim.schedule("respawn", 10000); eim.schedule("respawn", 10000);
} }

View File

@@ -244,16 +244,16 @@ function respawnStages(eim) {
var mapobj = eim.getMapInstance(926110401); var mapobj = eim.getMapInstance(926110401);
var mobcount = mapobj.countMonster(9300150); var mobcount = mapobj.countMonster(9300150);
var mobobj; var mobobj;
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
if(mobcount == 0) { if(mobcount == 0) {
mobobj = MapleLifeFactory.getMonster(9300150); mobobj = LifeFactory.getMonster(9300150);
mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-278, -126)); mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-278, -126));
mobobj = MapleLifeFactory.getMonster(9300150); mobobj = LifeFactory.getMonster(9300150);
mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-542, -126)); mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-542, -126));
} else if(mobcount == 1) { } else if(mobcount == 1) {
mobobj = MapleLifeFactory.getMonster(9300150); mobobj = LifeFactory.getMonster(9300150);
mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-542, -126)); mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-542, -126));
} }
} }
@@ -313,12 +313,12 @@ function yuleteAction(eim) {
mapobj.destroyNPC(2112010); mapobj.destroyNPC(2112010);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
var mobobj1, mobobj2; var mobobj1, mobobj2;
for(var i = 0; i < 5; i++) { for(var i = 0; i < 5; i++) {
mobobj1 = MapleLifeFactory.getMonster(mob1); mobobj1 = LifeFactory.getMonster(mob1);
mobobj2 = MapleLifeFactory.getMonster(mob2); mobobj2 = LifeFactory.getMonster(mob2);
mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(-455, 135)); mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(-455, 135));
mapobj.spawnMonsterOnGroundBelow(mobobj2, 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++) { for(var i = 0; i < 5; i++) {
mobobj1 = MapleLifeFactory.getMonster(mob1); mobobj1 = LifeFactory.getMonster(mob1);
mobobj2 = MapleLifeFactory.getMonster(mob2); mobobj2 = LifeFactory.getMonster(mob2);
mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(0, 135)); mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(0, 135));
mapobj.spawnMonsterOnGroundBelow(mobobj2, 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++) { for(var i = 0; i < 5; i++) {
mobobj1 = MapleLifeFactory.getMonster(mob1); mobobj1 = LifeFactory.getMonster(mob1);
mobobj2 = MapleLifeFactory.getMonster(mob2); mobobj2 = LifeFactory.getMonster(mob2);
mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(360, 135)); mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(360, 135));
mapobj.spawnMonsterOnGroundBelow(mobobj2, new Point(360, 135)); mapobj.spawnMonsterOnGroundBelow(mobobj2, new Point(360, 135));

View File

@@ -244,16 +244,16 @@ function respawnStages(eim) {
var mapobj = eim.getMapInstance(926100401); var mapobj = eim.getMapInstance(926100401);
var mobcount = mapobj.countMonster(9300150); var mobcount = mapobj.countMonster(9300150);
var mobobj; var mobobj;
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
if(mobcount == 0) { if(mobcount == 0) {
mobobj = MapleLifeFactory.getMonster(9300150); mobobj = LifeFactory.getMonster(9300150);
mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-278, -126)); mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-278, -126));
mobobj = MapleLifeFactory.getMonster(9300150); mobobj = LifeFactory.getMonster(9300150);
mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-542, -126)); mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-542, -126));
} else if(mobcount == 1) { } else if(mobcount == 1) {
mobobj = MapleLifeFactory.getMonster(9300150); mobobj = LifeFactory.getMonster(9300150);
mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-542, -126)); mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-542, -126));
} }
} }
@@ -313,12 +313,12 @@ function yuleteAction(eim) {
mapobj.destroyNPC(2112000); mapobj.destroyNPC(2112000);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
var mobobj1, mobobj2; var mobobj1, mobobj2;
for(var i = 0; i < 5; i++) { for(var i = 0; i < 5; i++) {
mobobj1 = MapleLifeFactory.getMonster(mob1); mobobj1 = LifeFactory.getMonster(mob1);
mobobj2 = MapleLifeFactory.getMonster(mob2); mobobj2 = LifeFactory.getMonster(mob2);
mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(-455, 135)); mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(-455, 135));
mapobj.spawnMonsterOnGroundBelow(mobobj2, 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++) { for(var i = 0; i < 5; i++) {
mobobj1 = MapleLifeFactory.getMonster(mob1); mobobj1 = LifeFactory.getMonster(mob1);
mobobj2 = MapleLifeFactory.getMonster(mob2); mobobj2 = LifeFactory.getMonster(mob2);
mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(0, 135)); mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(0, 135));
mapobj.spawnMonsterOnGroundBelow(mobobj2, 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++) { for(var i = 0; i < 5; i++) {
mobobj1 = MapleLifeFactory.getMonster(mob1); mobobj1 = LifeFactory.getMonster(mob1);
mobobj2 = MapleLifeFactory.getMonster(mob2); mobobj2 = LifeFactory.getMonster(mob2);
mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(360, 135)); mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(360, 135));
mapobj.spawnMonsterOnGroundBelow(mobobj2, new Point(360, 135)); mapobj.spawnMonsterOnGroundBelow(mobobj2, new Point(360, 135));

View File

@@ -102,9 +102,9 @@ function setup(channel) {
eim.getInstanceMap(270050200).resetPQ(level); eim.getInstanceMap(270050200).resetPQ(level);
eim.getInstanceMap(270050300).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'); const Point = Java.type('java.awt.Point');
var mob = MapleLifeFactory.getMonster(8820000); var mob = LifeFactory.getMonster(8820000);
mob.disableDrops(); mob.disableDrops();
eim.getInstanceMap(270050100).spawnMonsterOnGroundBelow(mob, new Point(0, -42)); eim.getInstanceMap(270050100).spawnMonsterOnGroundBelow(mob, new Point(0, -42));
@@ -234,8 +234,8 @@ function spawnJrBoss(mobObj, gotKilled) {
spawnid = mobObj.getId() - 17; spawnid = mobObj.getId() - 17;
} }
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
var mob = MapleLifeFactory.getMonster(spawnid); var mob = LifeFactory.getMonster(spawnid);
mobObj.getMap().spawnMonsterOnGroundBelow(mob, mobObj.getPosition()); mobObj.getMap().spawnMonsterOnGroundBelow(mob, mobObj.getPosition());
} }

View File

@@ -72,9 +72,9 @@ function setEventRewards(eim) {
function spawnCakeBoss(eim) { function spawnCakeBoss(eim) {
var mapObj = eim.getMapInstance(680000400); 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'); const Point = Java.type('java.awt.Point');
var mobObj = MapleLifeFactory.getMonster(9400606); var mobObj = LifeFactory.getMonster(9400606);
mapObj.spawnMonsterOnGroundBelow(mobObj, new Point(777, -177)); mapObj.spawnMonsterOnGroundBelow(mobObj, new Point(777, -177));
} }

View File

@@ -72,9 +72,9 @@ function setEventRewards(eim) {
function spawnCakeBoss(eim) { function spawnCakeBoss(eim) {
var mapObj = eim.getMapInstance(680000400); 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'); const Point = Java.type('java.awt.Point');
var mobObj = MapleLifeFactory.getMonster(9400606); var mobObj = LifeFactory.getMonster(9400606);
mapObj.spawnMonsterOnGroundBelow(mobObj, new Point(777, -177)); mapObj.spawnMonsterOnGroundBelow(mobObj, new Point(777, -177));
} }

View File

@@ -9,8 +9,8 @@ function start(ms){
return; return;
} }
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); 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));
} }
} }

View File

@@ -16,8 +16,8 @@ function spawnMob(x, y, id, map) {
if(map.getMonsterById(id) != null) if(map.getMonsterById(id) != null)
return; return;
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
var mob = MapleLifeFactory.getMonster(id); var mob = LifeFactory.getMonster(id);
map.spawnMonsterOnGroundBelow(mob, new Point(x, y)); map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
} }

View File

@@ -16,8 +16,8 @@ function spawnMob(x, y, id, map) {
if(map.getMonsterById(id) != null) if(map.getMonsterById(id) != null)
return; return;
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
var mob = MapleLifeFactory.getMonster(id); var mob = LifeFactory.getMonster(id);
map.spawnMonsterOnGroundBelow(mob, new Point(x, y)); map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
} }

View File

@@ -16,8 +16,8 @@ function spawnMob(x, y, id, map) {
if(map.getMonsterById(id) != null) if(map.getMonsterById(id) != null)
return; return;
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
var mob = MapleLifeFactory.getMonster(id); var mob = LifeFactory.getMonster(id);
map.spawnMonsterOnGroundBelow(mob, new Point(x, y)); map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
} }

View File

@@ -16,8 +16,8 @@ function spawnMob(x, y, id, map) {
if(map.getMonsterById(id) != null) if(map.getMonsterById(id) != null)
return; return;
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
var mob = MapleLifeFactory.getMonster(id); var mob = LifeFactory.getMonster(id);
map.spawnMonsterOnGroundBelow(mob, new Point(x, y)); map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
} }

View File

@@ -16,8 +16,8 @@ function spawnMob(x, y, id, map) {
if(map.getMonsterById(id) != null) if(map.getMonsterById(id) != null)
return; return;
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
var mob = MapleLifeFactory.getMonster(id); var mob = LifeFactory.getMonster(id);
map.spawnMonsterOnGroundBelow(mob, new Point(x, y)); map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
} }

View File

@@ -11,7 +11,7 @@ function start(ms) {
return; return;
} }
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), pos); map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), pos);
player.message(mobName + " has appeared!"); player.message(mobName + " has appeared!");
} }

View File

@@ -11,7 +11,7 @@ function start(ms) {
return; return;
} }
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), pos); map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), pos);
player.message(mobName + " has appeared!"); player.message(mobName + " has appeared!");
} }

View File

@@ -11,7 +11,7 @@ function start(ms) {
return; return;
} }
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), pos); map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), pos);
player.message(mobName + " has appeared!"); player.message(mobName + " has appeared!");
} }

View File

@@ -11,7 +11,7 @@ function start(ms) {
return; return;
} }
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), pos); map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), pos);
player.message(mobName + " has appeared!"); player.message(mobName + " has appeared!");
} }

View File

@@ -11,7 +11,7 @@ function start(ms) {
return; return;
} }
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), pos); map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), pos);
player.message(mobName + " has appeared!"); player.message(mobName + " has appeared!");
} }

View File

@@ -11,7 +11,7 @@ function start(ms) {
return; return;
} }
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), pos); map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), pos);
player.message(mobName + " has appeared!"); player.message(mobName + " has appeared!");
} }

View File

@@ -2,15 +2,15 @@ function start(ms) {
var player = ms.getPlayer(); var player = ms.getPlayer();
var map = player.getMap(); 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'); const Point = Java.type('java.awt.Point');
if (player.isCygnus()) { if (player.isCygnus()) {
if (ms.isQuestStarted(20730) && ms.getQuestProgressInt(20730, 9300285) == 0) { 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 { } else {
if (ms.isQuestStarted(21731) && ms.getQuestProgressInt(21731, 9300344) == 0) { 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));
} }
} }
} }

View File

@@ -3,8 +3,8 @@ function start(ms){
var map = player.getMap(); var map = player.getMap();
if(ms.isQuestStarted(21747) && ms.getQuestProgressInt(21747, 9300351) == 0) { 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'); 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));
} }
} }

View File

@@ -3,7 +3,7 @@ function start(ms) {
map.resetPQ(1); map.resetPQ(1);
if(map.countMonster(9100013) == 0) { 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); return(true);

View File

@@ -3,7 +3,7 @@ function start(ms){
var player = ms.getPlayer(); var player = ms.getPlayer();
var map = player.getMap(); 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'); 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));
} }

View File

@@ -35,14 +35,14 @@ function action(mode, type, selection){
var player = cm.getPlayer(); var player = cm.getPlayer();
var map = player.getMap(); 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'); const Point = Java.type('java.awt.Point');
for(var i = 0; i < 10; i++) 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++) 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++) 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.completeQuest(20718, 1103003);
cm.gainExp(4000 * cm.getPlayer().getExpRate()); cm.gainExp(4000 * cm.getPlayer().getExpRate());

View File

@@ -31,7 +31,7 @@ function action(mode, type, selection) {
} else { } else {
const MapleLifeFactoroy = Java.type('server.life.MapleLifeFactoroy'); const MapleLifeFactoroy = Java.type('server.life.MapleLifeFactoroy');
const Point = Java.type('java.awt.Point'); 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); cm.warp(910510202, 0);
} }

View File

@@ -34,9 +34,9 @@ function action(mode, type, selection) {
if (mode == 0 && type > 0) { 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!!!"); 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'); 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); mapobj.destroyNPC(1104002);
cm.dispose(); cm.dispose();

View File

@@ -63,8 +63,8 @@ function spawnMob(x, y, id, map) {
if(map.getMonsterById(id) != null) if(map.getMonsterById(id) != null)
return; return;
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
var mob = MapleLifeFactory.getMonster(id); var mob = LifeFactory.getMonster(id);
map.spawnMonsterOnGroundBelow(mob, new Point(x, y)); map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
} }

View File

@@ -63,8 +63,8 @@ function spawnMob(x, y, id, map) {
if(map.getMonsterById(id) != null) if(map.getMonsterById(id) != null)
return; return;
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
var mob = MapleLifeFactory.getMonster(id); var mob = LifeFactory.getMonster(id);
map.spawnMonsterOnGroundBelow(mob, new Point(x, y)); map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
} }

View File

@@ -63,8 +63,8 @@ function spawnMob(x, y, id, map) {
if(map.getMonsterById(id) != null) if(map.getMonsterById(id) != null)
return; return;
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
var mob = MapleLifeFactory.getMonster(id); var mob = LifeFactory.getMonster(id);
map.spawnMonsterOnGroundBelow(mob, new Point(x, y)); map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
} }

View File

@@ -63,8 +63,8 @@ function spawnMob(x, y, id, map) {
if(map.getMonsterById(id) != null) if(map.getMonsterById(id) != null)
return; return;
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
var mob = MapleLifeFactory.getMonster(id); var mob = LifeFactory.getMonster(id);
map.spawnMonsterOnGroundBelow(mob, new Point(x, y)); map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
} }

View File

@@ -63,8 +63,8 @@ function spawnMob(x, y, id, map) {
if(map.getMonsterById(id) != null) if(map.getMonsterById(id) != null)
return; return;
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
var mob = MapleLifeFactory.getMonster(id); var mob = LifeFactory.getMonster(id);
map.spawnMonsterOnGroundBelow(mob, new Point(x, y)); map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
} }

View File

@@ -90,7 +90,7 @@ function action(mode, type, selection) {
} else { } else {
var state = eim.getIntProperty("yuletePassed"); 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'); const Point = Java.type('java.awt.Point');
if(state == -1) { if(state == -1) {
cm.sendOk("Behold! The pinnacle of Magatia's alchemy studies! Hahahahahahaha..."); 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!"); eim.dropMessage(5, "Yulete: I present you my newest weapon, brought by the finest alchemy, Frankenroid!");
var mapobj = eim.getMapInstance(926100401); 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.spawnMonsterWithEffect(bossobj, 13, new Packages.java.awt.Point(250, 100));
mapobj.spawnMonsterOnGroundBelow(bossobj, new 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!!"); 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 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.spawnMonsterWithEffect(bossobj, 14, new Packages.java.awt.Point(250, 100));
mapobj.spawnMonsterOnGroundBelow(bossobj, new Point(250, 100)); mapobj.spawnMonsterOnGroundBelow(bossobj, new Point(250, 100));

View File

@@ -90,7 +90,7 @@ function action(mode, type, selection) {
} else { } else {
var state = eim.getIntProperty("yuletePassed"); 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'); const Point = Java.type('java.awt.Point');
if(state == -1) { if(state == -1) {
cm.sendOk("Behold! The pinnacle of Magatia's alchemy studies! Hahahahahahaha..."); 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!"); eim.dropMessage(5, "Yulete: I present you my newest weapon, brought by the finest alchemy, Frankenroid!");
var mapobj = eim.getMapInstance(926110401); var mapobj = eim.getMapInstance(926110401);
var bossobj = MapleLifeFactory.getMonster(9300151); var bossobj = LifeFactory.getMonster(9300151);
mapobj.spawnMonsterOnGroundBelow(bossobj, new Point(250, 100)); mapobj.spawnMonsterOnGroundBelow(bossobj, new Point(250, 100));
eim.setIntProperty("statusStg7", 1); 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!!"); 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 mapobj = eim.getMapInstance(926110401);
var bossobj = MapleLifeFactory.getMonster(9300152); var bossobj = LifeFactory.getMonster(9300152);
mapobj.spawnMonsterOnGroundBelow(bossobj, new Point(250, 100)); mapobj.spawnMonsterOnGroundBelow(bossobj, new Point(250, 100));
eim.setIntProperty("statusStg7", 2); eim.setIntProperty("statusStg7", 2);

View File

@@ -211,8 +211,8 @@ function randX() {
} }
function spawnMob(id, x, y, map) { 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'); const Point = Java.type('java.awt.Point');
var mob = MapleLifeFactory.getMonster(id); var mob = LifeFactory.getMonster(id);
map.spawnMonsterOnGroundBelow(mob, new Point(x, y)); map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
} }

View File

@@ -129,7 +129,7 @@ function insidePqAction(mode, type, selection) {
} }
} }
} else if(status == 1) { } 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'); const Point = Java.type('java.awt.Point');
if(stg == -1) { if(stg == -1) {
@@ -140,7 +140,7 @@ function insidePqAction(mode, type, selection) {
} }
mapobj.allowSummonState(true); mapobj.allowSummonState(true);
var snowman = MapleLifeFactory.getMonster(9400317 + (5 * difficulty)); var snowman = LifeFactory.getMonster(9400317 + (5 * difficulty));
mapobj.spawnMonsterOnGroundBelow(snowman, new Point(-180, 15)); mapobj.spawnMonsterOnGroundBelow(snowman, new Point(-180, 15));
eim.setIntProperty("snowmanLevel", 1); eim.setIntProperty("snowmanLevel", 1);
eim.dropMessage(5, "The snowman appeared on the field! Protect it using all means necessary!"); 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!"); mapobj.broadcastStringMessage(5, "As the snowman grows to it's prime, the Scrooge appears!");
eim.getEm().getIv().invokeFunction("snowmanHeal", eim); 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)); mapobj.spawnMonsterOnGroundBelow(boss, new Point(-180, 15));
eim.setProperty("spawnedBoss", "true"); eim.setProperty("spawnedBoss", "true");

View File

@@ -37,7 +37,7 @@ function spawnMobs(maxSpawn) {
var spawnPosY; var spawnPosY;
var mapObj = cm.getMap(); 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'); const Point = Java.type('java.awt.Point');
if (stage == 2) { if (stage == 2) {
spawnPosX = [619, 299, 47, -140, -471]; spawnPosX = [619, 299, 47, -140, -471];
@@ -45,9 +45,9 @@ function spawnMobs(maxSpawn) {
for(var i = 0; i < 5; i++) { for(var i = 0; i < 5; i++) {
for(var j = 0; j < 2; j++) { for(var j = 0; j < 2; j++) {
var mobObj1 = MapleLifeFactory.getMonster(9400515); var mobObj1 = LifeFactory.getMonster(9400515);
var mobObj2 = MapleLifeFactory.getMonster(9400516); var mobObj2 = LifeFactory.getMonster(9400516);
var mobObj3 = MapleLifeFactory.getMonster(9400517); var mobObj3 = LifeFactory.getMonster(9400517);
mapObj.spawnMonsterOnGroundBelow(mobObj1, new Point(spawnPosX[i], spawnPosY[i])); mapObj.spawnMonsterOnGroundBelow(mobObj1, new Point(spawnPosX[i], spawnPosY[i]));
mapObj.spawnMonsterOnGroundBelow(mobObj2, 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 rndMob = 9400519 + Math.floor(Math.random() * 4);
var rndPos = Math.floor(Math.random() * 5); 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])); mapObj.spawnMonsterOnGroundBelow(mobObj, new Point(spawnPosX[rndPos], spawnPosY[rndPos]));
} }
} }

View File

@@ -66,9 +66,9 @@ function action(mode, type, selection) {
var mapObj = cm.getMap(); var mapObj = cm.getMap();
mapObj.toggleDrops(); mapObj.toggleDrops();
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
var mobObj = MapleLifeFactory.getMonster(9400518); var mobObj = LifeFactory.getMonster(9400518);
mapObj.spawnMonsterOnGroundBelow(mobObj, new Point(-245, 810)); mapObj.spawnMonsterOnGroundBelow(mobObj, new Point(-245, 810));
cm.sendOk("The fierry appeared! Defeat it to get the #b#t4031596##k!"); cm.sendOk("The fierry appeared! Defeat it to get the #b#t4031596##k!");

View File

@@ -244,9 +244,9 @@ function getPlayerCardTierPower() {
countTier[ceTier] += ce.getValue(); countTier[ceTier] += ce.getValue();
if (ceTier >= 8) { // is special card 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'); 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; var mobTier = getLevelTier(mobLevel) - 1;
countTier[mobTier] += (ce.getValue() * 1.2); countTier[mobTier] += (ce.getValue() * 1.2);

View File

@@ -7,10 +7,10 @@ function enter(pi) {
var chests = parseInt(eim.getProperty("openedChests")); var chests = parseInt(eim.getProperty("openedChests"));
var boss; var boss;
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
if(chests == 0) boss = MapleLifeFactory.getMonster(9300119); //lord pirate if(chests == 0) boss = LifeFactory.getMonster(9300119); //lord pirate
else if(chests == 1) boss = MapleLifeFactory.getMonster(9300105); //angry lord pirate else if(chests == 1) boss = LifeFactory.getMonster(9300105); //angry lord pirate
else boss = MapleLifeFactory.getMonster(9300106); //enraged lord pirate else boss = LifeFactory.getMonster(9300106); //enraged lord pirate
boss.changeDifficulty(level, true); boss.changeDifficulty(level, true);

View File

@@ -1,9 +1,9 @@
function enter(pi) { function enter(pi) {
var mapobj = pi.getWarpMap(104000004); var mapobj = pi.getWarpMap(104000004);
if(pi.isQuestActive(21733) && pi.getQuestProgressInt(21733, 9300345) == 0 && mapobj.countMonsters() == 0) { 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'); 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); pi.setQuestProgress(21733, 21762, 2);
} }

View File

@@ -34,8 +34,8 @@ function spawnMob(x, y, id, map) {
if(map.getMonsterById(id) != null) if(map.getMonsterById(id) != null)
return; return;
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
var mob = MapleLifeFactory.getMonster(id); var mob = LifeFactory.getMonster(id);
map.spawnMonsterOnGroundBelow(mob, new Point(x, y)); map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
} }

View File

@@ -7,9 +7,9 @@ function enter(pi) {
mapobj1.resetPQ(1); mapobj1.resetPQ(1);
mapobj2.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'); 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); pi.playPortalSound(); pi.warp(920030000,2);
return true; return true;

View File

@@ -42,8 +42,8 @@ function spawnMob(x, y, id, map) {
if(map.getMonsterById(id) != null) if(map.getMonsterById(id) != null)
return; return;
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
var mob = MapleLifeFactory.getMonster(id); var mob = LifeFactory.getMonster(id);
map.spawnMonsterOnGroundBelow(mob, new Point(x, y)); map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
} }

View File

@@ -75,8 +75,8 @@ function spawnMob(x, y, id, map) {
if(map.getMonsterById(id) != null) if(map.getMonsterById(id) != null)
return; return;
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');
var mob = MapleLifeFactory.getMonster(id); var mob = LifeFactory.getMonster(id);
map.spawnMonsterOnGroundBelow(mob, new Point(x, y)); map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
} }

View File

@@ -24,8 +24,8 @@ function spawnJrBoss(mobObj) {
mobObj.getMap().killMonster(mobObj.getId()); mobObj.getMap().killMonster(mobObj.getId());
var spawnid = mobObj.getId() - 17; var spawnid = mobObj.getId() - 17;
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
var mob = MapleLifeFactory.getMonster(spawnid); var mob = LifeFactory.getMonster(spawnid);
mobObj.getMap().spawnMonsterOnGroundBelow(mob, mobObj.getPosition()); mobObj.getMap().spawnMonsterOnGroundBelow(mob, mobObj.getPosition());
} }

View File

@@ -30,9 +30,9 @@ function act(){
var startId = 9400523; var startId = 9400523;
var mobObj, mapObj = rm.getMap(); 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++) { 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()); mapObj.spawnMonsterOnGroundBelow(mobObj, rm.getReactor().getPosition());
} }
} }

View File

@@ -30,9 +30,9 @@ function act(){
var startId = 9400523; var startId = 9400523;
var mobObj, mapObj = rm.getMap(); 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++) { 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()); mapObj.spawnMonsterOnGroundBelow(mobObj, rm.getReactor().getPosition());
} }
} }

View File

@@ -30,9 +30,9 @@ function act(){
var startId = 9400523; var startId = 9400523;
var mobObj, mapObj = rm.getMap(); 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++) { 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()); mapObj.spawnMonsterOnGroundBelow(mobObj, rm.getReactor().getPosition());
} }
} }

View File

@@ -27,7 +27,7 @@ import client.Character;
import client.Client; import client.Client;
import client.command.Command; import client.command.Command;
import net.server.Server; import net.server.Server;
import server.life.MapleLifeFactory; import server.life.LifeFactory;
import tools.PacketCreator; import tools.PacketCreator;
public class BombCommand extends Command { public class BombCommand extends Command {
@@ -41,13 +41,13 @@ public class BombCommand extends Command {
if (params.length > 0) { if (params.length > 0) {
Character victim = c.getWorldServer().getPlayerStorage().getCharacterByName(params[0]); Character victim = c.getWorldServer().getPlayerStorage().getCharacterByName(params[0]);
if (victim != null) { if (victim != null) {
victim.getMap().spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(9300166), victim.getPosition()); victim.getMap().spawnMonsterOnGroundBelow(LifeFactory.getMonster(9300166), victim.getPosition());
Server.getInstance().broadcastGMMessage(c.getWorld(), PacketCreator.serverNotice(5, player.getName() + " used !bomb on " + victim.getName())); Server.getInstance().broadcastGMMessage(c.getWorld(), PacketCreator.serverNotice(5, player.getName() + " used !bomb on " + victim.getName()));
} else { } else {
player.message("Player '" + params[0] + "' could not be found on this world."); player.message("Player '" + params[0] + "' could not be found on this world.");
} }
} else { } else {
player.getMap().spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(9300166), player.getPosition()); player.getMap().spawnMonsterOnGroundBelow(LifeFactory.getMonster(9300166), player.getPosition());
} }
} }
} }

View File

@@ -26,7 +26,7 @@ package client.command.commands.gm3;
import client.Character; import client.Character;
import client.Client; import client.Client;
import client.command.Command; import client.command.Command;
import server.life.MapleLifeFactory; import server.life.LifeFactory;
import server.life.MapleNPC; import server.life.MapleNPC;
import tools.PacketCreator; import tools.PacketCreator;
@@ -42,7 +42,7 @@ public class NpcCommand extends Command {
player.yellowMessage("Syntax: !npc <npcid>"); player.yellowMessage("Syntax: !npc <npcid>");
return; return;
} }
MapleNPC npc = MapleLifeFactory.getNPC(Integer.parseInt(params[0])); MapleNPC npc = LifeFactory.getNPC(Integer.parseInt(params[0]));
if (npc != null) { if (npc != null) {
npc.setPosition(player.getPosition()); npc.setPosition(player.getPosition());
npc.setCy(player.getPosition().y); npc.setCy(player.getPosition().y);

View File

@@ -26,7 +26,7 @@ package client.command.commands.gm3;
import client.Character; import client.Character;
import client.Client; import client.Client;
import client.command.Command; import client.command.Command;
import server.life.MapleLifeFactory; import server.life.LifeFactory;
import server.life.MapleMonster; import server.life.MapleMonster;
public class SpawnCommand extends Command { public class SpawnCommand extends Command {
@@ -42,16 +42,16 @@ public class SpawnCommand extends Command {
return; return;
} }
MapleMonster monster = MapleLifeFactory.getMonster(Integer.parseInt(params[0])); MapleMonster monster = LifeFactory.getMonster(Integer.parseInt(params[0]));
if (monster == null) { if (monster == null) {
return; return;
} }
if (params.length == 2) { if (params.length == 2) {
for (int i = 0; i < Integer.parseInt(params[1]); i++) { for (int i = 0; i < Integer.parseInt(params[1]); i++) {
player.getMap().spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(Integer.parseInt(params[0])), player.getPosition()); player.getMap().spawnMonsterOnGroundBelow(LifeFactory.getMonster(Integer.parseInt(params[0])), player.getPosition());
} }
} else { } else {
player.getMap().spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(Integer.parseInt(params[0])), player.getPosition()); player.getMap().spawnMonsterOnGroundBelow(LifeFactory.getMonster(Integer.parseInt(params[0])), player.getPosition());
} }
} }
} }

View File

@@ -26,7 +26,7 @@ package client.command.commands.gm4;
import client.Character; import client.Character;
import client.Client; import client.Client;
import client.command.Command; import client.command.Command;
import server.life.MapleLifeFactory; import server.life.LifeFactory;
import server.life.MapleMonster; import server.life.MapleMonster;
public class CakeCommand extends Command { public class CakeCommand extends Command {
@@ -37,7 +37,7 @@ public class CakeCommand extends Command {
@Override @Override
public void execute(Client c, String[] params) { public void execute(Client c, String[] params) {
Character player = c.getPlayer(); Character player = c.getPlayer();
MapleMonster monster = MapleLifeFactory.getMonster(9400606); MapleMonster monster = LifeFactory.getMonster(9400606);
if (params.length == 1) { if (params.length == 1) {
double mobHp = Double.parseDouble(params[0]); double mobHp = Double.parseDouble(params[0]);
int newHp = (mobHp <= 0) ? Integer.MAX_VALUE : ((mobHp > Integer.MAX_VALUE) ? Integer.MAX_VALUE : (int) mobHp); int newHp = (mobHp <= 0) ? Integer.MAX_VALUE : ((mobHp > Integer.MAX_VALUE) ? Integer.MAX_VALUE : (int) mobHp);

View File

@@ -26,7 +26,7 @@ package client.command.commands.gm4;
import client.Character; import client.Character;
import client.Client; import client.Client;
import client.command.Command; import client.command.Command;
import server.life.MapleLifeFactory; import server.life.LifeFactory;
public class PapCommand extends Command { public class PapCommand extends Command {
{ {
@@ -38,6 +38,6 @@ public class PapCommand extends Command {
Character player = c.getPlayer(); Character player = c.getPlayer();
// thanks Conrad for noticing mobid typo here // thanks Conrad for noticing mobid typo here
player.getMap().spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8500001), player.getPosition()); player.getMap().spawnMonsterOnGroundBelow(LifeFactory.getMonster(8500001), player.getPosition());
} }
} }

View File

@@ -26,7 +26,7 @@ package client.command.commands.gm4;
import client.Character; import client.Character;
import client.Client; import client.Client;
import client.command.Command; import client.command.Command;
import server.life.MapleLifeFactory; import server.life.LifeFactory;
public class PianusCommand extends Command { public class PianusCommand extends Command {
{ {
@@ -36,6 +36,6 @@ public class PianusCommand extends Command {
@Override @Override
public void execute(Client c, String[] params) { public void execute(Client c, String[] params) {
Character player = c.getPlayer(); Character player = c.getPlayer();
player.getMap().spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8510000), player.getPosition()); player.getMap().spawnMonsterOnGroundBelow(LifeFactory.getMonster(8510000), player.getPosition());
} }
} }

View File

@@ -26,7 +26,7 @@ package client.command.commands.gm4;
import client.Character; import client.Character;
import client.Client; import client.Client;
import client.command.Command; import client.command.Command;
import server.life.MapleLifeFactory; import server.life.LifeFactory;
public class PinkbeanCommand extends Command { public class PinkbeanCommand extends Command {
{ {
@@ -36,7 +36,7 @@ public class PinkbeanCommand extends Command {
@Override @Override
public void execute(Client c, String[] params) { public void execute(Client c, String[] params) {
Character player = c.getPlayer(); Character player = c.getPlayer();
player.getMap().spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8820001), player.getPosition()); player.getMap().spawnMonsterOnGroundBelow(LifeFactory.getMonster(8820001), player.getPosition());
} }
} }

View File

@@ -27,7 +27,7 @@ import client.Character;
import client.Client; import client.Client;
import client.command.Command; import client.command.Command;
import net.server.channel.Channel; import net.server.channel.Channel;
import server.life.MapleLifeFactory; import server.life.LifeFactory;
import server.life.MapleMonster; import server.life.MapleMonster;
import server.maps.MapleMap; import server.maps.MapleMap;
import tools.DatabaseConnection; import tools.DatabaseConnection;
@@ -60,7 +60,7 @@ public class PmobCommand extends Command {
int ypos = checkpos.y; int ypos = checkpos.y;
int fh = player.getMap().getFootholds().findBelow(checkpos).getId(); int fh = player.getMap().getFootholds().findBelow(checkpos).getId();
MapleMonster mob = MapleLifeFactory.getMonster(mobId); MapleMonster mob = LifeFactory.getMonster(mobId);
if (mob != null && !mob.getName().equals("MISSINGNO")) { if (mob != null && !mob.getName().equals("MISSINGNO")) {
mob.setPosition(checkpos); mob.setPosition(checkpos);
mob.setCy(ypos); mob.setCy(ypos);

View File

@@ -27,7 +27,7 @@ import client.Character;
import client.Client; import client.Client;
import client.command.Command; import client.command.Command;
import net.server.channel.Channel; import net.server.channel.Channel;
import server.life.MapleLifeFactory; import server.life.LifeFactory;
import server.life.MapleNPC; import server.life.MapleNPC;
import server.maps.MapleMap; import server.maps.MapleMap;
import tools.DatabaseConnection; import tools.DatabaseConnection;
@@ -59,7 +59,7 @@ public class PnpcCommand extends Command {
return; return;
} }
MapleNPC npc = MapleLifeFactory.getNPC(npcId); MapleNPC npc = LifeFactory.getNPC(npcId);
Point checkpos = player.getMap().getGroundBelow(player.getPosition()); Point checkpos = player.getMap().getGroundBelow(player.getPosition());
int xpos = checkpos.x; int xpos = checkpos.x;
@@ -85,7 +85,7 @@ public class PnpcCommand extends Command {
ps.executeUpdate(); ps.executeUpdate();
for (Channel ch : player.getWorldServer().getChannels()) { for (Channel ch : player.getWorldServer().getChannels()) {
npc = MapleLifeFactory.getNPC(npcId); npc = LifeFactory.getNPC(npcId);
npc.setPosition(checkpos); npc.setPosition(checkpos);
npc.setCy(ypos); npc.setCy(ypos);
npc.setRx0(xpos + 50); npc.setRx0(xpos + 50);

View File

@@ -26,7 +26,7 @@ package client.command.commands.gm4;
import client.Character; import client.Character;
import client.Client; import client.Client;
import client.command.Command; import client.command.Command;
import server.life.MapleLifeFactory; import server.life.LifeFactory;
public class ZakumCommand extends Command { public class ZakumCommand extends Command {
{ {
@@ -36,9 +36,9 @@ public class ZakumCommand extends Command {
@Override @Override
public void execute(Client c, String[] params) { public void execute(Client c, String[] params) {
Character player = c.getPlayer(); Character player = c.getPlayer();
player.getMap().spawnFakeMonsterOnGroundBelow(MapleLifeFactory.getMonster(8800000), player.getPosition()); player.getMap().spawnFakeMonsterOnGroundBelow(LifeFactory.getMonster(8800000), player.getPosition());
for (int x = 8800003; x < 8800011; x++) { for (int x = 8800003; x < 8800011; x++) {
player.getMap().spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(x), player.getPosition()); player.getMap().spawnMonsterOnGroundBelow(LifeFactory.getMonster(x), player.getPosition());
} }
} }
} }

View File

@@ -29,7 +29,7 @@ import client.inventory.manipulator.InventoryManipulator;
import net.AbstractPacketHandler; import net.AbstractPacketHandler;
import net.packet.InPacket; import net.packet.InPacket;
import server.MapleItemInformationProvider; import server.MapleItemInformationProvider;
import server.life.MapleLifeFactory; import server.life.LifeFactory;
import server.life.MapleMonster; import server.life.MapleMonster;
import server.maps.MapleMapObject; import server.maps.MapleMapObject;
import server.maps.MapleMapObjectType; import server.maps.MapleMapObjectType;
@@ -55,7 +55,7 @@ public final class AdminCommandHandler extends AbstractPacketHandler {
int[][] toSpawn = MapleItemInformationProvider.getInstance().getSummonMobs(p.readInt()); int[][] toSpawn = MapleItemInformationProvider.getInstance().getSummonMobs(p.readInt());
for (int[] toSpawnChild : toSpawn) { for (int[] toSpawnChild : toSpawn) {
if (Randomizer.nextInt(100) < toSpawnChild[1]) { if (Randomizer.nextInt(100) < toSpawnChild[1]) {
c.getPlayer().getMap().spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(toSpawnChild[0]), c.getPlayer().getPosition()); c.getPlayer().getMap().spawnMonsterOnGroundBelow(LifeFactory.getMonster(toSpawnChild[0]), c.getPlayer().getPosition());
} }
} }
c.sendPacket(PacketCreator.enableActions()); c.sendPacket(PacketCreator.enableActions());
@@ -141,7 +141,7 @@ public final class AdminCommandHandler extends AbstractPacketHandler {
int mobId = p.readInt(); int mobId = p.readInt();
int quantity = p.readInt(); int quantity = p.readInt();
for (int i = 0; i < quantity; i++) { for (int i = 0; i < quantity; i++) {
c.getPlayer().getMap().spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), c.getPlayer().getPosition()); c.getPlayer().getMap().spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), c.getPlayer().getPosition());
} }
break; break;
case 0x18: // Maple & Mobhp case 0x18: // Maple & Mobhp

View File

@@ -23,7 +23,7 @@ import client.Character;
import client.Client; import client.Client;
import net.AbstractPacketHandler; import net.AbstractPacketHandler;
import net.packet.InPacket; import net.packet.InPacket;
import server.life.MapleLifeFactory.BanishInfo; import server.life.LifeFactory.BanishInfo;
import server.life.MapleMonster; import server.life.MapleMonster;
public final class MobBanishPlayerHandler extends AbstractPacketHandler { public final class MobBanishPlayerHandler extends AbstractPacketHandler {

View File

@@ -28,7 +28,7 @@ import net.AbstractPacketHandler;
import net.packet.InPacket; import net.packet.InPacket;
import net.server.world.Party; import net.server.world.Party;
import net.server.world.PartyCharacter; import net.server.world.PartyCharacter;
import server.life.MapleLifeFactory; import server.life.LifeFactory;
import server.life.MapleMonster; import server.life.MapleMonster;
import server.partyquest.MapleCarnivalFactory; import server.partyquest.MapleCarnivalFactory;
import server.partyquest.MapleCarnivalFactory.MCSkill; import server.partyquest.MapleCarnivalFactory.MCSkill;
@@ -62,7 +62,7 @@ public final class MonsterCarnivalHandler extends AbstractPacketHandler {
return; return;
} }
final MapleMonster mob = MapleLifeFactory.getMonster(mobs.get(num).left); final MapleMonster mob = LifeFactory.getMonster(mobs.get(num).left);
MonsterCarnival mcpq = c.getPlayer().getMonsterCarnival(); MonsterCarnival mcpq = c.getPlayer().getMonsterCarnival();
if (mcpq != null) { if (mcpq != null) {
if (!mcpq.canSummonR() && c.getPlayer().getTeam() == 0 || !mcpq.canSummonB() && c.getPlayer().getTeam() == 1) { if (!mcpq.canSummonR() && c.getPlayer().getTeam() == 0 || !mcpq.canSummonB() && c.getPlayer().getTeam() == 1) {

View File

@@ -36,7 +36,7 @@ import constants.skills.Aran;
import net.AbstractPacketHandler; import net.AbstractPacketHandler;
import net.packet.InPacket; import net.packet.InPacket;
import server.MapleStatEffect; import server.MapleStatEffect;
import server.life.MapleLifeFactory.loseItem; import server.life.LifeFactory.loseItem;
import server.life.*; import server.life.*;
import server.maps.MapleMap; import server.maps.MapleMap;
import server.maps.MapleMapObject; import server.maps.MapleMapObject;

View File

@@ -28,7 +28,7 @@ import client.inventory.manipulator.InventoryManipulator;
import net.AbstractPacketHandler; import net.AbstractPacketHandler;
import net.packet.InPacket; import net.packet.InPacket;
import server.MapleItemInformationProvider; import server.MapleItemInformationProvider;
import server.life.MapleLifeFactory; import server.life.LifeFactory;
import tools.PacketCreator; import tools.PacketCreator;
import tools.Randomizer; import tools.Randomizer;
@@ -54,7 +54,7 @@ public final class UseSummonBagHandler extends AbstractPacketHandler {
int[][] toSpawn = MapleItemInformationProvider.getInstance().getSummonMobs(itemId); int[][] toSpawn = MapleItemInformationProvider.getInstance().getSummonMobs(itemId);
for (int[] toSpawnChild : toSpawn) { for (int[] toSpawnChild : toSpawn) {
if (Randomizer.nextInt(100) < toSpawnChild[1]) { if (Randomizer.nextInt(100) < toSpawnChild[1]) {
c.getPlayer().getMap().spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(toSpawnChild[0]), c.getPlayer().getPosition()); c.getPlayer().getMap().spawnMonsterOnGroundBelow(LifeFactory.getMonster(toSpawnChild[0]), c.getPlayer().getPosition());
} }
} }
} }

View File

@@ -948,7 +948,7 @@ public class AbstractPlayerInteraction {
} }
public void spawnNpc(int npcId, Point pos, MapleMap map) { public void spawnNpc(int npcId, Point pos, MapleMap map) {
MapleNPC npc = MapleLifeFactory.getNPC(npcId); MapleNPC npc = LifeFactory.getNPC(npcId);
if (npc != null) { if (npc != null) {
npc.setPosition(pos); npc.setPosition(pos);
npc.setCy(pos.y); npc.setCy(pos.y);
@@ -961,13 +961,13 @@ public class AbstractPlayerInteraction {
} }
public void spawnMonster(int id, int x, int y) { public void spawnMonster(int id, int x, int y) {
MapleMonster monster = MapleLifeFactory.getMonster(id); MapleMonster monster = LifeFactory.getMonster(id);
monster.setPosition(new Point(x, y)); monster.setPosition(new Point(x, y));
getPlayer().getMap().spawnMonster(monster); getPlayer().getMap().spawnMonster(monster);
} }
public MapleMonster getMonsterLifeFactory(int mid) { public MapleMonster getMonsterLifeFactory(int mid) {
return MapleLifeFactory.getMonster(mid); return LifeFactory.getMonster(mid);
} }
public MobSkill getMobSkill(int skill, int level) { public MobSkill getMobSkill(int skill, int level) {

View File

@@ -41,7 +41,7 @@ import server.MapleStatEffect;
import server.ThreadManager; import server.ThreadManager;
import server.TimerManager; import server.TimerManager;
import server.expeditions.Expedition; import server.expeditions.Expedition;
import server.life.MapleLifeFactory; import server.life.LifeFactory;
import server.life.MapleMonster; import server.life.MapleMonster;
import server.life.MapleNPC; import server.life.MapleNPC;
import server.maps.MapleMap; import server.maps.MapleMap;
@@ -849,7 +849,7 @@ public class EventInstanceManager {
} }
public void spawnNpc(int npcId, Point pos, MapleMap map) { public void spawnNpc(int npcId, Point pos, MapleMap map) {
MapleNPC npc = MapleLifeFactory.getNPC(npcId); MapleNPC npc = LifeFactory.getNPC(npcId);
if (npc != null) { if (npc != null) {
npc.setPosition(pos); npc.setPosition(pos);
npc.setCy(pos.y); npc.setCy(pos.y);
@@ -877,7 +877,7 @@ public class EventInstanceManager {
} }
public MapleMonster getMonster(int mid) { public MapleMonster getMonster(int mid) {
return(MapleLifeFactory.getMonster(mid)); return(LifeFactory.getMonster(mid));
} }
private List<Integer> convertToIntegerList(List<Object> objects) { private List<Integer> convertToIntegerList(List<Object> objects) {

Some files were not shown because too many files have changed in this diff Show More