Reformat and clean up npc scripts
This commit is contained in:
@@ -31,7 +31,7 @@ var status;
|
||||
var smap = 681000000;
|
||||
var hv = 209000000;
|
||||
var tst, b2h;
|
||||
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -42,8 +42,8 @@ function action(mode, type, selection) {
|
||||
cm.dispose();
|
||||
} else {
|
||||
if (status == 0 && mode == 0) {
|
||||
cm.sendNext("Let me know if you've changed your mind!");
|
||||
cm.dispose();
|
||||
cm.sendNext("Let me know if you've changed your mind!");
|
||||
cm.dispose();
|
||||
}
|
||||
|
||||
if (mode == 1) {
|
||||
@@ -53,14 +53,14 @@ function action(mode, type, selection) {
|
||||
}
|
||||
|
||||
if (status == 0) {
|
||||
if (cm.getMapId() == hv) {
|
||||
if (cm.getMapId() == hv) {
|
||||
tst = 1; //to shalom temple
|
||||
cm.sendYesNo("The Shalom Temple is unlike any other place in Happyville, would you like to head to #bShalom Temple#k?"); //not GMS lol
|
||||
} else if (cm.getMapId() == smap) {
|
||||
cm.sendYesNo("The Shalom Temple is unlike any other place in Happyville, would you like to head to #bShalom Temple#k?"); //not GMS lol
|
||||
} else if (cm.getMapId() == smap) {
|
||||
b2h = 1; //back to happyville
|
||||
cm.sendYesNo("Would you like to head back to Happyville?");
|
||||
}
|
||||
} else if (status == 1) {
|
||||
cm.sendYesNo("Would you like to head back to Happyville?");
|
||||
}
|
||||
} else if (status == 1) {
|
||||
if (tst == 1) {
|
||||
cm.warp(smap, 0);
|
||||
cm.dispose();
|
||||
|
||||
Reference in New Issue
Block a user