Reformat and clean up quest scripts

This commit is contained in:
P0nk
2021-09-09 23:36:54 +02:00
parent a78ca88a02
commit 3f43fe82d0
249 changed files with 4361 additions and 4247 deletions

View File

@@ -12,38 +12,38 @@ 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();
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();
}
if (mode != 1) {
if (type == 1 && mode == 0) {
status -= 2;
} else {
qm.dispose();
return;
}
}
if (status == 0) {
qm.forceCompleteQuest();
qm.gainExp(4000);
qm.dispose();
}
}