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

@@ -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();
}
}