Merge branch 'master' of https://github.com/ronancpl/HeavenMS into credits_update
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
function enter(pi) {
|
||||
if ( pi.getPlayer().getTeam() == 0 ) {
|
||||
pi.warp( pi.getMapId() - 100);
|
||||
} else {
|
||||
pi.warp( pi.getMapId() - 100);
|
||||
}
|
||||
pi.playPortalSound();
|
||||
pi.warp( pi.getMapId() - 100);
|
||||
return true;
|
||||
}
|
||||
@@ -32,7 +32,7 @@ function enter(pi) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warpParty(dungeonid + i);
|
||||
pi.warpParty(dungeonid + i, "out00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,7 @@ function enter(pi) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(dungeonid + i);
|
||||
pi.warp(dungeonid + i, "out00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ function enter(pi) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warpParty(dungeonid + i);
|
||||
pi.warpParty(dungeonid + i, "out00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -46,7 +46,7 @@ function enter(pi) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(dungeonid + i);
|
||||
pi.warp(dungeonid + i, "out00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ function enter(pi) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warpParty(dungeonid + i);
|
||||
pi.warpParty(dungeonid + i, "out00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -46,7 +46,7 @@ function enter(pi) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(dungeonid + i);
|
||||
pi.warp(dungeonid + i, "out00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ function enter(pi) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warpParty(dungeonid + i);
|
||||
pi.warpParty(dungeonid + i, "out00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -46,7 +46,7 @@ function enter(pi) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(dungeonid + i);
|
||||
pi.warp(dungeonid + i, "out00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ function enter(pi) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warpParty(dungeonid + i);
|
||||
pi.warpParty(dungeonid + i, "out00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -46,7 +46,7 @@ function enter(pi) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(dungeonid + i);
|
||||
pi.warp(dungeonid + i, "out00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ function enter(pi) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warpParty(dungeonid + i);
|
||||
pi.warpParty(dungeonid + i, "out00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -46,7 +46,7 @@ function enter(pi) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(dungeonid + i);
|
||||
pi.warp(dungeonid + i, "out00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ function enter(pi) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warpParty(dungeonid + i);
|
||||
pi.warpParty(dungeonid + i, "out00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,7 @@ function enter(pi) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(dungeonid + i);
|
||||
pi.warp(dungeonid + i, "out00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ function enter(pi) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warpParty(dungeonid + i);
|
||||
pi.warpParty(dungeonid + i, "out00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,7 @@ function enter(pi) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(dungeonid + i);
|
||||
pi.warp(dungeonid + i, "out00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ function enter(pi) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warpParty(dungeonid + i);
|
||||
pi.warpParty(dungeonid + i, "out00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,7 @@ function enter(pi) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(dungeonid + i);
|
||||
pi.warp(dungeonid + i, "out00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ function enter(pi) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warpParty(dungeonid + i);
|
||||
pi.warpParty(dungeonid + i, "out00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,7 @@ function enter(pi) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(dungeonid + i);
|
||||
pi.warp(dungeonid + i, "out00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ function enter(pi) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warpParty(dungeonid + i);
|
||||
pi.warpParty(dungeonid + i, "out00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,7 @@ function enter(pi) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(dungeonid + i);
|
||||
pi.warp(dungeonid + i, "out00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ function enter(pi) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warpParty(dungeonid + i);
|
||||
pi.warpParty(dungeonid + i, "out00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,7 @@ function enter(pi) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(dungeonid + i);
|
||||
pi.warp(dungeonid + i, "out00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
function enter(pi) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(pi.getMapId() + 100);
|
||||
pi.warp(pi.getMapId() + 100, 0);
|
||||
return true;
|
||||
}
|
||||
@@ -19,7 +19,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
Vs Pink Bean - Ressurection stage portal
|
||||
Vs Pink Bean - Resurrection stage portal
|
||||
@author Ronan
|
||||
*/
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ function enter(pi) {
|
||||
}
|
||||
} else {
|
||||
pi.playPortalSound();
|
||||
pi.warp(922020300);
|
||||
pi.warp(922020300, 0);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,15 @@
|
||||
//Author: kevintjuh93
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getPlayer().getEvents().get("rescueGaga").fallAndGet() > 3) {
|
||||
pi.playPortalSound(); pi.warp(922240200, 0);
|
||||
pi.getPlayer().cancelEffect(2360002);
|
||||
} else
|
||||
var eim = pi.getPlayer().getEventInstance();
|
||||
var fc = eim.getIntProperty("falls");
|
||||
|
||||
if (fc >= 3) {
|
||||
pi.playPortalSound(); pi.warp(922240200, 0);
|
||||
} else {
|
||||
eim.setIntProperty("falls", fc + 1);
|
||||
pi.playPortalSound(); pi.warp(pi.getPlayer().getMapId(), 0);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -1,11 +1,15 @@
|
||||
//Author: kevintjuh93
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getPlayer().getEvents().get("rescueGaga").fallAndGet() > 3) {
|
||||
pi.playPortalSound(); pi.warp(922240200, 0);
|
||||
pi.getPlayer().cancelEffect(2360002);
|
||||
} else
|
||||
var eim = pi.getPlayer().getEventInstance();
|
||||
var fc = eim.getIntProperty("falls");
|
||||
|
||||
if (fc >= 3) {
|
||||
pi.playPortalSound(); pi.warp(922240200, 0);
|
||||
} else {
|
||||
eim.setIntProperty("falls", fc + 1);
|
||||
pi.playPortalSound(); pi.warp(pi.getPlayer().getMapId(), 0);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -1,11 +1,15 @@
|
||||
//Author: kevintjuh93
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getPlayer().getEvents().get("rescueGaga").fallAndGet() > 3) {
|
||||
pi.playPortalSound(); pi.warp(922240200, 0);
|
||||
pi.getPlayer().cancelEffect(2360002);
|
||||
} else
|
||||
var eim = pi.getPlayer().getEventInstance();
|
||||
var fc = eim.getIntProperty("falls");
|
||||
|
||||
if (fc >= 3) {
|
||||
pi.playPortalSound(); pi.warp(922240200, 0);
|
||||
} else {
|
||||
eim.setIntProperty("falls", fc + 1);
|
||||
pi.playPortalSound(); pi.warp(pi.getPlayer().getMapId(), 0);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -1,11 +1,15 @@
|
||||
//Author: kevintjuh93
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getPlayer().getEvents().get("rescueGaga").fallAndGet() > 3) {
|
||||
pi.playPortalSound(); pi.warp(922240200, 0);
|
||||
pi.getPlayer().cancelEffect(2360002);
|
||||
} else
|
||||
var eim = pi.getPlayer().getEventInstance();
|
||||
var fc = eim.getIntProperty("falls");
|
||||
|
||||
if (fc >= 3) {
|
||||
pi.playPortalSound(); pi.warp(922240200, 0);
|
||||
} else {
|
||||
eim.setIntProperty("falls", fc + 1);
|
||||
pi.playPortalSound(); pi.warp(pi.getPlayer().getMapId(), 0);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
function enter(pi) {
|
||||
var questProgress = pi.getQuestProgress(2330, 3300005) + pi.getQuestProgress(2330, 3300006) + pi.getQuestProgress(2330, 3300007); //3 Yetis
|
||||
var questProgress = pi.getQuestProgressInt(2330, 3300005) + pi.getQuestProgressInt(2330, 3300006) + pi.getQuestProgressInt(2330, 3300007); //3 Yetis
|
||||
|
||||
if(pi.isQuestStarted(2330) && questProgress < 3){
|
||||
pi.openNpc(1300013);
|
||||
|
||||
@@ -10,7 +10,7 @@ function enter(pi) {
|
||||
|
||||
for(var i = 0; i < quests.length; i++) {
|
||||
if (pi.isQuestActive(quests[i])) {
|
||||
if(pi.getQuestProgress(quests[i], mobs[i]) != 0) {
|
||||
if(pi.getQuestProgressInt(quests[i], mobs[i]) != 0) {
|
||||
pi.message("You already faced Nex. Complete your mission.");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,17 @@ function enter(pi) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!pi.haveItem(4001017)) { // thanks Conrad for pointing out missing checks for token item and unused reactor
|
||||
pi.getPlayer().dropMessage(5,"You do not have the Eye of Fire. You may not face the boss.");
|
||||
return false;
|
||||
}
|
||||
|
||||
var react = pi.getMap().getReactorById(2118002);
|
||||
if (react != null && react.getState() > 0) {
|
||||
pi.getPlayer().dropMessage(5,"The entrance is currently blocked.");
|
||||
return false;
|
||||
}
|
||||
|
||||
pi.playPortalSound(); pi.warp(211042400,"west00");
|
||||
return true;
|
||||
}
|
||||
@@ -1,7 +1,8 @@
|
||||
function enter(pi) {
|
||||
var mapobj = pi.getWarpMap(104000004);
|
||||
if(pi.isQuestActive(21733) && pi.getQuestProgress(21733, 9300345) == 0 && mapobj.countMonsters() == 0) {
|
||||
if(pi.isQuestActive(21733) && pi.getQuestProgressInt(21733, 9300345) == 0 && mapobj.countMonsters() == 0) {
|
||||
mapobj.spawnMonsterOnGroundBelow(Packages.server.life.MapleLifeFactory.getMonster(9300345), new java.awt.Point(0, 0));
|
||||
pi.setQuestProgress(21733, 21762, 2);
|
||||
}
|
||||
|
||||
pi.playPortalSound();
|
||||
|
||||
@@ -9,8 +9,7 @@ function enter(pi) {
|
||||
|
||||
pi.playPortalSound();
|
||||
pi.warp(i, "out00");
|
||||
pi.getPlayer().updateQuestInfo(21202, "0");
|
||||
//pi.getPlayer().announce(Packages.tools.MaplePacketCreator.questProgress(21203, "21203"));
|
||||
pi.setQuestProgress(21202, 21203, 0);
|
||||
return true;
|
||||
}
|
||||
pi.message("The mirror is blank due to many players recalling their memories. Please wait and try again.");
|
||||
@@ -24,7 +23,7 @@ function enter(pi) {
|
||||
spawnMob(-210, 454, 9001013, map);
|
||||
|
||||
pi.playPortalSound();
|
||||
pi.getPlayer().updateQuestInfo(21203, "1");
|
||||
pi.setQuestProgress(21303, 21203, 1);
|
||||
pi.warp(108010701, "out00");
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
importPackage(Packages.server.life);
|
||||
|
||||
function enter(pi) {
|
||||
if(pi.isQuestStarted(21301) && pi.getQuestProgress(21301, 9001013) == 0) {
|
||||
if(pi.isQuestStarted(21301) && pi.getQuestProgressInt(21301, 9001013) == 0) {
|
||||
if(pi.getPlayerCount(108010700) != 0) {
|
||||
pi.message("The portal is blocked from the other side. I wonder if someone is already fighting the Thief Crow?");
|
||||
return false;
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
//Author: kevintjuh93
|
||||
|
||||
function enter(pi) {
|
||||
pi.getPlayer().getEvents().get("rescueGaga").complete();
|
||||
pi.playPortalSound(); pi.warp(922240100 + (pi.getPlayer().getMapId() - 922240000));
|
||||
pi.getPlayer().cancelEffect(2360002);
|
||||
pi.playPortalSound(); pi.warp(922240100 + (pi.getPlayer().getMapId() - 922240000), 0);
|
||||
return true;
|
||||
}
|
||||
@@ -20,10 +20,9 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Author: kevintjuh93
|
||||
*
|
||||
*/
|
||||
function start(ms) {
|
||||
ms.touchTheSky();
|
||||
// Author: Ronan
|
||||
function enter(ms) {
|
||||
// thanks kvmba for noticing some issues running this script
|
||||
ms.runMapScript();
|
||||
return false;
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
function enter(pi) {
|
||||
if (pi.getMap().getReactorByName("jnr6_out").getState() == 1) {
|
||||
pi.playPortalSound(); pi.warp(926110300);
|
||||
pi.playPortalSound(); pi.warp(926110300, 0);
|
||||
return true;
|
||||
} else {
|
||||
pi.playerMessage(5, "The portal is not opened yet.");
|
||||
|
||||
@@ -5,7 +5,7 @@ function enter(pi) {
|
||||
eim.dispose();
|
||||
}
|
||||
|
||||
var questProgress = pi.getQuestProgress(2330, 3300005) + pi.getQuestProgress(2330, 3300006) + pi.getQuestProgress(2330, 3300007); //3 Yetis
|
||||
var questProgress = pi.getQuestProgressInt(2330, 3300005) + pi.getQuestProgressInt(2330, 3300006) + pi.getQuestProgressInt(2330, 3300007); //3 Yetis
|
||||
if(questProgress == 3 && !pi.hasItem(4032388)) {
|
||||
if(pi.canHold(4032388)){
|
||||
pi.getPlayer().message("You have aquired a key to the Wedding Hall. King Pepe must have dropped it.");
|
||||
|
||||
@@ -1,46 +1,72 @@
|
||||
importPackage(Packages.tools);
|
||||
|
||||
function enter(pi) {
|
||||
var map = pi.getMap();
|
||||
var leverSequenceExit = false;
|
||||
|
||||
function enterLeverSequence(pi) {
|
||||
var map = pi.getMap();
|
||||
|
||||
var jailn = (pi.getMap().getId() / 10) % 10;
|
||||
var maxToggles = (jailn == 1) ? 7 : 6;
|
||||
|
||||
var mapProp = pi.getEventInstance().getProperty("jail" + jailn);
|
||||
|
||||
if(mapProp == null) {
|
||||
var seq = 0;
|
||||
|
||||
for(var i = 1; i <= maxToggles; i++) {
|
||||
if(Math.random() < 0.5) seq += (1 << i);
|
||||
}
|
||||
|
||||
pi.getEventInstance().setProperty("jail" + jailn, seq);
|
||||
mapProp = seq;
|
||||
var jailn = (pi.getMap().getId() / 10) % 10;
|
||||
var maxToggles = (jailn == 1) ? 7 : 6;
|
||||
|
||||
var mapProp = pi.getEventInstance().getProperty("jail" + jailn);
|
||||
|
||||
if(mapProp == null) {
|
||||
var seq = 0;
|
||||
|
||||
for(var i = 1; i <= maxToggles; i++) {
|
||||
if(Math.random() < 0.5) seq += (1 << i);
|
||||
}
|
||||
|
||||
mapProp = Number(mapProp);
|
||||
if(mapProp != 0) {
|
||||
var countMiss = 0;
|
||||
for(var i = 1; i <= maxToggles; i++) {
|
||||
if(!(pi.getMap().getReactorByName("lever" + i).getState() == (mapProp >> i) % 2)) {
|
||||
countMiss++;
|
||||
}
|
||||
|
||||
pi.getEventInstance().setProperty("jail" + jailn, seq);
|
||||
mapProp = seq;
|
||||
}
|
||||
|
||||
mapProp = Number(mapProp);
|
||||
if(mapProp != 0) {
|
||||
var countMiss = 0;
|
||||
for(var i = 1; i <= maxToggles; i++) {
|
||||
if(!(pi.getMap().getReactorByName("lever" + i).getState() == (mapProp >> i) % 2)) {
|
||||
countMiss++;
|
||||
}
|
||||
|
||||
if(countMiss > 0) {
|
||||
map.broadcastMessage(MaplePacketCreator.showEffect("quest/party/wrong_kor"));
|
||||
map.broadcastMessage(MaplePacketCreator.playSound("Party1/Failed"));
|
||||
|
||||
pi.playerMessage(5, "The right combination of levers is needed to pass. " + countMiss + " lever(s) are misplaced.");
|
||||
return false;
|
||||
}
|
||||
|
||||
map.broadcastMessage(MaplePacketCreator.showEffect("quest/party/clear"));
|
||||
map.broadcastMessage(MaplePacketCreator.playSound("Party1/Clear"));
|
||||
pi.getEventInstance().setProperty("jail" + jailn, "0");
|
||||
}
|
||||
|
||||
|
||||
if(countMiss > 0) {
|
||||
map.broadcastMessage(MaplePacketCreator.showEffect("quest/party/wrong_kor"));
|
||||
map.broadcastMessage(MaplePacketCreator.playSound("Party1/Failed"));
|
||||
|
||||
pi.playerMessage(5, "The right combination of levers is needed to pass. " + countMiss + " lever(s) are misplaced.");
|
||||
return false;
|
||||
}
|
||||
|
||||
map.broadcastMessage(MaplePacketCreator.showEffect("quest/party/clear"));
|
||||
map.broadcastMessage(MaplePacketCreator.playSound("Party1/Clear"));
|
||||
pi.getEventInstance().setProperty("jail" + jailn, "0");
|
||||
}
|
||||
|
||||
pi.playPortalSound(); pi.warp(pi.getMapId() + 2,0);
|
||||
return true;
|
||||
}
|
||||
|
||||
function enterNoMobs(pi) {
|
||||
var map = pi.getMap();
|
||||
var mobcount = map.countMonster(9300044);
|
||||
|
||||
if (mobcount > 0) {
|
||||
pi.playerMessage(5, "Please use the levers to defeat all the threats before you proceed.");
|
||||
return false;
|
||||
} else {
|
||||
pi.playPortalSound(); pi.warp(pi.getMapId() + 2,0);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
function enter(pi) {
|
||||
var ret;
|
||||
if (leverSequenceExit) {
|
||||
ret = enterLeverSequence(pi);
|
||||
} else {
|
||||
ret = enterNoMobs(pi);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
if (Math.random() < 0.1) {
|
||||
pi.playPortalSound(); pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.playPortalSound(); pi.warp(930000300, "02st");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
if (Math.random() < 0.1) {
|
||||
pi.playPortalSound(); pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.playPortalSound(); pi.warp(930000300, "03st");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
if (Math.random() < 0.1) {
|
||||
pi.playPortalSound(); pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.playPortalSound(); pi.warp(930000300, "04st");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
if (Math.random() < 0.1) {
|
||||
pi.playPortalSound(); pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.playPortalSound(); pi.warp(930000300, "05st");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
if (Math.random() < 0.1) {
|
||||
pi.playPortalSound(); pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.playPortalSound(); pi.warp(930000300, "06st");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
if (Math.random() < 0.1) {
|
||||
pi.playPortalSound(); pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.playPortalSound(); pi.warp(930000300, "07st");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
if (Math.random() < 0.1) {
|
||||
pi.playPortalSound(); pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.playPortalSound(); pi.warp(930000300, "08st");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
if (Math.random() < 0.1) {
|
||||
pi.playPortalSound(); pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.playPortalSound(); pi.warp(930000300, "09st");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
if (Math.random() < 0.1) {
|
||||
pi.playPortalSound(); pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.playPortalSound(); pi.warp(930000300, "10st");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
if (Math.random() < 0.1) {
|
||||
pi.playPortalSound(); pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.playPortalSound(); pi.warp(930000300, "11st");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
if (Math.random() < 0.1) {
|
||||
pi.playPortalSound(); pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.playPortalSound(); pi.warp(930000300, "12st");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
if (Math.random() < 0.1) {
|
||||
pi.playPortalSound(); pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.playPortalSound(); pi.warp(930000300, "13st");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
if (Math.random() < 0.1) {
|
||||
pi.playPortalSound(); pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.playPortalSound(); pi.warp(930000300, "14st");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
if (Math.random() < 0.1) {
|
||||
pi.playPortalSound(); pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.playPortalSound(); pi.warp(930000300, "15st");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
if (Math.random() < 0.1) {
|
||||
pi.playPortalSound(); pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.playPortalSound(); pi.warp(930000300, "01st");
|
||||
|
||||
@@ -19,8 +19,11 @@
|
||||
*/
|
||||
function enter(pi) {
|
||||
if(pi.isQuestStarted(3367)) {
|
||||
if(pi.getQuestProgress(3367, 31) < pi.getItemQuantity(4031797)) {
|
||||
pi.gainItem(4031797, pi.getQuestProgress(3367, 31) - pi.getItemQuantity(4031797));
|
||||
var booksDone = pi.getQuestProgressInt(3367, 31);
|
||||
var booksInv = pi.getItemQuantity(4031797);
|
||||
|
||||
if(booksInv < booksDone) {
|
||||
pi.gainItem(4031797, booksDone - booksInv);
|
||||
}
|
||||
|
||||
pi.playPortalSound(); pi.warp(926130102, 0);
|
||||
|
||||
@@ -23,7 +23,7 @@ function enter(pi) {
|
||||
return false;
|
||||
} else {
|
||||
if (pi.isQuestStarted(6410)) {
|
||||
pi.setQuestProgress(6410, 0, 1);
|
||||
pi.setQuestProgress(6410, 6411, "p2");
|
||||
}
|
||||
|
||||
pi.playPortalSound();
|
||||
|
||||
@@ -30,7 +30,8 @@ function enter(pi) {
|
||||
if(pi.isQuestCompleted(3360)) {
|
||||
return doorCross(pi);
|
||||
} else if(pi.isQuestStarted(3360)) {
|
||||
if(pi.getQuestProgress(3360, 1) == 0) {
|
||||
var pw = pi.getQuestProgress(3360);
|
||||
if(pw.length() > 1) {
|
||||
pi.openNpc(2111024, "MagatiaPassword");
|
||||
return false;
|
||||
} else {
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
function enter(pi) {
|
||||
if(pi.isQuestStarted(3935) && !pi.haveItem(4031574, 1)) {
|
||||
if(pi.getWarpMap(926000010).countPlayers() == 0) {
|
||||
pi.playPortalSound(); pi.warp(926000010);
|
||||
pi.playPortalSound(); pi.warp(926000010, 0);
|
||||
return true;
|
||||
} else {
|
||||
pi.message("Someone is already trying this map.");
|
||||
|
||||
@@ -24,6 +24,6 @@
|
||||
@Author Ronan
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(670010800);
|
||||
pi.playPortalSound(); pi.warp(670010800, 0);
|
||||
return true;
|
||||
}
|
||||
@@ -1,9 +1,6 @@
|
||||
function enter(pi) {
|
||||
if(pi.isQuestCompleted(20730) || pi.isQuestCompleted(21734)) { // puppeteer defeated, newfound secret path
|
||||
pi.playPortalSound(); pi.warp(105040201,2);
|
||||
return true;
|
||||
}
|
||||
|
||||
pi.openNpc(1063011, "ThiefPassword");
|
||||
// unexpected warp condition noticed thanks to IxianMace
|
||||
|
||||
pi.openNpc(1063011, "ThiefPassword");
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user