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

@@ -1,5 +1,4 @@
function act() {
var eim = rm.getEventInstance();
if (eim != null) {
var mapId = rm.getMap().getId();
@@ -9,7 +8,9 @@ function act() {
eim.setIntProperty("glpq2", eim.getIntProperty("glpq2") + 1);
if (eim.getIntProperty("glpq2") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(mapId, "2pt", 2);
eim.giveEventPlayersStageReward(2);
}
} else if (mapId == 610030300) {
eim.dropMessage(6, "The Warrior Sigil has been activated! You hear gears turning! The Menhir Defense System is active! Run!");
@@ -17,11 +18,10 @@ function act() {
rm.getMap().moveEnvironment("menhir0", 1);
if (eim.getIntProperty("glpq3") == 5 && eim.getIntProperty("glpq3_p") == 5) {
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(mapId, "3pt", 2);
eim.giveEventPlayersStageReward(3);
}
}
}
//rm.getMap().moveEnvironment("menhir0", 1);
}

View File

@@ -8,7 +8,9 @@ function act() {
eim.setIntProperty("glpq2", eim.getIntProperty("glpq2") + 1);
if (eim.getIntProperty("glpq2") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(mapId, "2pt", 2);
eim.giveEventPlayersStageReward(2);
}
} else if (mapId == 610030300) {
eim.dropMessage(6, "The Archer Sigil has been activated! You hear gears turning! The Menhir Defense System is active! Run!");
@@ -17,7 +19,9 @@ function act() {
rm.getMap().moveEnvironment("menhir2", 1);
if (eim.getIntProperty("glpq3") == 5 && eim.getIntProperty("glpq3_p") == 5) {
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(mapId, "3pt", 2);
eim.showClearEffect(mapId, "3pt", 2);
eim.giveEventPlayersStageReward(3);
}
}
}

View File

@@ -8,7 +8,9 @@ function act() {
eim.setIntProperty("glpq2", eim.getIntProperty("glpq2") + 1);
if (eim.getIntProperty("glpq2") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(mapId, "2pt", 2);
eim.giveEventPlayersStageReward(2);
}
} else if (mapId == 610030300) {
eim.dropMessage(6, "The Mage Sigil has been activated! You hear gears turning! The Menhir Defense System is active! Run!");
@@ -16,7 +18,9 @@ function act() {
rm.getMap().moveEnvironment("menhir3", 1);
if (eim.getIntProperty("glpq3") == 5 && eim.getIntProperty("glpq3_p") == 5) {
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(mapId, "3pt", 2);
eim.giveEventPlayersStageReward(3);
}
}
}

View File

@@ -8,7 +8,9 @@ function act() {
eim.setIntProperty("glpq2", eim.getIntProperty("glpq2") + 1);
if (eim.getIntProperty("glpq2") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(mapId, "2pt", 2);
eim.giveEventPlayersStageReward(2);
}
} else if (mapId == 610030300) {
eim.dropMessage(6, "The Thief Sigil has been activated! You hear gears turning! The Menhir Defense System is active! Run!");
@@ -16,7 +18,9 @@ function act() {
rm.getMap().moveEnvironment("menhir4", 1);
if (eim.getIntProperty("glpq3") == 5 && eim.getIntProperty("glpq3_p") == 5) {
rm.mapMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(mapId, "3pt", 2);
eim.giveEventPlayersStageReward(3);
}
}
}

View File

@@ -8,7 +8,9 @@ function act() {
eim.setIntProperty("glpq2", eim.getIntProperty("glpq2") + 1);
if (eim.getIntProperty("glpq2") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(mapId, "2pt", 2);
eim.giveEventPlayersStageReward(2);
}
} else if (mapId == 610030300) {
eim.dropMessage(6, "The Pirate Sigil has been activated! You hear gears turning! The Menhir Defense System is active! Run!");
@@ -16,7 +18,9 @@ function act() {
rm.getMap().moveEnvironment("menhir5", 1);
if (eim.getIntProperty("glpq3") == 5 && eim.getIntProperty("glpq3_p") == 5) {
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(mapId, "3pt", 2);
eim.giveEventPlayersStageReward(3);
}
}
}

View File

@@ -5,7 +5,9 @@ function act() {
eim.setIntProperty("glpq5", eim.getIntProperty("glpq5") + 1);
if (eim.getIntProperty("glpq5") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(610030500, "5pt", 2);
eim.giveEventPlayersStageReward(5);
}
}
}

View File

@@ -5,7 +5,9 @@ function act() {
eim.setIntProperty("glpq5", eim.getIntProperty("glpq5") + 1);
if (eim.getIntProperty("glpq5") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(610030500, "5pt", 2);
eim.giveEventPlayersStageReward(5);
}
}
}

View File

@@ -5,7 +5,9 @@ function act() {
eim.setIntProperty("glpq5", eim.getIntProperty("glpq5") + 1);
if (eim.getIntProperty("glpq5") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(610030500, "5pt", 2);
eim.giveEventPlayersStageReward(5);
}
}
}

View File

@@ -5,7 +5,9 @@ function act() {
eim.setIntProperty("glpq5", eim.getIntProperty("glpq5") + 1);
if (eim.getIntProperty("glpq5") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(610030500, "5pt", 2);
eim.giveEventPlayersStageReward(5);
}
}
}

View File

@@ -5,7 +5,9 @@ function act() {
eim.setIntProperty("glpq5", eim.getIntProperty("glpq5") + 1);
if (eim.getIntProperty("glpq5") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(610030500, "5pt", 2);
eim.giveEventPlayersStageReward(5);
}
}
}

