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

@@ -34,22 +34,24 @@ function action(mode, type, selection) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 1)
if (mode == 1) {
status++;
else
} else {
status--;
if (status == 1) {
if (selection == 2)
cm.sendStyle("With our specialized machine, you can see the way you'll look after the treatment PRIOR to the procedure. What kind of a look are you looking for? Go ahead and choose the style of your liking~!", skin);
}
else if (status == 2){
if (status == 1) {
if (selection == 2) {
cm.sendStyle("With our specialized machine, you can see the way you'll look after the treatment PRIOR to the procedure. What kind of a look are you looking for? Go ahead and choose the style of your liking~!", skin);
}
} else if (status == 2) {
cm.dispose();
if (cm.haveItem(5153001)){
if (cm.haveItem(5153001)) {
cm.gainItem(5153001, -1);
cm.setSkin(selection + 1);
cm.sendOk("Enjoy your new and improved skin!");
} else
} else {
cm.sendOk("Um...you don't have the skin-care coupon you need to receive the treatment. Sorry, but I am afraid we can't do it for you...");
}
}
}
}