Reformat and clean up npc scripts
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user