diff --git a/scripts/NPC Base.js b/scripts/NPC Base.js
index a5281e22ac..7a42f69028 100644
--- a/scripts/NPC Base.js
+++ b/scripts/NPC Base.js
@@ -23,36 +23,37 @@
*/
var status;
-
+
function start() {
- status = -1;
- action(1, 0, 0);
+ status = -1;
+ action(1, 0, 0);
}
function action(mode, type, selection) {
- if (mode == -1) {
- cm.dispose();
- } else {
- if (mode == 0 && type > 0) {
- cm.dispose();
- return;
- }
- if (mode == 1)
- status++;
- else
- status--;
-
- if(status == 0) {
- cm.sendOk("Sample text.");
- cm.dispose();
- }
+ if (mode == -1) {
+ cm.dispose();
+ } else {
+ if (mode == 0 && type > 0) {
+ cm.dispose();
+ return;
}
+ if (mode == 1) {
+ status++;
+ } else {
+ status--;
+ }
+
+ if (status == 0) {
+ cm.sendOk("Sample text.");
+ cm.dispose();
+ }
+ }
}
function generateSelectionMenu(array) { // nice tool for generating a string for the sendSimple functionality
- var menu = "";
- for (var i = 0; i < array.length; i++) {
- menu += "#L" + i + "#" + array[i] + "#l\r\n";
- }
- return menu;
+ var menu = "";
+ for (var i = 0; i < array.length; i++) {
+ menu += "#L" + i + "#" + array[i] + "#l\r\n";
+ }
+ return menu;
}
\ No newline at end of file
diff --git a/scripts/QUEST Base.js b/scripts/QUEST Base.js
index 3800372313..72d31e1c84 100644
--- a/scripts/QUEST Base.js
+++ b/scripts/QUEST Base.js
@@ -28,16 +28,17 @@ function start(mode, type, selection) {
if (mode == -1) {
qm.dispose();
} else {
- if(mode == 0 && type > 0) {
+ if (mode == 0 && type > 0) {
qm.dispose();
return;
}
-
- if (mode == 1)
+
+ if (mode == 1) {
status++;
- else
+ } else {
status--;
-
+ }
+
if (status == 0) {
qm.sendNext("Sample Text.");
} else if (status == 1) {
@@ -51,16 +52,17 @@ function end(mode, type, selection) {
if (mode == -1) {
qm.dispose();
} else {
- if(mode == 0 && type > 0) {
+ if (mode == 0 && type > 0) {
qm.dispose();
return;
}
-
- if (mode == 1)
+
+ if (mode == 1) {
status++;
- else
+ } else {
status--;
-
+ }
+
if (status == 0) {
qm.sendNext("Sample Text.");
} else if (status == 1) {
diff --git a/scripts/REACT Base.js b/scripts/REACT Base.js
index a119b537f1..6e611239de 100644
--- a/scripts/REACT Base.js
+++ b/scripts/REACT Base.js
@@ -24,5 +24,5 @@
*/
function act() {
-
+
}
\ No newline at end of file
diff --git a/scripts/reactor/1002009.js b/scripts/reactor/1002009.js
index 0c067cf268..93bc560423 100644
--- a/scripts/reactor/1002009.js
+++ b/scripts/reactor/1002009.js
@@ -1,3 +1,3 @@
function act() {
- rm.dropItems(true, 2, 8, 15);
+ rm.dropItems(true, 2, 8, 15);
}
\ No newline at end of file
diff --git a/scripts/reactor/1050000.js b/scripts/reactor/1050000.js
index 19b770cd1c..b403630cf7 100644
--- a/scripts/reactor/1050000.js
+++ b/scripts/reactor/1050000.js
@@ -19,14 +19,16 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* @Author Crovy
*
* 1050000.js: Berserk 4th job quest rock - drops a shield or punts you from map.
*/
function act() {
- if (Math.random() > 0.7)
+ if (Math.random() > 0.7) {
rm.dropItems();
- else
+ } else {
rm.warp(105090200, 0);
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/1052000.js b/scripts/reactor/1052000.js
index c06753da3b..3cb8c5265c 100644
--- a/scripts/reactor/1052000.js
+++ b/scripts/reactor/1052000.js
@@ -1,3 +1,3 @@
function act() {
- rm.dropItems();
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/1052001.js b/scripts/reactor/1052001.js
index 1dcc195f35..8772c9ac46 100644
--- a/scripts/reactor/1052001.js
+++ b/scripts/reactor/1052001.js
@@ -1,3 +1,3 @@
function act() {
- rm.sprayItems(true, 1, 500, 1000, 15);
+ rm.sprayItems(true, 1, 500, 1000, 15);
}
\ No newline at end of file
diff --git a/scripts/reactor/1052002.js b/scripts/reactor/1052002.js
index 1dcc195f35..8772c9ac46 100644
--- a/scripts/reactor/1052002.js
+++ b/scripts/reactor/1052002.js
@@ -1,3 +1,3 @@
function act() {
- rm.sprayItems(true, 1, 500, 1000, 15);
+ rm.sprayItems(true, 1, 500, 1000, 15);
}
\ No newline at end of file
diff --git a/scripts/reactor/1072000.js b/scripts/reactor/1072000.js
index 73fa5c64c9..23d1a81edf 100644
--- a/scripts/reactor/1072000.js
+++ b/scripts/reactor/1072000.js
@@ -19,11 +19,12 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* @Author Lerk
*
* 1072000.js: Kerning Swamp Plant - drops Witchgrass Leaves
*/
function act() {
- rm.dropItems();
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/1102001.js b/scripts/reactor/1102001.js
index 88d1f4dbf5..3425eb3df1 100644
--- a/scripts/reactor/1102001.js
+++ b/scripts/reactor/1102001.js
@@ -26,5 +26,5 @@
*/
function act() {
- rm.dropItems();
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/1202003.js b/scripts/reactor/1202003.js
index bbad6f2f1e..0ab167805d 100644
--- a/scripts/reactor/1202003.js
+++ b/scripts/reactor/1202003.js
@@ -1,3 +1,3 @@
function act() {
- rm.dropItems();
+ rm.dropItems();
}
diff --git a/scripts/reactor/1202004.js b/scripts/reactor/1202004.js
index bbad6f2f1e..0ab167805d 100644
--- a/scripts/reactor/1202004.js
+++ b/scripts/reactor/1202004.js
@@ -1,3 +1,3 @@
function act() {
- rm.dropItems();
+ rm.dropItems();
}
diff --git a/scripts/reactor/1209000.js b/scripts/reactor/1209000.js
index a332e450d4..b2fc6eb24b 100644
--- a/scripts/reactor/1209000.js
+++ b/scripts/reactor/1209000.js
@@ -28,6 +28,6 @@ function act() { // string visibility thanks to ProXAIMeRx & Glvelturall
rm.setQuestProgress(6400, 1, 2);
rm.setQuestProgress(6400, 6401, "q3");
}
-
+
rm.message("Real Bart has been found. Return to Jonathan through the portal.");
}
\ No newline at end of file
diff --git a/scripts/reactor/1209001.js b/scripts/reactor/1209001.js
index 043e73a235..3b8c3c8f56 100644
--- a/scripts/reactor/1209001.js
+++ b/scripts/reactor/1209001.js
@@ -1,3 +1,3 @@
function act() {
- rm.dropItems(true, 2, 8, 15, 1);
+ rm.dropItems(true, 2, 8, 15, 1);
}
\ No newline at end of file
diff --git a/scripts/reactor/1302000.js b/scripts/reactor/1302000.js
index 18e254a639..d8bf523a5c 100644
--- a/scripts/reactor/1302000.js
+++ b/scripts/reactor/1302000.js
@@ -2,6 +2,6 @@
Queen's Path : Forest of the Start 5
*/
-function act(){
- rm.dropItems(true, 2, 8, 12, 2);
+function act() {
+ rm.dropItems(true, 2, 8, 12, 2);
}
\ No newline at end of file
diff --git a/scripts/reactor/1402000.js b/scripts/reactor/1402000.js
index 6a0dcfa603..0556e0aa60 100644
--- a/scripts/reactor/1402000.js
+++ b/scripts/reactor/1402000.js
@@ -19,7 +19,8 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
-/*
+
+/*
* @Author kevintjuh93
*/
diff --git a/scripts/reactor/200.js b/scripts/reactor/200.js
index c06753da3b..3cb8c5265c 100644
--- a/scripts/reactor/200.js
+++ b/scripts/reactor/200.js
@@ -1,3 +1,3 @@
function act() {
- rm.dropItems();
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2000.js b/scripts/reactor/2000.js
index c0ec407181..8f23d33d23 100644
--- a/scripts/reactor/2000.js
+++ b/scripts/reactor/2000.js
@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* @Author Lerk
*
* 2000.js: Maple Island Box - drops various items, notably quest items Old Wooden Board and Rusty Screw
diff --git a/scripts/reactor/2001.js b/scripts/reactor/2001.js
index b0262c7978..f14f77493f 100644
--- a/scripts/reactor/2001.js
+++ b/scripts/reactor/2001.js
@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* @Author Lerk - Hi :()
*
* 2001.js: Maple Island Box - drops various items, notably quest items Old Wooden Board and Rusty Screw
diff --git a/scripts/reactor/2001000.js b/scripts/reactor/2001000.js
index fa582deb93..22ba90db61 100644
--- a/scripts/reactor/2001000.js
+++ b/scripts/reactor/2001000.js
@@ -19,21 +19,21 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*@author Ronan
*Nependeath Pot - Spawns Nependeath or Dark Nependeath
*/
-
+
function act() {
- if(rm.getMap().getSummonState()) {
+ if (rm.getMap().getSummonState()) {
var count = Number(rm.getEventInstance().getIntProperty("statusStg7_c"));
- if(count < 7) {
+ if (count < 7) {
var nextCount = (count + 1);
rm.spawnMonster(Math.random() >= .6 ? 9300049 : 9300048);
rm.getEventInstance().setProperty("statusStg7_c", nextCount);
- }
- else {
+ } else {
rm.spawnMonster(9300049);
}
}
diff --git a/scripts/reactor/2001001.js b/scripts/reactor/2001001.js
index fa582deb93..22ba90db61 100644
--- a/scripts/reactor/2001001.js
+++ b/scripts/reactor/2001001.js
@@ -19,21 +19,21 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*@author Ronan
*Nependeath Pot - Spawns Nependeath or Dark Nependeath
*/
-
+
function act() {
- if(rm.getMap().getSummonState()) {
+ if (rm.getMap().getSummonState()) {
var count = Number(rm.getEventInstance().getIntProperty("statusStg7_c"));
- if(count < 7) {
+ if (count < 7) {
var nextCount = (count + 1);
rm.spawnMonster(Math.random() >= .6 ? 9300049 : 9300048);
rm.getEventInstance().setProperty("statusStg7_c", nextCount);
- }
- else {
+ } else {
rm.spawnMonster(9300049);
}
}
diff --git a/scripts/reactor/2001002.js b/scripts/reactor/2001002.js
index a9528cf884..0ffd973310 100644
--- a/scripts/reactor/2001002.js
+++ b/scripts/reactor/2001002.js
@@ -19,36 +19,36 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
*/
function act() {
- if(rm.getEventInstance().getIntProperty("statusStg2") == -1) {
+ if (rm.getEventInstance().getIntProperty("statusStg2") == -1) {
var rnd = Math.max(Math.floor(Math.random() * 14), 4);
-
+
rm.getEventInstance().setProperty("statusStg2", "" + rnd);
rm.getEventInstance().setProperty("statusStg2_c", "0");
}
-
+
var limit = rm.getEventInstance().getIntProperty("statusStg2");
var count = rm.getEventInstance().getIntProperty("statusStg2_c");
- if(count >= limit) {
+ if (count >= limit) {
rm.dropItems();
-
+
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
-
+
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
- }
- else {
+ } else {
count++;
rm.getEventInstance().setProperty("statusStg2_c", count);
-
+
var nextHashed = (11 * (count)) % 14;
-
+
var nextPos = rm.getMap().getReactorById(2001002 + nextHashed).getPosition();
rm.spawnMonster(9300040, 1, nextPos);
}
diff --git a/scripts/reactor/2001003.js b/scripts/reactor/2001003.js
index d213aa7513..ce40544bc3 100644
--- a/scripts/reactor/2001003.js
+++ b/scripts/reactor/2001003.js
@@ -19,36 +19,36 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
*/
function act() {
- if(rm.getEventInstance().getIntProperty("statusStg2") == -1) {
+ if (rm.getEventInstance().getIntProperty("statusStg2") == -1) {
var rnd = Math.floor(Math.random() * 14);
-
+
rm.getEventInstance().setProperty("statusStg2", "" + rnd);
rm.getEventInstance().setProperty("statusStg2_c", "0");
}
-
+
var limit = rm.getEventInstance().getIntProperty("statusStg2");
var count = rm.getEventInstance().getIntProperty("statusStg2_c");
- if(count >= limit) {
+ if (count >= limit) {
rm.dropItems();
-
+
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
-
+
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
- }
- else {
+ } else {
count++;
rm.getEventInstance().setProperty("statusStg2_c", count);
-
+
var nextHashed = (11 * (count)) % 14;
-
+
var nextPos = rm.getMap().getReactorById(2001002 + nextHashed).getPosition();
rm.spawnMonster(9300040, 1, nextPos);
}
diff --git a/scripts/reactor/2001004.js b/scripts/reactor/2001004.js
index d213aa7513..ce40544bc3 100644
--- a/scripts/reactor/2001004.js
+++ b/scripts/reactor/2001004.js
@@ -19,36 +19,36 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
*/
function act() {
- if(rm.getEventInstance().getIntProperty("statusStg2") == -1) {
+ if (rm.getEventInstance().getIntProperty("statusStg2") == -1) {
var rnd = Math.floor(Math.random() * 14);
-
+
rm.getEventInstance().setProperty("statusStg2", "" + rnd);
rm.getEventInstance().setProperty("statusStg2_c", "0");
}
-
+
var limit = rm.getEventInstance().getIntProperty("statusStg2");
var count = rm.getEventInstance().getIntProperty("statusStg2_c");
- if(count >= limit) {
+ if (count >= limit) {
rm.dropItems();
-
+
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
-
+
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
- }
- else {
+ } else {
count++;
rm.getEventInstance().setProperty("statusStg2_c", count);
-
+
var nextHashed = (11 * (count)) % 14;
-
+
var nextPos = rm.getMap().getReactorById(2001002 + nextHashed).getPosition();
rm.spawnMonster(9300040, 1, nextPos);
}
diff --git a/scripts/reactor/2001005.js b/scripts/reactor/2001005.js
index d213aa7513..ce40544bc3 100644
--- a/scripts/reactor/2001005.js
+++ b/scripts/reactor/2001005.js
@@ -19,36 +19,36 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
*/
function act() {
- if(rm.getEventInstance().getIntProperty("statusStg2") == -1) {
+ if (rm.getEventInstance().getIntProperty("statusStg2") == -1) {
var rnd = Math.floor(Math.random() * 14);
-
+
rm.getEventInstance().setProperty("statusStg2", "" + rnd);
rm.getEventInstance().setProperty("statusStg2_c", "0");
}
-
+
var limit = rm.getEventInstance().getIntProperty("statusStg2");
var count = rm.getEventInstance().getIntProperty("statusStg2_c");
- if(count >= limit) {
+ if (count >= limit) {
rm.dropItems();
-
+
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
-
+
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
- }
- else {
+ } else {
count++;
rm.getEventInstance().setProperty("statusStg2_c", count);
-
+
var nextHashed = (11 * (count)) % 14;
-
+
var nextPos = rm.getMap().getReactorById(2001002 + nextHashed).getPosition();
rm.spawnMonster(9300040, 1, nextPos);
}
diff --git a/scripts/reactor/2001006.js b/scripts/reactor/2001006.js
index d213aa7513..ce40544bc3 100644
--- a/scripts/reactor/2001006.js
+++ b/scripts/reactor/2001006.js
@@ -19,36 +19,36 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
*/
function act() {
- if(rm.getEventInstance().getIntProperty("statusStg2") == -1) {
+ if (rm.getEventInstance().getIntProperty("statusStg2") == -1) {
var rnd = Math.floor(Math.random() * 14);
-
+
rm.getEventInstance().setProperty("statusStg2", "" + rnd);
rm.getEventInstance().setProperty("statusStg2_c", "0");
}
-
+
var limit = rm.getEventInstance().getIntProperty("statusStg2");
var count = rm.getEventInstance().getIntProperty("statusStg2_c");
- if(count >= limit) {
+ if (count >= limit) {
rm.dropItems();
-
+
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
-
+
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
- }
- else {
+ } else {
count++;
rm.getEventInstance().setProperty("statusStg2_c", count);
-
+
var nextHashed = (11 * (count)) % 14;
-
+
var nextPos = rm.getMap().getReactorById(2001002 + nextHashed).getPosition();
rm.spawnMonster(9300040, 1, nextPos);
}
diff --git a/scripts/reactor/2001007.js b/scripts/reactor/2001007.js
index d213aa7513..ce40544bc3 100644
--- a/scripts/reactor/2001007.js
+++ b/scripts/reactor/2001007.js
@@ -19,36 +19,36 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
*/
function act() {
- if(rm.getEventInstance().getIntProperty("statusStg2") == -1) {
+ if (rm.getEventInstance().getIntProperty("statusStg2") == -1) {
var rnd = Math.floor(Math.random() * 14);
-
+
rm.getEventInstance().setProperty("statusStg2", "" + rnd);
rm.getEventInstance().setProperty("statusStg2_c", "0");
}
-
+
var limit = rm.getEventInstance().getIntProperty("statusStg2");
var count = rm.getEventInstance().getIntProperty("statusStg2_c");
- if(count >= limit) {
+ if (count >= limit) {
rm.dropItems();
-
+
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
-
+
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
- }
- else {
+ } else {
count++;
rm.getEventInstance().setProperty("statusStg2_c", count);
-
+
var nextHashed = (11 * (count)) % 14;
-
+
var nextPos = rm.getMap().getReactorById(2001002 + nextHashed).getPosition();
rm.spawnMonster(9300040, 1, nextPos);
}
diff --git a/scripts/reactor/2001008.js b/scripts/reactor/2001008.js
index d213aa7513..ce40544bc3 100644
--- a/scripts/reactor/2001008.js
+++ b/scripts/reactor/2001008.js
@@ -19,36 +19,36 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
*/
function act() {
- if(rm.getEventInstance().getIntProperty("statusStg2") == -1) {
+ if (rm.getEventInstance().getIntProperty("statusStg2") == -1) {
var rnd = Math.floor(Math.random() * 14);
-
+
rm.getEventInstance().setProperty("statusStg2", "" + rnd);
rm.getEventInstance().setProperty("statusStg2_c", "0");
}
-
+
var limit = rm.getEventInstance().getIntProperty("statusStg2");
var count = rm.getEventInstance().getIntProperty("statusStg2_c");
- if(count >= limit) {
+ if (count >= limit) {
rm.dropItems();
-
+
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
-
+
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
- }
- else {
+ } else {
count++;
rm.getEventInstance().setProperty("statusStg2_c", count);
-
+
var nextHashed = (11 * (count)) % 14;
-
+
var nextPos = rm.getMap().getReactorById(2001002 + nextHashed).getPosition();
rm.spawnMonster(9300040, 1, nextPos);
}
diff --git a/scripts/reactor/2001009.js b/scripts/reactor/2001009.js
index d213aa7513..ce40544bc3 100644
--- a/scripts/reactor/2001009.js
+++ b/scripts/reactor/2001009.js
@@ -19,36 +19,36 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
*/
function act() {
- if(rm.getEventInstance().getIntProperty("statusStg2") == -1) {
+ if (rm.getEventInstance().getIntProperty("statusStg2") == -1) {
var rnd = Math.floor(Math.random() * 14);
-
+
rm.getEventInstance().setProperty("statusStg2", "" + rnd);
rm.getEventInstance().setProperty("statusStg2_c", "0");
}
-
+
var limit = rm.getEventInstance().getIntProperty("statusStg2");
var count = rm.getEventInstance().getIntProperty("statusStg2_c");
- if(count >= limit) {
+ if (count >= limit) {
rm.dropItems();
-
+
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
-
+
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
- }
- else {
+ } else {
count++;
rm.getEventInstance().setProperty("statusStg2_c", count);
-
+
var nextHashed = (11 * (count)) % 14;
-
+
var nextPos = rm.getMap().getReactorById(2001002 + nextHashed).getPosition();
rm.spawnMonster(9300040, 1, nextPos);
}
diff --git a/scripts/reactor/2001010.js b/scripts/reactor/2001010.js
index d213aa7513..ce40544bc3 100644
--- a/scripts/reactor/2001010.js
+++ b/scripts/reactor/2001010.js
@@ -19,36 +19,36 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
*/
function act() {
- if(rm.getEventInstance().getIntProperty("statusStg2") == -1) {
+ if (rm.getEventInstance().getIntProperty("statusStg2") == -1) {
var rnd = Math.floor(Math.random() * 14);
-
+
rm.getEventInstance().setProperty("statusStg2", "" + rnd);
rm.getEventInstance().setProperty("statusStg2_c", "0");
}
-
+
var limit = rm.getEventInstance().getIntProperty("statusStg2");
var count = rm.getEventInstance().getIntProperty("statusStg2_c");
- if(count >= limit) {
+ if (count >= limit) {
rm.dropItems();
-
+
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
-
+
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
- }
- else {
+ } else {
count++;
rm.getEventInstance().setProperty("statusStg2_c", count);
-
+
var nextHashed = (11 * (count)) % 14;
-
+
var nextPos = rm.getMap().getReactorById(2001002 + nextHashed).getPosition();
rm.spawnMonster(9300040, 1, nextPos);
}
diff --git a/scripts/reactor/2001011.js b/scripts/reactor/2001011.js
index d213aa7513..ce40544bc3 100644
--- a/scripts/reactor/2001011.js
+++ b/scripts/reactor/2001011.js
@@ -19,36 +19,36 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
*/
function act() {
- if(rm.getEventInstance().getIntProperty("statusStg2") == -1) {
+ if (rm.getEventInstance().getIntProperty("statusStg2") == -1) {
var rnd = Math.floor(Math.random() * 14);
-
+
rm.getEventInstance().setProperty("statusStg2", "" + rnd);
rm.getEventInstance().setProperty("statusStg2_c", "0");
}
-
+
var limit = rm.getEventInstance().getIntProperty("statusStg2");
var count = rm.getEventInstance().getIntProperty("statusStg2_c");
- if(count >= limit) {
+ if (count >= limit) {
rm.dropItems();
-
+
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
-
+
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
- }
- else {
+ } else {
count++;
rm.getEventInstance().setProperty("statusStg2_c", count);
-
+
var nextHashed = (11 * (count)) % 14;
-
+
var nextPos = rm.getMap().getReactorById(2001002 + nextHashed).getPosition();
rm.spawnMonster(9300040, 1, nextPos);
}
diff --git a/scripts/reactor/2001012.js b/scripts/reactor/2001012.js
index d213aa7513..ce40544bc3 100644
--- a/scripts/reactor/2001012.js
+++ b/scripts/reactor/2001012.js
@@ -19,36 +19,36 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
*/
function act() {
- if(rm.getEventInstance().getIntProperty("statusStg2") == -1) {
+ if (rm.getEventInstance().getIntProperty("statusStg2") == -1) {
var rnd = Math.floor(Math.random() * 14);
-
+
rm.getEventInstance().setProperty("statusStg2", "" + rnd);
rm.getEventInstance().setProperty("statusStg2_c", "0");
}
-
+
var limit = rm.getEventInstance().getIntProperty("statusStg2");
var count = rm.getEventInstance().getIntProperty("statusStg2_c");
- if(count >= limit) {
+ if (count >= limit) {
rm.dropItems();
-
+
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
-
+
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
- }
- else {
+ } else {
count++;
rm.getEventInstance().setProperty("statusStg2_c", count);
-
+
var nextHashed = (11 * (count)) % 14;
-
+
var nextPos = rm.getMap().getReactorById(2001002 + nextHashed).getPosition();
rm.spawnMonster(9300040, 1, nextPos);
}
diff --git a/scripts/reactor/2001013.js b/scripts/reactor/2001013.js
index d213aa7513..ce40544bc3 100644
--- a/scripts/reactor/2001013.js
+++ b/scripts/reactor/2001013.js
@@ -19,36 +19,36 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
*/
function act() {
- if(rm.getEventInstance().getIntProperty("statusStg2") == -1) {
+ if (rm.getEventInstance().getIntProperty("statusStg2") == -1) {
var rnd = Math.floor(Math.random() * 14);
-
+
rm.getEventInstance().setProperty("statusStg2", "" + rnd);
rm.getEventInstance().setProperty("statusStg2_c", "0");
}
-
+
var limit = rm.getEventInstance().getIntProperty("statusStg2");
var count = rm.getEventInstance().getIntProperty("statusStg2_c");
- if(count >= limit) {
+ if (count >= limit) {
rm.dropItems();
-
+
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
-
+
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
- }
- else {
+ } else {
count++;
rm.getEventInstance().setProperty("statusStg2_c", count);
-
+
var nextHashed = (11 * (count)) % 14;
-
+
var nextPos = rm.getMap().getReactorById(2001002 + nextHashed).getPosition();
rm.spawnMonster(9300040, 1, nextPos);
}
diff --git a/scripts/reactor/2001014.js b/scripts/reactor/2001014.js
index d213aa7513..ce40544bc3 100644
--- a/scripts/reactor/2001014.js
+++ b/scripts/reactor/2001014.js
@@ -19,36 +19,36 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
*/
function act() {
- if(rm.getEventInstance().getIntProperty("statusStg2") == -1) {
+ if (rm.getEventInstance().getIntProperty("statusStg2") == -1) {
var rnd = Math.floor(Math.random() * 14);
-
+
rm.getEventInstance().setProperty("statusStg2", "" + rnd);
rm.getEventInstance().setProperty("statusStg2_c", "0");
}
-
+
var limit = rm.getEventInstance().getIntProperty("statusStg2");
var count = rm.getEventInstance().getIntProperty("statusStg2_c");
- if(count >= limit) {
+ if (count >= limit) {
rm.dropItems();
-
+
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
-
+
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
- }
- else {
+ } else {
count++;
rm.getEventInstance().setProperty("statusStg2_c", count);
-
+
var nextHashed = (11 * (count)) % 14;
-
+
var nextPos = rm.getMap().getReactorById(2001002 + nextHashed).getPosition();
rm.spawnMonster(9300040, 1, nextPos);
}
diff --git a/scripts/reactor/2001015.js b/scripts/reactor/2001015.js
index d213aa7513..ce40544bc3 100644
--- a/scripts/reactor/2001015.js
+++ b/scripts/reactor/2001015.js
@@ -19,36 +19,36 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
*/
function act() {
- if(rm.getEventInstance().getIntProperty("statusStg2") == -1) {
+ if (rm.getEventInstance().getIntProperty("statusStg2") == -1) {
var rnd = Math.floor(Math.random() * 14);
-
+
rm.getEventInstance().setProperty("statusStg2", "" + rnd);
rm.getEventInstance().setProperty("statusStg2_c", "0");
}
-
+
var limit = rm.getEventInstance().getIntProperty("statusStg2");
var count = rm.getEventInstance().getIntProperty("statusStg2_c");
- if(count >= limit) {
+ if (count >= limit) {
rm.dropItems();
-
+
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
-
+
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
- }
- else {
+ } else {
count++;
rm.getEventInstance().setProperty("statusStg2_c", count);
-
+
var nextHashed = (11 * (count)) % 14;
-
+
var nextPos = rm.getMap().getReactorById(2001002 + nextHashed).getPosition();
rm.spawnMonster(9300040, 1, nextPos);
}
diff --git a/scripts/reactor/2001016.js b/scripts/reactor/2001016.js
index eff38df0b5..22c00c6643 100644
--- a/scripts/reactor/2001016.js
+++ b/scripts/reactor/2001016.js
@@ -19,10 +19,11 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*@author Ronan
*Nependeath Pot - Spawns Papa Pixie
*/
-
+
function act() {
rm.getMap().killAllMonsters();
rm.getMap().allowSummonState(false);
diff --git a/scripts/reactor/2002000.js b/scripts/reactor/2002000.js
index 11b90871ca..3441ea1b6c 100644
--- a/scripts/reactor/2002000.js
+++ b/scripts/reactor/2002000.js
@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* @Author Lerk
*
* 2002000.js: Orbis Box - drops meso, orange/white pots, and Empty Potion Bottles (quest item)
diff --git a/scripts/reactor/2002001.js b/scripts/reactor/2002001.js
index 14bd0318bc..d00df3a001 100644
--- a/scripts/reactor/2002001.js
+++ b/scripts/reactor/2002001.js
@@ -19,11 +19,12 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*@author Jvlaple
*2002001.js
*Drops Cloud Piece...
*/
-
+
function act() {
- rm.dropItems();
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2002002.js b/scripts/reactor/2002002.js
index 27fde2a57e..4d3051c9f7 100644
--- a/scripts/reactor/2002002.js
+++ b/scripts/reactor/2002002.js
@@ -25,5 +25,5 @@
*/
function act() {
- rm.dropItems();
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2002003.js b/scripts/reactor/2002003.js
index adc06fb064..aceaa9eae2 100644
--- a/scripts/reactor/2002003.js
+++ b/scripts/reactor/2002003.js
@@ -19,13 +19,14 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*2002003.js - Pot of life
*@author Jvlaple
*/
-
+
function act() {
- rm.dropItems();
-
- var eim = rm.getEventInstance();
- eim.setProperty("statusStg7", "1");
+ rm.dropItems();
+
+ var eim = rm.getEventInstance();
+ eim.setProperty("statusStg7", "1");
}
\ No newline at end of file
diff --git a/scripts/reactor/2002004.js b/scripts/reactor/2002004.js
index 35aadc1b2f..a3835cb0fa 100644
--- a/scripts/reactor/2002004.js
+++ b/scripts/reactor/2002004.js
@@ -25,6 +25,6 @@
* OPQ Lobby Reactor
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2002005.js b/scripts/reactor/2002005.js
index 35aadc1b2f..a3835cb0fa 100644
--- a/scripts/reactor/2002005.js
+++ b/scripts/reactor/2002005.js
@@ -25,6 +25,6 @@
* OPQ Lobby Reactor
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2002006.js b/scripts/reactor/2002006.js
index 35aadc1b2f..a3835cb0fa 100644
--- a/scripts/reactor/2002006.js
+++ b/scripts/reactor/2002006.js
@@ -25,6 +25,6 @@
* OPQ Lobby Reactor
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2002007.js b/scripts/reactor/2002007.js
index 35aadc1b2f..a3835cb0fa 100644
--- a/scripts/reactor/2002007.js
+++ b/scripts/reactor/2002007.js
@@ -25,6 +25,6 @@
* OPQ Lobby Reactor
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2002008.js b/scripts/reactor/2002008.js
index 35aadc1b2f..a3835cb0fa 100644
--- a/scripts/reactor/2002008.js
+++ b/scripts/reactor/2002008.js
@@ -25,6 +25,6 @@
* OPQ Lobby Reactor
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2002009.js b/scripts/reactor/2002009.js
index 35aadc1b2f..a3835cb0fa 100644
--- a/scripts/reactor/2002009.js
+++ b/scripts/reactor/2002009.js
@@ -25,6 +25,6 @@
* OPQ Lobby Reactor
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2002010.js b/scripts/reactor/2002010.js
index 35aadc1b2f..a3835cb0fa 100644
--- a/scripts/reactor/2002010.js
+++ b/scripts/reactor/2002010.js
@@ -25,6 +25,6 @@
* OPQ Lobby Reactor
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2002011.js b/scripts/reactor/2002011.js
index 2045bbd6c9..60e011f6a4 100644
--- a/scripts/reactor/2002011.js
+++ b/scripts/reactor/2002011.js
@@ -25,5 +25,5 @@
*/
function act() {
- rm.dropItems();
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2002012.js b/scripts/reactor/2002012.js
index 01f3076f93..f00cee3f3a 100644
--- a/scripts/reactor/2002012.js
+++ b/scripts/reactor/2002012.js
@@ -23,7 +23,7 @@
*OPQ Reactor - Drops 4th piece
*@author Jvlaple
*/
-
+
function act() {
- rm.dropItems();
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2002013.js b/scripts/reactor/2002013.js
index fb841259af..40b5f101e4 100644
--- a/scripts/reactor/2002013.js
+++ b/scripts/reactor/2002013.js
@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* @Author Ronan
*
* 2002013.js: Drops the Statue piece.
diff --git a/scripts/reactor/2002014.js b/scripts/reactor/2002014.js
index 7a0da6b7de..4a46f5fefe 100644
--- a/scripts/reactor/2002014.js
+++ b/scripts/reactor/2002014.js
@@ -19,17 +19,18 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*@author Ronan
*Reactor : OrbisPQ Bonus Reactor - 2002014.js
* Drops all the Bonus Items
*/
-
+
function act() {
- rm.dropItems(true, 1, 100, 400, 15);
-
- var eim = rm.getEventInstance();
- if(eim.getProperty("statusStgBonus") != "1") {
- rm.spawnNpc(2013002, new java.awt.Point(46, 840));
- eim.setProperty("statusStgBonus", "1");
- }
+ rm.dropItems(true, 1, 100, 400, 15);
+
+ var eim = rm.getEventInstance();
+ if (eim.getProperty("statusStgBonus") != "1") {
+ rm.spawnNpc(2013002, new java.awt.Point(46, 840));
+ eim.setProperty("statusStgBonus", "1");
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/2002017.js b/scripts/reactor/2002017.js
index 860fdeb063..e298dceedf 100644
--- a/scripts/reactor/2002017.js
+++ b/scripts/reactor/2002017.js
@@ -19,11 +19,12 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*@author Ronan
*Reactor : OrbisPQ Bonus Reactor - 2002017.js
* Drops all the Bonus Items
*/
-
+
function act() {
- rm.sprayItems(true, 1, 100, 400, 15);
+ rm.sprayItems(true, 1, 100, 400, 15);
}
\ No newline at end of file
diff --git a/scripts/reactor/2002018.js b/scripts/reactor/2002018.js
index 51eb167db0..27ddae74d1 100644
--- a/scripts/reactor/2002018.js
+++ b/scripts/reactor/2002018.js
@@ -19,11 +19,12 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*@author Ronan
*Reactor : OrbisPQ Bonus Reactor - 2002018.js
* Drops all the Bonus Items
*/
-
+
function act() {
- rm.sprayItems(true, 1, 100, 400, 15);
+ rm.sprayItems(true, 1, 100, 400, 15);
}
\ No newline at end of file
diff --git a/scripts/reactor/2006000.js b/scripts/reactor/2006000.js
index 323eb91715..4f1e7ffe6a 100644
--- a/scripts/reactor/2006000.js
+++ b/scripts/reactor/2006000.js
@@ -19,11 +19,12 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*@author Jvlaple
* Spawns Eak When 20 Clouds are Dropped.
*2006000.js
*/
-
+
function act() {
rm.mapMessage(5, "As the light flickers, someone appears out of the light.");
rm.spawnNpc(2013001);
diff --git a/scripts/reactor/2006001.js b/scripts/reactor/2006001.js
index 39b485dd83..b53bb3d54e 100644
--- a/scripts/reactor/2006001.js
+++ b/scripts/reactor/2006001.js
@@ -23,14 +23,14 @@
*2006001.js - Spawns Minerva
*@author Ronan
*/
-
+
function act() {
rm.spawnNpc(2013002);
rm.getEventInstance().clearPQ();
-
+
rm.getEventInstance().setProperty("statusStg8", "1");
eim.giveEventPlayersExp(3500);
eim.showClearEffect(true);
-
+
rm.getEventInstance().startEventTimer(5 * 60000); //bonus time
}
\ No newline at end of file
diff --git a/scripts/reactor/2008006.js b/scripts/reactor/2008006.js
index 818969475a..283b4dc38e 100644
--- a/scripts/reactor/2008006.js
+++ b/scripts/reactor/2008006.js
@@ -19,11 +19,12 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*@author Ronan
*Reactor : Orbis PQ LP Player - 2008006.js
* Makes Chamberlain Eak spawn box.
*/
-
+
function act() {
- rm.getEventInstance().setProperty("statusStg3", "0");
+ rm.getEventInstance().setProperty("statusStg3", "0");
}
\ No newline at end of file
diff --git a/scripts/reactor/2092001.js b/scripts/reactor/2092001.js
index d0054bff94..629b9cb1f8 100644
--- a/scripts/reactor/2092001.js
+++ b/scripts/reactor/2092001.js
@@ -1,3 +1,3 @@
-function act() {
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2110000.js b/scripts/reactor/2110000.js
index 8a61e7fe35..528a3cfba5 100644
--- a/scripts/reactor/2110000.js
+++ b/scripts/reactor/2110000.js
@@ -25,7 +25,7 @@
* 2110000.js: Zakum Party Quest Chest - action go280010000
*/
-function act(){
+function act() {
rm.playerMessage(5, "An unknown force has moved you to the starting point.");
rm.warp(280010000, 0);
}
\ No newline at end of file
diff --git a/scripts/reactor/2111000.js b/scripts/reactor/2111000.js
index dce93be801..fa69d4ba99 100644
--- a/scripts/reactor/2111000.js
+++ b/scripts/reactor/2111000.js
@@ -25,7 +25,7 @@
* 2111000.js: Zakum Party Quest Chest - summons 3 "Mimics"
*/
-function act(){
+function act() {
rm.playerMessage(5, "Oh noes! Monsters in the chest!");
- rm.spawnMonster(9300004,3);
+ rm.spawnMonster(9300004, 3);
}
\ No newline at end of file
diff --git a/scripts/reactor/2111001.js b/scripts/reactor/2111001.js
index 309ae2b9e7..1e1977e380 100644
--- a/scripts/reactor/2111001.js
+++ b/scripts/reactor/2111001.js
@@ -20,14 +20,15 @@
along with this program. If not, see .
*/
function act() {
- if(rm.getPlayer().getEventInstance() != null){
- rm.getPlayer().getEventInstance().setProperty("summoned", "true");
- rm.getPlayer().getEventInstance().setProperty("canEnter", "false");
- }
+ if (rm.getPlayer().getEventInstance() != null) {
+ rm.getPlayer().getEventInstance().setProperty("summoned", "true");
+ rm.getPlayer().getEventInstance().setProperty("canEnter", "false");
+ }
rm.changeMusic("Bgm06/FinalFight");
rm.spawnFakeMonster(8800000);
- for (i=8800003; i<8800011; i++)
+ for (i = 8800003; i < 8800011; i++) {
rm.spawnMonster(i);
- rm.createMapMonitor(280030000,"ps00");
+ }
+ rm.createMapMonitor(280030000, "ps00");
rm.mapMessage(5, "Zakum is summoned by the force of Eye of Fire.");
}
diff --git a/scripts/reactor/2112000.js b/scripts/reactor/2112000.js
index 452b327e09..a647f1db58 100644
--- a/scripts/reactor/2112000.js
+++ b/scripts/reactor/2112000.js
@@ -25,6 +25,6 @@
* 2112000.js: Zakum Party Quest Chest - drops an item (elixir)
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2112001.js b/scripts/reactor/2112001.js
index bafeb2d765..662add8627 100644
--- a/scripts/reactor/2112001.js
+++ b/scripts/reactor/2112001.js
@@ -25,6 +25,6 @@
* 2112001.js: Zakum Party Quest Chest - drops an item (fried chicken)
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2112003.js b/scripts/reactor/2112003.js
index a03d81a8ec..d227a4d668 100644
--- a/scripts/reactor/2112003.js
+++ b/scripts/reactor/2112003.js
@@ -25,6 +25,6 @@
* 2112003.js: Zakum Party Quest Chest - drops an item (power elixir)
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2112004.js b/scripts/reactor/2112004.js
index 43abe5f150..7d583a4805 100644
--- a/scripts/reactor/2112004.js
+++ b/scripts/reactor/2112004.js
@@ -25,6 +25,6 @@
* 2112004.js: Zakum Party Quest Chest - drops a key
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2112005.js b/scripts/reactor/2112005.js
index f1b68f0933..0a9ed5acd9 100644
--- a/scripts/reactor/2112005.js
+++ b/scripts/reactor/2112005.js
@@ -25,6 +25,6 @@
* 2112005.js: Zakum Party Quest Chest - drops a document
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2112006.js b/scripts/reactor/2112006.js
index 17293a23a6..f6a56af487 100644
--- a/scripts/reactor/2112006.js
+++ b/scripts/reactor/2112006.js
@@ -25,6 +25,6 @@
* 2112006.js: Zakum Party Quest Chest - drops an item (10k+ meso sack in Global)
*/
-function act(){
- rm.dropItems(true, 1, 500, 800);
+function act() {
+ rm.dropItems(true, 1, 500, 800);
}
\ No newline at end of file
diff --git a/scripts/reactor/2112007.js b/scripts/reactor/2112007.js
index 07ba55ce11..9f40c1ea52 100644
--- a/scripts/reactor/2112007.js
+++ b/scripts/reactor/2112007.js
@@ -25,6 +25,6 @@
* 2112007.js: Zakum Party Quest Rock - drops an item (red bean porridge)
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2112008.js b/scripts/reactor/2112008.js
index a2caeb172c..682f2219b0 100644
--- a/scripts/reactor/2112008.js
+++ b/scripts/reactor/2112008.js
@@ -25,6 +25,6 @@
* 2112008.js: Zakum Party Quest Rock - drops an item (elixir)
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2112009.js b/scripts/reactor/2112009.js
index 431c01330a..9fa006d7bb 100644
--- a/scripts/reactor/2112009.js
+++ b/scripts/reactor/2112009.js
@@ -25,6 +25,6 @@
* 2112009.js: Zakum Party Quest Rock - drops an item (fried chicken)
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2112010.js b/scripts/reactor/2112010.js
index e8a9c58dfb..4d487416cc 100644
--- a/scripts/reactor/2112010.js
+++ b/scripts/reactor/2112010.js
@@ -25,6 +25,6 @@
* 2112010.js: Zakum Party Quest Rock - drops an item (power elixir)
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2112011.js b/scripts/reactor/2112011.js
index 028d322b7b..7c134a303b 100644
--- a/scripts/reactor/2112011.js
+++ b/scripts/reactor/2112011.js
@@ -25,6 +25,6 @@
* 2112011.js: Zakum Party Quest Rock - drops a key
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2112012.js b/scripts/reactor/2112012.js
index ba291e30f3..86fe6975b9 100644
--- a/scripts/reactor/2112012.js
+++ b/scripts/reactor/2112012.js
@@ -25,6 +25,6 @@
* 2112012.js: Zakum Party Quest Rock - drops a document
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2112013.js b/scripts/reactor/2112013.js
index a988250045..23c555ff09 100644
--- a/scripts/reactor/2112013.js
+++ b/scripts/reactor/2112013.js
@@ -25,6 +25,6 @@
* 2112013.js: Zakum Party Quest Rock - drops an item (~100 meso bundle in Global)
*/
-function act(){
- rm.dropItems(true, 1, 125, 175);
+function act() {
+ rm.dropItems(true, 1, 125, 175);
}
\ No newline at end of file
diff --git a/scripts/reactor/2112014.js b/scripts/reactor/2112014.js
index 723ad07c70..891f9efd55 100644
--- a/scripts/reactor/2112014.js
+++ b/scripts/reactor/2112014.js
@@ -26,5 +26,5 @@
*/
function act() {
- rm.dropItems();
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2112016.js b/scripts/reactor/2112016.js
index 34c51a2bee..c68dfdcc6f 100644
--- a/scripts/reactor/2112016.js
+++ b/scripts/reactor/2112016.js
@@ -25,6 +25,6 @@
* 2112016.js: Phoenix Egg in El Nath Lava - part of the Phoenix quest (4th job Bowmaster)
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2112017.js b/scripts/reactor/2112017.js
index 81d3ea4c0d..db2cb22d30 100644
--- a/scripts/reactor/2112017.js
+++ b/scripts/reactor/2112017.js
@@ -25,6 +25,6 @@
* 2112017.js: Frostprey Egg in El Nath Mountains - part of the Frostprey quest (4th job Marksman)
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2200000.js b/scripts/reactor/2200000.js
index 257fdaa5c8..5d95d3f9df 100644
--- a/scripts/reactor/2200000.js
+++ b/scripts/reactor/2200000.js
@@ -25,7 +25,7 @@
* 2200000.js: Fake Dollhouse: Returns player to Eos Tower 74th Floor [221023200]
*/
-function act(){
+function act() {
rm.playerMessage(5, "Gotcha! Try again next time!");
rm.warp(221023200);
}
\ No newline at end of file
diff --git a/scripts/reactor/2200001.js b/scripts/reactor/2200001.js
index 850a492c4d..4d191e7abd 100644
--- a/scripts/reactor/2200001.js
+++ b/scripts/reactor/2200001.js
@@ -26,7 +26,7 @@
*
*/
-function act(){
- rm.playerMessage(5,"You have found a secret factory!");
+function act() {
+ rm.playerMessage(5, "You have found a secret factory!");
rm.warp(Math.random() < .5 ? 922000020 : 922000021, 0);
}
\ No newline at end of file
diff --git a/scripts/reactor/2200002.js b/scripts/reactor/2200002.js
index e9cea88d2b..eb2d066b95 100644
--- a/scripts/reactor/2200002.js
+++ b/scripts/reactor/2200002.js
@@ -19,11 +19,12 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*Stage 2 Box For LPQ
*@Author Jvlaple
*/
-
-function act(){
+
+function act() {
rm.mapMessage(5, "An unknown force has warped you into a trap.");
rm.warpMap(922010201);
}
\ No newline at end of file
diff --git a/scripts/reactor/2201000.js b/scripts/reactor/2201000.js
index 822d0f2e11..fd52558b91 100644
--- a/scripts/reactor/2201000.js
+++ b/scripts/reactor/2201000.js
@@ -26,6 +26,6 @@
*
*/
-function act(){
+function act() {
rm.spawnMonster(9300011, 10);
}
\ No newline at end of file
diff --git a/scripts/reactor/2201001.js b/scripts/reactor/2201001.js
index 4cbda5e73a..f02178cbf4 100644
--- a/scripts/reactor/2201001.js
+++ b/scripts/reactor/2201001.js
@@ -19,12 +19,13 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*@Author Jvlaple
*2201001.js - 3 Blocktopus
*/
-
+
function act() {
- for (var i=0; i<3; i++) {
+ for (var i = 0; i < 3; i++) {
rm.spawnMonster(9300007);
}
}
\ No newline at end of file
diff --git a/scripts/reactor/2201002.js b/scripts/reactor/2201002.js
index cd15c5cf2d..e8b1df2269 100644
--- a/scripts/reactor/2201002.js
+++ b/scripts/reactor/2201002.js
@@ -19,10 +19,11 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*Ludi PQ Stage 7 Reactor - 2201002.js
*@Author Jvlaple
*/
-
+
function act() {
rm.mapMessage(5, "Rombard has been summoned somewhere in the map.");
rm.spawnMonster(9300010, 1, -211);
diff --git a/scripts/reactor/2201003.js b/scripts/reactor/2201003.js
index 497069d9e9..e7057728c6 100644
--- a/scripts/reactor/2201003.js
+++ b/scripts/reactor/2201003.js
@@ -19,16 +19,17 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* Ludi PQ Crack Reactor ^_^
*@Author Jvlaple
*2201003.js
*/
-
+
function act() {
if (rm.getPlayer().getMapId() == 922010900) {
rm.mapMessage(5, "Alishar has been summoned.");
rm.spawnMonster(9300012, 941, 184);
- } else if(rm.getPlayer().getMapId() == 922010700) {
+ } else if (rm.getPlayer().getMapId() == 922010700) {
rm.mapMessage(5, "Rombard has been summoned somewhere in the map.");
rm.spawnMonster(9300010, 1, -211);
}
diff --git a/scripts/reactor/2201004.js b/scripts/reactor/2201004.js
index 0381326ca0..be7fb5f78e 100644
--- a/scripts/reactor/2201004.js
+++ b/scripts/reactor/2201004.js
@@ -19,9 +19,9 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
-function act(){
+function act() {
rm.mapMessage(5, "The dimensional hole has been filled by the .");
rm.changeMusic("Bgm09/TimeAttack");
rm.spawnMonster(8500000, -410, -400);
- rm.createMapMonitor(220080001,"in00");
+ rm.createMapMonitor(220080001, "in00");
}
\ No newline at end of file
diff --git a/scripts/reactor/2202000.js b/scripts/reactor/2202000.js
index b4689b48e7..41eb1c01c7 100644
--- a/scripts/reactor/2202000.js
+++ b/scripts/reactor/2202000.js
@@ -25,6 +25,6 @@
* 2202000.js: Real Dollhouse: Drops Pendulum (Quest Item)
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2202001.js b/scripts/reactor/2202001.js
index add766f206..fa17511227 100644
--- a/scripts/reactor/2202001.js
+++ b/scripts/reactor/2202001.js
@@ -25,6 +25,6 @@
* 2202001.js: Ludibirum Jump Quest Barrel: Drops item
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2202002.js b/scripts/reactor/2202002.js
index b0f88f3087..04889a079c 100644
--- a/scripts/reactor/2202002.js
+++ b/scripts/reactor/2202002.js
@@ -26,9 +26,10 @@
*
*/
-function act(){
- if(rm.isQuestActive(3238)) {
- rm.warp(922000020, 0);
- }
- else rm.warp(922000009, 0);
+function act() {
+ if (rm.isQuestActive(3238)) {
+ rm.warp(922000020, 0);
+ } else {
+ rm.warp(922000009, 0);
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/2202003.js b/scripts/reactor/2202003.js
index ff27efc5fe..e5e2ccffca 100644
--- a/scripts/reactor/2202003.js
+++ b/scripts/reactor/2202003.js
@@ -19,10 +19,11 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*2202003.js - Drops pass
*@Author Jvlaple
*/
-
+
function act() {
- rm.dropItems();
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2202004.js b/scripts/reactor/2202004.js
index 2f908301ba..bff8a9ee55 100644
--- a/scripts/reactor/2202004.js
+++ b/scripts/reactor/2202004.js
@@ -19,11 +19,12 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*@author Jvlaple
*Reactor : LudiPQ Bonus Reactor - 2202004.js
* Drops all the Bonus Items
*/
-
+
function act() {
- rm.sprayItems(true, 1, 30, 60, 15);
+ rm.sprayItems(true, 1, 30, 60, 15);
}
\ No newline at end of file
diff --git a/scripts/reactor/2212000.js b/scripts/reactor/2212000.js
index ddcdd7f374..3f611c1afd 100644
--- a/scripts/reactor/2212000.js
+++ b/scripts/reactor/2212000.js
@@ -19,10 +19,11 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* @Author Lerk
* 2212000.js: Plateon Field reactors - Parts 2, Meso, White Pots
*/
-function act(){
- rm.dropItems(true, 2, 80, 100);
+function act() {
+ rm.dropItems(true, 2, 80, 100);
}
\ No newline at end of file
diff --git a/scripts/reactor/2212001.js b/scripts/reactor/2212001.js
index 567cecaa75..2681e752d0 100644
--- a/scripts/reactor/2212001.js
+++ b/scripts/reactor/2212001.js
@@ -19,12 +19,13 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* @Author Lerk
*
* 2212001.js: Mecateon Field reactors - Parts 1, Meso, White Pots
*
*/
-function act(){
- rm.dropItems(true, 2, 80, 100);
+function act() {
+ rm.dropItems(true, 2, 80, 100);
}
\ No newline at end of file
diff --git a/scripts/reactor/2212002.js b/scripts/reactor/2212002.js
index 52526e0756..ca800c583f 100644
--- a/scripts/reactor/2212002.js
+++ b/scripts/reactor/2212002.js
@@ -19,12 +19,13 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* @Author Lerk
*
* 2212002.js: Mateon Field reactors - Parts 3, Meso, White Pots
*
*/
-function act(){
- rm.dropItems(true, 2, 80, 100);
+function act() {
+ rm.dropItems(true, 2, 80, 100);
}
\ No newline at end of file
diff --git a/scripts/reactor/2212003.js b/scripts/reactor/2212003.js
index 6ea101cdde..ad2c0630c7 100644
--- a/scripts/reactor/2212003.js
+++ b/scripts/reactor/2212003.js
@@ -26,6 +26,6 @@
*
*/
-function act(){
- rm.dropItems(true, 2, 80, 100);
+function act() {
+ rm.dropItems(true, 2, 80, 100);
}
\ No newline at end of file
diff --git a/scripts/reactor/2212004.js b/scripts/reactor/2212004.js
index f8ba50960f..64041f3cd6 100644
--- a/scripts/reactor/2212004.js
+++ b/scripts/reactor/2212004.js
@@ -26,6 +26,6 @@
*
*/
-function act(){
- rm.dropItems(true, 2, 80, 100);
+function act() {
+ rm.dropItems(true, 2, 80, 100);
}
\ No newline at end of file
diff --git a/scripts/reactor/2212005.js b/scripts/reactor/2212005.js
index 2b79bd12ff..d2c5cfcf34 100644
--- a/scripts/reactor/2212005.js
+++ b/scripts/reactor/2212005.js
@@ -26,6 +26,6 @@
*
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2221000.js b/scripts/reactor/2221000.js
index 840529b5fd..f524315c78 100644
--- a/scripts/reactor/2221000.js
+++ b/scripts/reactor/2221000.js
@@ -26,7 +26,7 @@
*
*/
-function act(){
+function act() {
rm.spawnMonster(7130400);
rm.mapMessage(5, "Here comes Yellow King Goblin!");
}
\ No newline at end of file
diff --git a/scripts/reactor/2221001.js b/scripts/reactor/2221001.js
index a2b32058e2..757f38a998 100644
--- a/scripts/reactor/2221001.js
+++ b/scripts/reactor/2221001.js
@@ -26,7 +26,7 @@
*
*/
-function act(){
+function act() {
rm.spawnMonster(7130401);
rm.mapMessage(5, "Here comes Blue King Goblin!");
}
\ No newline at end of file
diff --git a/scripts/reactor/2221002.js b/scripts/reactor/2221002.js
index 2ba634e2d0..c893cbc465 100644
--- a/scripts/reactor/2221002.js
+++ b/scripts/reactor/2221002.js
@@ -26,7 +26,7 @@
*
*/
-function act(){
+function act() {
rm.spawnMonster(7130402, -340, 100);
rm.mapMessage(5, "Here comes Green King Goblin!");
}
\ No newline at end of file
diff --git a/scripts/reactor/2221003.js b/scripts/reactor/2221003.js
index ec6fcc38dd..39a38cbab0 100644
--- a/scripts/reactor/2221003.js
+++ b/scripts/reactor/2221003.js
@@ -27,6 +27,6 @@
* and nobody would see the other unless they had the other quest started and were in your party.
*/
-function act(){
+function act() {
rm.spawnMonster(9500400);
}
\ No newline at end of file
diff --git a/scripts/reactor/2221004.js b/scripts/reactor/2221004.js
index f7cfd40503..e4b13f6314 100644
--- a/scripts/reactor/2221004.js
+++ b/scripts/reactor/2221004.js
@@ -27,6 +27,6 @@
* and nobody would see the other unless they had the other quest started and were in your party.
*/
-function act(){
+function act() {
rm.spawnMonster(9500400);
}
\ No newline at end of file
diff --git a/scripts/reactor/2222000.js b/scripts/reactor/2222000.js
index ac708568c3..1154afe7db 100644
--- a/scripts/reactor/2222000.js
+++ b/scripts/reactor/2222000.js
@@ -26,6 +26,6 @@
*
*/
-function act(){
- rm.dropItems(true, 2, 80, 120);
+function act() {
+ rm.dropItems(true, 2, 80, 120);
}
\ No newline at end of file
diff --git a/scripts/reactor/2302000.js b/scripts/reactor/2302000.js
index 38f9fc77ae..d29b851939 100644
--- a/scripts/reactor/2302000.js
+++ b/scripts/reactor/2302000.js
@@ -26,6 +26,6 @@
*
*/
-function act(){
- rm.dropItems(true, 2, 75, 90);
+function act() {
+ rm.dropItems(true, 2, 75, 90);
}
\ No newline at end of file
diff --git a/scripts/reactor/2302001.js b/scripts/reactor/2302001.js
index 9955f9b0d2..cd6c3ecc18 100644
--- a/scripts/reactor/2302001.js
+++ b/scripts/reactor/2302001.js
@@ -27,10 +27,10 @@
*/
-function act(){
+function act() {
- //rm.dropItems(true, 2, 105, 140);
+ //rm.dropItems(true, 2, 105, 140);
- rm.dropItems();
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2302002.js b/scripts/reactor/2302002.js
index 2c3ade962a..0657ac707e 100644
--- a/scripts/reactor/2302002.js
+++ b/scripts/reactor/2302002.js
@@ -26,6 +26,6 @@
*
*/
-function act(){
- rm.dropItems(true, 2, 55, 70);
+function act() {
+ rm.dropItems(true, 2, 55, 70);
}
\ No newline at end of file
diff --git a/scripts/reactor/2302003.js b/scripts/reactor/2302003.js
index 6cb19d90c2..a8aa00204f 100644
--- a/scripts/reactor/2302003.js
+++ b/scripts/reactor/2302003.js
@@ -26,6 +26,6 @@
*
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2302005.js b/scripts/reactor/2302005.js
index 5e56388e82..053b7d06f3 100644
--- a/scripts/reactor/2302005.js
+++ b/scripts/reactor/2302005.js
@@ -26,6 +26,6 @@
*
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2401000.js b/scripts/reactor/2401000.js
index 7711a75c8a..cdba0545eb 100644
--- a/scripts/reactor/2401000.js
+++ b/scripts/reactor/2401000.js
@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* @Author Aexr, Ronan
* 2401000.js: Horntail's Cave - Summons Horntail.
*/
@@ -26,8 +27,8 @@
function act() {
rm.changeMusic("Bgm14/HonTale");
if (rm.getReactor().getMap().getMonsterById(8810026) == null) {
- rm.getReactor().getMap().spawnHorntailOnGroundBelow(new java.awt.Point(71,260));
-
+ rm.getReactor().getMap().spawnHorntailOnGroundBelow(new java.awt.Point(71, 260));
+
var eim = rm.getEventInstance();
eim.restartEventTimer(60 * 60000);
}
diff --git a/scripts/reactor/2401001.js b/scripts/reactor/2401001.js
index 186fc61114..ecf637b65b 100644
--- a/scripts/reactor/2401001.js
+++ b/scripts/reactor/2401001.js
@@ -26,6 +26,6 @@
*
*/
-function act(){
+function act() {
rm.spawnMonster(9300089);
}
\ No newline at end of file
diff --git a/scripts/reactor/2401002.js b/scripts/reactor/2401002.js
index 57c77de9a2..418a739dd5 100644
--- a/scripts/reactor/2401002.js
+++ b/scripts/reactor/2401002.js
@@ -26,6 +26,6 @@
*
*/
-function act(){
+function act() {
rm.spawnMonster(9300090);
}
\ No newline at end of file
diff --git a/scripts/reactor/2402000.js b/scripts/reactor/2402000.js
index 801f05ec93..63f30a4368 100644
--- a/scripts/reactor/2402000.js
+++ b/scripts/reactor/2402000.js
@@ -25,6 +25,6 @@
* Leafre Fruits
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2402001.js b/scripts/reactor/2402001.js
index 801f05ec93..63f30a4368 100644
--- a/scripts/reactor/2402001.js
+++ b/scripts/reactor/2402001.js
@@ -25,6 +25,6 @@
* Leafre Fruits
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2402006.js b/scripts/reactor/2402006.js
index b45773bd82..e91f8874f5 100644
--- a/scripts/reactor/2402006.js
+++ b/scripts/reactor/2402006.js
@@ -25,6 +25,6 @@
* HTPQ Box
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2402007.js b/scripts/reactor/2402007.js
index 3b3ca42f37..1d1269b40d 100644
--- a/scripts/reactor/2402007.js
+++ b/scripts/reactor/2402007.js
@@ -25,6 +25,6 @@
* Neo City Trash Can
*/
-function hit(){
- rm.dropItems(true, 2, 5, 10, 1);
+function hit() {
+ rm.dropItems(true, 2, 5, 10, 1);
}
\ No newline at end of file
diff --git a/scripts/reactor/2402008.js b/scripts/reactor/2402008.js
index 3b3ca42f37..1d1269b40d 100644
--- a/scripts/reactor/2402008.js
+++ b/scripts/reactor/2402008.js
@@ -25,6 +25,6 @@
* Neo City Trash Can
*/
-function hit(){
- rm.dropItems(true, 2, 5, 10, 1);
+function hit() {
+ rm.dropItems(true, 2, 5, 10, 1);
}
\ No newline at end of file
diff --git a/scripts/reactor/2406000.js b/scripts/reactor/2406000.js
index 2297187d04..77a6319f79 100644
--- a/scripts/reactor/2406000.js
+++ b/scripts/reactor/2406000.js
@@ -9,7 +9,7 @@ function sendToHeaven() {
}
function touch() {
- if(rm.haveItem(4001094) && rm.getReactor().getState() == 0) {
+ if (rm.haveItem(4001094) && rm.getReactor().getState() == 0) {
rm.hitReactor();
rm.gainItem(4001094, -1);
}
diff --git a/scripts/reactor/2408002.js b/scripts/reactor/2408002.js
index edc7840696..526e7cc63d 100644
--- a/scripts/reactor/2408002.js
+++ b/scripts/reactor/2408002.js
@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*
*2408002.js
*Key Warp for Horn Tail PQ [HTPQ]
@@ -60,7 +61,7 @@ function act() {
break;
}
}
-
+
eim.setIntProperty(vvpStage + "stageclear", 1);
const Item = Java.type('client.inventory.Item');
diff --git a/scripts/reactor/2408003.js b/scripts/reactor/2408003.js
index 61776a7e85..44e6f75682 100644
--- a/scripts/reactor/2408003.js
+++ b/scripts/reactor/2408003.js
@@ -28,21 +28,21 @@
//240060100 for 8810001
function touch() {
- if (rm.getPlayer().getEventInstance() != null) {
- rm.getPlayer().getEventInstance().setProperty("summoned", "true");
- rm.getPlayer().getEventInstance().setProperty("canEnter", "false");
- }
+ if (rm.getPlayer().getEventInstance() != null) {
+ rm.getPlayer().getEventInstance().setProperty("summoned", "true");
+ rm.getPlayer().getEventInstance().setProperty("canEnter", "false");
+ }
rm.spawnFakeMonster(8800000);
- rm.mapMessage(6, "A gigantic creature is approaching from the deep cave.");
+ rm.mapMessage(6, "A gigantic creature is approaching from the deep cave.");
//rm.createMapMonitor(rm.getPlayer().getMap().getId(),"ps00");
- switch (rm.getPlayer().getMap().getId()) {
- case 240060000:
- rm.spawnMonster(8810000, 960, 0);
- break;
- case 240060100:
- rm.spawnMonster(8810001, 0, 0); //needs correct positions
- break;
- }
+ switch (rm.getPlayer().getMap().getId()) {
+ case 240060000:
+ rm.spawnMonster(8810000, 960, 0);
+ break;
+ case 240060100:
+ rm.spawnMonster(8810001, 0, 0); //needs correct positions
+ break;
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/2502000.js b/scripts/reactor/2502000.js
index 7763fde992..a67043c7d1 100644
--- a/scripts/reactor/2502000.js
+++ b/scripts/reactor/2502000.js
@@ -26,6 +26,6 @@
*
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2502001.js b/scripts/reactor/2502001.js
index e5b7256e22..f10d7d1466 100644
--- a/scripts/reactor/2502001.js
+++ b/scripts/reactor/2502001.js
@@ -26,6 +26,6 @@
*
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2502002.js b/scripts/reactor/2502002.js
index 6f9c4928f9..bd1e8a4585 100644
--- a/scripts/reactor/2502002.js
+++ b/scripts/reactor/2502002.js
@@ -26,6 +26,6 @@
*
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2508000.js b/scripts/reactor/2508000.js
index a5f3a66ab9..053f5f1f55 100644
--- a/scripts/reactor/2508000.js
+++ b/scripts/reactor/2508000.js
@@ -19,7 +19,8 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
-function act(){
- if (rm.getPlayer().getMap().getId() / 100 % 100 != 38)
+function act() {
+ if (rm.getPlayer().getMap().getId() / 100 % 100 != 38) {
rm.warp(rm.getPlayer().getMap().getId() + 100);
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/2511000.js b/scripts/reactor/2511000.js
index bde43ad871..950868c487 100644
--- a/scripts/reactor/2511000.js
+++ b/scripts/reactor/2511000.js
@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*
2511000- Reactor for PPQ [Pirate PQ]
@author Jvlaple
@@ -29,7 +30,7 @@ function act() {
var now = eim.getIntProperty("openedBoxes");
var nextNum = now + 1;
eim.setIntProperty("openedBoxes", nextNum);
-
+
rm.spawnMonster(9300109, 3);
rm.spawnMonster(9300110, 5);
}
\ No newline at end of file
diff --git a/scripts/reactor/2511001.js b/scripts/reactor/2511001.js
index 7b68add2ba..9f0f590ae5 100644
--- a/scripts/reactor/2511001.js
+++ b/scripts/reactor/2511001.js
@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*Pirate PQ Reactor - Spawns 6 of each Pirate when opened.
*@author Jvlaple
*2511001.js
diff --git a/scripts/reactor/2512000.js b/scripts/reactor/2512000.js
index 33e56d9117..5a4e0b8ddc 100644
--- a/scripts/reactor/2512000.js
+++ b/scripts/reactor/2512000.js
@@ -19,26 +19,29 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*2512000.js
*@Author Jvlaple
*Pirate PQ Reactor
*/
function passedGrindMode(map, eim) {
- if(eim.getIntProperty("grindMode") == 0) return true;
+ if (eim.getIntProperty("grindMode") == 0) {
+ return true;
+ }
return eim.activatedAllReactorsOnMap(map, 2511000, 2517999);
}
function act() {
- var eim = rm.getPlayer().getEventInstance();
- var now = eim.getIntProperty("openedBoxes");
- var nextNum = now + 1;
- eim.setIntProperty("openedBoxes", nextNum);
-
- rm.dropItems(true, 1, 30, 60, 15);
-
- var map = rm.getMap();
- if (map.getMonsters().size() == 0 && passedGrindMode(map, eim)) {
- eim.showClearEffect(map.getId());
- }
+ var eim = rm.getPlayer().getEventInstance();
+ var now = eim.getIntProperty("openedBoxes");
+ var nextNum = now + 1;
+ eim.setIntProperty("openedBoxes", nextNum);
+
+ rm.dropItems(true, 1, 30, 60, 15);
+
+ var map = rm.getMap();
+ if (map.getMonsters().size() == 0 && passedGrindMode(map, eim)) {
+ eim.showClearEffect(map.getId());
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/2512001.js b/scripts/reactor/2512001.js
index 4f7ffedbe6..b2c270d292 100644
--- a/scripts/reactor/2512001.js
+++ b/scripts/reactor/2512001.js
@@ -19,15 +19,16 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*2512001.js
*@Author Ronan
*Pirate PQ Treasure chest
*/
-
+
function act() {
- var eim = rm.getPlayer().getEventInstance();
- var now = eim.getIntProperty("openedChests");
- var nextNum = now + 1;
- eim.setIntProperty("openedChests", nextNum);
- rm.sprayItems(true, 1, 50, 100, 15);
+ var eim = rm.getPlayer().getEventInstance();
+ var now = eim.getIntProperty("openedChests");
+ var nextNum = now + 1;
+ eim.setIntProperty("openedChests", nextNum);
+ rm.sprayItems(true, 1, 50, 100, 15);
}
\ No newline at end of file
diff --git a/scripts/reactor/2516000.js b/scripts/reactor/2516000.js
index 5fad9fd911..f3b35c2cca 100644
--- a/scripts/reactor/2516000.js
+++ b/scripts/reactor/2516000.js
@@ -19,10 +19,11 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*2516000.js - Reactor used to summon Wu Yang.
*@author Jvlaple
*/
-
+
function act() {
rm.mapMessage(5, "As Lord Pirate dies, Wu Yang is released!");
rm.spawnNpc(2094001);
diff --git a/scripts/reactor/2519000.js b/scripts/reactor/2519000.js
index e977cb07af..4ea2d22f03 100644
--- a/scripts/reactor/2519000.js
+++ b/scripts/reactor/2519000.js
@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*2519000.js - Reactor used at the door on stage 4.
*@author Ronan
*/
@@ -28,11 +29,11 @@ function act() {
var denyPos = rm.getReactor().getPosition();
const Rectangle = Java.type('java.awt.Rectangle');
var denyArea = new Rectangle(denyPos.getX() - denyWidth / 2, denyPos.getY() - denyHeight / 2, denyWidth, denyHeight);
-
+
rm.getReactor().getMap().setAllowSpawnPointInBox(false, denyArea);
-
+
var map = rm.getReactor().getMap();
- if(map.getReactorByName("sMob2").getState() >= 1 && map.getReactorByName("sMob3").getState() >= 1 && map.getReactorByName("sMob4").getState() >= 1 && map.countMonsters() == 0) {
+ if (map.getReactorByName("sMob2").getState() >= 1 && map.getReactorByName("sMob3").getState() >= 1 && map.getReactorByName("sMob4").getState() >= 1 && map.countMonsters() == 0) {
rm.getEventInstance().showClearEffect(map.getId());
}
}
\ No newline at end of file
diff --git a/scripts/reactor/2519001.js b/scripts/reactor/2519001.js
index 9839837e06..45ddff1ac8 100644
--- a/scripts/reactor/2519001.js
+++ b/scripts/reactor/2519001.js
@@ -19,20 +19,21 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*2519001.js - Reactor used at the door on stage 4.
*@author Ronan
*/
-
+
function act() {
var denyWidth = 320, denyHeight = 150;
var denyPos = rm.getReactor().getPosition();
const Rectangle = Java.type('java.awt.Rectangle');
var denyArea = new Rectangle(denyPos.getX() - denyWidth / 2, denyPos.getY() - denyHeight / 2, denyWidth, denyHeight);
-
+
rm.getReactor().getMap().setAllowSpawnPointInBox(false, denyArea);
-
+
var map = rm.getReactor().getMap();
- if(map.getReactorByName("sMob1").getState() >= 1 && map.getReactorByName("sMob3").getState() >= 1 && map.getReactorByName("sMob4").getState() >= 1 && map.countMonsters() == 0) {
+ if (map.getReactorByName("sMob1").getState() >= 1 && map.getReactorByName("sMob3").getState() >= 1 && map.getReactorByName("sMob4").getState() >= 1 && map.countMonsters() == 0) {
rm.getEventInstance().showClearEffect(map.getId());
}
}
diff --git a/scripts/reactor/2519002.js b/scripts/reactor/2519002.js
index 81124185ad..014e1b6bce 100644
--- a/scripts/reactor/2519002.js
+++ b/scripts/reactor/2519002.js
@@ -19,20 +19,21 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*2519002.js - Reactor used at the door on stage 4.
*@author Ronan
*/
-
+
function act() {
var denyWidth = 320, denyHeight = 150;
var denyPos = rm.getReactor().getPosition();
const Rectangle = Java.type('java.awt.Rectangle');
var denyArea = new Rectangle(denyPos.getX() - denyWidth / 2, denyPos.getY() - denyHeight / 2, denyWidth, denyHeight);
-
+
rm.getReactor().getMap().setAllowSpawnPointInBox(false, denyArea);
-
+
var map = rm.getReactor().getMap();
- if(map.getReactorByName("sMob1").getState() >= 1 && map.getReactorByName("sMob2").getState() >= 1 && map.getReactorByName("sMob4").getState() >= 1 && map.countMonsters() == 0) {
+ if (map.getReactorByName("sMob1").getState() >= 1 && map.getReactorByName("sMob2").getState() >= 1 && map.getReactorByName("sMob4").getState() >= 1 && map.countMonsters() == 0) {
rm.getEventInstance().showClearEffect(map.getId());
}
}
diff --git a/scripts/reactor/2519003.js b/scripts/reactor/2519003.js
index 5a8e33fc93..a70ed45cd2 100644
--- a/scripts/reactor/2519003.js
+++ b/scripts/reactor/2519003.js
@@ -19,20 +19,21 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*2519003.js - Reactor used at the door on stage 4.
*@author Ronan
*/
-
+
function act() {
var denyWidth = 320, denyHeight = 150;
var denyPos = rm.getReactor().getPosition();
const Rectangle = Java.type('java.awt.Rectangle');
var denyArea = new Rectangle(denyPos.getX() - denyWidth / 2, denyPos.getY() - denyHeight / 2, denyWidth, denyHeight);
-
+
var map = rm.getReactor().getMap();
map.setAllowSpawnPointInBox(false, denyArea);
-
- if(map.getReactorByName("sMob1").getState() >= 1 && map.getReactorByName("sMob2").getState() >= 1 && map.getReactorByName("sMob3").getState() >= 1 && map.countMonsters() == 0) {
+
+ if (map.getReactorByName("sMob1").getState() >= 1 && map.getReactorByName("sMob2").getState() >= 1 && map.getReactorByName("sMob3").getState() >= 1 && map.countMonsters() == 0) {
rm.getEventInstance().showClearEffect(map.getId());
}
}
diff --git a/scripts/reactor/2602000.js b/scripts/reactor/2602000.js
index 7e8b4f3335..3de90efdfe 100644
--- a/scripts/reactor/2602000.js
+++ b/scripts/reactor/2602000.js
@@ -19,10 +19,11 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*2612004.js - Queen's treasure room
*@author Ronan
*/
-
+
function act() {
- rm.dropItems();
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2612000.js b/scripts/reactor/2612000.js
index 296e3fe143..f80eb3a2ff 100644
--- a/scripts/reactor/2612000.js
+++ b/scripts/reactor/2612000.js
@@ -19,10 +19,11 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*2612000.js - MagatiaPQ Box
*@author Ronan
*/
-
+
function act() {
- rm.sprayItems();
+ rm.sprayItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2612001.js b/scripts/reactor/2612001.js
index 3f881507dc..96df7bde0f 100644
--- a/scripts/reactor/2612001.js
+++ b/scripts/reactor/2612001.js
@@ -19,10 +19,11 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*2612001.js - MagatiaPQ Box
*@author Ronan
*/
-
+
function act() {
- rm.sprayItems();
+ rm.sprayItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2612002.js b/scripts/reactor/2612002.js
index 4d816c0079..2577d7cd35 100644
--- a/scripts/reactor/2612002.js
+++ b/scripts/reactor/2612002.js
@@ -19,10 +19,11 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*2612002.js - MagatiaPQ Box
*@author Ronan
*/
-
+
function act() {
- rm.sprayItems();
+ rm.sprayItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2612003.js b/scripts/reactor/2612003.js
index 8660dd82d5..849945a84b 100644
--- a/scripts/reactor/2612003.js
+++ b/scripts/reactor/2612003.js
@@ -19,10 +19,11 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*2612003.js - MagatiaPQ Box
*@author Ronan
*/
-
+
function act() {
- rm.sprayItems();
+ rm.sprayItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2612004.js b/scripts/reactor/2612004.js
index db654a652c..b5f582bbfe 100644
--- a/scripts/reactor/2612004.js
+++ b/scripts/reactor/2612004.js
@@ -19,10 +19,11 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*2612004.js - Zenumist crystal
*@author Ronan
*/
-
+
function hit() {
- rm.sprayItems();
+ rm.sprayItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2612005.js b/scripts/reactor/2612005.js
index d66dde4c6c..e69ea6b47e 100644
--- a/scripts/reactor/2612005.js
+++ b/scripts/reactor/2612005.js
@@ -2,8 +2,8 @@
Yulete's Lab: Making the Reagent
*/
-function hit(){
- if(rm.getReactor().getState() == 4) {
- rm.dropItems();
- }
+function hit() {
+ if (rm.getReactor().getState() == 4) {
+ rm.dropItems();
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/2618000.js b/scripts/reactor/2618000.js
index 195228dcfe..19531a3d7b 100644
--- a/scripts/reactor/2618000.js
+++ b/scripts/reactor/2618000.js
@@ -19,24 +19,25 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*2618000.js - MagatiaPQ Beaker
*@author Ronan
*/
-
-function hit() {
- if(rm.getReactor().getState() == 6) {
- var eim = rm.getEventInstance();
- var done = eim.getIntProperty("statusStg3") + 1;
- eim.setIntProperty("statusStg3", done);
-
- if(done == 3) {
- eim.showClearEffect();
- eim.giveEventPlayersStageReward(3);
- rm.getMap().killAllMonsters();
-
- var reactname = (eim.getIntProperty("isAlcadno") == 0) ? "rnj2_door" : "jnr2_door";
- rm.getMap().getReactorByName(reactname).hitReactor(rm.getClient());
- }
+function hit() {
+ if (rm.getReactor().getState() == 6) {
+ var eim = rm.getEventInstance();
+
+ var done = eim.getIntProperty("statusStg3") + 1;
+ eim.setIntProperty("statusStg3", done);
+
+ if (done == 3) {
+ eim.showClearEffect();
+ eim.giveEventPlayersStageReward(3);
+ rm.getMap().killAllMonsters();
+
+ var reactname = (eim.getIntProperty("isAlcadno") == 0) ? "rnj2_door" : "jnr2_door";
+ rm.getMap().getReactorByName(reactname).hitReactor(rm.getClient());
}
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/2618001.js b/scripts/reactor/2618001.js
index dee592be34..b916036c3b 100644
--- a/scripts/reactor/2618001.js
+++ b/scripts/reactor/2618001.js
@@ -19,16 +19,17 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*2618000.js - MagatiaPQ Beaker
*@author Ronan
*/
-
+
function hit() {
- var eim = rm.getEventInstance();
-
- var isAlcadno = eim.getIntProperty("isAlcadno");
- var reactname = (isAlcadno == 0) ? "rnj32_out" : "jnr32_out";
- var reactmap = (isAlcadno == 0) ? 926100202 : 926110202;
-
- eim.getMapInstance(reactmap).getReactorByName(reactname).hitReactor(rm.getClient());
+ var eim = rm.getEventInstance();
+
+ var isAlcadno = eim.getIntProperty("isAlcadno");
+ var reactname = (isAlcadno == 0) ? "rnj32_out" : "jnr32_out";
+ var reactmap = (isAlcadno == 0) ? 926100202 : 926110202;
+
+ eim.getMapInstance(reactmap).getReactorByName(reactname).hitReactor(rm.getClient());
}
\ No newline at end of file
diff --git a/scripts/reactor/2618002.js b/scripts/reactor/2618002.js
index 7aac2f5fc3..f1b7202b31 100644
--- a/scripts/reactor/2618002.js
+++ b/scripts/reactor/2618002.js
@@ -19,16 +19,17 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*2618000.js - MagatiaPQ Beaker
*@author Ronan
*/
-
+
function hit() {
- var eim = rm.getEventInstance();
-
- var isAlcadno = eim.getIntProperty("isAlcadno");
- var reactname = (isAlcadno == 0) ? "rnj31_out" : "jnr31_out";
- var reactmap = (isAlcadno == 0) ? 926100201 : 926110201;
-
- eim.getMapInstance(reactmap).getReactorByName(reactname).hitReactor(rm.getClient());
+ var eim = rm.getEventInstance();
+
+ var isAlcadno = eim.getIntProperty("isAlcadno");
+ var reactname = (isAlcadno == 0) ? "rnj31_out" : "jnr31_out";
+ var reactmap = (isAlcadno == 0) ? 926100201 : 926110201;
+
+ eim.getMapInstance(reactmap).getReactorByName(reactname).hitReactor(rm.getClient());
}
\ No newline at end of file
diff --git a/scripts/reactor/2619000.js b/scripts/reactor/2619000.js
index 80dbc62e55..07d5b0164b 100644
--- a/scripts/reactor/2619000.js
+++ b/scripts/reactor/2619000.js
@@ -19,10 +19,11 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*2619000.js - Zenumist crystal
*@author Ronan
*/
-
+
function hit() {
- rm.dropItems();
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/2708000.js b/scripts/reactor/2708000.js
index 0ddc2a77be..eb1ea8a6c9 100644
--- a/scripts/reactor/2708000.js
+++ b/scripts/reactor/2708000.js
@@ -31,12 +31,12 @@ function spawnJrBoss(mobObj) {
function hit() {
var mapObj = rm.getMap();
-
+
//spawnJrBoss(mapObj.getMonsterById(8820019));
//spawnJrBoss(mapObj.getMonsterById(8820020));
//spawnJrBoss(mapObj.getMonsterById(8820021));
//spawnJrBoss(mapObj.getMonsterById(8820022));
//spawnJrBoss(mapObj.getMonsterById(8820023));
-
+
mapObj.killMonster(8820000);
}
\ No newline at end of file
diff --git a/scripts/reactor/3001000.js b/scripts/reactor/3001000.js
index b29c20ad9b..524c266c56 100644
--- a/scripts/reactor/3001000.js
+++ b/scripts/reactor/3001000.js
@@ -1,4 +1,4 @@
-function act(){
- rm.playerMessage(5, "Poison Golem has been spawned.");
- rm.spawnMonster(9300180,1);
+function act() {
+ rm.playerMessage(5, "Poison Golem has been spawned.");
+ rm.spawnMonster(9300180, 1);
}
\ No newline at end of file
diff --git a/scripts/reactor/3002000.js b/scripts/reactor/3002000.js
index 918a2d06d1..d202b17010 100644
--- a/scripts/reactor/3002000.js
+++ b/scripts/reactor/3002000.js
@@ -19,10 +19,11 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*3002000.js - Pond at Ellin PQ.
*@author Ronan
*/
function act() {
- rm.dropItems();
+ rm.dropItems();
}
diff --git a/scripts/reactor/3002001.js b/scripts/reactor/3002001.js
index 7a2681dbf9..5197394c84 100644
--- a/scripts/reactor/3002001.js
+++ b/scripts/reactor/3002001.js
@@ -1,4 +1,4 @@
function act() {
- rm.getEventInstance().showClearEffect(rm.getMap().getId());
- rm.dropItems();
+ rm.getEventInstance().showClearEffect(rm.getMap().getId());
+ rm.dropItems();
}
diff --git a/scripts/reactor/3008000.js b/scripts/reactor/3008000.js
index 568c28a8cb..fd9778e269 100644
--- a/scripts/reactor/3008000.js
+++ b/scripts/reactor/3008000.js
@@ -3,14 +3,14 @@
* @reactor: Water Fountain
* @map: 930000800 - Forest of Poison Haze - Outer Forest Exit
* @func: Water Fountain
-*/
+ */
function hit() {
- var players = rm.getMap().getAllPlayers().toArray();
-
- for(var i = 0; i < players.length; i++) {
- rm.giveCharacterExp(52000, players[i]);
- }
+ var players = rm.getMap().getAllPlayers().toArray();
+
+ for (var i = 0; i < players.length; i++) {
+ rm.giveCharacterExp(52000, players[i]);
+ }
}
function act() {} //do nothing
\ No newline at end of file
diff --git a/scripts/reactor/3009000.js b/scripts/reactor/3009000.js
index daf0629cac..5ea033da9f 100644
--- a/scripts/reactor/3009000.js
+++ b/scripts/reactor/3009000.js
@@ -3,10 +3,10 @@
* @reactor: Spine
* @map: 930000200 - Forest of Poison Haze - Deteriorated Forest
* @func: Water Fountain
-*/
+ */
function act() {
- if(rm.getReactor().getState() == 4) {
+ if (rm.getReactor().getState() == 4) {
rm.getEventInstance().showClearEffect(rm.getMap().getId());
}
}
\ No newline at end of file
diff --git a/scripts/reactor/5411000.js b/scripts/reactor/5411000.js
index 8279dc0300..84b0efe2d9 100644
--- a/scripts/reactor/5411000.js
+++ b/scripts/reactor/5411000.js
@@ -19,7 +19,7 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
-function act(){
+function act() {
rm.changeMusic("Bgm09/TimeAttack");
rm.spawnMonster(9420513, -146, 225);
rm.getEventInstance().setIntProperty("boss", 1);
diff --git a/scripts/reactor/5511000.js b/scripts/reactor/5511000.js
index 810e44d48c..11ee74c982 100644
--- a/scripts/reactor/5511000.js
+++ b/scripts/reactor/5511000.js
@@ -4,7 +4,7 @@
function act() {
const targaMobId = 9420542;
- if (rm.getReactor().getMap().getMonsterById(targaMobId) == null) {
- rm.summonBossDelayed(targaMobId, 3200, -527, 637, "Bgm09/TimeAttack", "Beware! The furious Targa has shown himself!");
- }
+ if (rm.getReactor().getMap().getMonsterById(targaMobId) == null) {
+ rm.summonBossDelayed(targaMobId, 3200, -527, 637, "Bgm09/TimeAttack", "Beware! The furious Targa has shown himself!");
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/5511001.js b/scripts/reactor/5511001.js
index e4dc2313ac..4f442a6232 100644
--- a/scripts/reactor/5511001.js
+++ b/scripts/reactor/5511001.js
@@ -4,7 +4,7 @@
function act() {
const scarlionMobId = 9420547;
- if (rm.getReactor().getMap().getMonsterById(scarlionMobId) == null) {
+ if (rm.getReactor().getMap().getMonsterById(scarlionMobId) == null) {
rm.summonBossDelayed(scarlionMobId, 3200, -238, 636, "Bgm09/TimeAttack", "Beware! The furious Scarlion has shown himself!");
}
}
\ No newline at end of file
diff --git a/scripts/reactor/6102001.js b/scripts/reactor/6102001.js
index bbad6f2f1e..0ab167805d 100644
--- a/scripts/reactor/6102001.js
+++ b/scripts/reactor/6102001.js
@@ -1,3 +1,3 @@
function act() {
- rm.dropItems();
+ rm.dropItems();
}
diff --git a/scripts/reactor/6102002.js b/scripts/reactor/6102002.js
index 43e01c504e..1036ea08c8 100644
--- a/scripts/reactor/6102002.js
+++ b/scripts/reactor/6102002.js
@@ -19,11 +19,12 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*@author Ronan
*6102002.js
*Drops CWKPQ chest bonuses...
*/
-
+
function act() {
- rm.sprayItems(true, 1, 90, 360, 15);
+ rm.sprayItems(true, 1, 90, 360, 15);
}
\ No newline at end of file
diff --git a/scripts/reactor/6102003.js b/scripts/reactor/6102003.js
index e64a3ebec5..d072422eb8 100644
--- a/scripts/reactor/6102003.js
+++ b/scripts/reactor/6102003.js
@@ -19,11 +19,12 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*@author Ronan
*6102003.js
*Drops CWKPQ chest bonuses...
*/
-
+
function act() {
- rm.sprayItems(true, 1, 90, 360, 15);
+ rm.sprayItems(true, 1, 90, 360, 15);
}
\ No newline at end of file
diff --git a/scripts/reactor/6102004.js b/scripts/reactor/6102004.js
index cd7d66fe58..d1a0441d3c 100644
--- a/scripts/reactor/6102004.js
+++ b/scripts/reactor/6102004.js
@@ -19,11 +19,12 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*@author Ronan
*6102004.js
*Drops CWKPQ chest bonuses...
*/
-
+
function act() {
- rm.sprayItems(true, 1, 90, 360, 15);
+ rm.sprayItems(true, 1, 90, 360, 15);
}
\ No newline at end of file
diff --git a/scripts/reactor/6102005.js b/scripts/reactor/6102005.js
index ec8bd18894..b82d51ee2e 100644
--- a/scripts/reactor/6102005.js
+++ b/scripts/reactor/6102005.js
@@ -19,11 +19,12 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*@author Ronan
*6102005.js
*Drops CWKPQ chest bonuses...
*/
-
+
function act() {
- rm.sprayItems(true, 1, 90, 360, 15);
+ rm.sprayItems(true, 1, 90, 360, 15);
}
\ No newline at end of file
diff --git a/scripts/reactor/6109000.js b/scripts/reactor/6109000.js
index e5865822fa..875b7c98b4 100644
--- a/scripts/reactor/6109000.js
+++ b/scripts/reactor/6109000.js
@@ -1,27 +1,27 @@
function act() {
- var eim = rm.getEventInstance();
- if (eim != null) {
- var mapId = rm.getMap().getId();
-
- if (mapId == 610030200) {
- eim.dropMessage(6, "The Warrior Sigil has been activated!");
- 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!");
- eim.setIntProperty("glpq3", eim.getIntProperty("glpq3") + 1);
- 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);
- }
- }
+ var eim = rm.getEventInstance();
+ if (eim != null) {
+ var mapId = rm.getMap().getId();
+
+ if (mapId == 610030200) {
+ eim.dropMessage(6, "The Warrior Sigil has been activated!");
+ 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!");
+ eim.setIntProperty("glpq3", eim.getIntProperty("glpq3") + 1);
+ 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);
+ }
}
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/6109001.js b/scripts/reactor/6109001.js
index 9bfcffdc36..9e5284f944 100644
--- a/scripts/reactor/6109001.js
+++ b/scripts/reactor/6109001.js
@@ -1,28 +1,28 @@
function act() {
- var eim = rm.getEventInstance();
- if (eim != null) {
- var mapId = rm.getMap().getId();
-
- if (mapId == 610030200) {
- eim.dropMessage(6, "The Archer Sigil has been activated!");
- 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!");
- eim.setIntProperty("glpq3", eim.getIntProperty("glpq3") + 1);
- rm.getMap().moveEnvironment("menhir1", 1);
- 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.giveEventPlayersStageReward(3);
- }
- }
- }
+ var eim = rm.getEventInstance();
+ if (eim != null) {
+ var mapId = rm.getMap().getId();
+
+ if (mapId == 610030200) {
+ eim.dropMessage(6, "The Archer Sigil has been activated!");
+ 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!");
+ eim.setIntProperty("glpq3", eim.getIntProperty("glpq3") + 1);
+ rm.getMap().moveEnvironment("menhir1", 1);
+ 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.giveEventPlayersStageReward(3);
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/6109002.js b/scripts/reactor/6109002.js
index c0db62cfcc..225fa67e50 100644
--- a/scripts/reactor/6109002.js
+++ b/scripts/reactor/6109002.js
@@ -1,27 +1,27 @@
function act() {
- var eim = rm.getEventInstance();
- if (eim != null) {
- var mapId = rm.getMap().getId();
-
- if (mapId == 610030200) {
- eim.dropMessage(6, "The Mage Sigil has been activated!");
- 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!");
- eim.setIntProperty("glpq3", eim.getIntProperty("glpq3") + 1);
- 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);
- }
- }
- }
+ var eim = rm.getEventInstance();
+ if (eim != null) {
+ var mapId = rm.getMap().getId();
+
+ if (mapId == 610030200) {
+ eim.dropMessage(6, "The Mage Sigil has been activated!");
+ 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!");
+ eim.setIntProperty("glpq3", eim.getIntProperty("glpq3") + 1);
+ 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);
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/6109003.js b/scripts/reactor/6109003.js
index c8fc11c11b..d91dfc5410 100644
--- a/scripts/reactor/6109003.js
+++ b/scripts/reactor/6109003.js
@@ -1,27 +1,27 @@
function act() {
- var eim = rm.getEventInstance();
- if (eim != null) {
- var mapId = rm.getMap().getId();
-
- if (mapId == 610030200) {
- eim.dropMessage(6, "The Thief Sigil has been activated!");
- 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!");
- eim.setIntProperty("glpq3", eim.getIntProperty("glpq3") + 1);
- 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);
- }
- }
- }
+ var eim = rm.getEventInstance();
+ if (eim != null) {
+ var mapId = rm.getMap().getId();
+
+ if (mapId == 610030200) {
+ eim.dropMessage(6, "The Thief Sigil has been activated!");
+ 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!");
+ eim.setIntProperty("glpq3", eim.getIntProperty("glpq3") + 1);
+ 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);
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/6109004.js b/scripts/reactor/6109004.js
index 5c88658201..7112610a9f 100644
--- a/scripts/reactor/6109004.js
+++ b/scripts/reactor/6109004.js
@@ -1,27 +1,27 @@
function act() {
- var eim = rm.getEventInstance();
- if (eim != null) {
- var mapId = rm.getMap().getId();
-
- if (mapId == 610030200) {
- eim.dropMessage(6, "The Pirate Sigil has been activated!");
- 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!");
- eim.setIntProperty("glpq3", eim.getIntProperty("glpq3") + 1);
- 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);
- }
- }
- }
+ var eim = rm.getEventInstance();
+ if (eim != null) {
+ var mapId = rm.getMap().getId();
+
+ if (mapId == 610030200) {
+ eim.dropMessage(6, "The Pirate Sigil has been activated!");
+ 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!");
+ eim.setIntProperty("glpq3", eim.getIntProperty("glpq3") + 1);
+ 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);
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/6109005.js b/scripts/reactor/6109005.js
index 04efb0dd76..1401a22fa5 100644
--- a/scripts/reactor/6109005.js
+++ b/scripts/reactor/6109005.js
@@ -1,13 +1,13 @@
function act() {
- var eim = rm.getEventInstance();
- if (eim != null) {
- eim.dropMessage(6, "A weapon has been restored to the Relic of Mastery!");
- 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);
- }
- }
+ var eim = rm.getEventInstance();
+ if (eim != null) {
+ eim.dropMessage(6, "A weapon has been restored to the Relic of Mastery!");
+ 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);
+ }
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/6109006.js b/scripts/reactor/6109006.js
index 04efb0dd76..1401a22fa5 100644
--- a/scripts/reactor/6109006.js
+++ b/scripts/reactor/6109006.js
@@ -1,13 +1,13 @@
function act() {
- var eim = rm.getEventInstance();
- if (eim != null) {
- eim.dropMessage(6, "A weapon has been restored to the Relic of Mastery!");
- 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);
- }
- }
+ var eim = rm.getEventInstance();
+ if (eim != null) {
+ eim.dropMessage(6, "A weapon has been restored to the Relic of Mastery!");
+ 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);
+ }
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/6109007.js b/scripts/reactor/6109007.js
index 04efb0dd76..1401a22fa5 100644
--- a/scripts/reactor/6109007.js
+++ b/scripts/reactor/6109007.js
@@ -1,13 +1,13 @@
function act() {
- var eim = rm.getEventInstance();
- if (eim != null) {
- eim.dropMessage(6, "A weapon has been restored to the Relic of Mastery!");
- 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);
- }
- }
+ var eim = rm.getEventInstance();
+ if (eim != null) {
+ eim.dropMessage(6, "A weapon has been restored to the Relic of Mastery!");
+ 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);
+ }
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/6109008.js b/scripts/reactor/6109008.js
index 04efb0dd76..1401a22fa5 100644
--- a/scripts/reactor/6109008.js
+++ b/scripts/reactor/6109008.js
@@ -1,13 +1,13 @@
function act() {
- var eim = rm.getEventInstance();
- if (eim != null) {
- eim.dropMessage(6, "A weapon has been restored to the Relic of Mastery!");
- 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);
- }
- }
+ var eim = rm.getEventInstance();
+ if (eim != null) {
+ eim.dropMessage(6, "A weapon has been restored to the Relic of Mastery!");
+ 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);
+ }
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/6109009.js b/scripts/reactor/6109009.js
index 04efb0dd76..1401a22fa5 100644
--- a/scripts/reactor/6109009.js
+++ b/scripts/reactor/6109009.js
@@ -1,13 +1,13 @@
function act() {
- var eim = rm.getEventInstance();
- if (eim != null) {
- eim.dropMessage(6, "A weapon has been restored to the Relic of Mastery!");
- 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);
- }
- }
+ var eim = rm.getEventInstance();
+ if (eim != null) {
+ eim.dropMessage(6, "A weapon has been restored to the Relic of Mastery!");
+ 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);
+ }
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/6109013.js b/scripts/reactor/6109013.js
index 3dedab36e8..d2ab13478c 100644
--- a/scripts/reactor/6109013.js
+++ b/scripts/reactor/6109013.js
@@ -1,21 +1,25 @@
var fid = "glpq_s";
function action() {
- rm.mapMessage(6, "All stirges have disappeared.");
- rm.getMap().killAllMonsters(true);
- eim.setIntProperty(fid, 777);
+ 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);
+ 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);
+ var eim = rm.getEventInstance();
+
+ if (eim.getIntProperty(fid) == 5) {
+ action();
+ }
+ eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}
\ No newline at end of file
diff --git a/scripts/reactor/6109014.js b/scripts/reactor/6109014.js
index 07f3480d59..c72b8f6986 100644
--- a/scripts/reactor/6109014.js
+++ b/scripts/reactor/6109014.js
@@ -1,22 +1,26 @@
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 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);
+ 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);
+ var eim = rm.getEventInstance();
+
+ if (eim.getIntProperty(fid) == 1) {
+ action();
+ }
+ eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}
\ No newline at end of file
diff --git a/scripts/reactor/6109016.js b/scripts/reactor/6109016.js
index d3acbe0cc6..00afe79b98 100644
--- a/scripts/reactor/6109016.js
+++ b/scripts/reactor/6109016.js
@@ -1,13 +1,13 @@
function act() {
- var eim = rm.getEventInstance();
- if (eim != null) {
- eim.dropMessage(6, "The Warrior Sigil has been activated!");
- 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);
- }
- }
+ var eim = rm.getEventInstance();
+ if (eim != null) {
+ eim.dropMessage(6, "The Warrior Sigil has been activated!");
+ 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);
+ }
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/6109017.js b/scripts/reactor/6109017.js
index 20df3f2b35..38f5162c74 100644
--- a/scripts/reactor/6109017.js
+++ b/scripts/reactor/6109017.js
@@ -1,13 +1,13 @@
function act() {
- var eim = rm.getEventInstance();
- if (eim != null) {
- eim.dropMessage(6, "The Archer Sigil has been activated!");
- 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);
- }
- }
+ var eim = rm.getEventInstance();
+ if (eim != null) {
+ eim.dropMessage(6, "The Archer Sigil has been activated!");
+ 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);
+ }
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/6109018.js b/scripts/reactor/6109018.js
index 943b07806b..8adba2da9c 100644
--- a/scripts/reactor/6109018.js
+++ b/scripts/reactor/6109018.js
@@ -1,13 +1,13 @@
function act() {
- var eim = rm.getEventInstance();
- if (eim != null) {
- eim.dropMessage(6, "The Mage Sigil has been activated!");
- 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);
- }
- }
+ var eim = rm.getEventInstance();
+ if (eim != null) {
+ eim.dropMessage(6, "The Mage Sigil has been activated!");
+ 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);
+ }
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/6109019.js b/scripts/reactor/6109019.js
index f5bff9037d..621558827c 100644
--- a/scripts/reactor/6109019.js
+++ b/scripts/reactor/6109019.js
@@ -1,13 +1,13 @@
function act() {
- var eim = rm.getEventInstance();
- if (eim != null) {
- eim.dropMessage(6, "The Thief Sigil has been activated!");
- 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);
- }
- }
+ var eim = rm.getEventInstance();
+ if (eim != null) {
+ eim.dropMessage(6, "The Thief Sigil has been activated!");
+ 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);
+ }
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/6109020.js b/scripts/reactor/6109020.js
index ad2331e81a..943e4f139b 100644
--- a/scripts/reactor/6109020.js
+++ b/scripts/reactor/6109020.js
@@ -1,13 +1,13 @@
function act() {
- var eim = rm.getEventInstance();
- if (eim != null) {
- eim.dropMessage(6, "The Pirate Sigil has been activated!");
- 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);
- }
- }
+ var eim = rm.getEventInstance();
+ if (eim != null) {
+ eim.dropMessage(6, "The Pirate Sigil has been activated!");
+ 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);
+ }
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/6109021.js b/scripts/reactor/6109021.js
index 3047f1402b..b650ff69eb 100644
--- a/scripts/reactor/6109021.js
+++ b/scripts/reactor/6109021.js
@@ -1,22 +1,26 @@
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 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);
+ 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);
+ var eim = rm.getEventInstance();
+
+ if (eim.getIntProperty(fid) == 1) {
+ action();
+ }
+ eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}
\ No newline at end of file
diff --git a/scripts/reactor/6109022.js b/scripts/reactor/6109022.js
index 87ae6e05f4..90d4d7b9a5 100644
--- a/scripts/reactor/6109022.js
+++ b/scripts/reactor/6109022.js
@@ -1,22 +1,26 @@
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 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);
+ 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);
+ var eim = rm.getEventInstance();
+
+ if (eim.getIntProperty(fid) == 1) {
+ action();
+ }
+ eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}
\ No newline at end of file
diff --git a/scripts/reactor/6109023.js b/scripts/reactor/6109023.js
index 5190f4e41c..c799571b47 100644
--- a/scripts/reactor/6109023.js
+++ b/scripts/reactor/6109023.js
@@ -1,22 +1,26 @@
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 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);
+ 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);
+ var eim = rm.getEventInstance();
+
+ if (eim.getIntProperty(fid) == 1) {
+ action();
+ }
+ eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}
\ No newline at end of file
diff --git a/scripts/reactor/6109024.js b/scripts/reactor/6109024.js
index db5e2b5251..fd8e9d9a96 100644
--- a/scripts/reactor/6109024.js
+++ b/scripts/reactor/6109024.js
@@ -1,22 +1,26 @@
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 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);
+ 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);
+ var eim = rm.getEventInstance();
+
+ if (eim.getIntProperty(fid) == 1) {
+ action();
+ }
+ eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}
\ No newline at end of file
diff --git a/scripts/reactor/6109025.js b/scripts/reactor/6109025.js
index 3db3da9a73..7bfca0648e 100644
--- a/scripts/reactor/6109025.js
+++ b/scripts/reactor/6109025.js
@@ -1,22 +1,26 @@
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 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);
+ 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);
+ var eim = rm.getEventInstance();
+
+ if (eim.getIntProperty(fid) == 1) {
+ action();
+ }
+ eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}
\ No newline at end of file
diff --git a/scripts/reactor/6109026.js b/scripts/reactor/6109026.js
index e575ae3298..9e5b97c1e1 100644
--- a/scripts/reactor/6109026.js
+++ b/scripts/reactor/6109026.js
@@ -1,22 +1,26 @@
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 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);
+ 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);
+ var eim = rm.getEventInstance();
+
+ if (eim.getIntProperty(fid) == 1) {
+ action();
+ }
+ eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}
\ No newline at end of file
diff --git a/scripts/reactor/6109027.js b/scripts/reactor/6109027.js
index f56e41746c..4c2a235211 100644
--- a/scripts/reactor/6109027.js
+++ b/scripts/reactor/6109027.js
@@ -1,22 +1,26 @@
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 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);
+ 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);
+ var eim = rm.getEventInstance();
+
+ if (eim.getIntProperty(fid) == 1) {
+ action();
+ }
+ eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}
\ No newline at end of file
diff --git a/scripts/reactor/6701000.js b/scripts/reactor/6701000.js
index 918e523ad7..d89df2273c 100644
--- a/scripts/reactor/6701000.js
+++ b/scripts/reactor/6701000.js
@@ -26,13 +26,13 @@
*
*/
-function act(){
- var startId = 9400523;
- var mobObj, mapObj = rm.getMap();
+function act() {
+ var startId = 9400523;
+ var mobObj, mapObj = rm.getMap();
- const LifeFactory = Java.type('server.life.LifeFactory');
- for(var i = 0; i < 7; i++) {
- mobObj = LifeFactory.getMonster(startId + Math.floor(Math.random() * 3));
- mapObj.spawnMonsterOnGroundBelow(mobObj, rm.getReactor().getPosition());
- }
+ const LifeFactory = Java.type('server.life.LifeFactory');
+ for (var i = 0; i < 7; i++) {
+ mobObj = LifeFactory.getMonster(startId + Math.floor(Math.random() * 3));
+ mapObj.spawnMonsterOnGroundBelow(mobObj, rm.getReactor().getPosition());
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/6701001.js b/scripts/reactor/6701001.js
index 918e523ad7..d89df2273c 100644
--- a/scripts/reactor/6701001.js
+++ b/scripts/reactor/6701001.js
@@ -26,13 +26,13 @@
*
*/
-function act(){
- var startId = 9400523;
- var mobObj, mapObj = rm.getMap();
+function act() {
+ var startId = 9400523;
+ var mobObj, mapObj = rm.getMap();
- const LifeFactory = Java.type('server.life.LifeFactory');
- for(var i = 0; i < 7; i++) {
- mobObj = LifeFactory.getMonster(startId + Math.floor(Math.random() * 3));
- mapObj.spawnMonsterOnGroundBelow(mobObj, rm.getReactor().getPosition());
- }
+ const LifeFactory = Java.type('server.life.LifeFactory');
+ for (var i = 0; i < 7; i++) {
+ mobObj = LifeFactory.getMonster(startId + Math.floor(Math.random() * 3));
+ mapObj.spawnMonsterOnGroundBelow(mobObj, rm.getReactor().getPosition());
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/6701002.js b/scripts/reactor/6701002.js
index 918e523ad7..d89df2273c 100644
--- a/scripts/reactor/6701002.js
+++ b/scripts/reactor/6701002.js
@@ -26,13 +26,13 @@
*
*/
-function act(){
- var startId = 9400523;
- var mobObj, mapObj = rm.getMap();
+function act() {
+ var startId = 9400523;
+ var mobObj, mapObj = rm.getMap();
- const LifeFactory = Java.type('server.life.LifeFactory');
- for(var i = 0; i < 7; i++) {
- mobObj = LifeFactory.getMonster(startId + Math.floor(Math.random() * 3));
- mapObj.spawnMonsterOnGroundBelow(mobObj, rm.getReactor().getPosition());
- }
+ const LifeFactory = Java.type('server.life.LifeFactory');
+ for (var i = 0; i < 7; i++) {
+ mobObj = LifeFactory.getMonster(startId + Math.floor(Math.random() * 3));
+ mapObj.spawnMonsterOnGroundBelow(mobObj, rm.getReactor().getPosition());
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/6702000.js b/scripts/reactor/6702000.js
index 74e1b6be6f..904a865bb5 100644
--- a/scripts/reactor/6702000.js
+++ b/scripts/reactor/6702000.js
@@ -26,6 +26,6 @@
*
*/
-function act(){
- rm.dropItems();
+function act() {
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/6702003.js b/scripts/reactor/6702003.js
index ba3daa9652..61683edc41 100644
--- a/scripts/reactor/6702003.js
+++ b/scripts/reactor/6702003.js
@@ -25,10 +25,12 @@
*/
function act() {
- rand = Math.floor(Math.random() * 4);
- if (rand < 1) rand = 1;
- //We'll make it drop a lot of crap :D
- for (var i = 0; i.
*/
-function act(){
+function act() {
rm.sprayItems(true, 1, 100, 400, 15);
}
\ No newline at end of file
diff --git a/scripts/reactor/6802001.js b/scripts/reactor/6802001.js
index 2497b8d049..22b9d87500 100644
--- a/scripts/reactor/6802001.js
+++ b/scripts/reactor/6802001.js
@@ -19,6 +19,6 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
-function act(){
+function act() {
rm.sprayItems(true, 1, 100, 400, 15);
}
\ No newline at end of file
diff --git a/scripts/reactor/6829000.js b/scripts/reactor/6829000.js
index 17e886fa86..02c0b03f07 100644
--- a/scripts/reactor/6829000.js
+++ b/scripts/reactor/6829000.js
@@ -19,7 +19,7 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
-function act(){ //wtf is this?
+function act() { //wtf is this?
rm.playerMessage(5, "Enjoy Halloween!");
rm.spawnMonster(9400202, 10);
}
\ No newline at end of file
diff --git a/scripts/reactor/8001000.js b/scripts/reactor/8001000.js
index 6be4803511..8bac2ebfa5 100644
--- a/scripts/reactor/8001000.js
+++ b/scripts/reactor/8001000.js
@@ -19,6 +19,6 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
-function act(){
- rm.spawnMonster(9400112, 1, 420, 160);
+function act() {
+ rm.spawnMonster(9400112, 1, 420, 160);
}
\ No newline at end of file
diff --git a/scripts/reactor/8091000.js b/scripts/reactor/8091000.js
index 6705ea90c5..5dcf6425f7 100644
--- a/scripts/reactor/8091000.js
+++ b/scripts/reactor/8091000.js
@@ -25,7 +25,7 @@
* LMPQ Maze - Reactor - Spawn Monster
*/
-function act(){
+function act() {
rm.spawnMonster(9400210, 2);
rm.spawnMonster(9400209, 2);
rm.mapMessage(5, "Some monsters are summoned.");
diff --git a/scripts/reactor/8091001.js b/scripts/reactor/8091001.js
index b3d8dff1f2..bb202ae5d3 100644
--- a/scripts/reactor/8091001.js
+++ b/scripts/reactor/8091001.js
@@ -25,7 +25,7 @@
* LMPQ Maze - Reactor - Spawn Monster
*/
-function act(){
+function act() {
rm.spawnMonster(9400211, 2);
rm.spawnMonster(9400212, 2);
rm.mapMessage(5, "Some monsters are summoned.");
diff --git a/scripts/reactor/8091002.js b/scripts/reactor/8091002.js
index 83fe1c1910..d006fbe70e 100644
--- a/scripts/reactor/8091002.js
+++ b/scripts/reactor/8091002.js
@@ -25,7 +25,7 @@
* LMPQ Maze - Reactor - Spawn Monster
*/
-function act(){
+function act() {
rm.spawnMonster(9400213, 2);
rm.spawnMonster(9400214, 2);
rm.mapMessage(5, "Some monsters are summoned.");
diff --git a/scripts/reactor/8091003.js b/scripts/reactor/8091003.js
index 69b5724a87..2570ddd7df 100644
--- a/scripts/reactor/8091003.js
+++ b/scripts/reactor/8091003.js
@@ -25,7 +25,7 @@
* LMPQ Maze - Reactor - Spawn Monster
*/
-function act(){
+function act() {
rm.spawnMonster(9400215, 2);
rm.spawnMonster(9400216, 2);
rm.mapMessage(5, "Some monsters are summoned.");
diff --git a/scripts/reactor/8091004.js b/scripts/reactor/8091004.js
index 3ab9232519..08579e078c 100644
--- a/scripts/reactor/8091004.js
+++ b/scripts/reactor/8091004.js
@@ -25,7 +25,7 @@
* LMPQ Maze - Reactor - Spawn Monster
*/
-function act(){
+function act() {
rm.spawnMonster(9400217, 2);
rm.spawnMonster(9400218, 2);
rm.mapMessage(5, "Some monsters are summoned.");
diff --git a/scripts/reactor/8098000.js b/scripts/reactor/8098000.js
index c9c357bb74..e60315f828 100644
--- a/scripts/reactor/8098000.js
+++ b/scripts/reactor/8098000.js
@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/*
* @author RMZero213 - base
* @author Moogra - fixed and clean up
diff --git a/scripts/reactor/9101000.js b/scripts/reactor/9101000.js
index e05ff1d916..49f9c131c2 100644
--- a/scripts/reactor/9101000.js
+++ b/scripts/reactor/9101000.js
@@ -35,5 +35,5 @@ function act() {
rm.getClient().getMap().broadcastMessage(PacketCreator.bunnyPacket()); // Protect the Moon Bunny!
rm.getClient().getMap().broadcastMessage(PacketCreator.showHPQMoon());
rm.getClient().getMap().showAllMonsters();
-
+
}
\ No newline at end of file
diff --git a/scripts/reactor/9108000.js b/scripts/reactor/9108000.js
index cd257a80ac..12d9f4607f 100644
--- a/scripts/reactor/9108000.js
+++ b/scripts/reactor/9108000.js
@@ -1,17 +1,16 @@
-
function act() {
- var eim = rm.getEventInstance();
- if (eim != null) {
- var react = rm.getReactor().getMap().getReactorByName("fullmoon");
- var stage = parseInt(eim.getProperty("stage")) + 1;
- var newStage = stage.toString();
- eim.setProperty("stage", newStage);
- react.forceHitReactor(react.getState() + 1);
- if (eim.getProperty("stage").equals("6")) {
- rm.mapMessage(6, "Protect the Moon Bunny!!!");
- var map = eim.getMapInstance(rm.getReactor().getMap().getId());
- map.allowSummonState(true);
- map.spawnMonsterOnGroundBelow(9300061, -183, -433);
- }
- }
+ var eim = rm.getEventInstance();
+ if (eim != null) {
+ var react = rm.getReactor().getMap().getReactorByName("fullmoon");
+ var stage = parseInt(eim.getProperty("stage")) + 1;
+ var newStage = stage.toString();
+ eim.setProperty("stage", newStage);
+ react.forceHitReactor(react.getState() + 1);
+ if (eim.getProperty("stage").equals("6")) {
+ rm.mapMessage(6, "Protect the Moon Bunny!!!");
+ var map = eim.getMapInstance(rm.getReactor().getMap().getId());
+ map.allowSummonState(true);
+ map.spawnMonsterOnGroundBelow(9300061, -183, -433);
+ }
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/9108001.js b/scripts/reactor/9108001.js
index cd257a80ac..12d9f4607f 100644
--- a/scripts/reactor/9108001.js
+++ b/scripts/reactor/9108001.js
@@ -1,17 +1,16 @@
-
function act() {
- var eim = rm.getEventInstance();
- if (eim != null) {
- var react = rm.getReactor().getMap().getReactorByName("fullmoon");
- var stage = parseInt(eim.getProperty("stage")) + 1;
- var newStage = stage.toString();
- eim.setProperty("stage", newStage);
- react.forceHitReactor(react.getState() + 1);
- if (eim.getProperty("stage").equals("6")) {
- rm.mapMessage(6, "Protect the Moon Bunny!!!");
- var map = eim.getMapInstance(rm.getReactor().getMap().getId());
- map.allowSummonState(true);
- map.spawnMonsterOnGroundBelow(9300061, -183, -433);
- }
- }
+ var eim = rm.getEventInstance();
+ if (eim != null) {
+ var react = rm.getReactor().getMap().getReactorByName("fullmoon");
+ var stage = parseInt(eim.getProperty("stage")) + 1;
+ var newStage = stage.toString();
+ eim.setProperty("stage", newStage);
+ react.forceHitReactor(react.getState() + 1);
+ if (eim.getProperty("stage").equals("6")) {
+ rm.mapMessage(6, "Protect the Moon Bunny!!!");
+ var map = eim.getMapInstance(rm.getReactor().getMap().getId());
+ map.allowSummonState(true);
+ map.spawnMonsterOnGroundBelow(9300061, -183, -433);
+ }
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/9108002.js b/scripts/reactor/9108002.js
index cd257a80ac..12d9f4607f 100644
--- a/scripts/reactor/9108002.js
+++ b/scripts/reactor/9108002.js
@@ -1,17 +1,16 @@
-
function act() {
- var eim = rm.getEventInstance();
- if (eim != null) {
- var react = rm.getReactor().getMap().getReactorByName("fullmoon");
- var stage = parseInt(eim.getProperty("stage")) + 1;
- var newStage = stage.toString();
- eim.setProperty("stage", newStage);
- react.forceHitReactor(react.getState() + 1);
- if (eim.getProperty("stage").equals("6")) {
- rm.mapMessage(6, "Protect the Moon Bunny!!!");
- var map = eim.getMapInstance(rm.getReactor().getMap().getId());
- map.allowSummonState(true);
- map.spawnMonsterOnGroundBelow(9300061, -183, -433);
- }
- }
+ var eim = rm.getEventInstance();
+ if (eim != null) {
+ var react = rm.getReactor().getMap().getReactorByName("fullmoon");
+ var stage = parseInt(eim.getProperty("stage")) + 1;
+ var newStage = stage.toString();
+ eim.setProperty("stage", newStage);
+ react.forceHitReactor(react.getState() + 1);
+ if (eim.getProperty("stage").equals("6")) {
+ rm.mapMessage(6, "Protect the Moon Bunny!!!");
+ var map = eim.getMapInstance(rm.getReactor().getMap().getId());
+ map.allowSummonState(true);
+ map.spawnMonsterOnGroundBelow(9300061, -183, -433);
+ }
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/9108003.js b/scripts/reactor/9108003.js
index cd257a80ac..12d9f4607f 100644
--- a/scripts/reactor/9108003.js
+++ b/scripts/reactor/9108003.js
@@ -1,17 +1,16 @@
-
function act() {
- var eim = rm.getEventInstance();
- if (eim != null) {
- var react = rm.getReactor().getMap().getReactorByName("fullmoon");
- var stage = parseInt(eim.getProperty("stage")) + 1;
- var newStage = stage.toString();
- eim.setProperty("stage", newStage);
- react.forceHitReactor(react.getState() + 1);
- if (eim.getProperty("stage").equals("6")) {
- rm.mapMessage(6, "Protect the Moon Bunny!!!");
- var map = eim.getMapInstance(rm.getReactor().getMap().getId());
- map.allowSummonState(true);
- map.spawnMonsterOnGroundBelow(9300061, -183, -433);
- }
- }
+ var eim = rm.getEventInstance();
+ if (eim != null) {
+ var react = rm.getReactor().getMap().getReactorByName("fullmoon");
+ var stage = parseInt(eim.getProperty("stage")) + 1;
+ var newStage = stage.toString();
+ eim.setProperty("stage", newStage);
+ react.forceHitReactor(react.getState() + 1);
+ if (eim.getProperty("stage").equals("6")) {
+ rm.mapMessage(6, "Protect the Moon Bunny!!!");
+ var map = eim.getMapInstance(rm.getReactor().getMap().getId());
+ map.allowSummonState(true);
+ map.spawnMonsterOnGroundBelow(9300061, -183, -433);
+ }
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/9108004.js b/scripts/reactor/9108004.js
index cd257a80ac..12d9f4607f 100644
--- a/scripts/reactor/9108004.js
+++ b/scripts/reactor/9108004.js
@@ -1,17 +1,16 @@
-
function act() {
- var eim = rm.getEventInstance();
- if (eim != null) {
- var react = rm.getReactor().getMap().getReactorByName("fullmoon");
- var stage = parseInt(eim.getProperty("stage")) + 1;
- var newStage = stage.toString();
- eim.setProperty("stage", newStage);
- react.forceHitReactor(react.getState() + 1);
- if (eim.getProperty("stage").equals("6")) {
- rm.mapMessage(6, "Protect the Moon Bunny!!!");
- var map = eim.getMapInstance(rm.getReactor().getMap().getId());
- map.allowSummonState(true);
- map.spawnMonsterOnGroundBelow(9300061, -183, -433);
- }
- }
+ var eim = rm.getEventInstance();
+ if (eim != null) {
+ var react = rm.getReactor().getMap().getReactorByName("fullmoon");
+ var stage = parseInt(eim.getProperty("stage")) + 1;
+ var newStage = stage.toString();
+ eim.setProperty("stage", newStage);
+ react.forceHitReactor(react.getState() + 1);
+ if (eim.getProperty("stage").equals("6")) {
+ rm.mapMessage(6, "Protect the Moon Bunny!!!");
+ var map = eim.getMapInstance(rm.getReactor().getMap().getId());
+ map.allowSummonState(true);
+ map.spawnMonsterOnGroundBelow(9300061, -183, -433);
+ }
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/9108005.js b/scripts/reactor/9108005.js
index cd257a80ac..12d9f4607f 100644
--- a/scripts/reactor/9108005.js
+++ b/scripts/reactor/9108005.js
@@ -1,17 +1,16 @@
-
function act() {
- var eim = rm.getEventInstance();
- if (eim != null) {
- var react = rm.getReactor().getMap().getReactorByName("fullmoon");
- var stage = parseInt(eim.getProperty("stage")) + 1;
- var newStage = stage.toString();
- eim.setProperty("stage", newStage);
- react.forceHitReactor(react.getState() + 1);
- if (eim.getProperty("stage").equals("6")) {
- rm.mapMessage(6, "Protect the Moon Bunny!!!");
- var map = eim.getMapInstance(rm.getReactor().getMap().getId());
- map.allowSummonState(true);
- map.spawnMonsterOnGroundBelow(9300061, -183, -433);
- }
- }
+ var eim = rm.getEventInstance();
+ if (eim != null) {
+ var react = rm.getReactor().getMap().getReactorByName("fullmoon");
+ var stage = parseInt(eim.getProperty("stage")) + 1;
+ var newStage = stage.toString();
+ eim.setProperty("stage", newStage);
+ react.forceHitReactor(react.getState() + 1);
+ if (eim.getProperty("stage").equals("6")) {
+ rm.mapMessage(6, "Protect the Moon Bunny!!!");
+ var map = eim.getMapInstance(rm.getReactor().getMap().getId());
+ map.allowSummonState(true);
+ map.spawnMonsterOnGroundBelow(9300061, -183, -433);
+ }
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/9201000.js b/scripts/reactor/9201000.js
index 42ffc3f108..43b5725e3b 100644
--- a/scripts/reactor/9201000.js
+++ b/scripts/reactor/9201000.js
@@ -27,6 +27,6 @@
* Guild Quest - part of stage 4
*/
-function act(){
+function act() {
rm.spawnMonster(9300033, 8, -100, 50);
}
diff --git a/scripts/reactor/9201001.js b/scripts/reactor/9201001.js
index 6f17fbd517..cd5e7f4072 100644
--- a/scripts/reactor/9201001.js
+++ b/scripts/reactor/9201001.js
@@ -27,7 +27,7 @@
* Guild Quest - end of stage 4
*/
-function act(){
+function act() {
rm.mapMessage(5, "A bright flash of light, then someone familiar appears in front of the blocked gate.");
rm.spawnNpc(9040003);
}
diff --git a/scripts/reactor/9202000.js b/scripts/reactor/9202000.js
index 64b625b2d8..99b7269d01 100644
--- a/scripts/reactor/9202000.js
+++ b/scripts/reactor/9202000.js
@@ -28,5 +28,5 @@
*/
function act() {
- rm.dropItems();
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/9202001.js b/scripts/reactor/9202001.js
index c3519bdc7d..e6449c945e 100644
--- a/scripts/reactor/9202001.js
+++ b/scripts/reactor/9202001.js
@@ -27,5 +27,5 @@
*/
function act() {
- rm.dropItems();
+ rm.dropItems();
}
diff --git a/scripts/reactor/9202002.js b/scripts/reactor/9202002.js
index 2191710330..73ec202799 100644
--- a/scripts/reactor/9202002.js
+++ b/scripts/reactor/9202002.js
@@ -27,5 +27,5 @@
*/
function act() {
- rm.dropItems();
+ rm.dropItems();
}
diff --git a/scripts/reactor/9202003.js b/scripts/reactor/9202003.js
index 8cda94d2ba..956f8677d1 100644
--- a/scripts/reactor/9202003.js
+++ b/scripts/reactor/9202003.js
@@ -27,5 +27,5 @@
*/
function act() {
- rm.dropItems();
+ rm.dropItems();
}
diff --git a/scripts/reactor/9202004.js b/scripts/reactor/9202004.js
index eb1c8a914d..6da9733ca7 100644
--- a/scripts/reactor/9202004.js
+++ b/scripts/reactor/9202004.js
@@ -27,5 +27,5 @@
*/
function act() {
- rm.dropItems();
+ rm.dropItems();
}
diff --git a/scripts/reactor/9202005.js b/scripts/reactor/9202005.js
index 6e68bdffcf..c4a302471b 100644
--- a/scripts/reactor/9202005.js
+++ b/scripts/reactor/9202005.js
@@ -27,5 +27,5 @@
*/
function act() {
- rm.dropItems();
+ rm.dropItems();
}
diff --git a/scripts/reactor/9202006.js b/scripts/reactor/9202006.js
index 0f7fd22496..49b5235c03 100644
--- a/scripts/reactor/9202006.js
+++ b/scripts/reactor/9202006.js
@@ -27,5 +27,5 @@
*/
function act() {
- rm.dropItems();
+ rm.dropItems();
}
diff --git a/scripts/reactor/9202007.js b/scripts/reactor/9202007.js
index 4d2b97f46e..2812d4395d 100644
--- a/scripts/reactor/9202007.js
+++ b/scripts/reactor/9202007.js
@@ -27,5 +27,5 @@
*/
function act() {
- rm.dropItems();
+ rm.dropItems();
}
diff --git a/scripts/reactor/9202008.js b/scripts/reactor/9202008.js
index ed496f0fcc..675c6a1981 100644
--- a/scripts/reactor/9202008.js
+++ b/scripts/reactor/9202008.js
@@ -27,5 +27,5 @@
*/
function act() {
- rm.dropItems();
+ rm.dropItems();
}
diff --git a/scripts/reactor/9202009.js b/scripts/reactor/9202009.js
index 563caf0558..1182ecc782 100644
--- a/scripts/reactor/9202009.js
+++ b/scripts/reactor/9202009.js
@@ -28,5 +28,5 @@
*/
function act() {
- rm.dropItems();
+ rm.dropItems();
}
\ No newline at end of file
diff --git a/scripts/reactor/9202012.js b/scripts/reactor/9202012.js
index 039d4fd670..03863cf8a1 100644
--- a/scripts/reactor/9202012.js
+++ b/scripts/reactor/9202012.js
@@ -26,5 +26,5 @@
*/
function act() {
- rm.sprayItems(true, 1, 30, 60, 10);
+ rm.sprayItems(true, 1, 30, 60, 10);
}
diff --git a/scripts/reactor/9208000.js b/scripts/reactor/9208000.js
index 0293f00842..2768b3fbac 100644
--- a/scripts/reactor/9208000.js
+++ b/scripts/reactor/9208000.js
@@ -26,7 +26,9 @@
*/
function padWithZeroes(n, width) {
- while(n.length < width) n = '0' + n;
+ while (n.length < width) {
+ n = '0' + n;
+ }
return n;
}
@@ -37,17 +39,17 @@ function act() {
if (status != null && !status.equals("waiting")) {
var stage = parseInt(eim.getProperty("stage1phase"));
if (status.equals("display")) {
- if(!rm.getReactor().isRecentHitFromAttack()) {
+ if (!rm.getReactor().isRecentHitFromAttack()) {
var prevCombo = eim.getProperty("stage1combo");
var n = "" + (rm.getReactor().getObjectId() % 1000);
prevCombo += padWithZeroes(n, 3);
- eim.setProperty("stage1combo",prevCombo);
+ eim.setProperty("stage1combo", prevCombo);
if (prevCombo.length == (3 * (stage + 3))) { //end of displaying
- eim.setProperty("stage1status","active");
+ eim.setProperty("stage1status", "active");
rm.mapMessage(5, "The combo has been displayed; Proceed with caution.");
- eim.setProperty("stage1guess","");
+ eim.setProperty("stage1guess", "");
}
}
} else { //active
@@ -55,8 +57,8 @@ function act() {
if (prevGuess.length != (3 * (stage + 3))) {
var n = "" + (rm.getReactor().getObjectId() % 1000);
prevGuess += padWithZeroes(n, 3);
-
- eim.setProperty("stage1guess",prevGuess);
+
+ eim.setProperty("stage1guess", prevGuess);
}
}
}
diff --git a/scripts/reactor/9208001.js b/scripts/reactor/9208001.js
index 92f8b02a65..4540674dff 100644
--- a/scripts/reactor/9208001.js
+++ b/scripts/reactor/9208001.js
@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
+
/* @Author Lerk
*
* 9208001.js: Guild Quest - Gatekeeper Puzzle Reactor
@@ -27,7 +28,9 @@
function padWithZeroes(n, width) {
- while(n.length < width) n = '0' + n;
+ while (n.length < width) {
+ n = '0' + n;
+ }
return n;
}
@@ -39,17 +42,17 @@ function act() {
var stage = parseInt(eim.getProperty("stage1phase"));
//rm.mapMessage(6,"Stage " + stage);
if (status.equals("display")) {
- if(!rm.getReactor().isRecentHitFromAttack()) {
+ if (!rm.getReactor().isRecentHitFromAttack()) {
var prevCombo = eim.getProperty("stage1combo");
var n = "" + (rm.getReactor().getObjectId() % 1000);
prevCombo += padWithZeroes(n, 3);
- eim.setProperty("stage1combo",prevCombo);
+ eim.setProperty("stage1combo", prevCombo);
if (prevCombo.length == (3 * (stage + 3))) { //end of displaying
- eim.setProperty("stage1status","active");
+ eim.setProperty("stage1status", "active");
rm.mapMessage(5, "The combo has been displayed; Proceed with caution.");
- eim.setProperty("stage1guess","");
+ eim.setProperty("stage1guess", "");
}
}
} else { //active
@@ -57,10 +60,10 @@ function act() {
if (prevGuess.length != (3 * (stage + 3))) {
var n = "" + (rm.getReactor().getObjectId() % 1000);
prevGuess += padWithZeroes(n, 3);
-
- eim.setProperty("stage1guess",prevGuess);
+
+ eim.setProperty("stage1guess", prevGuess);
}
- //rm.mapMessage(6,"Current Guess: " + prevGuess);
+ //rm.mapMessage(6,"Current Guess: " + prevGuess);
}
}
}
diff --git a/scripts/reactor/9208002.js b/scripts/reactor/9208002.js
index ee570945dd..aa990eda89 100644
--- a/scripts/reactor/9208002.js
+++ b/scripts/reactor/9208002.js
@@ -26,7 +26,9 @@
*/
function padWithZeroes(n, width) {
- while(n.length < width) n = '0' + n;
+ while (n.length < width) {
+ n = '0' + n;
+ }
return n;
}
@@ -37,16 +39,16 @@ function act() {
if (status != null && !status.equals("waiting")) {
var stage = parseInt(eim.getProperty("stage1phase"));
if (status.equals("display")) {
- if(!rm.getReactor().isRecentHitFromAttack()) {
+ if (!rm.getReactor().isRecentHitFromAttack()) {
var prevCombo = eim.getProperty("stage1combo");
var n = "" + (rm.getReactor().getObjectId() % 1000);
prevCombo += padWithZeroes(n, 3);
- eim.setProperty("stage1combo",prevCombo);
+ eim.setProperty("stage1combo", prevCombo);
if (prevCombo.length == (3 * (stage + 3))) { //end of displaying
- eim.setProperty("stage1status","active");
+ eim.setProperty("stage1status", "active");
rm.mapMessage(5, "The combo has been displayed; Proceed with caution.");
- eim.setProperty("stage1guess","");
+ eim.setProperty("stage1guess", "");
}
}
} else { //active
@@ -54,8 +56,8 @@ function act() {
if (prevGuess.length != (3 * (stage + 3))) {
var n = "" + (rm.getReactor().getObjectId() % 1000);
prevGuess += padWithZeroes(n, 3);
-
- eim.setProperty("stage1guess",prevGuess);
+
+ eim.setProperty("stage1guess", prevGuess);
}
}
}
diff --git a/scripts/reactor/9208004.js b/scripts/reactor/9208004.js
index 8eeceacbee..7b15a2df5a 100644
--- a/scripts/reactor/9208004.js
+++ b/scripts/reactor/9208004.js
@@ -22,5 +22,5 @@
// Stage 2 GP for Guild Quest
function act() {
- rm.getGuild().gainGP(20);
+ rm.getGuild().gainGP(20);
}
diff --git a/scripts/reactor/9208007.js b/scripts/reactor/9208007.js
index 26a3faf8d8..2f44e9086c 100644
--- a/scripts/reactor/9208007.js
+++ b/scripts/reactor/9208007.js
@@ -27,17 +27,17 @@ Stage 2: Spear destinations - Guild Quest
*/
function act() {
- var react = rm.getPlayer().getEventInstance().getMapInstance(990000400).getReactorByName("speargate");
- react.forceHitReactor(react.getState() + 1);
-
- if(react.getState() == 4) {
- var eim = rm.getPlayer().getEventInstance();
+ var react = rm.getPlayer().getEventInstance().getMapInstance(990000400).getReactorByName("speargate");
+ react.forceHitReactor(react.getState() + 1);
- var maps = [990000400, 990000410, 990000420, 990000430, 990000431, 990000440];
- for(var i = 0; i < maps.length; i++) {
- eim.showClearEffect(false, maps[i]);
- }
-
- rm.getGuild().gainGP(20);
+ if (react.getState() == 4) {
+ var eim = rm.getPlayer().getEventInstance();
+
+ var maps = [990000400, 990000410, 990000420, 990000430, 990000431, 990000440];
+ for (var i = 0; i < maps.length; i++) {
+ eim.showClearEffect(false, maps[i]);
}
+
+ rm.getGuild().gainGP(20);
+ }
}
\ No newline at end of file
diff --git a/scripts/reactor/9208009.js b/scripts/reactor/9208009.js
index 0fe5410bb3..0e40d19f08 100644
--- a/scripts/reactor/9208009.js
+++ b/scripts/reactor/9208009.js
@@ -22,7 +22,7 @@
// Opened GPQ boss room, players may now revive and stay on the GPQ
function act() {
- if(rm.getEventInstance() != null) {
- rm.getEventInstance().setProperty("canRevive", "1");
- }
+ if (rm.getEventInstance() != null) {
+ rm.getEventInstance().setProperty("canRevive", "1");
+ }
}
diff --git a/scripts/reactor/9980000.js b/scripts/reactor/9980000.js
index 278c67dfea..adad71d17f 100644
--- a/scripts/reactor/9980000.js
+++ b/scripts/reactor/9980000.js
@@ -1,3 +1,3 @@
function act() {
- rm.dispelAllMonsters(parseInt(rm.getReactor().getName().substring(1,2)), parseInt(rm.getReactor().getName().substring(0,1)));
+ rm.dispelAllMonsters(parseInt(rm.getReactor().getName().substring(1, 2)), parseInt(rm.getReactor().getName().substring(0, 1)));
}
\ No newline at end of file
diff --git a/scripts/reactor/9980001.js b/scripts/reactor/9980001.js
index 278c67dfea..adad71d17f 100644
--- a/scripts/reactor/9980001.js
+++ b/scripts/reactor/9980001.js
@@ -1,3 +1,3 @@
function act() {
- rm.dispelAllMonsters(parseInt(rm.getReactor().getName().substring(1,2)), parseInt(rm.getReactor().getName().substring(0,1)));
+ rm.dispelAllMonsters(parseInt(rm.getReactor().getName().substring(1, 2)), parseInt(rm.getReactor().getName().substring(0, 1)));
}
\ No newline at end of file