Reformat and clean up portal scripts

This commit is contained in:
P0nk
2021-09-09 23:35:59 +02:00
parent d893309b4f
commit a78ca88a02
435 changed files with 2712 additions and 2287 deletions

View File

@@ -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;
}
}