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

@@ -35,10 +35,11 @@ function end(mode, type, selection) {
qm.dispose();
return;
}
if (mode == 1)
if (mode == 1) {
status++;
else
} else {
status--;
}
if (status == 0) {
qm.sendYesNo("Oh, you brought all #t4032100#s! Ahaha, I knew you'd be good at it. Tell you what, I now commend that you're now ready to become an official knight. Do you want to become one right now?");
} else if (status == 1) {
@@ -47,11 +48,11 @@ function end(mode, type, selection) {
qm.dispose();
} else {
if (qm.getPlayer().getJob().getId() != 1510) {
if (!qm.canHold(1142067)) {
qm.sendNext("If you wish to receive the medal befitting the title, you may want to make some room in your equipment inventory.");
qm.dispose();
return;
}
if (!qm.canHold(1142067)) {
qm.sendNext("If you wish to receive the medal befitting the title, you may want to make some room in your equipment inventory.");
qm.dispose();
return;
}
qm.gainItem(4032100, -30);
qm.gainItem(1142067, 1);
const Job = Java.type('client.Job');