Return map & MaplePacketEncoder & Quest status patch

Fixed null pointer issue when trying to use return scroll on maps such as Mu Lung.
Fixed a critical deadlock issue with MaplePacketEncoder.
Fixed a critical DB leak regarding player's quest status.
This commit is contained in:
ronancpl
2018-06-08 13:21:03 -03:00
parent cdac59326a
commit 0b8d3a0b2b
13 changed files with 218 additions and 35 deletions

View File

@@ -24,9 +24,11 @@ function start(mode, type, selection) {
} else if (status == 4) {
qm.startQuest();
var map = qm.getClient().getChannelServer().getMapFactory().getMap(914020000);
spawnMob(-365, 86, 9001014, map);
qm.warp(914020000, 0);
var mb = qm.getEventManager("MahaBattle");
mb.newInstance("MahaBattle");
mb.setProperty("player", qm.getPlayer().getName());
mb.startInstance(qm.getPlayer());
qm.dispose();
}
}