Reformat and clean up quest scripts
This commit is contained in:
@@ -24,23 +24,24 @@ function start(mode, type, selection) {
|
||||
if (mode == -1) {
|
||||
qm.dispose();
|
||||
} else {
|
||||
if(mode == 0 && type > 0) {
|
||||
if (mode == 0 && type > 0) {
|
||||
qm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
if (mode == 1)
|
||||
|
||||
if (mode == 1) {
|
||||
status++;
|
||||
else
|
||||
} else {
|
||||
status--;
|
||||
|
||||
}
|
||||
|
||||
if (status == 0) {
|
||||
em = qm.getEventManager("BalrogQuest");
|
||||
if (em == null) {
|
||||
qm.sendOk("Sorry, but the BalrogQuest is closed.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
var em = qm.getEventManager("BalrogQuest");
|
||||
if (!em.startInstance(qm.getPlayer())) {
|
||||
qm.sendOk("There is currently someone in this map, come back later.");
|
||||
|
||||
Reference in New Issue
Block a user