Completed (hopefully, now!) implementation of automated modules for PQ scripting. Added HP bar for some bosses that wouldn't display it before (like King Slime, Alishar and CRog).
17 lines
679 B
JavaScript
17 lines
679 B
JavaScript
function enter(pi) {
|
|
if ((pi.getMap().getMonsters().size() == 0 || pi.getMap().getMonsterById(9300183) != null) && (pi.getMap().getReactorByName("") == null || pi.getMap().getReactorByName("").getState() == 1)) {
|
|
if(pi.isLeader()) {
|
|
pi.getEventInstance().clearPQ();
|
|
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;
|
|
}
|
|
} |