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

@@ -1,17 +1,17 @@
function enter(pi) {
var eim = pi.getEventInstance();
if (eim.isEventCleared()) {
if(pi.isEventLeader()) {
pi.playPortalSound();
eim.warpEventTeam(930000800);
return true;
} else {
pi.playerMessage(5, "Wait for the leader to pass through the portal.");
return false;
}
var eim = pi.getEventInstance();
if (eim.isEventCleared()) {
if (pi.isEventLeader()) {
pi.playPortalSound();
eim.warpEventTeam(930000800);
return true;
} else {
pi.playerMessage(5, "Please eliminate the Poison Golem.");
return false;
pi.playerMessage(5, "Wait for the leader to pass through the portal.");
return false;
}
} else {
pi.playerMessage(5, "Please eliminate the Poison Golem.");
return false;
}
}