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();
return;
}
if (mode == 1)
if (mode == 1) {
status++;
else
} else {
status--;
}
if (status == 0) {
cm.sendOk("Sample text.");

View File

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

View File

@@ -19,14 +19,16 @@
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/>.
*/
/* @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);
}
}

View File

@@ -19,6 +19,7 @@
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/>.
*/
/* @Author Lerk
*
* 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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* @Author kevintjuh93
*/

View File

@@ -19,6 +19,7 @@
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/>.
*/
/* @Author Lerk
*
* 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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* @Author Lerk - Hi :()
*
* 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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*@author Ronan
*Nependeath Pot - Spawns Nependeath or Dark Nependeath
*/
@@ -32,8 +33,7 @@ function act() {
rm.spawnMonster(Math.random() >= .6 ? 9300049 : 9300048);
rm.getEventInstance().setProperty("statusStg7_c", nextCount);
}
else {
} else {
rm.spawnMonster(9300049);
}
}

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*@author Ronan
*Nependeath Pot - Spawns Nependeath or Dark Nependeath
*/
@@ -32,8 +33,7 @@ function act() {
rm.spawnMonster(Math.random() >= .6 ? 9300049 : 9300048);
rm.getEventInstance().setProperty("statusStg7_c", nextCount);
}
else {
} else {
rm.spawnMonster(9300049);
}
}

View File

