Reformat and clean up npc scripts
This commit is contained in:
@@ -35,17 +35,19 @@ function start() {
|
||||
|
||||
function action(mode, type, selection) {
|
||||
status++;
|
||||
if(mode == 0 && type == 0)
|
||||
if (mode == 0 && type == 0) {
|
||||
status -= 2;
|
||||
}
|
||||
if (mode >= 0) {
|
||||
if (selection == 1 || readNotice == 1) {
|
||||
if (status == -1) {
|
||||
readNotice = 1;
|
||||
cm.sendNext("#e< Notice : Take the challenge! >#n\r\nMy name is Mu Gong, the owner of the My Lung Dojo. Since long ago, I have been training in Mu Lung to the point where my skills have now reached the pinnacle. Starting today, I will take on any and all applicants for Mu Lung Dojo. The rights to the Mu Lung Dojo will be given only to the strongest person.\r\nIf there is anyone who wishes to learn from me, come take the challenge any time! If there is anyone who wishes to challenge me, you're welcome as well. I will make you fully aware of your own weakness.");
|
||||
} else if (status == 0)
|
||||
} else if (status == 0) {
|
||||
cm.sendPrev("PS:You can challenge me on your own. But if you don't have that kind of courage, go ahead and call all your friends.");
|
||||
else
|
||||
} else {
|
||||
cm.dispose();
|
||||
}
|
||||
} else {
|
||||
if (status == -1 && mode == 1) {
|
||||
cm.sendYesNo("(Once I had placed my hands on the bulletin board, a mysterious energy began to envelop me.)\r\n\r\nWould you like to go to Mu Lung Dojo?");
|
||||
@@ -59,6 +61,7 @@ function action(mode, type, selection) {
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
} else
|
||||
} else {
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user