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

@@ -9,8 +9,8 @@ function start(ms){
return;
}
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), new Point(-1027, 216));
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), new Point(-1027, 216));
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -2,15 +2,15 @@ function start(ms) {
var player = ms.getPlayer();
var map = player.getMap();
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
if (player.isCygnus()) {
if (ms.isQuestStarted(20730) && ms.getQuestProgressInt(20730, 9300285) == 0) {
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(9300285), new Point(680, 258));
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(9300285), new Point(680, 258));
}
} else {
if (ms.isQuestStarted(21731) && ms.getQuestProgressInt(21731, 9300344) == 0) {
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(9300344), new Point(680, 258));
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(9300344), new Point(680, 258));
}
}
}

View File

@@ -3,8 +3,8 @@ function start(ms){
var map = player.getMap();
if(ms.isQuestStarted(21747) && ms.getQuestProgressInt(21747, 9300351) == 0) {
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(9300351), new Point(897, 51));
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(9300351), new Point(897, 51));
}
}

View File

@@ -3,7 +3,7 @@ function start(ms) {
map.resetPQ(1);
if(map.countMonster(9100013) == 0) {
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(9100013), new java.awt.Point(82, 200));
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(9100013), new java.awt.Point(82, 200));
}
return(true);

View File

@@ -3,7 +3,7 @@ function start(ms){
var player = ms.getPlayer();
var map = player.getMap();
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), new Point(-28, -67));
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), new Point(-28, -67));
}