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

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