Reformat and clean up npc scripts
This commit is contained in:
@@ -28,27 +28,30 @@
|
||||
status = -1;
|
||||
|
||||
function start() {
|
||||
if (cm.getPlayer().getMapId() == 100000000)
|
||||
if (cm.getPlayer().getMapId() == 100000000) {
|
||||
cm.sendYesNo("I can take you to the Amoria Village. Are you ready to go?");
|
||||
else
|
||||
} else {
|
||||
cm.sendYesNo("I can take you back to Henesys. Are you ready to go?");
|
||||
}
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
status++;
|
||||
if (mode != 1) {
|
||||
if (mode == 0)
|
||||
if (mode == 0) {
|
||||
cm.sendOk("Ok, feel free to hang around until you're ready to go!");
|
||||
}
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
if (status == 0)
|
||||
if (status == 0) {
|
||||
cm.sendNext("I hope you had a great time! See you around!");
|
||||
else if (status == 1) {
|
||||
if (cm.getPlayer().getMapId() == 100000000)
|
||||
} else if (status == 1) {
|
||||
if (cm.getPlayer().getMapId() == 100000000) {
|
||||
cm.warp(680000000, 0);
|
||||
else
|
||||
} else {
|
||||
cm.warp(100000000, 5);
|
||||
}
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user