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

@@ -24,26 +24,27 @@ var menu;
var cost = 10000;
function start() {
cm.sendYesNo("Will you move to #b#m230000000##k now? The price is #b"+cost+" mesos#k.");
cm.sendYesNo("Will you move to #b#m230000000##k now? The price is #b" + cost + " mesos#k.");
}
function action(mode, type, selection) {
if (mode == -1)
if (mode == -1) {
cm.dispose();
else {
} else {
if (mode == 0) {
cm.sendNext("Hmmm ... too busy to do it right now? If you feel like doing it, though, come back and find me.");
cm.dispose();
return;
}
if (mode == 1)
if (mode == 1) {
status++;
else
} else {
status--;
}
if (status == 1) {
if(cm.getPlayer().getMeso() < cost)
if (cm.getPlayer().getMeso() < cost) {
cm.sendOk("I don't think you have enough money...");
else {
} else {
cm.gainMeso(-cost);
cm.warp(230000000);
}