New PQ: Boss Rush PQ + Ellin/PiratePQ bug fixes
Introducing Boss Rush PQ. Corrected a few issues regarding rewardings in PiratePQ and EllinPQ and implemented a standardized way to script PQs.
This commit is contained in:
@@ -15,11 +15,11 @@ function enter(pi) {
|
||||
|
||||
boss.changeDifficulty(level, true);
|
||||
|
||||
pi.getMap(925100500).spawnMonster(boss);
|
||||
pi.getMap(925100500).spawnMonsterOnGroundBelow(boss, new java.awt.Point(777, 140));
|
||||
pi.warpParty(925100500); //next
|
||||
return(true);
|
||||
} else {
|
||||
pi.playerMessage(5, "The leader must be here");
|
||||
pi.playerMessage(5, "The leader must be here.");
|
||||
return(false);
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -42,5 +42,5 @@ function spawnMob(x, y, id, map) {
|
||||
return;
|
||||
|
||||
var mob = MapleLifeFactory.getMonster(id);
|
||||
map.spawnMonsterOnGroudBelow(mob, new java.awt.Point(x, y));
|
||||
map.spawnMonsterOnGroundBelow(mob, new java.awt.Point(x, y));
|
||||
}
|
||||
@@ -38,5 +38,5 @@ function spawnMob(x, y, id, map) {
|
||||
return;
|
||||
|
||||
var mob = MapleLifeFactory.getMonster(id);
|
||||
map.spawnMonsterOnGroudBelow(mob, new java.awt.Point(x, y));
|
||||
map.spawnMonsterOnGroundBelow(mob, new java.awt.Point(x, y));
|
||||
}
|
||||
@@ -44,5 +44,5 @@ function spawnMob(x, y, id, map) {
|
||||
return;
|
||||
|
||||
var mob = MapleLifeFactory.getMonster(id);
|
||||
map.spawnMonsterOnGroudBelow(mob, new java.awt.Point(x, y));
|
||||
map.spawnMonsterOnGroundBelow(mob, new java.awt.Point(x, y));
|
||||
}
|
||||
@@ -1,9 +1,17 @@
|
||||
function enter(pi) {
|
||||
if ((pi.getMap().getMonsters().size() == 0 || pi.getMap().getMonsterById(9300183) != null) && (pi.getMap().getReactorByName("") == null || pi.getMap().getReactorByName("").getState() == 1)) {
|
||||
pi.warp(930000800,0);
|
||||
return true;
|
||||
} else {
|
||||
pi.playerMessage(5, "Please eliminate the Poison Golem.");
|
||||
if ((pi.getMap().getMonsters().size() == 0 || pi.getMap().getMonsterById(9300183) != null) && (pi.getMap().getReactorByName("") == null || pi.getMap().getReactorByName("").getState() == 1)) {
|
||||
if(pi.isLeader()) {
|
||||
pi.clearPQ(930000800);
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
pi.playerMessage(5, "Wait for the leader to pass through the portal.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
pi.playerMessage(5, "Please eliminate the Poison Golem.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
41
scripts/portal/raid_stage.js
Normal file
41
scripts/portal/raid_stage.js
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
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 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/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
BossRushPQ - Next Stage
|
||||
@author Ronan
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
if(pi.getMap().getMonsters().size() == 0) {
|
||||
var nextStage;
|
||||
|
||||
if(pi.getMapId() % 5 == 0) nextStage = pi.getMapId() + 100;
|
||||
else nextStage = 970030001 + (pi.getMapId() - 970030100 / 500);
|
||||
|
||||
pi.warp(nextStage);
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
pi.getPlayer().dropMessage(6, "Defeat all monsters before proceeding to the next stage.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
4
scripts/portal/raidout.js
Normal file
4
scripts/portal/raidout.js
Normal file
@@ -0,0 +1,4 @@
|
||||
function enter(pi) {
|
||||
pi.warp(100000000,0);
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user