Reformat and clean up quest scripts
This commit is contained in:
@@ -24,37 +24,38 @@ function start(mode, type, selection) {
|
||||
if (mode == -1) {
|
||||
qm.dispose();
|
||||
} else {
|
||||
if(mode == 0 && type > 0) {
|
||||
if (mode == 0 && type > 0) {
|
||||
qm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
if (mode == 1)
|
||||
|
||||
if (mode == 1) {
|
||||
status++;
|
||||
else
|
||||
} else {
|
||||
status--;
|
||||
|
||||
}
|
||||
|
||||
if (status == 0) {
|
||||
qm.sendNext("I've just gathered an interesting information, #rDyle looks just like regular Ligators#k, but bigger.");
|
||||
} else if (status == 1) {
|
||||
qm.forceCompleteQuest();
|
||||
qm.gainExp(7000);
|
||||
|
||||
if(isAllSubquestsDone() && qm.haveItem(4031894)) {
|
||||
|
||||
if (isAllSubquestsDone() && qm.haveItem(4031894)) {
|
||||
qm.gainItem(4031894, -1);
|
||||
}
|
||||
|
||||
|
||||
qm.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function isAllSubquestsDone() {
|
||||
for(var i = 2216; i <= 2219; i++) {
|
||||
if(!qm.isQuestCompleted(i)) {
|
||||
for (var i = 2216; i <= 2219; i++) {
|
||||
if (!qm.isQuestCompleted(i)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user