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("So you brought all the #t4032099#s with you. This is much b... way, I shouldn't congratulate you for doing something that you should be doing. At least, I can tell that you are now qualified 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() != 1410) {
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(4032099, -30);
qm.gainItem(1142067, 1);
const Job = Java.type('client.Job');