Implemented persistent diseases. Players now keep their disease status when logging out the game. Solved several concurrent access issues in MapleMap and MapleMonster. Implemented an option where an account's character slots can be accounted either by each world or all-server range. Fixed some issues with character slot count when entering/exiting Cash Shop. Fixed an exploit with Papulatus, on where players could create cracks of dimension infinitely. Solved an issue with the "reach" command not working properly when the targeted player is on an event instance. Devised an advanced and secure "PQ request" system. The service revolves around expecting massive number of players requesting a "pass" simultaneously, and fairly & swiftly responsing as much people as possible. Improved overall Whisper handler performance. Fixed GPQ Stage 1 statues not working as expected, which rendered the instance unplayable until now. Added commands for start, complete and reset quests.
30 lines
1021 B
JavaScript
30 lines
1021 B
JavaScript
function enter(pi) {
|
|
var nex = pi.getEventManager("GuardianNex");
|
|
if(nex == null) {
|
|
pi.message("Guardian Nex challenge encountered an error and is unavailable.");
|
|
return false;
|
|
}
|
|
|
|
var quests = [3719, 3724, 3730, 3736, 3742, 3748];
|
|
var mobs = [7120100, 7120101, 7120102, 8120100, 8120101, 8140510];
|
|
|
|
for(var i = 0; i < quests.length; i++) {
|
|
if (pi.isQuestActive(quests[i])) {
|
|
if(pi.getQuestProgress(quests[i], mobs[i]) != 0) {
|
|
pi.message("You already faced Nex. Complete your mission.");
|
|
return false;
|
|
}
|
|
|
|
if(!nex.startInstance(i, pi.getPlayer())) {
|
|
pi.message("Someone is already challenging Nex. Wait for them to finish before you enter.");
|
|
return false;
|
|
} else {
|
|
pi.playPortalSound();
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
|
|
pi.message("A mysterious force won't let you in.");
|
|
return false;
|
|
} |