View File

@@ -0,0 +1,21 @@
var fid = "glpq_s";
function action() {
rm.mapMessage(6, "All stirges have disappeared.");
rm.getMap().killAllMonsters(true);
eim.setIntProperty(fid, 777);
}
function touch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 5) action();
eim.setIntProperty(fid, eim.getIntProperty(fid) + 1);
}
function untouch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 5) action();
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}

View File

@@ -0,0 +1,22 @@
function action() { //flame0, im assuming this is topleft
var flames = Array("a1", "a2", "b1", "b2", "c1", "c2");
for (var i = 0; i < flames.length; i++) {
rm.getMap().toggleEnvironment(flames[i]);
}
}
var fid = "glpq_f0";
function touch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 0) action();
eim.setIntProperty(fid, eim.getIntProperty(fid) + 1);
}
function untouch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 1) action();
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}

View File

@@ -5,7 +5,9 @@ function act() {
eim.setIntProperty("glpq4", eim.getIntProperty("glpq4") + 1);
if (eim.getIntProperty("glpq4") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(610030400, "4pt", 2);
eim.giveEventPlayersStageReward(4);
}
}
}

View File

@@ -5,7 +5,9 @@ function act() {
eim.setIntProperty("glpq4", eim.getIntProperty("glpq4") + 1);
if (eim.getIntProperty("glpq4") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(610030400, "4pt", 2);
eim.giveEventPlayersStageReward(4);
}
}
}

View File

@@ -5,7 +5,9 @@ function act() {
eim.setIntProperty("glpq4", eim.getIntProperty("glpq4") + 1);
if (eim.getIntProperty("glpq4") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(610030400, "4pt", 2);
eim.giveEventPlayersStageReward(4);
}
}
}

View File

@@ -5,7 +5,9 @@ function act() {
eim.setIntProperty("glpq4", eim.getIntProperty("glpq4") + 1);
if (eim.getIntProperty("glpq4") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(610030400, "4pt", 2);
eim.giveEventPlayersStageReward(4);
}
}
}

View File

@@ -5,7 +5,9 @@ function act() {
eim.setIntProperty("glpq4", eim.getIntProperty("glpq4") + 1);
if (eim.getIntProperty("glpq4") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(610030400, "4pt", 2);
eim.giveEventPlayersStageReward(4);
}
}
}

View File

@@ -0,0 +1,22 @@
function action() { //flame1, top center?
var flames = Array("a3", "a4", "a5", "b3", "b4", "b5", "c3", "c4", "c5");
for (var i = 0; i < flames.length; i++) {
rm.getMap().toggleEnvironment(flames[i]);
}
}
var fid = "glpq_f1";
function touch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 0) action();
eim.setIntProperty(fid, eim.getIntProperty(fid) + 1);
}
function untouch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 1) action();
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}

View File

@@ -0,0 +1,22 @@
function action() {
var flames = Array("a6", "a7", "b6", "b7", "c6", "c7");
for (var i = 0; i < flames.length; i++) {
rm.getMap().toggleEnvironment(flames[i]);
}
}
var fid = "glpq_f2";
function touch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 0) action();
eim.setIntProperty(fid, eim.getIntProperty(fid) + 1);
}
function untouch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 1) action();
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}

View File

@@ -0,0 +1,22 @@
function action() {
var flames = Array("d1", "d2", "e1", "e2", "f1", "f2");
for (var i = 0; i < flames.length; i++) {
rm.getMap().toggleEnvironment(flames[i]);
}
}
var fid = "glpq_f3";
function touch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 0) action();
eim.setIntProperty(fid, eim.getIntProperty(fid) + 1);
}
function untouch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 1) action();
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}

View File

@@ -0,0 +1,22 @@
function action() {
var flames = Array("d6", "d7", "e6", "e7", "f6", "f7");
for (var i = 0; i < flames.length; i++) {
rm.getMap().toggleEnvironment(flames[i]);
}
}
var fid = "glpq_f4";
function touch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 0) action();
eim.setIntProperty(fid, eim.getIntProperty(fid) + 1);
}
function untouch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 1) action();
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}

View File

@@ -0,0 +1,22 @@
function action() {
var flames = Array("g1", "g2", "h1", "h2", "i1", "i2");
for (var i = 0; i < flames.length; i++) {
rm.getMap().toggleEnvironment(flames[i]);
}
}
var fid = "glpq_f5";
function touch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 0) action();
eim.setIntProperty(fid, eim.getIntProperty(fid) + 1);
}
function untouch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 1) action();
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}

View File

@@ -0,0 +1,22 @@
function action() {
var flames = Array("g3", "g4", "g5", "h3", "h4", "h5", "i3", "i4", "i5");
for (var i = 0; i < flames.length; i++) {
rm.getMap().toggleEnvironment(flames[i]);
}
}
var fid = "glpq_f6";
function touch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 0) action();
eim.setIntProperty(fid, eim.getIntProperty(fid) + 1);
}
function untouch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 1) action();
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}

View File

@@ -0,0 +1,22 @@
function action() {
var flames = Array("g6", "g7", "h6", "h7", "i6", "i7");
for (var i = 0; i < flames.length; i++) {
rm.getMap().toggleEnvironment(flames[i]);
}
}
var fid = "glpq_f7";
function touch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 0) action();
eim.setIntProperty(fid, eim.getIntProperty(fid) + 1);
}
function untouch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 1) action();
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}