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.
53 lines
1.5 KiB
JavaScript
53 lines
1.5 KiB
JavaScript
/*
|
|
NPC Name: The Forgotten Temple Manager
|
|
Map(s): Deep in the Shrine - Twilight of the gods
|
|
Description: Pink Bean
|
|
*/
|
|
|
|
var status;
|
|
|
|
function start() {
|
|
status = -1;
|
|
action(1, 0, 0);
|
|
}
|
|
|
|
function action(mode, type, selection) {
|
|
if (mode == -1)
|
|
cm.dispose();
|
|
else {
|
|
if (mode == 0) {
|
|
cm.dispose();
|
|
return;
|
|
}
|
|
if (mode == 1)
|
|
status++;
|
|
else
|
|
status--;
|
|
|
|
var eim = cm.getEventInstance();
|
|
if(!eim.isEventCleared()) {
|
|
if (status == 0) {
|
|
cm.sendYesNo("Do you want to get out now?");
|
|
}
|
|
else if (status == 1) {
|
|
cm.warp(270050000, 0);
|
|
cm.dispose();
|
|
}
|
|
|
|
} else {
|
|
if (status == 0) {
|
|
cm.sendYesNo("Pink Bean has been defeated! You guys sure are true heroes of this land! In no time, Temple of Time will shine again as bright as ever, all thanks to your efforts! Hooray to our heroes!! Are you ready to go now?");
|
|
}
|
|
else if (status == 1) {
|
|
if(eim.giveEventReward(cm.getPlayer(), 1)) {
|
|
cm.warp(270050000);
|
|
}
|
|
else {
|
|
cm.sendOk("You cannot receive an instance prize without having an empty room in your EQUIP, USE, SET-UP and ETC inventory.");
|
|
}
|
|
|
|
cm.dispose();
|
|
}
|
|
}
|
|
}
|
|
} |