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).
16 lines
416 B
JavaScript
16 lines
416 B
JavaScript
function enter(pi) {
|
|
try {
|
|
var eim = pi.getEventInstance();
|
|
if (eim != null && eim.getProperty("stage2").equals("3")) {
|
|
pi.warp(925100200,0); //next
|
|
return(true);
|
|
} else {
|
|
pi.playerMessage(5, "The portal is not opened yet.");
|
|
return(false);
|
|
}
|
|
} catch(e) {
|
|
pi.playerMessage(5, "Error: " + e);
|
|
}
|
|
|
|
return(false);
|
|
} |