Implemented Orbis PQ.
This commit is contained in:
ronancpl
2017-06-11 00:12:11 -03:00
parent dbac58e871
commit 1afbac2429
142 changed files with 2600 additions and 539 deletions

3
scripts/reactor/200.js Normal file
View File

@@ -0,0 +1,3 @@
function act() {
rm.dropItems();
}

View File

@@ -19,10 +19,22 @@
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
*Nependath Pot - Spawns Nependath or Dark Nependath
/*@author Ronan
*Nependeath Pot - Spawns Nependeath or Dark Nependeath
*/
function act() {
rm.spawnMonster(Math.random() > .6 ? 9300049 : 9300048);
if(rm.getMap().getSummonState()) {
var count = Number(rm.getEventInstance().getIntProperty("statusStg7_c"));
if(count < 7) {
var nextCount = (count + 1);
rm.spawnMonster(Math.random() >= .6 ? 9300049 : 9300048);
rm.getEventInstance().setProperty("statusStg7_c", nextCount);
}
else {
rm.spawnMonster(9300049);
}
}
}

View File

@@ -0,0 +1,40 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
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
*/
function act() {
if(rm.getMap().getSummonState()) {
var count = Number(rm.getEventInstance().getIntProperty("statusStg7_c"));
if(count < 7) {
var nextCount = (count + 1);
rm.spawnMonster(Math.random() >= .6 ? 9300049 : 9300048);
rm.getEventInstance().setProperty("statusStg7_c", nextCount);
}
else {
rm.spawnMonster(9300049);
}
}
}

View File

@@ -0,0 +1,55 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
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.
*/
function act() {
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) {
rm.dropItems();
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
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);
}
}

View File

@@ -0,0 +1,55 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
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.
*/
function act() {
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) {
rm.dropItems();
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
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);
}
}

View File

@@ -0,0 +1,55 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
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.
*/
function act() {
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) {
rm.dropItems();
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
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);
}
}

View File

@@ -0,0 +1,55 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
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.
*/
function act() {
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) {
rm.dropItems();
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
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);
}
}

View File

@@ -0,0 +1,55 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
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.
*/
function act() {
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) {
rm.dropItems();
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
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);
}
}

View File

@@ -0,0 +1,55 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
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.
*/
function act() {
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) {
rm.dropItems();
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
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);
}
}

View File

@@ -0,0 +1,55 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
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.
*/
function act() {
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) {
rm.dropItems();
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
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);
}
}

View File

@@ -0,0 +1,55 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
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.
*/
function act() {
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) {
rm.dropItems();
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
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);
}
}

View File

@@ -0,0 +1,55 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
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.
*/
function act() {
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) {
rm.dropItems();
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
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);
}
}

View File

@@ -0,0 +1,55 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
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.
*/
function act() {
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) {
rm.dropItems();
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
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);
}
}

View File

@@ -0,0 +1,55 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
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.
*/
function act() {
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) {
rm.dropItems();
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
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);
}
}

View File

@@ -0,0 +1,55 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
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.
*/
function act() {
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) {
rm.dropItems();
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
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);
}
}

View File

@@ -0,0 +1,55 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
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.
*/
function act() {
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) {
rm.dropItems();
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
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);
}
}

View File

@@ -0,0 +1,55 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
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.
*/
function act() {
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) {
rm.dropItems();
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
eim.setProperty("statusStg2", "1");
eim.showClearEffect(true);
}
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);
}
}

View File

@@ -0,0 +1,31 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
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
*/
function act() {
rm.getMap().killAllMonstersNotFriendly();
rm.getMap().allowSummonState(false);
rm.spawnMonster(9300039, 260, 490);
rm.mapMessage(5, "As the air on the tower outskirts starts to become more dense, Papa Pixie appears.");
}

View File

@@ -25,4 +25,9 @@
function act() {
rm.dropItems();
var eim = rm.getEventInstance();
eim.giveEventPlayersExp(3500);
eim.setProperty("statusStg7", "1");
eim.showClearEffect(true);
}

View File

@@ -0,0 +1,29 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
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.
*/
function act() {
rm.dropItems();
}

View File

@@ -19,16 +19,17 @@
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 : Orbis PQ Bonus Reactor - 2002014.js
/*@author Ronan
*Reactor : OrbisPQ Bonus Reactor - 2002014.js
* Drops all the Bonus Items
*/
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<rand; i++) {
rm.dropItems(true, 1, 30, 60, 15);
}
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");
}
}

View File

@@ -0,0 +1,29 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
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 - 2202004.js
* Drops all the Bonus Items
*/
function act() {
rm.dropItems(true, 1, 100, 400, 15);
}

View File

@@ -20,10 +20,14 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/**
*2006001.js - Spawns Minevra
*2006001.js - Spawns Minerva
*@author Jvlaple
*/
function act() {
rm.spawnNpc(2013002);
rm.getEventInstance().clearPQ();
rm.getEventInstance().setProperty("statusStg8", "1");
rm.getEventInstance().startEventTimer(10 * 60000); //bonus time
}

View File

@@ -0,0 +1,29 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
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.
*/
function act() {
rm.getEventInstance().setProperty("statusStg3", "0");
}