LudiPQ & OrbisPQ patch

Fixed some latent issues with LudiPQ and OrbisPQ. Added stage EXP rewarding to the TreasurePQ.
This commit is contained in:
ronancpl committed 2018-03-07 11:28:01 -03:00
1 parent bbd2debc08
commit 90ed45d1c3
5 files changed
+24 -15

No files matched your search

+1
View File
@@ -85,6 +85,7 @@ function setup(level, lobbyid) {
var eim = em.newInstance("Orbis" + lobbyid);
eim.setProperty("level", level);
eim.setProperty("statusStg0", -1);
eim.setProperty("statusStg1", -1);
eim.setProperty("statusStg2", -1);
eim.setProperty("statusStg3", -1);
+2
View File
@@ -214,6 +214,8 @@ function isMV(mob) {
function monsterKilled(mob, eim) {
if(isMV(mob)) {
eim.showClearEffect();
eim.giveEventPlayersStageReward(2);
eim.clearPQ();
}
}
+2 -2
View File
@@ -60,14 +60,14 @@ function action(mode, type, selection) {
switch(cm.getPlayer().getMapId()) {
case 920010000:
print(eim.getIntProperty("statusStg0"));
if(eim.getIntProperty("statusStg0") != 1) {
eim.warpEventTeamToMapSpawnPoint(920010000, 2);
eim.giveEventPlayersExp(3500);
clearStage(0, eim);
cm.sendNext("Please save Minerva, She've been trapped in the seal by Papa Pixie, the terror of our tower! He misplaced all of our Minerva Statue's parts and we have to get it all back! Oh pardon me, I am the tower's Chamberlain, Eak. I am Minerva's royal servant.");
}
else {
} else {
cm.warp(920010000, 2);
}
cm.dispose();
+7 -1
View File
@@ -123,7 +123,13 @@ function action(mode, type, selection) {
}
if (playersOnCombo == 5 || cm.getPlayer().gmLevel() > 1) {
var combo = eim.getProperty("stage" + stage + "combo").split(',');
var comboStr = eim.getProperty("stage" + stage + "combo");
if(comboStr == null) {
comboStr = generateCombo();
eim.setProperty("stage" + stage + "combo", comboStr);
}
var combo = comboStr.split(',');
var correctCombo = true;
for (i = 0; i < objset.length && correctCombo; i++)
if (parseInt(combo[i]) != objset[i]) {
+12 -12
View File
@@ -46,23 +46,23 @@ function action(mode, type, selection) {
}
var eim = cm.getEventInstance();
if(cm.haveItem(4032118, 15)) {
cm.gainItem(4032118, -15);
eim.setIntProperty("statusStg1", 1);
eim.showClearEffect();
cm.sendNext("You got the letters, great! Now, you can proceed to the room MV is through this tunnel. Be prepared!");
cm.dispose();
if(eim.getIntProperty("statusStg1") == 1) {
cm.sendNext("Go through this tunnel for the boss battle.");
} else {
if(eim.getIntProperty("statusStg1") == 1) {
cm.sendNext("Go through this tunnel for the boss battle.");
if(cm.haveItem(4032118, 15)) {
cm.gainItem(4032118, -15);
eim.setIntProperty("statusStg1", 1);
eim.showClearEffect();
eim.giveEventPlayersStageReward(1);
cm.sendNext("You got the letters, great! Now, you can proceed to the room MV is through this tunnel. Be prepared!");
} else {
cm.sendNext("Please hand me #r15 secret letters#k.");
}
cm.dispose();
}
cm.dispose();
}
}
}