Reformat and clean up portal scripts
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
|
||||
/*
|
||||
MiniDungeon - Critical Error
|
||||
*/
|
||||
*/
|
||||
|
||||
var baseid = 261020300;
|
||||
var dungeonid = 261020301;
|
||||
@@ -32,7 +32,7 @@ function enter(pi) {
|
||||
if (pi.getParty() != null) {
|
||||
if (pi.isLeader()) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warpParty(dungeonid + i, "out00");
|
||||
return true;
|
||||
@@ -44,7 +44,7 @@ function enter(pi) {
|
||||
}
|
||||
} else {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(dungeonid + i, "out00");
|
||||
return true;
|
||||
@@ -54,8 +54,8 @@ function enter(pi) {
|
||||
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
||||
return false;
|
||||
} else {
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user