Refactored event scripts, no longer triggering after the event is deemed disposed. Added MCPQ access in Dimensional Doors. Revised Crusader/Dawn Warrior's Combo Attack, no longer resetting orbs after recasting during active time. Added 4th job advancement handing out Maple Warrior skill book. Fixed several issues with not being able to collect drops within owned exclusivity time when back-and-forth changing maps. Revised visual EXP gain. Players that participated most in the defeat of the mob has the gain displayed in white, else yellow, somewhat similar to GMS. Fixed client not disconnecting properly after closing the game inside MTS/Cash Shop, leading to no update on account's login state. Fixed wrongly inputted PIC in anti-multiclient system blocking accounts to login under the same IP. Fixed parameterless command inputs counting as "one empty command".
84 lines
2.5 KiB
JavaScript
84 lines
2.5 KiB
JavaScript
|
|
var status;
|
|
var sel;
|
|
|
|
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--;
|
|
if (status == 0) {
|
|
if (cm.getLevel() < 25) {
|
|
cm.sendDimensionalMirror("#-1# There is no place for you to transport to from here.");
|
|
cm.dispose();
|
|
} else {
|
|
var selStr = "";
|
|
/*if (cm.getLevel() >= 20 && cm.getLevel() <= 30) { NOT IMPLEMENTED
|
|
selStr += "#0# Ariant Coliseum";
|
|
} */
|
|
|
|
if (cm.getLevel() >= 25) {
|
|
selStr += "#1# Mu Lung Dojo";
|
|
}
|
|
|
|
if (cm.getLevel() >= 30 && cm.getLevel() <= 50) { // MC 1 & 2 recalled thanks to ---
|
|
selStr += "#2# Monster Carnival 1";
|
|
}
|
|
|
|
if (cm.getLevel() >= 51 && cm.getLevel() <= 70) {
|
|
selStr += "#3# Monster Carnival 2";
|
|
}
|
|
|
|
/*
|
|
if (cm.getLevel() >= 40) { NOT IMPLEMENTED
|
|
selStr += "#5# Nett's Pyramid";
|
|
}
|
|
|
|
if (cm.getLevel() >= 25 && cm.getLevel() <= 30) { NOT IMPLEMENTED
|
|
selStr += "#6# Construction Site";
|
|
}
|
|
*/
|
|
|
|
cm.sendDimensionalMirror(selStr);
|
|
}
|
|
} else if (status == 1) {
|
|
cm.getPlayer().saveLocation("MIRROR");
|
|
switch (selection) {
|
|
case 0:
|
|
cm.warp(980010000, 3);
|
|
break;
|
|
case 1:
|
|
cm.warp(925020000, 0);
|
|
break;
|
|
case 2:
|
|
cm.getPlayer().saveLocation("MONSTER_CARNIVAL");
|
|
cm.warp(980000000, 3);
|
|
break;
|
|
case 3:
|
|
cm.getPlayer().saveLocation("MONSTER_CARNIVAL");
|
|
cm.warp(980030000, 3);
|
|
break;
|
|
case 5:
|
|
cm.warp(926010000);
|
|
break;
|
|
case 6:
|
|
cm.warp(910320000);
|
|
break;
|
|
}
|
|
cm.dispose();
|
|
}
|
|
}
|
|
}
|