Ludibrium PQ + MapleIdRetriever

Implemented LPQ. New application tool that realizes fetches by names and
returns respective ids, over all items depicted in the GM handbook.
This commit is contained in:
ronancpl
2017-05-13 15:24:02 -03:00
parent ed6121dd5f
commit b26469301d
94 changed files with 36729 additions and 1186 deletions

View File

@@ -20,15 +20,24 @@
*/
/*
Ludi PQ: 5th stage to 6th stage portal
LudiPQ - 1 - 2 Portal
@author Jvlaple
*/
function enter(pi) {
var eim = pi.getPlayer().getEventInstance()
var target = eim.getMapInstance(922010800);
if (eim.getProperty("7stageclear") != null) {
pi.getPlayer().changeMap(target, target.getPortal("st00"));
return true;
} else
var nextMap = 922010900;
var eim = pi.getPlayer().getEventInstance();
var target = eim.getMapInstance(nextMap);
var targetPortal = target.getPortal("st00");
// only let people through if the eim is ready
var avail = eim.getProperty("8stageclear");
if (avail == null) {
// can't go thru eh?
pi.getPlayer().dropMessage(5, "Some seal is blocking this door.");
return false;
}
else {
pi.getPlayer().changeMap(target, targetPortal);
return true;
}
}