Reformat and clean up quest scripts
This commit is contained in:
@@ -24,16 +24,17 @@ 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("Well, I'm not really busy of anything, bit I don't feel like concocting medicine. Can you come back later? If you don't mind, move.", 9);
|
||||
} else if (status == 1) {
|
||||
@@ -53,16 +54,16 @@ function start(mode, type, selection) {
|
||||
} else if (status == 8) {
|
||||
qm.sendNextPrev("So then I thought, well what's the point of delivering it to Mu Gong? I must first restore the writing on Hanging Scroll. That's why I need you to do something for me. The guy down there writing on Hanging Scroll... is #bJin Jin#k, the greatest artist on all of Mu Lung. I'm sure he'd be able to restore the writing on Hanging Scroll.", 9);
|
||||
} else {
|
||||
if(!qm.haveItem(4220151, 1)) {
|
||||
if(!qm.canHold(4220151, 1)) {
|
||||
if (!qm.haveItem(4220151, 1)) {
|
||||
if (!qm.canHold(4220151, 1)) {
|
||||
qm.sendOk("Please free a room on your ETC inventory.", 9);
|
||||
qm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
qm.gainItem(4220151, 1);
|
||||
}
|
||||
|
||||
|
||||
qm.forceStartQuest();
|
||||
qm.dispose();
|
||||
}
|
||||
@@ -73,23 +74,24 @@ 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) {
|
||||
qm.sendNext("Oh, you brought the ink. Now let me pour it, cautiously.... Almost there, almost. ... ..... Kyaaa! Th-the letter. It says: 'I'll be there to take your Seal Rock of Mu Lung.'");
|
||||
} else if (status == 1) {
|
||||
qm.gainItem(4032342, -8);
|
||||
qm.gainItem(4220151, -1);
|
||||
qm.gainExp(10000);
|
||||
|
||||
|
||||
qm.forceCompleteQuest();
|
||||
qm.dispose();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user