49 lines
1.0 KiB
JavaScript
49 lines
1.0 KiB
JavaScript
var status = -1;
|
|
|
|
function start(mode, type, selection) {
|
|
if (mode == -1) {
|
|
qm.dispose();
|
|
} else {
|
|
if (mode == 0 && type > 0) {
|
|
qm.dispose();
|
|
return;
|
|
}
|
|
|
|
if (mode == 1) {
|
|
status++;
|
|
} else {
|
|
status--;
|
|
}
|
|
|
|
if (status == 0) {
|
|
qm.sendNext("Oh, you already have monster book. Good luck on your journey~!");
|
|
} else if (status == 1) {
|
|
qm.forceCompleteQuest();
|
|
qm.dispose();
|
|
}
|
|
}
|
|
}
|
|
|
|
function end(mode, type, selection) {
|
|
if (mode == -1) {
|
|
qm.dispose();
|
|
} else {
|
|
if (mode == 0 && type > 0) {
|
|
qm.dispose();
|
|
return;
|
|
}
|
|
|
|
if (mode == 1) {
|
|
status++;
|
|
} else {
|
|
status--;
|
|
}
|
|
|
|
if (status == 0) {
|
|
qm.sendNext("Oh, you already have monster book. Good luck on your journey~!");
|
|
} else if (status == 1) {
|
|
qm.forceCompleteQuest();
|
|
qm.dispose();
|
|
}
|
|
}
|
|
} |