KerningPQ + some boosts on PQ/event scripting

Added cleaner mechanics for dealing with PQs and events (bonus Exp when
clearing a stage, for instance). Reimplemented KerningPQ.
This commit is contained in:
ronancpl
2017-05-05 00:55:36 -03:00
parent 03ab8be97d
commit da00345aec
45 changed files with 1260 additions and 1030 deletions

View File

@@ -94,7 +94,11 @@ function action(mode, type, selection) {
if (prop == null || prop.equals("0")) { //Start the PQ
cm.removeHPQItems();
em.setProperty("latestLeader", cm.getPlayer().getName());
em.startInstance(cm.getParty(), cm.getPlayer().getMap());
if(!em.startInstance(cm.getParty(), cm.getPlayer().getMap())) {
cm.sendOk("A party in your name is already registered in this event.");
cm.dispose();
return;
}
} else {
cm.sendOk("Someone is already attempting the PQ. Please wait for them to finish, or find another channel.");
cm.dispose();