Implemented CWKPQ

Made CWKPQ fully-functional, using the Expedition system (won't work
with the lobby system).
This commit is contained in:
ronancpl
2017-06-30 01:26:47 -03:00
parent a7beff1bb4
commit ca3838050d
126 changed files with 50072 additions and 49743 deletions

View File

@@ -9,9 +9,11 @@ function enter(pi) {
} else {
eim.setIntProperty("glpq3_p", eim.getIntProperty("glpq3_p") + 1);
if(eim.getIntProperty("glpq3_p") == 5) {
if(eim.getIntProperty("glpq3") == 5 && eim.getIntProperty("glpq3_p") == 5) {
pi.mapMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(610030300, "3pt", 2);
eim.giveEventPlayersStageReward(3);
} else {
pi.mapMessage(6, "An adventurer has passed through! " + (5 - eim.getIntProperty("glpq3_p")) + " to go.");
}

View File

@@ -1,7 +1,7 @@
function enter(pi) {
var eim = pi.getEventInstance();
if (eim != null) {
if (eim.getIntProperty("glpq3") != 5 || eim.getIntProperty("glpq3_p") != 5) {
if (eim.getIntProperty("glpq3") < 5 || eim.getIntProperty("glpq3_p") < 5) {
pi.playerMessage(5, "The portal is not opened yet.");
return false;
} else {

View File

@@ -5,12 +5,7 @@ function enter(pi) {
pi.playerMessage(5, "The portal is not opened yet.");
return false;
} else {
pi.removeAll(4001256);
pi.removeAll(4001257);
pi.removeAll(4001258);
pi.removeAll(4001259);
pi.removeAll(4001260);
pi.warp(610030600, 0);
pi.warp(610030600, 0);
return true;
}
}

View File

@@ -3,11 +3,15 @@ function enter(pi) {
if (react.getState() < 1) {
react.forceHitReactor(1);
pi.getEventInstance().setIntProperty("glpq1", 1);
var eim = pi.getEventInstance();
eim.setIntProperty("glpq1", 1);
pi.getEventInstance().dropMessage(5, "A strange force starts being emitted from the portal apparatus, showing a hidden path once blocked now open.");
pi.warp(610030100, 0);
pi.getEventInstance().showClearEffect();
eim.giveEventPlayersStageReward(1);
return true;
}