sweetgum83/scripts/quest/2313.js

50 lines
1.3 KiB
JavaScript
Raw Normal View History

2024-01-19 08:56:28 +00:00
/* ===========================================================
@author Resonance
NPC Name: Head Patrol Officer
Map(s): Mushroom Castle: Corner of Mushroom Forest(106020000)
Description: Quest - The Story Behind the Case
=============================================================
Version 1.0 - Script Done.(18/7/2010)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if (type == 1 && mode == 0) {
status -= 2;
} else {
qm.sendOk("There's not much time. Please hurry.");
qm.dispose();
return;
}
}
if (status == 0) {
qm.sendAcceptDecline("I have told our #bMinister of Home Affairs#k of your abilities. Please go pay a visit to him immediately.");
} else if (status == 1) {
qm.forceStartQuest();
qm.sendOk("Save our kingdom! We believe in you!");
} else if (status == 2) {
qm.dispose();
}
}
function end(mode, type, selection) {
status++;
if (mode != 1) {
if (type == 1 && mode == 0) {
status -= 2;
} else {
qm.dispose();
return;
}
}
if (status == 0) {
qm.forceCompleteQuest();
qm.gainExp(4000);
qm.dispose();
}
}