Reformat and clean up quest scripts
This commit is contained in:
@@ -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("You managed to bring all of #t4032097#!!! 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() != 1210) {
|
||||
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(4032097, -30);
|
||||
qm.gainItem(1142067, 1);
|
||||
const Job = Java.type('client.Job');
|
||||
|
||||
Reference in New Issue
Block a user