sweetgum83/scripts/portal/party6_out.js
2024-01-19 03:56:28 -05:00

17 lines
472 B
JavaScript

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;
}
} else {
pi.playerMessage(5, "Please eliminate the Poison Golem.");
return false;
}
}