Reformat and clean up portal scripts
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
/*
|
||||
MiniDungeon - Round Table
|
||||
*/
|
||||
*/
|
||||
var baseid = 240020500;
|
||||
var dungeonid = 240020512;
|
||||
var dungeons = 30;
|
||||
@@ -30,7 +30,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;
|
||||
@@ -42,7 +42,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;
|
||||
@@ -52,8 +52,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