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

@@ -3,11 +3,12 @@ function enter(pi) {
pi.playerMessage(5, "You already have the proof of qualification.");
return false;
}
if (pi.isQuestStarted(20601) || pi.isQuestStarted(20602) || pi.isQuestStarted(20603) || pi.isQuestStarted(20604) || pi.isQuestStarted(20605)) {
if (pi.isQuestStarted(20601) || pi.isQuestStarted(20602) || pi.isQuestStarted(20603) || pi.isQuestStarted(20604) || pi.isQuestStarted(20605)) {
if (pi.getPlayerCount(913010200) == 0) {
var map = pi.getMap(913010200);
map.killAllMonsters();
pi.playPortalSound(); pi.warp(913010200, 0);
map.killAllMonsters();
pi.playPortalSound();
pi.warp(913010200, 0);
pi.spawnMonster(9300289, 0, 0);
return true;
} else {
@@ -15,7 +16,7 @@ function enter(pi) {
return false;
}
} else {
pi.playerMessage(5, "The only way to enter the hall #3 is if you're training for the Level 100 skills.");
pi.playerMessage(5, "The only way to enter the hall #3 is if you're training for the Level 100 skills.");
return false;
}
}