Reformat and clean up quest scripts
This commit is contained in:
@@ -28,19 +28,21 @@
|
||||
var status = -1;
|
||||
|
||||
function start(mode, type, selection) {
|
||||
if (qm.forceStartQuest()) qm.showInfoText("You have earned the <Beginner Adventurer> title. You can receive a Medal from NPC Dalair.");
|
||||
qm.dispose();
|
||||
if (qm.forceStartQuest()) {
|
||||
qm.showInfoText("You have earned the <Beginner Adventurer> title. You can receive a Medal from NPC Dalair.");
|
||||
}
|
||||
qm.dispose();
|
||||
}
|
||||
|
||||
|
||||
function end(mode, type, selection) {
|
||||
status++;
|
||||
if (mode != 1)
|
||||
if (mode != 1) {
|
||||
qm.dispose();
|
||||
else {
|
||||
if (status == 0)
|
||||
} else {
|
||||
if (status == 0) {
|
||||
qm.sendNext("Congratulations on earning your honorable #b<Beginner Adventurer>#k title. I wish you the best of luck in your future endeavors! Keep up the good work.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n #v1142107:# #t1142107# 1");
|
||||
else if (status == 1) {
|
||||
} else if (status == 1) {
|
||||
if (qm.canHold(1142107)) {
|
||||
qm.gainItem(1142107);
|
||||
qm.forceCompleteQuest();
|
||||
@@ -52,5 +54,5 @@ function end(mode, type, selection) {
|
||||
qm.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user