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

@@ -22,31 +22,34 @@
status = -1;
function start() {
if(cm.haveItem(4031847))
if (cm.haveItem(4031847)) {
cm.sendNext("The hungry calf is drinking all the milk! The bottle remains empty...");
else if(cm.haveItem(4031848) || cm.haveItem(4031849) || cm.haveItem(4031850)){
} else if (cm.haveItem(4031848) || cm.haveItem(4031849) || cm.haveItem(4031850)) {
cm.sendNext("The hungry calf is drinking all the milk! The bottle is now empty.");
if(cm.haveItem(4031848))
cm.gainItem(4031848,-1);
else if(cm.haveItem(4031849))
if (cm.haveItem(4031848)) {
cm.gainItem(4031848, -1);
} else if (cm.haveItem(4031849)) {
cm.gainItem(4031849, -1);
else
} else {
cm.gainItem(4031850, -1);
}
cm.gainItem(4031847, 1);
cm.dispose();
}
}
function action(mode, type, selection){
if(mode == -1)
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
else if(mode == 0){
} else if (mode == 0) {
status--;
start();
}else
} else {
status++;
if(status == 0)
}
if (status == 0) {
cm.sendPrev("The hungry calf isn't interested in the empty bottle.");
else if(status == 1)
} else if (status == 1) {
cm.dispose();
}
}