Reformat and clean up npc scripts
This commit is contained in:
@@ -23,8 +23,8 @@ var status = -1;
|
||||
var completed;
|
||||
|
||||
function start() {
|
||||
completed = cm.haveItem(4031508, 5) && cm.haveItem(4031507,5);
|
||||
|
||||
completed = cm.haveItem(4031508, 5) && cm.haveItem(4031507, 5);
|
||||
|
||||
if (completed) {
|
||||
cm.sendNext("Wow~ You have succeeded in collecting 5 of each #b#t4031508##k and #b#t4031507##k. Okay then, I will send you to Zoo. Please talk to me again when you get there.");
|
||||
} else {
|
||||
@@ -32,14 +32,14 @@ function start() {
|
||||
}
|
||||
}
|
||||
|
||||
function action(mode, type, selection){
|
||||
function action(mode, type, selection) {
|
||||
status++;
|
||||
if (mode != 1) {
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
if(status == 0) {
|
||||
|
||||
if (status == 0) {
|
||||
cm.sendOk("Well okay, I will send you back.");
|
||||
} else {
|
||||
if (completed) {
|
||||
@@ -47,7 +47,7 @@ function action(mode, type, selection){
|
||||
} else {
|
||||
cm.warp(923010100, 0);
|
||||
}
|
||||
|
||||
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user