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