Reformat and clean up portal scripts
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user