@@ -19,6 +19,7 @@
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/>.
*/
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
else {
} else {
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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
else {
} else {
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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
else {
} else {
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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
else {
} else {
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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
else {
} else {
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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
else {
} else {
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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
else {
} else {
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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
else {
} else {
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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
else {
} else {
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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
else {
} else {
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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
else {
} else {
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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
else {
} else {
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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
else {
} else {
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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* @Author Ronan
*
* 2001002.js: Either spawns a PQ mob or drops the Statue piece.
@@ -42,8 +43,7 @@ function act() {
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
else {
} else {
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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*@author Ronan
*Nependeath Pot - Spawns Papa Pixie
*/

View File

@@ -19,6 +19,7 @@
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/>.
*/
/* @Author Lerk
*
* 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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*@author Jvlaple
*2002001.js
*Drops Cloud Piece...

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*2002003.js - Pot of life
*@author Jvlaple
*/

View File

@@ -19,6 +19,7 @@
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/>.
*/
/* @Author Ronan
*
* 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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*@author Ronan
*Reactor : OrbisPQ Bonus Reactor - 2002014.js
* Drops all the Bonus Items

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*@author Ronan
*Reactor : OrbisPQ Bonus Reactor - 2002017.js
* Drops all the Bonus Items

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*@author Ronan
*Reactor : OrbisPQ Bonus Reactor - 2002018.js
* Drops all the Bonus Items

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*@author Jvlaple
* Spawns Eak When 20 Clouds are Dropped.
*2006000.js

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*@author Ronan
*Reactor : Orbis PQ LP Player - 2008006.js
* Makes Chamberlain Eak spawn box.

View File

@@ -26,8 +26,9 @@ function act() {
}
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.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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*Stage 2 Box For LPQ
*@Author Jvlaple
*/

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*@Author Jvlaple
*2201001.js - 3 Blocktopus
*/

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*Ludi PQ Stage 7 Reactor - 2201002.js
*@Author Jvlaple
*/

View File

@@ -19,6 +19,7 @@
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/>.
*/
/* Ludi PQ Crack Reactor ^_^
*@Author Jvlaple
*2201003.js

View File

@@ -29,6 +29,7 @@
function act() {
if (rm.isQuestActive(3238)) {
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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*2202003.js - Drops pass
*@Author Jvlaple
*/

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*@author Jvlaple
*Reactor : LudiPQ Bonus Reactor - 2202004.js
* Drops all the Bonus Items

View File

@@ -19,6 +19,7 @@
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/>.
*/
/* @Author Lerk
* 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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* @Author Lerk
*
* 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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* @Author Lerk
*
* 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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* @Author Aexr, Ronan
* 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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
*2408002.js
*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/>.
*/
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);
}
}

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*
2511000- Reactor for PPQ [Pirate PQ]
@author Jvlaple

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*Pirate PQ Reactor - Spawns 6 of each Pirate when opened.
*@author Jvlaple
*2511001.js

View File

@@ -19,13 +19,16 @@
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/>.
*/
/*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);
}

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*2512001.js
*@Author Ronan
*Pirate PQ Treasure chest

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*2516000.js - Reactor used to summon Wu Yang.
*@author Jvlaple
*/

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*2519000.js - Reactor used at the door on stage 4.
*@author Ronan
*/

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*2519001.js - Reactor used at the door on stage 4.
*@author Ronan
*/

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*2519002.js - Reactor used at the door on stage 4.
*@author Ronan
*/

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*2519003.js - Reactor used at the door on stage 4.
*@author Ronan
*/

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*2612004.js - Queen's treasure room
*@author Ronan
*/

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*2612000.js - MagatiaPQ Box
*@author Ronan
*/

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*2612001.js - MagatiaPQ Box
*@author Ronan
*/

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*2612002.js - MagatiaPQ Box
*@author Ronan
*/

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*2612003.js - MagatiaPQ Box
*@author Ronan
*/

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*2612004.js - Zenumist crystal
*@author Ronan
*/

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*2618000.js - MagatiaPQ Beaker
*@author Ronan
*/

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*2618000.js - MagatiaPQ Beaker
*@author Ronan
*/

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*2618000.js - MagatiaPQ Beaker
*@author Ronan
*/

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*2619000.js - Zenumist crystal
*@author Ronan
*/

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*3002000.js - Pond at Ellin PQ.
*@author Ronan
*/

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*@author Ronan
*6102002.js
*Drops CWKPQ chest bonuses...

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*@author Ronan
*6102003.js
*Drops CWKPQ chest bonuses...

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*@author Ronan
*6102004.js
*Drops CWKPQ chest bonuses...

View File

@@ -19,6 +19,7 @@
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/>.
*/
/*@author Ronan
*6102005.js
*Drops CWKPQ chest bonuses...

View File

@@ -9,13 +9,17 @@ function action() {
function touch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 5) action();
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();
if (eim.getIntProperty(fid) == 5) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}

View File

@@ -10,13 +10,17 @@ var fid = "glpq_f0";
function touch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 0) action();
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();
if (eim.getIntProperty(fid) == 1) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}

View File

@@ -10,13 +10,17 @@ var fid = "glpq_f1";
function touch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 0) action();
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();
if (eim.getIntProperty(fid) == 1) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}

View File

@@ -10,13 +10,17 @@ var fid = "glpq_f2";
function touch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 0) action();
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();
if (eim.getIntProperty(fid) == 1) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}

View File

@@ -10,13 +10,17 @@ var fid = "glpq_f3";
function touch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 0) action();
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();
if (eim.getIntProperty(fid) == 1) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}

View File

@@ -10,13 +10,17 @@ var fid = "glpq_f4";
function touch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 0) action();
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();
if (eim.getIntProperty(fid) == 1) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}

View File

@@ -10,13 +10,17 @@ var fid = "glpq_f5";
function touch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 0) action();
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();
if (eim.getIntProperty(fid) == 1) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}

View File

@@ -10,13 +10,17 @@ var fid = "glpq_f6";
function touch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 0) action();
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();
if (eim.getIntProperty(fid) == 1) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}

View File

@@ -10,13 +10,17 @@ var fid = "glpq_f7";
function touch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 0) action();
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();
if (eim.getIntProperty(fid) == 1) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}

View File

@@ -26,7 +26,9 @@
function act() {
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
for (var i = 0; i < rand; i++) {
rm.sprayItems(true, 1, 30, 60, 15);

View File

@@ -26,7 +26,9 @@
function act() {
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
for (var i = 0; i < rand; i++) {
rm.sprayItems(true, 1, 30, 60, 15);

View File

@@ -26,7 +26,9 @@
function act() {
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
for (var i = 0; i < rand; i++) {
rm.sprayItems(true, 1, 30, 60, 15);

View File

@@ -26,7 +26,9 @@
function act() {
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
for (var i = 0; i < rand; i++) {
rm.sprayItems(true, 1, 30, 60, 15);

View File

@@ -26,7 +26,9 @@
function act() {
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
for (var i = 0; i < rand; i++) {
rm.sprayItems(true, 1, 30, 60, 15);

View File

@@ -26,7 +26,9 @@
function act() {
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
for (var i = 0; i < rand; i++) {
rm.sprayItems(true, 1, 30, 60, 15);

View File

@@ -26,7 +26,9 @@
function act() {
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
for (var i = 0; i < rand; i++) {
rm.sprayItems(true, 1, 30, 60, 15);

View File

@@ -26,7 +26,9 @@
function act() {
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
for (var i = 0; i < rand; i++) {
rm.sprayItems(true, 1, 30, 60, 15);

View File

@@ -26,7 +26,9 @@
function act() {
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
for (var i = 0; i < rand; i++) {
rm.sprayItems(true, 1, 30, 60, 15);

View File

@@ -26,7 +26,9 @@
function act() {
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
for (var i = 0; i < rand; i++) {
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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* @author RMZero213 - base
* @author Moogra - fixed and clean up

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -19,6 +19,7 @@
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/>.
*/
/* @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;
}

View File

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