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 of #t4032096#... Okay, I believe that your are now qualified to become an official knight. Do you want to become one?");
} else if (status == 1) {
@@ -47,11 +48,11 @@ function end(mode, type, selection) {
qm.dispose();
} else {
if (qm.getPlayer().getJob().getId() != 1110) {
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(4032096, -30);
qm.gainItem(1142067, 1);
const Job = Java.type('client.Job');