Reformat and clean up reactor and base scripts

This commit is contained in:
P0nk
2021-09-09 23:38:09 +02:00
parent 3f43fe82d0
commit d9590078f5
231 changed files with 1192 additions and 1075 deletions

View File

@@ -37,10 +37,11 @@ function action(mode, type, selection) {
cm.dispose(); cm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { if (status == 0) {
cm.sendOk("Sample text."); cm.sendOk("Sample text.");

View File

@@ -33,10 +33,11 @@ function start(mode, type, selection) {
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { if (status == 0) {
qm.sendNext("Sample Text."); qm.sendNext("Sample Text.");
@@ -56,10 +57,11 @@ function end(mode, type, selection) {
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { if (status == 0) {
qm.sendNext("Sample Text."); qm.sendNext("Sample Text.");

View File

@@ -19,14 +19,16 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @Author Crovy /* @Author Crovy
* *
* 1050000.js: Berserk 4th job quest rock - drops a shield or punts you from map. * 1050000.js: Berserk 4th job quest rock - drops a shield or punts you from map.
*/ */
function act() { function act() {
if (Math.random() > 0.7) if (Math.random() > 0.7) {
rm.dropItems(); rm.dropItems();
else } else {
rm.warp(105090200, 0); rm.warp(105090200, 0);
} }
}

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @Author Lerk /* @Author Lerk
* *
* 1072000.js: Kerning Swamp Plant - drops Witchgrass Leaves * 1072000.js: Kerning Swamp Plant - drops Witchgrass Leaves

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
* @Author kevintjuh93 * @Author kevintjuh93
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @Author Lerk /* @Author Lerk
* *
* 2000.js: Maple Island Box - drops various items, notably quest items Old Wooden Board and Rusty Screw * 2000.js: Maple Island Box - drops various items, notably quest items Old Wooden Board and Rusty Screw

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @Author Lerk - Hi :() /* @Author Lerk - Hi :()
* *
* 2001.js: Maple Island Box - drops various items, notably quest items Old Wooden Board and Rusty Screw * 2001.js: Maple Island Box - drops various items, notably quest items Old Wooden Board and Rusty Screw

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*@author Ronan /*@author Ronan
*Nependeath Pot - Spawns Nependeath or Dark Nependeath *Nependeath Pot - Spawns Nependeath or Dark Nependeath
*/ */
@@ -32,8 +33,7 @@ function act() {
rm.spawnMonster(Math.random() >= .6 ? 9300049 : 9300048); rm.spawnMonster(Math.random() >= .6 ? 9300049 : 9300048);
rm.getEventInstance().setProperty("statusStg7_c", nextCount); rm.getEventInstance().setProperty("statusStg7_c", nextCount);
} } else {
else {
rm.spawnMonster(9300049); rm.spawnMonster(9300049);
} }
} }

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*@author Ronan /*@author Ronan
*Nependeath Pot - Spawns Nependeath or Dark Nependeath *Nependeath Pot - Spawns Nependeath or Dark Nependeath
*/ */
@@ -32,8 +33,7 @@ function act() {
rm.spawnMonster(Math.random() >= .6 ? 9300049 : 9300048); rm.spawnMonster(Math.random() >= .6 ? 9300049 : 9300048);
rm.getEventInstance().setProperty("statusStg7_c", nextCount); rm.getEventInstance().setProperty("statusStg7_c", nextCount);
} } else {
else {
rm.spawnMonster(9300049); rm.spawnMonster(9300049);
} }
} }

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @Author Ronan /* @Author Ronan
* *
* 2001002.js: Either spawns a PQ mob or drops the Statue piece. * 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1"); eim.setProperty("statusStg2", "1");
eim.showClearEffect(true); eim.showClearEffect(true);
} } else {
else {
count++; count++;
rm.getEventInstance().setProperty("statusStg2_c", count); rm.getEventInstance().setProperty("statusStg2_c", count);

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @Author Ronan /* @Author Ronan
* *
* 2001002.js: Either spawns a PQ mob or drops the Statue piece. * 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1"); eim.setProperty("statusStg2", "1");
eim.showClearEffect(true); eim.showClearEffect(true);
} } else {
else {
count++; count++;
rm.getEventInstance().setProperty("statusStg2_c", count); rm.getEventInstance().setProperty("statusStg2_c", count);

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @Author Ronan /* @Author Ronan
* *
* 2001002.js: Either spawns a PQ mob or drops the Statue piece. * 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1"); eim.setProperty("statusStg2", "1");
eim.showClearEffect(true); eim.showClearEffect(true);
} } else {
else {
count++; count++;
rm.getEventInstance().setProperty("statusStg2_c", count); rm.getEventInstance().setProperty("statusStg2_c", count);

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @Author Ronan /* @Author Ronan
* *
* 2001002.js: Either spawns a PQ mob or drops the Statue piece. * 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1"); eim.setProperty("statusStg2", "1");
eim.showClearEffect(true); eim.showClearEffect(true);
} } else {
else {
count++; count++;
rm.getEventInstance().setProperty("statusStg2_c", count); rm.getEventInstance().setProperty("statusStg2_c", count);

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @Author Ronan /* @Author Ronan
* *
* 2001002.js: Either spawns a PQ mob or drops the Statue piece. * 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1"); eim.setProperty("statusStg2", "1");
eim.showClearEffect(true); eim.showClearEffect(true);
} } else {
else {
count++; count++;
rm.getEventInstance().setProperty("statusStg2_c", count); rm.getEventInstance().setProperty("statusStg2_c", count);

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @Author Ronan /* @Author Ronan
* *
* 2001002.js: Either spawns a PQ mob or drops the Statue piece. * 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1"); eim.setProperty("statusStg2", "1");
eim.showClearEffect(true); eim.showClearEffect(true);
} } else {
else {
count++; count++;
rm.getEventInstance().setProperty("statusStg2_c", count); rm.getEventInstance().setProperty("statusStg2_c", count);

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @Author Ronan /* @Author Ronan
* *
* 2001002.js: Either spawns a PQ mob or drops the Statue piece. * 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1"); eim.setProperty("statusStg2", "1");
eim.showClearEffect(true); eim.showClearEffect(true);
} } else {
else {
count++; count++;
rm.getEventInstance().setProperty("statusStg2_c", count); rm.getEventInstance().setProperty("statusStg2_c", count);

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @Author Ronan /* @Author Ronan
* *
* 2001002.js: Either spawns a PQ mob or drops the Statue piece. * 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1"); eim.setProperty("statusStg2", "1");
eim.showClearEffect(true); eim.showClearEffect(true);
} } else {
else {
count++; count++;
rm.getEventInstance().setProperty("statusStg2_c", count); rm.getEventInstance().setProperty("statusStg2_c", count);

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @Author Ronan /* @Author Ronan
* *
* 2001002.js: Either spawns a PQ mob or drops the Statue piece. * 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1"); eim.setProperty("statusStg2", "1");
eim.showClearEffect(true); eim.showClearEffect(true);
} } else {
else {
count++; count++;
rm.getEventInstance().setProperty("statusStg2_c", count); rm.getEventInstance().setProperty("statusStg2_c", count);

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @Author Ronan /* @Author Ronan
* *
* 2001002.js: Either spawns a PQ mob or drops the Statue piece. * 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1"); eim.setProperty("statusStg2", "1");
eim.showClearEffect(true); eim.showClearEffect(true);
} } else {
else {
count++; count++;
rm.getEventInstance().setProperty("statusStg2_c", count); rm.getEventInstance().setProperty("statusStg2_c", count);

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @Author Ronan /* @Author Ronan
* *
* 2001002.js: Either spawns a PQ mob or drops the Statue piece. * 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1"); eim.setProperty("statusStg2", "1");
eim.showClearEffect(true); eim.showClearEffect(true);
} } else {
else {
count++; count++;
rm.getEventInstance().setProperty("statusStg2_c", count); rm.getEventInstance().setProperty("statusStg2_c", count);

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @Author Ronan /* @Author Ronan
* *
* 2001002.js: Either spawns a PQ mob or drops the Statue piece. * 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1"); eim.setProperty("statusStg2", "1");
eim.showClearEffect(true); eim.showClearEffect(true);
} } else {
else {
count++; count++;
rm.getEventInstance().setProperty("statusStg2_c", count); rm.getEventInstance().setProperty("statusStg2_c", count);

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @Author Ronan /* @Author Ronan
* *
* 2001002.js: Either spawns a PQ mob or drops the Statue piece. * 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1"); eim.setProperty("statusStg2", "1");
eim.showClearEffect(true); eim.showClearEffect(true);
} } else {
else {
count++; count++;
rm.getEventInstance().setProperty("statusStg2_c", count); rm.getEventInstance().setProperty("statusStg2_c", count);

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @Author Ronan /* @Author Ronan
* *
* 2001002.js: Either spawns a PQ mob or drops the Statue piece. * 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1"); eim.setProperty("statusStg2", "1");
eim.showClearEffect(true); eim.showClearEffect(true);
} } else {
else {
count++; count++;
rm.getEventInstance().setProperty("statusStg2_c", count); rm.getEventInstance().setProperty("statusStg2_c", count);

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*@author Ronan /*@author Ronan
*Nependeath Pot - Spawns Papa Pixie *Nependeath Pot - Spawns Papa Pixie
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @Author Lerk /* @Author Lerk
* *
* 2002000.js: Orbis Box - drops meso, orange/white pots, and Empty Potion Bottles (quest item) * 2002000.js: Orbis Box - drops meso, orange/white pots, and Empty Potion Bottles (quest item)

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*@author Jvlaple /*@author Jvlaple
*2002001.js *2002001.js
*Drops Cloud Piece... *Drops Cloud Piece...

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*2002003.js - Pot of life /*2002003.js - Pot of life
*@author Jvlaple *@author Jvlaple
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @Author Ronan /* @Author Ronan
* *
* 2002013.js: Drops the Statue piece. * 2002013.js: Drops the Statue piece.

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*@author Ronan /*@author Ronan
*Reactor : OrbisPQ Bonus Reactor - 2002014.js *Reactor : OrbisPQ Bonus Reactor - 2002014.js
* Drops all the Bonus Items * Drops all the Bonus Items

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*@author Ronan /*@author Ronan
*Reactor : OrbisPQ Bonus Reactor - 2002017.js *Reactor : OrbisPQ Bonus Reactor - 2002017.js
* Drops all the Bonus Items * Drops all the Bonus Items

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*@author Ronan /*@author Ronan
*Reactor : OrbisPQ Bonus Reactor - 2002018.js *Reactor : OrbisPQ Bonus Reactor - 2002018.js
* Drops all the Bonus Items * Drops all the Bonus Items

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*@author Jvlaple /*@author Jvlaple
* Spawns Eak When 20 Clouds are Dropped. * Spawns Eak When 20 Clouds are Dropped.
*2006000.js *2006000.js

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*@author Ronan /*@author Ronan
*Reactor : Orbis PQ LP Player - 2008006.js *Reactor : Orbis PQ LP Player - 2008006.js
* Makes Chamberlain Eak spawn box. * Makes Chamberlain Eak spawn box.

View File

@@ -26,8 +26,9 @@ function act() {
} }
rm.changeMusic("Bgm06/FinalFight"); rm.changeMusic("Bgm06/FinalFight");
rm.spawnFakeMonster(8800000); rm.spawnFakeMonster(8800000);
for (i=8800003; i<8800011; i++) for (i = 8800003; i < 8800011; i++) {
rm.spawnMonster(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."); rm.mapMessage(5, "Zakum is summoned by the force of Eye of Fire.");
} }

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*Stage 2 Box For LPQ /*Stage 2 Box For LPQ
*@Author Jvlaple *@Author Jvlaple
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*@Author Jvlaple /*@Author Jvlaple
*2201001.js - 3 Blocktopus *2201001.js - 3 Blocktopus
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*Ludi PQ Stage 7 Reactor - 2201002.js /*Ludi PQ Stage 7 Reactor - 2201002.js
*@Author Jvlaple *@Author Jvlaple
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* Ludi PQ Crack Reactor ^_^ /* Ludi PQ Crack Reactor ^_^
*@Author Jvlaple *@Author Jvlaple
*2201003.js *2201003.js

View File

@@ -29,6 +29,7 @@
function act() { function act() {
if (rm.isQuestActive(3238)) { if (rm.isQuestActive(3238)) {
rm.warp(922000020, 0); rm.warp(922000020, 0);
} else {
rm.warp(922000009, 0);
} }
else rm.warp(922000009, 0);
} }

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*2202003.js - Drops pass /*2202003.js - Drops pass
*@Author Jvlaple *@Author Jvlaple
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*@author Jvlaple /*@author Jvlaple
*Reactor : LudiPQ Bonus Reactor - 2202004.js *Reactor : LudiPQ Bonus Reactor - 2202004.js
* Drops all the Bonus Items * Drops all the Bonus Items

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @Author Lerk /* @Author Lerk
* 2212000.js: Plateon Field reactors - Parts 2, Meso, White Pots * 2212000.js: Plateon Field reactors - Parts 2, Meso, White Pots
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @Author Lerk /* @Author Lerk
* *
* 2212001.js: Mecateon Field reactors - Parts 1, Meso, White Pots * 2212001.js: Mecateon Field reactors - Parts 1, Meso, White Pots

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @Author Lerk /* @Author Lerk
* *
* 2212002.js: Mateon Field reactors - Parts 3, Meso, White Pots * 2212002.js: Mateon Field reactors - Parts 3, Meso, White Pots

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @Author Aexr, Ronan /* @Author Aexr, Ronan
* 2401000.js: Horntail's Cave - Summons Horntail. * 2401000.js: Horntail's Cave - Summons Horntail.
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
*2408002.js *2408002.js
*Key Warp for Horn Tail PQ [HTPQ] *Key Warp for Horn Tail PQ [HTPQ]

View File

@@ -20,6 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
function act() { function act() {
if (rm.getPlayer().getMap().getId() / 100 % 100 != 38) if (rm.getPlayer().getMap().getId() / 100 % 100 != 38) {
rm.warp(rm.getPlayer().getMap().getId() + 100); rm.warp(rm.getPlayer().getMap().getId() + 100);
} }
}

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
2511000- Reactor for PPQ [Pirate PQ] 2511000- Reactor for PPQ [Pirate PQ]
@author Jvlaple @author Jvlaple

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*Pirate PQ Reactor - Spawns 6 of each Pirate when opened. /*Pirate PQ Reactor - Spawns 6 of each Pirate when opened.
*@author Jvlaple *@author Jvlaple
*2511001.js *2511001.js

View File

@@ -19,13 +19,16 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*2512000.js /*2512000.js
*@Author Jvlaple *@Author Jvlaple
*Pirate PQ Reactor *Pirate PQ Reactor
*/ */
function passedGrindMode(map, eim) { function passedGrindMode(map, eim) {
if(eim.getIntProperty("grindMode") == 0) return true; if (eim.getIntProperty("grindMode") == 0) {
return true;
}
return eim.activatedAllReactorsOnMap(map, 2511000, 2517999); return eim.activatedAllReactorsOnMap(map, 2511000, 2517999);
} }

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*2512001.js /*2512001.js
*@Author Ronan *@Author Ronan
*Pirate PQ Treasure chest *Pirate PQ Treasure chest

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*2516000.js - Reactor used to summon Wu Yang. /*2516000.js - Reactor used to summon Wu Yang.
*@author Jvlaple *@author Jvlaple
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*2519000.js - Reactor used at the door on stage 4. /*2519000.js - Reactor used at the door on stage 4.
*@author Ronan *@author Ronan
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*2519001.js - Reactor used at the door on stage 4. /*2519001.js - Reactor used at the door on stage 4.
*@author Ronan *@author Ronan
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*2519002.js - Reactor used at the door on stage 4. /*2519002.js - Reactor used at the door on stage 4.
*@author Ronan *@author Ronan
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*2519003.js - Reactor used at the door on stage 4. /*2519003.js - Reactor used at the door on stage 4.
*@author Ronan *@author Ronan
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*2612004.js - Queen's treasure room /*2612004.js - Queen's treasure room
*@author Ronan *@author Ronan
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*2612000.js - MagatiaPQ Box /*2612000.js - MagatiaPQ Box
*@author Ronan *@author Ronan
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*2612001.js - MagatiaPQ Box /*2612001.js - MagatiaPQ Box
*@author Ronan *@author Ronan
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*2612002.js - MagatiaPQ Box /*2612002.js - MagatiaPQ Box
*@author Ronan *@author Ronan
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*2612003.js - MagatiaPQ Box /*2612003.js - MagatiaPQ Box
*@author Ronan *@author Ronan
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*2612004.js - Zenumist crystal /*2612004.js - Zenumist crystal
*@author Ronan *@author Ronan
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*2618000.js - MagatiaPQ Beaker /*2618000.js - MagatiaPQ Beaker
*@author Ronan *@author Ronan
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*2618000.js - MagatiaPQ Beaker /*2618000.js - MagatiaPQ Beaker
*@author Ronan *@author Ronan
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*2618000.js - MagatiaPQ Beaker /*2618000.js - MagatiaPQ Beaker
*@author Ronan *@author Ronan
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*2619000.js - Zenumist crystal /*2619000.js - Zenumist crystal
*@author Ronan *@author Ronan
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*3002000.js - Pond at Ellin PQ. /*3002000.js - Pond at Ellin PQ.
*@author Ronan *@author Ronan
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*@author Ronan /*@author Ronan
*6102002.js *6102002.js
*Drops CWKPQ chest bonuses... *Drops CWKPQ chest bonuses...

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*@author Ronan /*@author Ronan
*6102003.js *6102003.js
*Drops CWKPQ chest bonuses... *Drops CWKPQ chest bonuses...

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*@author Ronan /*@author Ronan
*6102004.js *6102004.js
*Drops CWKPQ chest bonuses... *Drops CWKPQ chest bonuses...

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*@author Ronan /*@author Ronan
*6102005.js *6102005.js
*Drops CWKPQ chest bonuses... *Drops CWKPQ chest bonuses...

View File

@@ -9,13 +9,17 @@ function action() {
function touch() { function touch() {
var eim = rm.getEventInstance(); var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 5) action(); if (eim.getIntProperty(fid) == 5) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) + 1); eim.setIntProperty(fid, eim.getIntProperty(fid) + 1);
} }
function untouch() { function untouch() {
var eim = rm.getEventInstance(); var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 5) action(); if (eim.getIntProperty(fid) == 5) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1); eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
} }

View File

@@ -10,13 +10,17 @@ var fid = "glpq_f0";
function touch() { function touch() {
var eim = rm.getEventInstance(); var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 0) action(); if (eim.getIntProperty(fid) == 0) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) + 1); eim.setIntProperty(fid, eim.getIntProperty(fid) + 1);
} }
function untouch() { function untouch() {
var eim = rm.getEventInstance(); var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 1) action(); if (eim.getIntProperty(fid) == 1) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1); eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
} }

View File

@@ -10,13 +10,17 @@ var fid = "glpq_f1";
function touch() { function touch() {
var eim = rm.getEventInstance(); var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 0) action(); if (eim.getIntProperty(fid) == 0) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) + 1); eim.setIntProperty(fid, eim.getIntProperty(fid) + 1);
} }
function untouch() { function untouch() {
var eim = rm.getEventInstance(); var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 1) action(); if (eim.getIntProperty(fid) == 1) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1); eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
} }

View File

@@ -10,13 +10,17 @@ var fid = "glpq_f2";
function touch() { function touch() {
var eim = rm.getEventInstance(); var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 0) action(); if (eim.getIntProperty(fid) == 0) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) + 1); eim.setIntProperty(fid, eim.getIntProperty(fid) + 1);
} }
function untouch() { function untouch() {
var eim = rm.getEventInstance(); var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 1) action(); if (eim.getIntProperty(fid) == 1) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1); eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
} }

View File

@@ -10,13 +10,17 @@ var fid = "glpq_f3";
function touch() { function touch() {
var eim = rm.getEventInstance(); var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 0) action(); if (eim.getIntProperty(fid) == 0) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) + 1); eim.setIntProperty(fid, eim.getIntProperty(fid) + 1);
} }
function untouch() { function untouch() {
var eim = rm.getEventInstance(); var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 1) action(); if (eim.getIntProperty(fid) == 1) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1); eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
} }

View File

@@ -10,13 +10,17 @@ var fid = "glpq_f4";
function touch() { function touch() {
var eim = rm.getEventInstance(); var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 0) action(); if (eim.getIntProperty(fid) == 0) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) + 1); eim.setIntProperty(fid, eim.getIntProperty(fid) + 1);
} }
function untouch() { function untouch() {
var eim = rm.getEventInstance(); var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 1) action(); if (eim.getIntProperty(fid) == 1) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1); eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
} }

View File

@@ -10,13 +10,17 @@ var fid = "glpq_f5";
function touch() { function touch() {
var eim = rm.getEventInstance(); var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 0) action(); if (eim.getIntProperty(fid) == 0) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) + 1); eim.setIntProperty(fid, eim.getIntProperty(fid) + 1);
} }
function untouch() { function untouch() {
var eim = rm.getEventInstance(); var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 1) action(); if (eim.getIntProperty(fid) == 1) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1); eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
} }

View File

@@ -10,13 +10,17 @@ var fid = "glpq_f6";
function touch() { function touch() {
var eim = rm.getEventInstance(); var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 0) action(); if (eim.getIntProperty(fid) == 0) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) + 1); eim.setIntProperty(fid, eim.getIntProperty(fid) + 1);
} }
function untouch() { function untouch() {
var eim = rm.getEventInstance(); var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 1) action(); if (eim.getIntProperty(fid) == 1) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1); eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
} }

View File

@@ -10,13 +10,17 @@ var fid = "glpq_f7";
function touch() { function touch() {
var eim = rm.getEventInstance(); var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 0) action(); if (eim.getIntProperty(fid) == 0) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) + 1); eim.setIntProperty(fid, eim.getIntProperty(fid) + 1);
} }
function untouch() { function untouch() {
var eim = rm.getEventInstance(); var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 1) action(); if (eim.getIntProperty(fid) == 1) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1); eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
} }

View File

@@ -26,7 +26,9 @@
function act() { function act() {
rand = Math.floor(Math.random() * 4); rand = Math.floor(Math.random() * 4);
if (rand < 1) rand = 1; if (rand < 1) {
rand = 1;
}
//We'll make it drop a lot of crap :D //We'll make it drop a lot of crap :D
for (var i = 0; i < rand; i++) { for (var i = 0; i < rand; i++) {
rm.sprayItems(true, 1, 30, 60, 15); rm.sprayItems(true, 1, 30, 60, 15);

View File

@@ -26,7 +26,9 @@
function act() { function act() {
rand = Math.floor(Math.random() * 4); rand = Math.floor(Math.random() * 4);
if (rand < 1) rand = 1; if (rand < 1) {
rand = 1;
}
//We'll make it drop a lot of crap :D //We'll make it drop a lot of crap :D
for (var i = 0; i < rand; i++) { for (var i = 0; i < rand; i++) {
rm.sprayItems(true, 1, 30, 60, 15); rm.sprayItems(true, 1, 30, 60, 15);

View File

@@ -26,7 +26,9 @@
function act() { function act() {
rand = Math.floor(Math.random() * 4); rand = Math.floor(Math.random() * 4);
if (rand < 1) rand = 1; if (rand < 1) {
rand = 1;
}
//We'll make it drop a lot of crap :D //We'll make it drop a lot of crap :D
for (var i = 0; i < rand; i++) { for (var i = 0; i < rand; i++) {
rm.sprayItems(true, 1, 30, 60, 15); rm.sprayItems(true, 1, 30, 60, 15);

View File

@@ -26,7 +26,9 @@
function act() { function act() {
rand = Math.floor(Math.random() * 4); rand = Math.floor(Math.random() * 4);
if (rand < 1) rand = 1; if (rand < 1) {
rand = 1;
}
//We'll make it drop a lot of crap :D //We'll make it drop a lot of crap :D
for (var i = 0; i < rand; i++) { for (var i = 0; i < rand; i++) {
rm.sprayItems(true, 1, 30, 60, 15); rm.sprayItems(true, 1, 30, 60, 15);

View File

@@ -26,7 +26,9 @@
function act() { function act() {
rand = Math.floor(Math.random() * 4); rand = Math.floor(Math.random() * 4);
if (rand < 1) rand = 1; if (rand < 1) {
rand = 1;
}
//We'll make it drop a lot of crap :D //We'll make it drop a lot of crap :D
for (var i = 0; i < rand; i++) { for (var i = 0; i < rand; i++) {
rm.sprayItems(true, 1, 30, 60, 15); rm.sprayItems(true, 1, 30, 60, 15);

View File

@@ -26,7 +26,9 @@
function act() { function act() {
rand = Math.floor(Math.random() * 4); rand = Math.floor(Math.random() * 4);
if (rand < 1) rand = 1; if (rand < 1) {
rand = 1;
}
//We'll make it drop a lot of crap :D //We'll make it drop a lot of crap :D
for (var i = 0; i < rand; i++) { for (var i = 0; i < rand; i++) {
rm.sprayItems(true, 1, 30, 60, 15); rm.sprayItems(true, 1, 30, 60, 15);

View File

@@ -26,7 +26,9 @@
function act() { function act() {
rand = Math.floor(Math.random() * 4); rand = Math.floor(Math.random() * 4);
if (rand < 1) rand = 1; if (rand < 1) {
rand = 1;
}
//We'll make it drop a lot of crap :D //We'll make it drop a lot of crap :D
for (var i = 0; i < rand; i++) { for (var i = 0; i < rand; i++) {
rm.sprayItems(true, 1, 30, 60, 15); rm.sprayItems(true, 1, 30, 60, 15);

View File

@@ -26,7 +26,9 @@
function act() { function act() {
rand = Math.floor(Math.random() * 4); rand = Math.floor(Math.random() * 4);
if (rand < 1) rand = 1; if (rand < 1) {
rand = 1;
}
//We'll make it drop a lot of crap :D //We'll make it drop a lot of crap :D
for (var i = 0; i < rand; i++) { for (var i = 0; i < rand; i++) {
rm.sprayItems(true, 1, 30, 60, 15); rm.sprayItems(true, 1, 30, 60, 15);

View File

@@ -26,7 +26,9 @@
function act() { function act() {
rand = Math.floor(Math.random() * 4); rand = Math.floor(Math.random() * 4);
if (rand < 1) rand = 1; if (rand < 1) {
rand = 1;
}
//We'll make it drop a lot of crap :D //We'll make it drop a lot of crap :D
for (var i = 0; i < rand; i++) { for (var i = 0; i < rand; i++) {
rm.sprayItems(true, 1, 30, 60, 15); rm.sprayItems(true, 1, 30, 60, 15);

View File

@@ -26,7 +26,9 @@
function act() { function act() {
rand = Math.floor(Math.random() * 4); rand = Math.floor(Math.random() * 4);
if (rand < 1) rand = 1; if (rand < 1) {
rand = 1;
}
//We'll make it drop a lot of crap :D //We'll make it drop a lot of crap :D
for (var i = 0; i < rand; i++) { for (var i = 0; i < rand; i++) {
rm.sprayItems(true, 1, 30, 60, 15); rm.sprayItems(true, 1, 30, 60, 15);

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
* @author RMZero213 - base * @author RMZero213 - base
* @author Moogra - fixed and clean up * @author Moogra - fixed and clean up

View File

@@ -1,4 +1,3 @@
function act() { function act() {
var eim = rm.getEventInstance(); var eim = rm.getEventInstance();
if (eim != null) { if (eim != null) {

View File

@@ -1,4 +1,3 @@
function act() { function act() {
var eim = rm.getEventInstance(); var eim = rm.getEventInstance();
if (eim != null) { if (eim != null) {

View File

@@ -1,4 +1,3 @@
function act() { function act() {
var eim = rm.getEventInstance(); var eim = rm.getEventInstance();
if (eim != null) { if (eim != null) {

View File

@@ -1,4 +1,3 @@
function act() { function act() {
var eim = rm.getEventInstance(); var eim = rm.getEventInstance();
if (eim != null) { if (eim != null) {

View File

@@ -1,4 +1,3 @@
function act() { function act() {
var eim = rm.getEventInstance(); var eim = rm.getEventInstance();
if (eim != null) { if (eim != null) {

View File

@@ -1,4 +1,3 @@
function act() { function act() {
var eim = rm.getEventInstance(); var eim = rm.getEventInstance();
if (eim != null) { if (eim != null) {

View File

@@ -26,7 +26,9 @@
*/ */
function padWithZeroes(n, width) { function padWithZeroes(n, width) {
while(n.length < width) n = '0' + n; while (n.length < width) {
n = '0' + n;
}
return n; return n;
} }

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @Author Lerk /* @Author Lerk
* *
* 9208001.js: Guild Quest - Gatekeeper Puzzle Reactor * 9208001.js: Guild Quest - Gatekeeper Puzzle Reactor
@@ -27,7 +28,9 @@
function padWithZeroes(n, width) { function padWithZeroes(n, width) {
while(n.length < width) n = '0' + n; while (n.length < width) {
n = '0' + n;
}
return n; return n;
} }

View File

@@ -26,7 +26,9 @@
*/ */
function padWithZeroes(n, width) { function padWithZeroes(n, width) {
while(n.length < width) n = '0' + n; while (n.length < width) {
n = '0' + n;
}
return n; return n;
} }