Reformat and clean up quest scripts
This commit is contained in:
@@ -32,36 +32,37 @@ function end(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) {
|
||||
var hourDay = qm.getHourOfDay();
|
||||
if(!(hourDay >= 17 && hourDay < 20)) {
|
||||
if (!(hourDay >= 17 && hourDay < 20)) {
|
||||
qm.sendNext("(Hmm, I'm searching the trash can but can't find the #t4031894# JM was talking about, maybe it's not time yet...)");
|
||||
canComplete = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if(qm.getMeso() < 2000) {
|
||||
|
||||
if (qm.getMeso() < 2000) {
|
||||
qm.sendNext("(Oh, I don't have the combined fee amount yet.)");
|
||||
canComplete = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if(!qm.canHold(4031894, 1)) {
|
||||
|
||||
if (!qm.canHold(4031894, 1)) {
|
||||
qm.sendNext("(Eh, I can't hold the #t4031894# right now, I need an ETC slot available.)");
|
||||
canComplete = false;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
canComplete = true;
|
||||
qm.sendNext("(Alright, now I will deposit the fee there and get the paper... That's it, yea, that's done.)");
|
||||
} else if (status == 1) {
|
||||
@@ -70,7 +71,7 @@ function end(mode, type, selection) {
|
||||
qm.forceCompleteQuest();
|
||||
qm.gainItem(4031894, 1);
|
||||
}
|
||||
|
||||
|
||||
qm.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user