Reformat and clean up quest scripts
This commit is contained in:
@@ -24,9 +24,10 @@ var status = -1;
|
||||
|
||||
function end(mode, type, selection) {
|
||||
status++;
|
||||
if (mode != 1){
|
||||
if (mode == 0 && type == 1)
|
||||
if (mode != 1) {
|
||||
if (mode == 0 && type == 1) {
|
||||
qm.sendNext("Hey! At least say you tried!");
|
||||
}
|
||||
qm.dispose();
|
||||
return;
|
||||
}
|
||||
@@ -35,17 +36,17 @@ function end(mode, type, selection) {
|
||||
} else if (status == 1) {
|
||||
qm.sendNextPrev("Okay, now that I have the Red Jade back on, let me work on reawakening more of your abilities. I mean, your level's gone much higher since the last time we met, so I am sure I can work my magic a bit more this time!");
|
||||
} else if (status == 2) {
|
||||
if(!qm.isQuestCompleted(21302)) {
|
||||
if(!qm.canHold(1142131)) {
|
||||
if (!qm.isQuestCompleted(21302)) {
|
||||
if (!qm.canHold(1142131)) {
|
||||
qm.sendOk("Wow, your #bequip#k inventory is full. I need you to make at least 1 empty slot to complete this quest.");
|
||||
qm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
if(qm.haveItem(4032312, 1)) {
|
||||
|
||||
if (qm.haveItem(4032312, 1)) {
|
||||
qm.gainItem(4032312, -1);
|
||||
}
|
||||
|
||||
|
||||
qm.gainItem(1142131, true);
|
||||
qm.changeJobById(2111);
|
||||
|
||||
@@ -56,8 +57,8 @@ function end(mode, type, selection) {
|
||||
|
||||
qm.completeQuest();
|
||||
}
|
||||
|
||||
qm.sendNext("Come on, keep training so you can get all your abilities back, and that way we can explore together once more!");
|
||||
|
||||
qm.sendNext("Come on, keep training so you can get all your abilities back, and that way we can explore together once more!");
|
||||
} else if (status == 3) {
|
||||
qm.dispose();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user