Reformat and clean up quest scripts

This commit is contained in:
P0nk
2021-09-09 23:36:54 +02:00
parent a78ca88a02
commit 3f43fe82d0
249 changed files with 4361 additions and 4247 deletions

View File

@@ -6,16 +6,17 @@ function start(mode, type, selection) {
if (mode == -1) {
qm.dispose();
} else {
if (mode > 0)
if (mode > 0) {
status++;
else
} else {
qm.dispose();
}
if (status == 0) {
qm.sendAcceptDecline("Hello, #h0#. Welcome to Maple World. It's currently event season, and we're welcome new characters with a gift. Would you like your gift now?");
} else if (status == 1) {
qm.sendOk("Open your inventory and double-click on it! These gifts will make you look stylish. Oh, one more thing! You'll get another gift at level 30. Good luck!");
qm.forceStartQuest();
qm.forceCompleteQuest();
qm.forceCompleteQuest();
qm.gainItem(2430191, 1, true);
} else if (status == 2) {
qm.dispose();