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

@@ -21,24 +21,23 @@
*/
/**
@Author Ronan
@Author Ronan
2060005 - Kenta
Enter 3rd job mount event
**/
2060005 - Kenta
Enter 3rd job mount event
**/
function start() {
if(cm.isQuestCompleted(6002)) {
if (cm.isQuestCompleted(6002)) {
cm.sendOk("Thanks for saving the pork.");
}
else if(cm.isQuestStarted(6002)) {
if (cm.haveItem(4031507, 5) && cm.haveItem(4031508,5)) {
} else if (cm.isQuestStarted(6002)) {
if (cm.haveItem(4031507, 5) && cm.haveItem(4031508, 5)) {
cm.sendOk("Thanks for saving the pork.");
} else {
var em = cm.getEventManager("3rdJob_mount");
if (em == null)
if (em == null) {
cm.sendOk("Sorry, but 3rd job advancement (mount) is closed.");
else {
} else {
if (em.startInstance(cm.getPlayer())) {
cm.removeAll(4031507);
cm.removeAll(4031508);
@@ -47,10 +46,9 @@ function start() {
}
}
}
}
else {
} else {
cm.sendOk("Only few adventurers, from a selected public, are eligible to protect the Watch Hog.");
}
cm.dispose();
}