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,15 +3,15 @@ function enter(pi) {
pi.playerMessage(5, "You already have the proof of ability.");
return false;
}
if (pi.isQuestStarted(20611) || pi.isQuestStarted(20612) || pi.isQuestStarted(20613) || pi.isQuestStarted(20614) || pi.isQuestStarted(20615)) {
if (pi.getPlayerCount(913020300) == 0) {
var map = pi.getMap(913020300);
map.killAllMonsters();
pi.playPortalSound();
pi.warp(913020300, 0);
pi.spawnMonster(9300294, 87,88);
pi.spawnMonster(9300294, 87, 88);
return true;
} else {
pi.playerMessage(5, "Someone is already attempting to defeat the boss. Better come back later.");