Reformat and clean up npc scripts

This commit is contained in:
P0nk
2021-09-09 23:35:02 +02:00
parent 0c1545f81d
commit d893309b4f
665 changed files with 19932 additions and 19046 deletions

View File

@@ -36,31 +36,29 @@ function start() {
if (em.getProperty("noEntry") == "false") {
cm.sendNext("The pendulum is hidden inside a dollhouse that looks different than the others.");
}
else {
} else {
cm.sendOk("Someone else is already searching the area. Please wait until the area is cleared.");
cm.dispose();
}
}
else {
} else {
cm.sendOk("We are not allowed to let the general public wander past this point.");
cm.dispose();
}
}
function action(mode, type, selection) {
if (mode < 1)
if (mode < 1) {
cm.dispose();
else {
} else {
status++;
if (status == 1)
if (status == 1) {
cm.sendYesNo("Are you ready to enter the dollhouse map?");
else if (status == 2) {
} else if (status == 2) {
var em = cm.getEventManager("DollHouse");
if (!em.startInstance(cm.getPlayer())) {
cm.sendOk("Hmm... The DollHouse is being challenged already, it seems. Try again later.");
}
cm.dispose();
}
}