Reformat and clean up npc scripts
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
* @npc Tommy (HPQ)
|
||||
*/
|
||||
var status = 0;
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -41,18 +42,17 @@ function action(mode, type, selection) {
|
||||
} else if (status == 1) {
|
||||
if (cm.isEventLeader()) {
|
||||
cm.sendYesNo("What do you think about making your way there with your party members and teach those rowdy pigs a lesson?");
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
cm.sendOk("Interessed? Tell your party leader to talk to me to head there!");
|
||||
cm.dispose();
|
||||
return;
|
||||
|
||||
}
|
||||
} else if (status == 2) {
|
||||
cm.getEventInstance().startEventTimer(5 * 60000);
|
||||
cm.getEventInstance().warpEventTeam(910010200);
|
||||
|
||||
cm.dispose();
|
||||
return;
|
||||
|
||||
}
|
||||
} else if (cm.getPlayer().getMap().getId() == 910010200) { //Bonus map
|
||||
if (status == 0) {
|
||||
@@ -60,7 +60,7 @@ function action(mode, type, selection) {
|
||||
} else {
|
||||
cm.warp(910010400);
|
||||
cm.dispose();
|
||||
return;
|
||||
|
||||
}
|
||||
} else if (cm.getPlayer().getMap().getId() == 910010300) { //Exit map
|
||||
if (status == 0) {
|
||||
@@ -68,7 +68,7 @@ function action(mode, type, selection) {
|
||||
} else {
|
||||
cm.warp(100000200);
|
||||
cm.dispose();
|
||||
return;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user