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

@@ -2,27 +2,27 @@ var status = -1;
var canStart;
function start(mode, type, selection) {
status++;
if (status == 0) {
if(qm.haveItem(4032423, 1)) {
qm.forceStartQuest();
qm.dispose();
return;
}
canStart = qm.canHold(4032423, 1);
if(!canStart) {
qm.sendNext("Please open a slot in your ETC inventory first.");
return;
}
qm.sendNext("#bHm, there's a medicinal substance in the box. What could this be? You better take this to John and ask him what it is.#k");
} else if (status == 1) {
if(canStart) {
qm.gainItem(4032423,1);
qm.forceStartQuest();
}
qm.dispose();
}
status++;
if (status == 0) {
if (qm.haveItem(4032423, 1)) {
qm.forceStartQuest();
qm.dispose();
return;
}
canStart = qm.canHold(4032423, 1);
if (!canStart) {
qm.sendNext("Please open a slot in your ETC inventory first.");
return;
}
qm.sendNext("#bHm, there's a medicinal substance in the box. What could this be? You better take this to John and ask him what it is.#k");
} else if (status == 1) {
if (canStart) {
qm.gainItem(4032423, 1);
qm.forceStartQuest();
}
qm.dispose();
}
}