Reformat and clean up npc scripts
This commit is contained in:
@@ -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...");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user