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

@@ -32,18 +32,19 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1)
if (mode == -1) {
cm.dispose();
else {
} else {
if (status >= 0 && mode == 0) {
cm.sendOk("Ok come back when you're ready.");
cm.dispose();
return;
}
if (mode == 1)
if (mode == 1) {
status++;
else
} else {
status--;
}
if (status == 1 && selection == 0) {
if (cm.haveItem(4031592, 1)) {
cm.sendYesNo("So you would like to enter the #bEntrance#k?");
@@ -56,8 +57,7 @@ function action(mode, type, selection) {
if (cm.haveItem(4031592)) {
cm.sendOk("You already have an Entrance Ticket!");
cm.dispose();
}
else if (cm.haveItem(4031593, 10)) {
} else if (cm.haveItem(4031593, 10)) {
cm.sendYesNo("So you would like a Ticket?");
MySelection = selection;
} else {