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

@@ -30,7 +30,7 @@ var status;
var map = 102000003;
var job = "Warrior";
var jobType = 1;
var no = "Come back to me if you decided to be a #b"+job+"#k.";
var no = "Come back to me if you decided to be a #b" + job + "#k.";
function start() {
status = -1;
@@ -47,17 +47,18 @@ function action(mode, type, selection) {
cm.dispose();
}
if (mode == 1)
if (mode == 1) {
status++;
else
} else {
status--;
}
if(status == 0) {
if (status == 0) {
if (cm.getJob() == "BEGINNER") {
if (cm.getLevel() >= 10 && cm.canGetFirstJob(jobType)) {
cm.sendYesNo("Hey #h #, I can send you to #b#m"+map+"##k if you want to be a #b"+job+"#k. Do you want to go now?");
cm.sendYesNo("Hey #h #, I can send you to #b#m" + map + "##k if you want to be a #b" + job + "#k. Do you want to go now?");
} else {
cm.sendOk("If you want to be a #b"+job+"#k, train yourself further until you reach #blevel 10, " + cm.getFirstJobStatRequirement(jobType) + "#k.");
cm.sendOk("If you want to be a #b" + job + "#k, train yourself further until you reach #blevel 10, " + cm.getFirstJobStatRequirement(jobType) + "#k.");
cm.dispose();
}
} else {