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,14 +28,15 @@ function start() {
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
}else if (mode == 0){
} else if (mode == 0) {
cm.dispose();
}else{
if (mode == 1)
} else {
if (mode == 1) {
status++;
else
} else {
status--;
}
if (status == 0) {
cm.sendNext("Bam bam bam bam!! You have won the game from the \r\n#bEVENT#k. Congratulations on making it this far!");
} else if (status == 1) {
@@ -43,13 +44,13 @@ function action(mode, type, selection) {
} else if (status == 2) {
cm.sendNext("The Scroll of Secrets can be deciphered by #rChun Ji#k or \r\n#rGeanie#k at Ludibrium. Bring it with you and something good's bound to happen.");
} else if (status == 3) {
if (cm.canHold(4031019)) {
cm.gainItem(4031019);
cm.warp(cm.getPlayer().getSavedLocation("EVENT"));
cm.dispose();
} else {
cm.sendNext("I think your Etc window is full. Please make room, then talk to me.");
}
if (cm.canHold(4031019)) {
cm.gainItem(4031019);
cm.warp(cm.getPlayer().getSavedLocation("EVENT"));
cm.dispose();
} else {
cm.sendNext("I think your Etc window is full. Please make room, then talk to me.");
}
} else if (status == 4) {
cm.dispose();
}