Merge pull request #55 from P0nk/maple-cleanup

Remove "Maple" prefix from class names
This commit is contained in:
Ponk
2021-09-09 23:18:38 +02:00
committed by GitHub
805 changed files with 16094 additions and 15674 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ function friendlyKilled(mob, eim) {
}
function allMonstersDead(eim) {
// When invoking unregisterMonster(MapleMonster mob) OR killed
// When invoking unregisterMonster(Monster mob) OR killed
// Happens only when size = 0
}
+3 -3
View File
@@ -107,7 +107,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers && mask == 3)) eligible = [];
if(onlyMarriedPlayers && hasNotMarried) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
@@ -148,9 +148,9 @@ function setup(level, lobbyid) {
var mapObj = eim.getInstanceMap(670010700);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
var mobObj = MapleLifeFactory.getMonster(9400536);
var mobObj = LifeFactory.getMonster(9400536);
mapObj.spawnMonsterOnGroundBelow(mobObj, new Point(942, 478));
respawnStages(eim);
+2 -2
View File
@@ -40,9 +40,9 @@ function cancelSchedule() {
}
function start() {
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
var mapObj = em.getChannelServer().getMapFactory().getMap(800020120); // original mapid was 251010101
var mobObj = MapleLifeFactory.getMonster(6090002);
var mobObj = LifeFactory.getMonster(6090002);
if(mapObj.getMonsterById(6090002) != null) {
em.schedule("start", 3 * 60 *60 * 1000);
+2 -2
View File
@@ -47,11 +47,11 @@ function start() {
return;
}
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
const PacketCreator = Java.type('tools.PacketCreator');
var gcent = MapleLifeFactory.getMonster(5220004);
var gcent = LifeFactory.getMonster(5220004);
herbGarden.spawnMonsterOnGroundBelow(gcent, new Point(560, 50));
herbGarden.broadcastMessage(PacketCreator.serverNotice(6, "From the mists surrounding the herb garden, the gargantuous Giant Centipede appears."));
em.schedule("start", 3 * 60 *60 * 1000);
+2 -2
View File
@@ -47,11 +47,11 @@ function start() {
return;
}
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
const PacketCreator = Java.type('tools.PacketCreator');
var deo = MapleLifeFactory.getMonster(3220001);
var deo = LifeFactory.getMonster(3220001);
royalCatthusDesert.spawnMonsterOnGroundBelow(deo, new Point(645, 275));
royalCatthusDesert.broadcastMessage(PacketCreator.serverNotice(6, "Deo slowly appeared out of the sand dust."));
em.schedule("start", 3 * 60 *60 * 1000);
+2 -2
View File
@@ -50,9 +50,9 @@ function start() {
const Point = Java.type('java.awt.Point');
const PacketCreator = Java.type('tools.PacketCreator');
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
var boss = MapleLifeFactory.getMonster(bossMobid);
var boss = LifeFactory.getMonster(bossMobid);
var bossPos = new Point(467, 0);
map.spawnMonsterOnGroundBelow(boss, bossPos);
map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg));
+2 -2
View File
@@ -48,11 +48,11 @@ function start() {
return;
}
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
const PacketCreator = Java.type('tools.PacketCreator');
var boss = MapleLifeFactory.getMonster(bossMobid);
var boss = LifeFactory.getMonster(bossMobid);
var bossPos = new Point(201, 80);
map.spawnMonsterOnGroundBelow(boss, bossPos);
map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg));
+2 -2
View File
@@ -48,11 +48,11 @@ function start() {
return;
}
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
const PacketCreator = Java.type('tools.PacketCreator');
var boss = MapleLifeFactory.getMonster(bossMobid);
var boss = LifeFactory.getMonster(bossMobid);
var bossPos = new Point(251, -841);
map.spawnMonsterOnGroundBelow(boss, bossPos);
map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg));
+2 -2
View File
@@ -48,11 +48,11 @@ function start() {
return;
}
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
const PacketCreator = Java.type('tools.PacketCreator');
var boss = MapleLifeFactory.getMonster(bossMobid);
var boss = LifeFactory.getMonster(bossMobid);
var bossPos = new Point(842, 0);
map.spawnMonsterOnGroundBelow(boss, bossPos);
map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg));
+2 -2
View File
@@ -48,11 +48,11 @@ function start() {
return;
}
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
const PacketCreator = Java.type('tools.PacketCreator');
var boss = MapleLifeFactory.getMonster(bossMobid);
var boss = LifeFactory.getMonster(bossMobid);
var bossPos = new Point(461, 61);
map.spawnMonsterOnGroundBelow(boss, bossPos);
map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg));
+2 -2
View File
@@ -48,11 +48,11 @@ function start() {
return;
}
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
const PacketCreator = Java.type('tools.PacketCreator');
var boss = MapleLifeFactory.getMonster(bossMobid);
var boss = LifeFactory.getMonster(bossMobid);
var bossPos = new Point(171, 50);
map.spawnMonsterOnGroundBelow(boss, bossPos);
map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg));
+2 -2
View File
@@ -47,11 +47,11 @@ function start() {
return;
}
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const PacketCreator = Java.type('tools.PacketCreator');
const Point = Java.type('java.awt.Point');
const spawnpoint = new Point(90, 119);
dangeroudCroko1.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(6220000), spawnpoint);
dangeroudCroko1.spawnMonsterOnGroundBelow(LifeFactory.getMonster(6220000), spawnpoint);
dangeroudCroko1.broadcastMessage(PacketCreator.serverNotice(6, "The huge crocodile Dyle has come out from the swamp."));
setupTask = em.schedule("start", 3 * 60 * 60 * 1000);
}
+2 -2
View File
@@ -43,8 +43,8 @@ function cancelSchedule() {
}
function start() {
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
var eliza = MapleLifeFactory.getMonster(8220000);
const LifeFactory = Java.type('server.life.LifeFactory');
var eliza = LifeFactory.getMonster(8220000);
var stairwayToTheSky2 = em.getChannelServer().getMapFactory().getMap(200010300);
if(stairwayToTheSky2.getMonsterById(8220000) != null) {
+2 -2
View File
@@ -47,11 +47,11 @@ function start() {
return;
}
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const PacketCreator = Java.type('tools.PacketCreator');
const Point = Java.type('java.awt.Point');
var faust1 = MapleLifeFactory.getMonster(5220002);
var faust1 = LifeFactory.getMonster(5220002);
const spawnpoint = new Point(456, 278);
theForestOfEvil1.spawnMonsterOnGroundBelow(faust1, spawnpoint);
theForestOfEvil1.broadcastMessage(PacketCreator.serverNotice(6, "Faust appeared amidst the blue fog."));
+2 -2
View File
@@ -41,9 +41,9 @@ function cancelSchedule() {
}
function start() {
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
var theForestOfEvil2 = em.getChannelServer().getMapFactory().getMap(100040106);
var faust2 = MapleLifeFactory.getMonster(5220002);
var faust2 = LifeFactory.getMonster(5220002);
if(theForestOfEvil2.getMonsterById(5220002) != null) {
em.schedule("start", 3 * 60 *60 * 1000);
+2 -2
View File
@@ -41,9 +41,9 @@ function cancelSchedule() {
}
function start() {
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
var labSecretBasementPath = em.getChannelServer().getMapFactory().getMap(261030000);
var chimera = MapleLifeFactory.getMonster(8220002);
var chimera = LifeFactory.getMonster(8220002);
if(labSecretBasementPath.getMonsterById(8220002) != null) {
em.schedule("start", 3 * 60 *60 * 1000);
+2 -2
View File
@@ -49,8 +49,8 @@ function start() {
return;
}
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
var kingClang = MapleLifeFactory.getMonster(5220001);
const LifeFactory = Java.type('server.life.LifeFactory');
var kingClang = LifeFactory.getMonster(5220001);
var posX;
var posY = 140;
posX = Math.floor((Math.random() * 2400) - 1600);
+2 -2
View File
@@ -42,8 +42,8 @@ function cancelSchedule() {
function start() {
var goblinForest2 = em.getChannelServer().getMapFactory().getMap(250010504);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
var kingSageCat = MapleLifeFactory.getMonster(7220002);
const LifeFactory = Java.type('server.life.LifeFactory');
var kingSageCat = LifeFactory.getMonster(7220002);
if(goblinForest2.getMonsterById(7220002) != null) {
em.schedule("start", 3 * 60 *60 * 1000);
+2 -2
View File
@@ -42,8 +42,8 @@ function cancelSchedule() {
function start() {
var leviathansCanyon = em.getChannelServer().getMapFactory().getMap(240040401);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
var leviathan = MapleLifeFactory.getMonster(8220003);
const LifeFactory = Java.type('server.life.LifeFactory');
var leviathan = LifeFactory.getMonster(8220003);
if(leviathansCanyon.getMonsterById(8220003) != null) {
em.schedule("start", 3 * 60 *60 * 1000);
return;
+2 -2
View File
@@ -41,8 +41,8 @@ function cancelSchedule() {
function start() {
var thicketAroundTheBeach3 = em.getChannelServer().getMapFactory().getMap(104000400);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
var mano = MapleLifeFactory.getMonster(2220000);
const LifeFactory = Java.type('server.life.LifeFactory');
var mano = LifeFactory.getMonster(2220000);
if(thicketAroundTheBeach3.getMonsterById(2220000) != null) {
em.schedule("start", 3 * 60 * 60 * 1000);
return;
+2 -2
View File
@@ -42,8 +42,8 @@ function cancelSchedule() {
function start() {
var moonRidge = em.getChannelServer().getMapFactory().getMap(222010310);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
var nineTailedFox = MapleLifeFactory.getMonster(7220001);
const LifeFactory = Java.type('server.life.LifeFactory');
var nineTailedFox = LifeFactory.getMonster(7220001);
if(moonRidge.getMonsterById(7220001) != null) {
em.schedule("start", 3 * 60 *60 * 1000);
return;
+2 -2
View File
@@ -43,8 +43,8 @@ function cancelSchedule() {
function start() {
var theSeaweedTower = em.getChannelServer().getMapFactory().getMap(230020100);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
var seruf = MapleLifeFactory.getMonster(4220001);
const LifeFactory = Java.type('server.life.LifeFactory');
var seruf = LifeFactory.getMonster(4220001);
if(theSeaweedTower.getMonsterById(4220001) != null) {
em.schedule("start", 3 * 60 * 60 * 1000);
+2 -2
View File
@@ -50,11 +50,11 @@ function start() {
var setPos = [[-626, -604], [735, -600]];
var rndPos = setPos[Math.floor(Math.random() * setPos.length)];
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
const PacketCreator = Java.type('tools.PacketCreator');
var snackBar = MapleLifeFactory.getMonster(8220008);
var snackBar = LifeFactory.getMonster(8220008);
snackBarMap.spawnMonsterOnGroundBelow(snackBar, new Point(rndPos[0], rndPos[1]));
snackBarMap.broadcastMessage(PacketCreator.serverNotice(6, "Slowly, a suspicious food stand opens up on a strangely remote place."));
em.schedule("start", 3 * 60 * 60 * 1000);
+2 -2
View File
@@ -42,8 +42,8 @@ function cancelSchedule() {
function start() {
var eastRockyMountain5 = em.getChannelServer().getMapFactory().getMap(101030404);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
var stumpy = MapleLifeFactory.getMonster(3220000);
const LifeFactory = Java.type('server.life.LifeFactory');
var stumpy = LifeFactory.getMonster(3220000);
if(eastRockyMountain5.getMonsterById(3220000) != null) {
em.schedule("start", 3 * 60 * 60 * 1000);
+2 -2
View File
@@ -42,8 +42,8 @@ function cancelSchedule() {
function start() {
var territoryOfWanderingBear = em.getChannelServer().getMapFactory().getMap(250010304);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
var taeRoon = MapleLifeFactory.getMonster(7220000);
const LifeFactory = Java.type('server.life.LifeFactory');
var taeRoon = LifeFactory.getMonster(7220000);
if(territoryOfWanderingBear.getMonsterById(7220000) != null) {
em.schedule("start", 3 * 60 * 60 * 1000);
+2 -2
View File
@@ -41,8 +41,8 @@ function cancelSchedule() {
function start() {
var whirlpoolOfTime = em.getChannelServer().getMapFactory().getMap(220050100);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
var timer1 = MapleLifeFactory.getMonster(5220003);
const LifeFactory = Java.type('server.life.LifeFactory');
var timer1 = LifeFactory.getMonster(5220003);
if(whirlpoolOfTime.getMonsterById(5220003) != null) {
em.schedule("start", 3 * 60 * 60 * 1000);
+2 -2
View File
@@ -42,8 +42,8 @@ function cancelSchedule() {
function start() {
var lostTime1 = em.getChannelServer().getMapFactory().getMap(220050000);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
var timer2 = MapleLifeFactory.getMonster(5220003);
const LifeFactory = Java.type('server.life.LifeFactory');
var timer2 = LifeFactory.getMonster(5220003);
if(lostTime1.getMonsterById(5220003) != null) {
em.schedule("start", 3 * 60 * 60 * 1000);
+2 -2
View File
@@ -43,8 +43,8 @@ function cancelSchedule() {
function start() {
var lostTime2 = em.getChannelServer().getMapFactory().getMap(220050200);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
var timer3 = MapleLifeFactory.getMonster(5220003);
const LifeFactory = Java.type('server.life.LifeFactory');
var timer3 = LifeFactory.getMonster(5220003);
if(lostTime2.getMonsterById(5220003) != null) {
em.schedule("start", 3 * 60 * 60 * 1000);
+2 -2
View File
@@ -47,11 +47,11 @@ function start() {
return;
}
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
const PacketCreator = Java.type('tools.PacketCreator');
var zeno = MapleLifeFactory.getMonster(6220001);
var zeno = LifeFactory.getMonster(6220001);
graysPrairie.spawnMonsterOnGroundBelow(zeno, new Point(-4224, 776));
graysPrairie.broadcastMessage(PacketCreator.serverNotice(6, "Zeno has appeared with a heavy sound of machinery."));
em.schedule("start", 3 * 60 * 60 * 1000);
+6 -6
View File
@@ -103,7 +103,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
@@ -135,16 +135,16 @@ function releaseLeftClaw(eim) {
function spawnBalrog(eim) {
var mapObj = eim.getInstanceMap(entryMap);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
mapObj.spawnFakeMonsterOnGroundBelow(MapleLifeFactory.getMonster(8830000), new Point(412, 258));
mapObj.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8830002), new Point(412, 258));
mapObj.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8830006), new Point(412, 258));
mapObj.spawnFakeMonsterOnGroundBelow(LifeFactory.getMonster(8830000), new Point(412, 258));
mapObj.spawnMonsterOnGroundBelow(LifeFactory.getMonster(8830002), new Point(412, 258));
mapObj.spawnMonsterOnGroundBelow(LifeFactory.getMonster(8830006), new Point(412, 258));
}
function spawnSealedBalrog(eim) {
const Point = Java.type('java.awt.Point');
eim.getInstanceMap(entryMap).spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(bossMobId), new Point(412, 258));
eim.getInstanceMap(entryMap).spawnMonsterOnGroundBelow(LifeFactory.getMonster(bossMobId), new Point(412, 258));
}
function playerEntry(eim, player) {
+6 -6
View File
@@ -103,7 +103,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
@@ -135,16 +135,16 @@ function releaseLeftClaw(eim) {
function spawnBalrog(eim) {
var mapObj = eim.getInstanceMap(entryMap);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
mapObj.spawnFakeMonsterOnGroundBelow(MapleLifeFactory.getMonster(8830007), new Point(412, 258));
mapObj.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8830009), new Point(412, 258));
mapObj.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8830013), new Point(412, 258));
mapObj.spawnFakeMonsterOnGroundBelow(LifeFactory.getMonster(8830007), new Point(412, 258));
mapObj.spawnMonsterOnGroundBelow(LifeFactory.getMonster(8830009), new Point(412, 258));
mapObj.spawnMonsterOnGroundBelow(LifeFactory.getMonster(8830013), new Point(412, 258));
}
function spawnSealedBalrog(eim) {
const Point = Java.type('java.awt.Point');
eim.getInstanceMap(entryMap).spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(bossMobId), new Point(412, 258));
eim.getInstanceMap(entryMap).spawnMonsterOnGroundBelow(LifeFactory.getMonster(bossMobId), new Point(412, 258));
}
function playerEntry(eim, player) {
+5 -5
View File
@@ -95,17 +95,17 @@ function approach() {
}
function invasion() {
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
var map1 = Boat_to_Ellinia;
var pos1 = new java.awt.Point(-538, 143);
map1.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8150000), pos1);
map1.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8150000), pos1);
map1.spawnMonsterOnGroundBelow(LifeFactory.getMonster(8150000), pos1);
map1.spawnMonsterOnGroundBelow(LifeFactory.getMonster(8150000), pos1);
var map2 = Boat_to_Orbis;
var pos2 = new java.awt.Point(339, 148);
map2.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8150000), pos2);
map2.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8150000), pos2);
map2.spawnMonsterOnGroundBelow(LifeFactory.getMonster(8150000), pos2);
map2.spawnMonsterOnGroundBelow(LifeFactory.getMonster(8150000), pos2);
}
function cancelSchedule() {}
+1 -1
View File
@@ -117,7 +117,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+1 -1
View File
@@ -100,7 +100,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+1 -1
View File
@@ -100,7 +100,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+1 -1
View File
@@ -100,7 +100,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+1 -1
View File
@@ -100,7 +100,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+1 -1
View File
@@ -100,7 +100,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+1 -1
View File
@@ -100,7 +100,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+1 -1
View File
@@ -80,7 +80,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+1 -1
View File
@@ -100,7 +100,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+1 -1
View File
@@ -90,7 +90,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+1 -1
View File
@@ -80,7 +80,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+1 -1
View File
@@ -112,7 +112,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+1 -1
View File
@@ -98,7 +98,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+3 -3
View File
@@ -110,7 +110,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
@@ -304,9 +304,9 @@ function snowmanEvolve(eim, curLevel) {
eim.setIntProperty("snowmanLevel", curLevel + 2); // increment by 2 to decrement by 1 on friendlyKilled
mapobj.killMonster(snowman, null, false, 2);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
var snowman = MapleLifeFactory.getMonster(9400317 + (5 * difficulty) + curLevel);
var snowman = LifeFactory.getMonster(9400317 + (5 * difficulty) + curLevel);
mapobj.spawnMonsterOnGroundBelow(snowman, new Point(-180, 15));
if(curLevel >= 4) {
+3 -3
View File
@@ -110,7 +110,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
@@ -304,9 +304,9 @@ function snowmanEvolve(eim, curLevel) {
eim.setIntProperty("snowmanLevel", curLevel + 2); // increment by 2 to decrement by 1 on friendlyKilled
mapobj.killMonster(snowman, null, false, 2);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
var snowman = MapleLifeFactory.getMonster(9400317 + (5 * difficulty) + curLevel);
var snowman = LifeFactory.getMonster(9400317 + (5 * difficulty) + curLevel);
mapobj.spawnMonsterOnGroundBelow(snowman, new Point(-180, 15));
if(curLevel >= 4) {
+3 -3
View File
@@ -110,7 +110,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
@@ -304,9 +304,9 @@ function snowmanEvolve(eim, curLevel) {
eim.setIntProperty("snowmanLevel", curLevel + 2); // increment by 2 to decrement by 1 on friendlyKilled
mapobj.killMonster(snowman, null, false, 2);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
var snowman = MapleLifeFactory.getMonster(9400317 + (5 * difficulty) + curLevel);
var snowman = LifeFactory.getMonster(9400317 + (5 * difficulty) + curLevel);
mapobj.spawnMonsterOnGroundBelow(snowman, new Point(-180, 15));
if(curLevel >= 4) {
+3 -3
View File
@@ -96,15 +96,15 @@ function setup(channel) {
eim.getInstanceMap(240060100).resetPQ(level);
eim.getInstanceMap(240060200).resetPQ(level);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
var map, mob;
map = eim.getInstanceMap(240060000);
mob = MapleLifeFactory.getMonster(8810000);
mob = LifeFactory.getMonster(8810000);
map.spawnMonsterOnGroundBelow(mob, new Point(960, 120));
map = eim.getInstanceMap(240060100);
mob = MapleLifeFactory.getMonster(8810001);
mob = LifeFactory.getMonster(8810001);
map.spawnMonsterOnGroundBelow(mob, new Point(-420, 120));
eim.startEventTimer(eventTime * 60000);
+1 -1
View File
@@ -98,7 +98,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+1 -1
View File
@@ -98,7 +98,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+1 -1
View File
@@ -98,7 +98,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+1 -1
View File
@@ -98,7 +98,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+1 -1
View File
@@ -98,7 +98,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+3 -3
View File
@@ -31,7 +31,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(difficulty, lobbyId){
@@ -63,9 +63,9 @@ function respawn(eim){
var weddinghall = eim.getMapInstance(entryMap);
weddinghall.getPortal(1).setPortalState(false);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
weddinghall.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), new Point(292, 143));
weddinghall.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), new Point(292, 143));
} else {
eim.schedule("respawn", 10000);
}
+3 -3
View File
@@ -31,7 +31,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(difficulty, lobbyId){
@@ -54,9 +54,9 @@ function respawn(eim){
var weddinghall = eim.getMapInstance(entryMap);
weddinghall.getPortal(1).setPortalState(false);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
weddinghall.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), new Point(292, 143));
weddinghall.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), new Point(292, 143));
} else {
eim.schedule("respawn", 10000);
}
+12 -12
View File
@@ -98,7 +98,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
@@ -244,16 +244,16 @@ function respawnStages(eim) {
var mapobj = eim.getMapInstance(926110401);
var mobcount = mapobj.countMonster(9300150);
var mobobj;
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
if(mobcount == 0) {
mobobj = MapleLifeFactory.getMonster(9300150);
mobobj = LifeFactory.getMonster(9300150);
mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-278, -126));
mobobj = MapleLifeFactory.getMonster(9300150);
mobobj = LifeFactory.getMonster(9300150);
mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-542, -126));
} else if(mobcount == 1) {
mobobj = MapleLifeFactory.getMonster(9300150);
mobobj = LifeFactory.getMonster(9300150);
mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-542, -126));
}
}
@@ -313,12 +313,12 @@ function yuleteAction(eim) {
mapobj.destroyNPC(2112010);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
var mobobj1, mobobj2;
for(var i = 0; i < 5; i++) {
mobobj1 = MapleLifeFactory.getMonster(mob1);
mobobj2 = MapleLifeFactory.getMonster(mob2);
mobobj1 = LifeFactory.getMonster(mob1);
mobobj2 = LifeFactory.getMonster(mob2);
mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(-455, 135));
mapobj.spawnMonsterOnGroundBelow(mobobj2, new Point(-455, 135));
@@ -326,8 +326,8 @@ function yuleteAction(eim) {
for(var i = 0; i < 5; i++) {
mobobj1 = MapleLifeFactory.getMonster(mob1);
mobobj2 = MapleLifeFactory.getMonster(mob2);
mobobj1 = LifeFactory.getMonster(mob1);
mobobj2 = LifeFactory.getMonster(mob2);
mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(0, 135));
mapobj.spawnMonsterOnGroundBelow(mobobj2, new Point(0, 135));
@@ -335,8 +335,8 @@ function yuleteAction(eim) {
for(var i = 0; i < 5; i++) {
mobobj1 = MapleLifeFactory.getMonster(mob1);
mobobj2 = MapleLifeFactory.getMonster(mob2);
mobobj1 = LifeFactory.getMonster(mob1);
mobobj2 = LifeFactory.getMonster(mob2);
mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(360, 135));
mapobj.spawnMonsterOnGroundBelow(mobobj2, new Point(360, 135));
+12 -12
View File
@@ -98,7 +98,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
@@ -244,16 +244,16 @@ function respawnStages(eim) {
var mapobj = eim.getMapInstance(926100401);
var mobcount = mapobj.countMonster(9300150);
var mobobj;
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
if(mobcount == 0) {
mobobj = MapleLifeFactory.getMonster(9300150);
mobobj = LifeFactory.getMonster(9300150);
mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-278, -126));
mobobj = MapleLifeFactory.getMonster(9300150);
mobobj = LifeFactory.getMonster(9300150);
mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-542, -126));
} else if(mobcount == 1) {
mobobj = MapleLifeFactory.getMonster(9300150);
mobobj = LifeFactory.getMonster(9300150);
mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-542, -126));
}
}
@@ -313,12 +313,12 @@ function yuleteAction(eim) {
mapobj.destroyNPC(2112000);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
var mobobj1, mobobj2;
for(var i = 0; i < 5; i++) {
mobobj1 = MapleLifeFactory.getMonster(mob1);
mobobj2 = MapleLifeFactory.getMonster(mob2);
mobobj1 = LifeFactory.getMonster(mob1);
mobobj2 = LifeFactory.getMonster(mob2);
mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(-455, 135));
mapobj.spawnMonsterOnGroundBelow(mobobj2, new Point(-455, 135));
@@ -326,8 +326,8 @@ function yuleteAction(eim) {
for(var i = 0; i < 5; i++) {
mobobj1 = MapleLifeFactory.getMonster(mob1);
mobobj2 = MapleLifeFactory.getMonster(mob2);
mobobj1 = LifeFactory.getMonster(mob1);
mobobj2 = LifeFactory.getMonster(mob2);
mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(0, 135));
mapobj.spawnMonsterOnGroundBelow(mobobj2, new Point(0, 135));
@@ -335,8 +335,8 @@ function yuleteAction(eim) {
for(var i = 0; i < 5; i++) {
mobobj1 = MapleLifeFactory.getMonster(mob1);
mobobj2 = MapleLifeFactory.getMonster(mob2);
mobobj1 = LifeFactory.getMonster(mob1);
mobobj2 = LifeFactory.getMonster(mob2);
mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(360, 135));
mapobj.spawnMonsterOnGroundBelow(mobobj2, new Point(360, 135));
+1 -1
View File
@@ -98,7 +98,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+1 -1
View File
@@ -98,7 +98,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+4 -4
View File
@@ -102,9 +102,9 @@ function setup(channel) {
eim.getInstanceMap(270050200).resetPQ(level);
eim.getInstanceMap(270050300).resetPQ(level);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
var mob = MapleLifeFactory.getMonster(8820000);
var mob = LifeFactory.getMonster(8820000);
mob.disableDrops();
eim.getInstanceMap(270050100).spawnMonsterOnGroundBelow(mob, new Point(0, -42));
@@ -234,8 +234,8 @@ function spawnJrBoss(mobObj, gotKilled) {
spawnid = mobObj.getId() - 17;
}
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
var mob = MapleLifeFactory.getMonster(spawnid);
const LifeFactory = Java.type('server.life.LifeFactory');
var mob = LifeFactory.getMonster(spawnid);
mobObj.getMap().spawnMonsterOnGroundBelow(mob, mobObj.getPosition());
}
+1 -1
View File
@@ -90,7 +90,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+1 -1
View File
@@ -77,7 +77,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+1 -1
View File
@@ -100,7 +100,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+1 -1
View File
@@ -100,7 +100,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+1 -1
View File
@@ -100,7 +100,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+1 -1
View File
@@ -100,7 +100,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+1 -1
View File
@@ -100,7 +100,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+1 -1
View File
@@ -99,7 +99,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+2 -2
View File
@@ -72,9 +72,9 @@ function setEventRewards(eim) {
function spawnCakeBoss(eim) {
var mapObj = eim.getMapInstance(680000400);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
var mobObj = MapleLifeFactory.getMonster(9400606);
var mobObj = LifeFactory.getMonster(9400606);
mapObj.spawnMonsterOnGroundBelow(mobObj, new Point(777, -177));
}
+2 -2
View File
@@ -72,9 +72,9 @@ function setEventRewards(eim) {
function spawnCakeBoss(eim) {
var mapObj = eim.getMapInstance(680000400);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
var mobObj = MapleLifeFactory.getMonster(9400606);
var mobObj = LifeFactory.getMonster(9400606);
mapObj.spawnMonsterOnGroundBelow(mobObj, new Point(777, -177));
}
+1 -1
View File
@@ -98,7 +98,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+1 -1
View File
@@ -30,7 +30,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader && eligible.length >= minPlayers)) eligible = [];
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
return Java.to(eligible, Java.type('net.server.world.PartyCharacter[]'));
}
function setup(level, lobbyid) {
+2 -2
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));
}
}
+2 -2
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));
}
+2 -2
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));
}
+2 -2
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));
}
+2 -2
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));
}
+2 -2
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));
}
+2 -2
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!");
}
+2 -2
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!");
}
+2 -2
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!");
}
+2 -2
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!");
}
+2 -2
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!");
}
+2 -2
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!");
}
+3 -3
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));
}
}
}
+2 -2
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));
}
}
+1 -1
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);
+2 -2
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));
}
+2 -2
View File
@@ -94,9 +94,9 @@ function action(mode, type, selection) {
return;
}
const MaplePlayerNPC = Java.type('server.life.MaplePlayerNPC');
const PlayerNPC = Java.type('server.life.PlayerNPC');
const GameConstants = Java.type('constants.game.GameConstants');
if(MaplePlayerNPC.spawnPlayerNPC(GameConstants.getHallOfFameMapid(cm.getJob()), cm.getPlayer())) {
if(PlayerNPC.spawnPlayerNPC(GameConstants.getHallOfFameMapid(cm.getJob()), cm.getPlayer())) {
cm.sendOk("There you go! Hope you will like it.");
cm.gainMeso(-spawnPnpcFee);
} else {
+2 -2
View File
@@ -95,9 +95,9 @@ function action(mode, type, selection) {
return;
}
const MaplePlayerNPC = Java.type('server.life.MaplePlayerNPC');
const PlayerNPC = Java.type('server.life.PlayerNPC');
const GameConstants = Java.type('constants.game.GameConstants');
if(MaplePlayerNPC.spawnPlayerNPC(GameConstants.getHallOfFameMapid(cm.getJob()), cm.getPlayer())) {
if(PlayerNPC.spawnPlayerNPC(GameConstants.getHallOfFameMapid(cm.getJob()), cm.getPlayer())) {
cm.sendOk("There you go! Hope you will like it.");
cm.gainMeso(-spawnPnpcFee);
} else {
+5 -5
View File
@@ -116,7 +116,7 @@ function action(mode, type, selection) {
if(!cm.hasItem(itemToUse) && vp > 0)
useVP = true;
const MapleInventoryType = Java.type('client.inventory.MapleInventoryType');
const InventoryType = Java.type('client.inventory.InventoryType');
if(choice == 0) {
// VP Exchange
if(!cm.canHold(itemToUse)) {
@@ -141,7 +141,7 @@ function action(mode, type, selection) {
cm.logLeaf(nxAmount + " NX");
cm.dispose();
} else if(choice == 2) {
if(!cm.getPlayer().getInventory(MapleInventoryType.SETUP).isFull(chairAmount)) {
if(!cm.getPlayer().getInventory(InventoryType.SETUP).isFull(chairAmount)) {
var chairStr = "";
for(var i = 0; i < chairAmount; i++) {
@@ -161,7 +161,7 @@ function action(mode, type, selection) {
cm.sendOk("Please make sure you have enough space to hold the items!");
}
} else if(choice == 3) {
if(!cm.getPlayer().getInventory(MapleInventoryType.EQUIP).isFull(weaponAmount)) {
if(!cm.getPlayer().getInventory(InventoryType.EQUIP).isFull(weaponAmount)) {
var weaponStr = "";
for(var i = 0; i < weaponAmount; i++) {
@@ -181,7 +181,7 @@ function action(mode, type, selection) {
cm.sendOk("Please make sure you have enough space to hold the items!");
}
} else if(choice == 4) {
if(!cm.getPlayer().getInventory(MapleInventoryType.USE).isFull(2)) {
if(!cm.getPlayer().getInventory(InventoryType.USE).isFull(2)) {
cm.gainItem(buff1ID, buffAmount, true);
cm.gainItem(buff2ID, buffAmount, true);
cm.gainItem(itemToUse, -1);
@@ -192,7 +192,7 @@ function action(mode, type, selection) {
}
} else if(choice == 5) {
if(!cm.haveItem(5030000, 1)) {
if(!cm.getPlayer().getInventory(MapleInventoryType.CASH).isFull(1)){
if(!cm.getPlayer().getInventory(InventoryType.CASH).isFull(1)){
cm.gainItem(5030000, 1, false, true, 1000 * 60 * 60 * 24 * hiredMerchantLength);
if(useVP)
+2 -2
View File
@@ -95,9 +95,9 @@ function action(mode, type, selection) {
return;
}
const MaplePlayerNPC = Java.type('server.life.MaplePlayerNPC');
const PlayerNPC = Java.type('server.life.PlayerNPC');
const GameConstants = Java.type('constants.game.GameConstants');
if(MaplePlayerNPC.spawnPlayerNPC(GameConstants.getHallOfFameMapid(cm.getJob()), cm.getPlayer())) {
if(PlayerNPC.spawnPlayerNPC(GameConstants.getHallOfFameMapid(cm.getJob()), cm.getPlayer())) {
cm.sendOk("There you go! Hope you will like it.");
cm.gainMeso(-spawnPnpcFee);
} else {
+6 -6
View File
@@ -69,7 +69,7 @@ function action(mode, type, selection) {
//var level = cm.getPlayer().getPet(i).getLevel();
//var closeness = cm.getPlayer().getPet(i).getCloseness();
//var fullness = cm.getPlayer().getPet(i).getFullness();
//MapleItemInformationProvider ii = MapleItemInformationProvider.getInstance();
//ItemInformationProvider ii = ItemInformationProvider.getInstance();
if (id < 5000029 || id > 5000033) {
cm.sendOk("Something wrong, try again.");
cm.dispose();
@@ -89,8 +89,8 @@ function action(mode, type, selection) {
cm.dispose();
}
/*if (name.equals(MapleItemInformationProvider.getInstance().getName(id))) {
name = MapleItemInformationProvider.getInstance().getName(after);
/*if (name.equals(ItemInformationProvider.getInstance().getName(id))) {
name = ItemInformationProvider.getInstance().getName(after);
}*/
cm.gainItem(5380000, -1);
@@ -101,9 +101,9 @@ function action(mode, type, selection) {
}
} else if (status == 2) {
if (selection == 0) {
const MapleInventoryManipulator = Java.type('client.inventory.manipulator.MapleInventoryManipulator');
const MapleInventoryType = Java.type('client.inventory.MapleInventoryType');
MapleInventoryManipulator.removeFromSlot(cm.getClient(), MapleInventoryType.CASH, 1, 1, true);
const InventoryManipulator = Java.type('client.inventory.manipulator.InventoryManipulator');
const InventoryType = Java.type('client.inventory.InventoryType');
InventoryManipulator.removeFromSlot(cm.getClient(), InventoryType.CASH, 1, 1, true);
cm.sendOk("Your cash first slot is removed.");
} else if (selection == 1) {
if (cm.haveItem(5000029, 2)) {
+4 -4
View File
@@ -35,14 +35,14 @@ function action(mode, type, selection){
var player = cm.getPlayer();
var map = player.getMap();
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
for(var i = 0; i < 10; i++)
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), new Point(117, 183));
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), new Point(117, 183));
for(var i = 0; i < 10; i++)
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), new Point(4, 183));
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), new Point(4, 183));
for(var i = 0; i < 10; i++)
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), new Point(-109, 183));
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), new Point(-109, 183));
cm.completeQuest(20718, 1103003);
cm.gainExp(4000 * cm.getPlayer().getExpRate());
+2 -2
View File
@@ -96,9 +96,9 @@ function action(mode, type, selection) {
return;
}
const MaplePlayerNPC = Java.type('server.life.MaplePlayerNPC');
const PlayerNPC = Java.type('server.life.PlayerNPC');
const GameConstants = Java.type('constants.game.GameConstants');
if(MaplePlayerNPC.spawnPlayerNPC(GameConstants.getHallOfFameMapid(cm.getJob()), cm.getPlayer())) {
if(PlayerNPC.spawnPlayerNPC(GameConstants.getHallOfFameMapid(cm.getJob()), cm.getPlayer())) {
cm.sendOk("There you go! Hope you will like it.");
cm.gainMeso(-spawnPnpcFee);
} else {
+2 -2
View File
@@ -28,8 +28,8 @@ var expedition;
var expedMembers;
var player;
var em;
const MapleExpeditionType = Java.type('server.expeditions.MapleExpeditionType');
const exped = MapleExpeditionType.BALROG_NORMAL;
const ExpeditionType = Java.type('server.expeditions.ExpeditionType');
const exped = ExpeditionType.BALROG_NORMAL;
var expedName = "Balrog";
var expedBoss = "Balrog";
var expedMap = "Balrog's Tomb";
+2 -2
View File
@@ -34,8 +34,8 @@ function start() {
cm.gainItem(4031025,10);
} else {
const MapleInventoryType = Java.type('client.inventory.MapleInventoryType');
if(cm.getPlayer().getInventory(MapleInventoryType.ETC).getNumFreeSlot() < 1) {
const InventoryType = Java.type('client.inventory.InventoryType');
if(cm.getPlayer().getInventory(InventoryType.ETC).getNumFreeSlot() < 1) {
cm.sendNext("Check for a available slot on your ETC inventory.");
cm.dispose();
return;
+2 -2
View File
@@ -34,8 +34,8 @@ function start() {
cm.gainItem(4031026,20);
} else {
const MapleInventoryType = Java.type('client.inventory.MapleInventoryType');
if(cm.getPlayer().getInventory(MapleInventoryType.ETC).getNumFreeSlot() < 1) {
const InventoryType = Java.type('client.inventory.InventoryType');
if(cm.getPlayer().getInventory(InventoryType.ETC).getNumFreeSlot() < 1) {
cm.sendNext("Check for a available slot on your ETC inventory.");
cm.dispose();
return;
+2 -2
View File
@@ -34,8 +34,8 @@ function start() {
cm.gainItem(4031028,30);
} else {
const MapleInventoryType = Java.type('client.inventory.MapleInventoryType');
if(cm.getPlayer().getInventory(MapleInventoryType.ETC).getNumFreeSlot() < 1) {
const InventoryType = Java.type('client.inventory.InventoryType');
if(cm.getPlayer().getInventory(InventoryType.ETC).getNumFreeSlot() < 1) {
cm.sendNext("Check for a available slot on your ETC inventory.");
cm.dispose();
return;

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