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