52 lines
1.9 KiB
JavaScript
52 lines
1.9 KiB
JavaScript
/*
|
|
This file is part of the OdinMS Maple Story Server
|
|
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
|
Matthias Butz <matze@odinms.de>
|
|
Jan Christian Meyer <vimes@odinms.de>
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU Affero General Public License as
|
|
published by the Free Software Foundation version 3 as published by
|
|
the Free Software Foundation. You may not use, modify or distribute
|
|
this program under any other version of the GNU Affero General Public
|
|
License.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU Affero General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
/* Amon
|
|
*
|
|
* @Author Stereo
|
|
* Adobis's Mission I : Breath of Lava <Level 1> (280020000)
|
|
* Adobis's Mission I : Breath of Lava <Level 2> (280020001)
|
|
* Last Mission : Zakum's Altar (280030000)
|
|
* Zakum Quest NPC
|
|
* Helps players leave the map
|
|
*/
|
|
|
|
function start() {
|
|
if (cm.getMapId() == 280030000) {
|
|
if (!cm.getEventInstance().isEventCleared()) {
|
|
cm.sendYesNo("If you leave now, you'll have to start over. Are you sure you want to leave?");
|
|
} else {
|
|
cm.sendYesNo("You guys finally overthrew Zakum, what a superb feat! Congratulations! Are you sure you want to leave now?");
|
|
}
|
|
} else {
|
|
cm.sendYesNo("If you leave now, you'll have to start over. Are you sure you want to leave?");
|
|
}
|
|
}
|
|
|
|
function action(mode, type, selection) {
|
|
if (mode < 1) {
|
|
cm.dispose();
|
|
} else {
|
|
cm.warp(211042300);
|
|
cm.dispose();
|
|
}
|
|
} |