Remove "Maple" prefix from MaplePacketCreator name
This commit is contained in:
@@ -57,18 +57,18 @@ function cancelSchedule() {
|
||||
|
||||
function start() {
|
||||
const Server = Java.type('net.server.Server');
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
var world = Server.getInstance().getWorld(em.getChannelServer().getWorld());
|
||||
world.setExpRate(8);
|
||||
world.broadcastPacket(MaplePacketCreator.serverNotice(6, "The Bunny Onslaught Survival Scanner (BOSS) has detected an Easter Bunny onslaught soon! The GM team has activated the Emergency XP Pool (EXP) that doubles experience gained for the next two hours!"));
|
||||
world.broadcastPacket(PacketCreator.serverNotice(6, "The Bunny Onslaught Survival Scanner (BOSS) has detected an Easter Bunny onslaught soon! The GM team has activated the Emergency XP Pool (EXP) that doubles experience gained for the next two hours!"));
|
||||
}
|
||||
|
||||
function stop() {
|
||||
const Server = Java.type('net.server.Server');
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
var world = Server.getInstance().getWorld(em.getChannelServer().getWorld());
|
||||
world.setExpRate(4);
|
||||
world.broadcastPacket(MaplePacketCreator.serverNotice(6, "Unfortunately the Emergency XP Pool (EXP) has run out of juice for now and needs to recharge causing the EXP rate to go back to normal."));
|
||||
world.broadcastPacket(PacketCreator.serverNotice(6, "Unfortunately the Emergency XP Pool (EXP) has run out of juice for now and needs to recharge causing the EXP rate to go back to normal."));
|
||||
}
|
||||
|
||||
// ---------- FILLER FUNCTIONS ----------
|
||||
|
||||
@@ -54,8 +54,8 @@ function playerEntry(eim, player) {
|
||||
player.changeMap(entryMap, 0);
|
||||
em.setProperty("noEntry","true");
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
player.getClient().announce(MaplePacketCreator.getClock(eventTime * 60));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
player.getClient().announce(PacketCreator.getClock(eventTime * 60));
|
||||
eim.startEventTimer(eventTime * 60000);
|
||||
}
|
||||
|
||||
|
||||
@@ -54,8 +54,8 @@ function playerEntry(eim, player) {
|
||||
player.changeMap(entryMap, 0);
|
||||
em.setProperty("noEntry","true");
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
player.getClient().announce(MaplePacketCreator.getClock(eventTime * 60));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
player.getClient().announce(PacketCreator.getClock(eventTime * 60));
|
||||
eim.startEventTimer(eventTime * 60000);
|
||||
}
|
||||
|
||||
|
||||
@@ -84,8 +84,8 @@ function playerEntry(eim, player) {
|
||||
player.changeMap(entryMap, 0);
|
||||
em.setProperty("noEntry","true");
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
player.getClient().announce(MaplePacketCreator.getClock(eventTime * 60));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
player.getClient().announce(PacketCreator.getClock(eventTime * 60));
|
||||
eim.startEventTimer(eventTime * 60000);
|
||||
}
|
||||
|
||||
|
||||
@@ -46,8 +46,8 @@ function playerEntry(eim, player) {
|
||||
player.changeMap(entryMap, 0);
|
||||
em.setProperty("noEntry","true");
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
player.getClient().announce(MaplePacketCreator.getClock(eventTime * 60));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
player.getClient().announce(PacketCreator.getClock(eventTime * 60));
|
||||
eim.startEventTimer(eventTime * 60000);
|
||||
}
|
||||
|
||||
|
||||
@@ -54,8 +54,8 @@ function playerEntry(eim, player) {
|
||||
player.changeMap(entryMap, 0);
|
||||
em.setProperty("noEntry","true");
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
player.getClient().announce(MaplePacketCreator.getClock(eventTime * 60));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
player.getClient().announce(PacketCreator.getClock(eventTime * 60));
|
||||
eim.startEventTimer(eventTime * 60000);
|
||||
}
|
||||
|
||||
|
||||
@@ -54,8 +54,8 @@ function playerEntry(eim, player) {
|
||||
player.changeMap(entryMap, 0);
|
||||
em.setProperty("noEntry","true");
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
player.getClient().announce(MaplePacketCreator.getClock(eventTime * 60));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
player.getClient().announce(PacketCreator.getClock(eventTime * 60));
|
||||
eim.startEventTimer(eventTime * 60000);
|
||||
}
|
||||
|
||||
|
||||
@@ -60,8 +60,8 @@ function playerEntry(eim, player) {
|
||||
player.changeMap(entryMap, 2);
|
||||
em.setProperty("noEntry","true");
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
player.getClient().announce(MaplePacketCreator.getClock(eventTime * 60));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
player.getClient().announce(PacketCreator.getClock(eventTime * 60));
|
||||
eim.startEventTimer(eventTime * 60000);
|
||||
}
|
||||
|
||||
|
||||
@@ -61,8 +61,8 @@ function playerEntry(eim, player) {
|
||||
player.changeMap(entryMap, 1);
|
||||
em.setProperty("noEntry","true");
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
player.getClient().announce(MaplePacketCreator.getClock(eventTime * 60));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
player.getClient().announce(PacketCreator.getClock(eventTime * 60));
|
||||
eim.startEventTimer(eventTime * 60000);
|
||||
}
|
||||
|
||||
|
||||
@@ -50,9 +50,9 @@ function start() {
|
||||
}
|
||||
|
||||
const Point = Java.type('java.awt.Point');
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
mapObj.spawnMonsterOnGroundBelow(mobObj, new Point(560, 50));
|
||||
mapObj.broadcastMessage(MaplePacketCreator.serverNotice(6, "From amongst the ruins shrouded by the mists, Bamboo Warrior appears."));
|
||||
mapObj.broadcastMessage(PacketCreator.serverNotice(6, "From amongst the ruins shrouded by the mists, Bamboo Warrior appears."));
|
||||
em.schedule("start", 3 * 60 *60 * 1000);
|
||||
}
|
||||
|
||||
|
||||
@@ -49,11 +49,11 @@ function start() {
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
|
||||
var gcent = MapleLifeFactory.getMonster(5220004);
|
||||
herbGarden.spawnMonsterOnGroundBelow(gcent, new Point(560, 50));
|
||||
herbGarden.broadcastMessage(MaplePacketCreator.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);
|
||||
}
|
||||
|
||||
|
||||
@@ -49,11 +49,11 @@ function start() {
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
|
||||
var deo = MapleLifeFactory.getMonster(3220001);
|
||||
royalCatthusDesert.spawnMonsterOnGroundBelow(deo, new Point(645, 275));
|
||||
royalCatthusDesert.broadcastMessage(MaplePacketCreator.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);
|
||||
}
|
||||
|
||||
|
||||
@@ -49,13 +49,13 @@ function start() {
|
||||
}
|
||||
|
||||
const Point = Java.type('java.awt.Point');
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
|
||||
var boss = MapleLifeFactory.getMonster(bossMobid);
|
||||
var bossPos = new Point(467, 0);
|
||||
map.spawnMonsterOnGroundBelow(boss, bossPos);
|
||||
map.broadcastMessage(MaplePacketCreator.serverNotice(6, bossMsg));
|
||||
map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg));
|
||||
|
||||
em.schedule("start", 3 * 60 * 60 * 1000);
|
||||
}
|
||||
|
||||
@@ -50,12 +50,12 @@ function start() {
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
|
||||
var boss = MapleLifeFactory.getMonster(bossMobid);
|
||||
var bossPos = new Point(201, 80);
|
||||
map.spawnMonsterOnGroundBelow(boss, bossPos);
|
||||
map.broadcastMessage(MaplePacketCreator.serverNotice(6, bossMsg));
|
||||
map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg));
|
||||
|
||||
em.schedule("start", 3 * 60 * 60 * 1000);
|
||||
}
|
||||
|
||||
@@ -50,12 +50,12 @@ function start() {
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
|
||||
var boss = MapleLifeFactory.getMonster(bossMobid);
|
||||
var bossPos = new Point(251, -841);
|
||||
map.spawnMonsterOnGroundBelow(boss, bossPos);
|
||||
map.broadcastMessage(MaplePacketCreator.serverNotice(6, bossMsg));
|
||||
map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg));
|
||||
|
||||
em.schedule("start", 3 * 60 * 60 * 1000);
|
||||
}
|
||||
|
||||
@@ -50,12 +50,12 @@ function start() {
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
|
||||
var boss = MapleLifeFactory.getMonster(bossMobid);
|
||||
var bossPos = new Point(842, 0);
|
||||
map.spawnMonsterOnGroundBelow(boss, bossPos);
|
||||
map.broadcastMessage(MaplePacketCreator.serverNotice(6, bossMsg));
|
||||
map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg));
|
||||
|
||||
em.schedule("start", 3 * 60 * 60 * 1000);
|
||||
}
|
||||
|
||||
@@ -50,12 +50,12 @@ function start() {
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
|
||||
var boss = MapleLifeFactory.getMonster(bossMobid);
|
||||
var bossPos = new Point(461, 61);
|
||||
map.spawnMonsterOnGroundBelow(boss, bossPos);
|
||||
map.broadcastMessage(MaplePacketCreator.serverNotice(6, bossMsg));
|
||||
map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg));
|
||||
|
||||
em.schedule("start", 3 * 60 * 60 * 1000);
|
||||
}
|
||||
|
||||
@@ -50,12 +50,12 @@ function start() {
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
|
||||
var boss = MapleLifeFactory.getMonster(bossMobid);
|
||||
var bossPos = new Point(171, 50);
|
||||
map.spawnMonsterOnGroundBelow(boss, bossPos);
|
||||
map.broadcastMessage(MaplePacketCreator.serverNotice(6, bossMsg));
|
||||
map.broadcastMessage(PacketCreator.serverNotice(6, bossMsg));
|
||||
|
||||
em.schedule("start", 3 * 60 * 60 * 1000);
|
||||
}
|
||||
|
||||
@@ -48,11 +48,11 @@ function start() {
|
||||
}
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
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.broadcastMessage(MaplePacketCreator.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);
|
||||
}
|
||||
|
||||
|
||||
@@ -52,11 +52,11 @@ function start() {
|
||||
return;
|
||||
}
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
const spawnpoint = new Point(208, 83);
|
||||
stairwayToTheSky2.spawnMonsterOnGroundBelow(eliza, spawnpoint);
|
||||
stairwayToTheSky2.broadcastMessage(MaplePacketCreator.serverNotice(6, "Eliza has appeared with a black whirlwind."));
|
||||
stairwayToTheSky2.broadcastMessage(PacketCreator.serverNotice(6, "Eliza has appeared with a black whirlwind."));
|
||||
em.schedule("start", 3 * 60 *60 * 1000);
|
||||
}
|
||||
|
||||
|
||||
@@ -48,13 +48,13 @@ function start() {
|
||||
}
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
|
||||
var faust1 = MapleLifeFactory.getMonster(5220002);
|
||||
const spawnpoint = new Point(456, 278);
|
||||
theForestOfEvil1.spawnMonsterOnGroundBelow(faust1, spawnpoint);
|
||||
theForestOfEvil1.broadcastMessage(MaplePacketCreator.serverNotice(6, "Faust appeared amidst the blue fog."));
|
||||
theForestOfEvil1.broadcastMessage(PacketCreator.serverNotice(6, "Faust appeared amidst the blue fog."));
|
||||
em.schedule("start", 3 * 60 *60 * 1000);
|
||||
}
|
||||
|
||||
|
||||
@@ -54,8 +54,8 @@ function start() {
|
||||
const spawnpoint = new Point(474, 278);
|
||||
theForestOfEvil2.spawnMonsterOnGroundBelow(faust2, spawnpoint);
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
theForestOfEvil2.broadcastMessage(MaplePacketCreator.serverNotice(6, "Faust appeared amidst the blue fog."));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
theForestOfEvil2.broadcastMessage(PacketCreator.serverNotice(6, "Faust appeared amidst the blue fog."));
|
||||
em.schedule("start", 3 * 60 *60 * 1000);
|
||||
}
|
||||
|
||||
|
||||
@@ -57,8 +57,8 @@ function start() {
|
||||
const spawnpoint = new Point(posX, posY);
|
||||
labSecretBasementPath.spawnMonsterOnGroundBelow(chimera, spawnpoint);
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
labSecretBasementPath.broadcastMessage(MaplePacketCreator.serverNotice(6, "Kimera has appeared out of the darkness of the underground with a glitter in her eyes."));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
labSecretBasementPath.broadcastMessage(PacketCreator.serverNotice(6, "Kimera has appeared out of the darkness of the underground with a glitter in her eyes."));
|
||||
em.schedule("start", 3 * 60 *60 * 1000);
|
||||
}
|
||||
|
||||
|
||||
@@ -58,8 +58,8 @@ function start() {
|
||||
const spawnpoint = new Point(posX, posY);
|
||||
hotSand.spawnMonsterOnGroundBelow(kingClang, spawnpoint);
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
hotSand.broadcastMessage(MaplePacketCreator.serverNotice(6, "A strange turban shell has appeared on the beach."));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
hotSand.broadcastMessage(PacketCreator.serverNotice(6, "A strange turban shell has appeared on the beach."));
|
||||
em.schedule("start", 3 * 60 * 60 * 1000);
|
||||
}
|
||||
|
||||
|
||||
@@ -56,8 +56,8 @@ function start() {
|
||||
const spawnpoint = new Point(posX, posY);
|
||||
goblinForest2.spawnMonsterOnGroundBelow(kingSageCat, spawnpoint);
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
goblinForest2.broadcastMessage(MaplePacketCreator.serverNotice(6, "The ghostly air around here has become stronger. The unpleasant sound of a cat crying can be heard."));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
goblinForest2.broadcastMessage(PacketCreator.serverNotice(6, "The ghostly air around here has become stronger. The unpleasant sound of a cat crying can be heard."));
|
||||
em.schedule("start", 3 * 60 *60 * 1000);
|
||||
}
|
||||
|
||||
|
||||
@@ -56,8 +56,8 @@ function start() {
|
||||
const spawnpoint = new Point(posX, posY);
|
||||
leviathansCanyon.spawnMonsterOnGroundBelow(leviathan, spawnpoint);
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
leviathansCanyon.broadcastMessage(MaplePacketCreator.serverNotice(6, "Leviathan emerges from the canyon and the cold icy wind blows."));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
leviathansCanyon.broadcastMessage(PacketCreator.serverNotice(6, "Leviathan emerges from the canyon and the cold icy wind blows."));
|
||||
em.schedule("start", 3 * 60 *60 * 1000);
|
||||
}
|
||||
|
||||
|
||||
@@ -52,8 +52,8 @@ function start() {
|
||||
const spawnpoint = new Point(279, -496);
|
||||
thicketAroundTheBeach3.spawnMonsterOnGroundBelow(mano, spawnpoint);
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
thicketAroundTheBeach3.broadcastMessage(MaplePacketCreator.serverNotice(6, "A cool breeze was felt when Mano appeared."));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
thicketAroundTheBeach3.broadcastMessage(PacketCreator.serverNotice(6, "A cool breeze was felt when Mano appeared."));
|
||||
em.schedule("start", 3 * 60 *60 * 1000);
|
||||
}
|
||||
|
||||
|
||||
@@ -55,8 +55,8 @@ function start() {
|
||||
const spawnpoint = new Point(posX, posY);
|
||||
moonRidge.spawnMonsterOnGroundBelow(nineTailedFox, spawnpoint);
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
moonRidge.broadcastMessage(MaplePacketCreator.serverNotice(6, "As the moon light dims, a long fox cry can be heard and the presence of the old fox can be felt"));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
moonRidge.broadcastMessage(PacketCreator.serverNotice(6, "As the moon light dims, a long fox cry can be heard and the presence of the old fox can be felt"));
|
||||
em.schedule("start", 3 * 60 *60 * 1000);
|
||||
}
|
||||
|
||||
|
||||
@@ -58,8 +58,8 @@ function start() {
|
||||
const spawnpoint = new Point(posX, posY);
|
||||
theSeaweedTower.spawnMonsterOnGroundBelow(seruf, spawnpoint);
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
theSeaweedTower.broadcastMessage(MaplePacketCreator.serverNotice(6, "A strange shell has appeared from a grove of seaweed"));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
theSeaweedTower.broadcastMessage(PacketCreator.serverNotice(6, "A strange shell has appeared from a grove of seaweed"));
|
||||
em.schedule("start", 3 * 60 * 60 * 1000);
|
||||
}
|
||||
|
||||
|
||||
@@ -52,11 +52,11 @@ function start() {
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
|
||||
var snackBar = MapleLifeFactory.getMonster(8220008);
|
||||
snackBarMap.spawnMonsterOnGroundBelow(snackBar, new Point(rndPos[0], rndPos[1]));
|
||||
snackBarMap.broadcastMessage(MaplePacketCreator.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);
|
||||
}
|
||||
|
||||
|
||||
@@ -57,8 +57,8 @@ function start() {
|
||||
const spawnpoint = new Point(posX, posY);
|
||||
eastRockyMountain5.spawnMonsterOnGroundBelow(stumpy, spawnpoint);
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
eastRockyMountain5.broadcastMessage(MaplePacketCreator.serverNotice(6, "Stumpy has appeared with a stumping sound that rings the Stone Mountain."));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
eastRockyMountain5.broadcastMessage(PacketCreator.serverNotice(6, "Stumpy has appeared with a stumping sound that rings the Stone Mountain."));
|
||||
em.schedule("start", 3 * 60 * 60 * 1000);
|
||||
}
|
||||
|
||||
|
||||
@@ -57,8 +57,8 @@ function start() {
|
||||
const spawnpoint = new Point(posX, posY);
|
||||
territoryOfWanderingBear.spawnMonsterOnGroundBelow(taeRoon, spawnpoint);
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
territoryOfWanderingBear.broadcastMessage(MaplePacketCreator.serverNotice(6, "Tae Roon has appeared with a soft whistling sound."));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
territoryOfWanderingBear.broadcastMessage(PacketCreator.serverNotice(6, "Tae Roon has appeared with a soft whistling sound."));
|
||||
em.schedule("start", 3 * 60 * 60 * 1000);
|
||||
}
|
||||
|
||||
|
||||
@@ -56,8 +56,8 @@ function start() {
|
||||
const spawnpoint = new Point(posX, posY);
|
||||
whirlpoolOfTime.spawnMonsterOnGroundBelow(timer1, spawnpoint);
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
whirlpoolOfTime.broadcastMessage(MaplePacketCreator.serverNotice(6, "Tick-Tock Tick-Tock! Timer makes it's presence known."));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
whirlpoolOfTime.broadcastMessage(PacketCreator.serverNotice(6, "Tick-Tock Tick-Tock! Timer makes it's presence known."));
|
||||
em.schedule("start", 3 * 60 * 60 * 1000);
|
||||
}
|
||||
|
||||
|
||||
@@ -57,8 +57,8 @@ function start() {
|
||||
const spawnpoint = new Point(posX, posY);
|
||||
lostTime1.spawnMonsterOnGroundBelow(timer2, spawnpoint);
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
lostTime1.broadcastMessage(MaplePacketCreator.serverNotice(6, "Tick-Tock Tick-Tock! Timer makes it's presence known."));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
lostTime1.broadcastMessage(PacketCreator.serverNotice(6, "Tick-Tock Tick-Tock! Timer makes it's presence known."));
|
||||
em.schedule("start", 3 * 60 * 60 * 1000);
|
||||
}
|
||||
|
||||
|
||||
@@ -58,8 +58,8 @@ function start() {
|
||||
const spawnpoint = new Point(posX, posY);
|
||||
lostTime2.spawnMonsterOnGroundBelow(timer3, spawnpoint);
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
lostTime2.broadcastMessage(MaplePacketCreator.serverNotice(6, "Tick-Tock Tick-Tock! Timer makes it's presence known."));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
lostTime2.broadcastMessage(PacketCreator.serverNotice(6, "Tick-Tock Tick-Tock! Timer makes it's presence known."));
|
||||
em.schedule("start", 3 * 60 * 60 * 1000);
|
||||
}
|
||||
|
||||
|
||||
@@ -49,11 +49,11 @@ function start() {
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
|
||||
var zeno = MapleLifeFactory.getMonster(6220001);
|
||||
graysPrairie.spawnMonsterOnGroundBelow(zeno, new Point(-4224, 776));
|
||||
graysPrairie.broadcastMessage(MaplePacketCreator.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);
|
||||
}
|
||||
|
||||
|
||||
@@ -63,8 +63,8 @@ function playerEntry(eim, player) {
|
||||
player.changeMap(entryMap, 1);
|
||||
em.setProperty("noEntry","true");
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
player.getClient().announce(MaplePacketCreator.getClock(eventTime * 60));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
player.getClient().announce(PacketCreator.getClock(eventTime * 60));
|
||||
eim.startEventTimer(eventTime * 60000);
|
||||
}
|
||||
|
||||
|
||||
@@ -86,9 +86,9 @@ function approach() {
|
||||
em.setProperty("haveBalrog","true");
|
||||
Boat_to_Orbis.broadcastEnemyShip(true);
|
||||
Boat_to_Ellinia.broadcastEnemyShip(true);
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
Boat_to_Orbis.broadcastMessage(MaplePacketCreator.musicChange("Bgm04/ArabPirate"));
|
||||
Boat_to_Ellinia.broadcastMessage(MaplePacketCreator.musicChange("Bgm04/ArabPirate"));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
Boat_to_Orbis.broadcastMessage(PacketCreator.musicChange("Bgm04/ArabPirate"));
|
||||
Boat_to_Ellinia.broadcastMessage(PacketCreator.musicChange("Bgm04/ArabPirate"));
|
||||
|
||||
em.schedule("invasion", invasionDelay);
|
||||
}
|
||||
|
||||
@@ -46,8 +46,8 @@ function playerEntry(eim, player) {
|
||||
player.changeMap(entryMap, 0);
|
||||
em.setProperty("noEntry","true");
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
player.getClient().announce(MaplePacketCreator.getClock(eventTime * 60));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
player.getClient().announce(PacketCreator.getClock(eventTime * 60));
|
||||
eim.startEventTimer(eventTime * 60000);
|
||||
}
|
||||
|
||||
|
||||
@@ -32,8 +32,8 @@ function playerEntry(eim, player) {
|
||||
onRide = eim.getMapFactory().getMap(birdRide[myRide]);
|
||||
player.changeMap(onRide, onRide.getPortal(0));
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
player.getClient().announce(MaplePacketCreator.getClock(rideTime / 1000));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
player.getClient().announce(PacketCreator.getClock(rideTime / 1000));
|
||||
eim.schedule("timeOut", rideTime);
|
||||
}
|
||||
|
||||
|
||||
@@ -250,8 +250,8 @@ function friendlyItemDrop(eim, mob) {
|
||||
var cakes = eim.getIntProperty("bunnyCake") + 1;
|
||||
eim.setIntProperty("bunnyCake", cakes);
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
mob.getMap().broadcastMessage(MaplePacketCreator.serverNotice(6, "The Moon Bunny made rice cake number " + cakes + "."));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
mob.getMap().broadcastMessage(PacketCreator.serverNotice(6, "The Moon Bunny made rice cake number " + cakes + "."));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -259,8 +259,8 @@ function friendlyDamaged(eim, mob) {
|
||||
if (mob.getId() == 9300061) {
|
||||
var bunnyDamage = eim.getIntProperty("bunnyDamaged") + 1;
|
||||
if (bunnyDamage > 5) {
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
broadcastMessage(MaplePacketCreator.serverNotice(6, "The Moon Bunny is feeling sick. Please protect it so it can make delicious rice cakes."));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
broadcastMessage(PacketCreator.serverNotice(6, "The Moon Bunny is feeling sick. Please protect it so it can make delicious rice cakes."));
|
||||
eim.setIntProperty("bunnyDamaged", 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,9 +33,9 @@ function playerEntry(eim, player) {
|
||||
onRide = eim.getMapFactory().getMap(trainRide[myRide]);
|
||||
player.changeMap(onRide, onRide.getPortal(0));
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
player.getClient().announce(MaplePacketCreator.getClock(rideTime / 1000));
|
||||
player.getClient().announce(MaplePacketCreator.earnTitleMessage("The next stop is at Kerning " + (myRide == 0 ? "Square" : "Subway") + " Station. The exit is to your left."));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
player.getClient().announce(PacketCreator.getClock(rideTime / 1000));
|
||||
player.getClient().announce(PacketCreator.earnTitleMessage("The next stop is at Kerning " + (myRide == 0 ? "Square" : "Subway") + " Station. The exit is to your left."));
|
||||
eim.schedule("timeOut", rideTime);
|
||||
}
|
||||
|
||||
|
||||
@@ -101,8 +101,8 @@ function playerEntry(eim, player) {
|
||||
var map = eim.getMapInstance(entryMap);
|
||||
player.changeMap(map, map.getPortal(0));
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
player.announce(MaplePacketCreator.showEffect("event/space/start"));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
player.announce(PacketCreator.showEffect("event/space/start"));
|
||||
player.startMapEffect("Please rescue Gaga within the time limit.", 5120027);
|
||||
}
|
||||
|
||||
|
||||
@@ -36,11 +36,11 @@ function stopEntry() {
|
||||
}
|
||||
|
||||
function takeoff() {
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
|
||||
//sound src: https://www.soundjay.com/transportation/metro-door-close-01.mp3
|
||||
KC_docked.broadcastMessage(MaplePacketCreator.playSound("subway/whistle"));
|
||||
NLC_docked.broadcastMessage(MaplePacketCreator.playSound("subway/whistle"));
|
||||
KC_docked.broadcastMessage(PacketCreator.playSound("subway/whistle"));
|
||||
NLC_docked.broadcastMessage(PacketCreator.playSound("subway/whistle"));
|
||||
|
||||
em.setProperty("docked","false");
|
||||
KC_Waiting.warpEveryone(Subway_to_NLC.getId());
|
||||
@@ -53,9 +53,9 @@ function arrived() {
|
||||
Subway_to_NLC.warpEveryone(NLC_docked.getId(), 0);
|
||||
scheduleNew();
|
||||
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
KC_docked.broadcastMessage(MaplePacketCreator.playSound("subway/whistle"));
|
||||
NLC_docked.broadcastMessage(MaplePacketCreator.playSound("subway/whistle"));
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
KC_docked.broadcastMessage(PacketCreator.playSound("subway/whistle"));
|
||||
NLC_docked.broadcastMessage(PacketCreator.playSound("subway/whistle"));
|
||||
}
|
||||
|
||||
function cancelSchedule() {}
|
||||
|
||||
Reference in New Issue
Block a user