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

@@ -5,37 +5,33 @@
var status = -1;
function start(mode, type, selection){
if(mode == -1 || (mode == 0 && status == 0)){
qm.dispose();
return;
}
else if(mode == 0)
status--;
else
status++;
function start(mode, type, selection) {
if (mode == -1 || (mode == 0 && status == 0)) {
qm.dispose();
return;
} else if (mode == 0) {
status--;
} else {
status++;
}
if(status == 0){
qm.sendNext("This is not the end, #b#h ##k. Minions of the #bPrime Minister#k can still be found scattered throughout the castle.");
}
else if(status == 1){
qm.sendAcceptDecline("From what I've heard, there is a place near #bSkyscraper 3#k where a group of Prime Minister's minions can be found. I've picked up a key that the Prime Minister dropped the other day. Here, use this key.");
}
else if(status == 2){
if(qm.canHold(4032405)){
qm.gainItem(4032405, 1);
qm.sendNext("For one last time, good luck.");
}
else{
qm.sendOk("Please have a free space in your ETC inventory.");
qm.dispose();
}
}
else if(status == 3){
qm.forceStartQuest();
qm.dispose();
}
if (status == 0) {
qm.sendNext("This is not the end, #b#h ##k. Minions of the #bPrime Minister#k can still be found scattered throughout the castle.");
} else if (status == 1) {
qm.sendAcceptDecline("From what I've heard, there is a place near #bSkyscraper 3#k where a group of Prime Minister's minions can be found. I've picked up a key that the Prime Minister dropped the other day. Here, use this key.");
} else if (status == 2) {
if (qm.canHold(4032405)) {
qm.gainItem(4032405, 1);
qm.sendNext("For one last time, good luck.");
} else {
qm.sendOk("Please have a free space in your ETC inventory.");
qm.dispose();
}
} else if (status == 3) {
qm.forceStartQuest();
qm.dispose();
}
}
function end(mode, type, selection){}
function end(mode, type, selection) {}