sweetgum83/scripts/quest/21000.js
2024-01-19 03:56:28 -05:00

61 lines
2.4 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/>.
*/
/*
Author : kevintjuh93
Map(s): Aran Training Map 2
Description: Quest - Help Kid
Quest ID : 21000
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if (type == 1 && mode == 0) {
status -= 2;
} else {
qm.sendNext("No, Aran... We can't leave a kid behind. I know it's a lot to ask, but please reconsider. Please!");
qm.dispose();
return;
}
}
if (status == 0) {
qm.sendAcceptDecline("Oh, no! I think there's still a child in the forest! Aran, I'm very sorry, but could you rescue the child? I know you're injured, but I don't have anyone else to ask!");
} else if (status == 1) {
qm.forceStartQuest();
qm.sendNext("#bThe child is probably lost deep inside the forest!#k We have to escape before the Black Mage finds us. You must rush into the forest and bring the child back with you!");
} else if (status == 2) {
qm.sendNextPrev("Don't panic, Aran. If you wish to check the status of the \r\nquest, press #bQ#k and view the Quest window.");
} else if (status == 3) {
qm.sendNextPrev("Please, Aran! I'm begging you. I can't bear to lose another person to the Black Mage!");
} else if (status == 4) {
qm.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow1");
qm.dispose();
}
}
function end(mode, type, selection) {
qm.forceCompleteQuest();
qm.dispose();
}