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

@@ -24,18 +24,19 @@
* @purpose Warps to the Relic map for the Assassinate Skill.
*/
function enter(pi) {
if(pi.isQuestStarted(6201)) {
if(pi.getWarpMap(910200000).countPlayers() == 0) {
if (pi.isQuestStarted(6201)) {
if (pi.getWarpMap(910200000).countPlayers() == 0) {
pi.resetMapObjects(910200000);
pi.playPortalSound(); pi.warp(910200000, 0);
pi.playPortalSound();
pi.warp(910200000, 0);
return true;
} else {
pi.getPlayer().message("Some other player is currently inside.");
return false;
}
}
pi.getPlayer().message("A mysterious force won't let you in.");
return false;
}