Reformat and clean up portal scripts
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(pi.getMapId() - 2, 0);
|
pi.warp(pi.getMapId() - 2, 0);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
var em = pi.getEventManager("KerningTrain");
|
var em = pi.getEventManager("KerningTrain");
|
||||||
if (!em.startInstance(pi.getPlayer())) {
|
if (!em.startInstance(pi.getPlayer())) {
|
||||||
pi.message("The passenger wagon is already full. Try again a bit later.");
|
pi.message("The passenger wagon is already full. Try again a bit later.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -1,29 +1,29 @@
|
|||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
var mapid = pi.getPlayer().getMap().getId();
|
var mapid = pi.getPlayer().getMap().getId();
|
||||||
|
|
||||||
if (mapid == 103040410 && pi.isQuestCompleted(2287)) {
|
if (mapid == 103040410 && pi.isQuestCompleted(2287)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(103040420, "right00");
|
pi.warp(103040420, "right00");
|
||||||
return true;
|
return true;
|
||||||
} else if (mapid == 103040420 && pi.isQuestCompleted(2288)) {
|
} else if (mapid == 103040420 && pi.isQuestCompleted(2288)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(103040430, "right00");
|
pi.warp(103040430, "right00");
|
||||||
return true;
|
return true;
|
||||||
} else if (mapid == 103040410 && pi.isQuestStarted(2287)) {
|
} else if (mapid == 103040410 && pi.isQuestStarted(2287)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(103040420, "right00");
|
pi.warp(103040420, "right00");
|
||||||
return true;
|
return true;
|
||||||
} else if (mapid == 103040420 && pi.isQuestStarted(2288)) {
|
} else if (mapid == 103040420 && pi.isQuestStarted(2288)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(103040430, "right00");
|
pi.warp(103040430, "right00");
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
if (mapid == 103040440 || mapid == 103040450) {
|
if (mapid == 103040440 || mapid == 103040450) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(mapid + 10, "right00");
|
pi.warp(mapid + 10, "right00");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
pi.getPlayer().dropMessage(5, "You cannot access this area.");
|
pi.getPlayer().dropMessage(5, "You cannot access this area.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,29 +1,29 @@
|
|||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
var mapid = pi.getPlayer().getMap().getId();
|
var mapid = pi.getPlayer().getMap().getId();
|
||||||
|
|
||||||
if (mapid == 103040410 && pi.isQuestCompleted(2287)) {
|
if (mapid == 103040410 && pi.isQuestCompleted(2287)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(103040420, "right01");
|
pi.warp(103040420, "right01");
|
||||||
return true;
|
return true;
|
||||||
} else if (mapid == 103040420 && pi.isQuestCompleted(2288)) {
|
} else if (mapid == 103040420 && pi.isQuestCompleted(2288)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(103040430, "right01");
|
pi.warp(103040430, "right01");
|
||||||
return true;
|
return true;
|
||||||
} else if (mapid == 103040410 && pi.isQuestStarted(2287)) {
|
} else if (mapid == 103040410 && pi.isQuestStarted(2287)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(103040420, "right01");
|
pi.warp(103040420, "right01");
|
||||||
return true;
|
return true;
|
||||||
} else if (mapid == 103040420 && pi.isQuestStarted(2288)) {
|
} else if (mapid == 103040420 && pi.isQuestStarted(2288)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(103040430, "right01");
|
pi.warp(103040430, "right01");
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
if (mapid == 103040440 || mapid == 103040450) {
|
if (mapid == 103040440 || mapid == 103040450) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(mapid + 10, "right01");
|
pi.warp(mapid + 10, "right01");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
pi.getPlayer().dropMessage(5, "You cannot access this area.");
|
pi.getPlayer().dropMessage(5, "You cannot access this area.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(103040300,1);
|
pi.warp(103040300, 1);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
//Author: kevintjuh93
|
//Author: kevintjuh93
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.blockPortal();
|
pi.blockPortal();
|
||||||
if (pi.containsAreaInfo(22014, "egg=o")) {
|
if (pi.containsAreaInfo(22014, "egg=o")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
pi.updateAreaInfo(22014, "egg=o;mo30=o;mo40=o;mo41=o;mo50=o;mo42=o;mo60=o");
|
pi.updateAreaInfo(22014, "egg=o;mo30=o;mo40=o;mo41=o;mo50=o;mo42=o;mo60=o");
|
||||||
pi.sendImage("UI/tutorial/evan/8/0");
|
pi.sendImage("UI/tutorial/evan/8/0");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
+18
-17
@@ -20,23 +20,24 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
-- Odin JavaScript --------------------------------------------------------------------------------
|
-- Odin JavaScript --------------------------------------------------------------------------------
|
||||||
During The Ride To Ellinia
|
During The Ride To Ellinia
|
||||||
-- By ---------------------------------------------------------------------------------------------
|
-- By ---------------------------------------------------------------------------------------------
|
||||||
Information
|
Information
|
||||||
-- Version Info -----------------------------------------------------------------------------------
|
-- Version Info -----------------------------------------------------------------------------------
|
||||||
1.4 - Code clean up [Information]
|
1.4 - Code clean up [Information]
|
||||||
1.3 - Typo >.< [Information]
|
1.3 - Typo >.< [Information]
|
||||||
1.2 - Update to support lastest script [Information]
|
1.2 - Update to support lastest script [Information]
|
||||||
1.1 - The right statement to bring out the music [Information]
|
1.1 - The right statement to bring out the music [Information]
|
||||||
1.0 - First Version by Information
|
1.0 - First Version by Information
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
**/
|
**/
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound(); pi.warp(200090000, 4);
|
pi.playPortalSound();
|
||||||
if(pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog").equals("true")) {
|
pi.warp(200090000, 4);
|
||||||
pi.changeMusic("Bgm04/ArabPirate");
|
if (pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog").equals("true")) {
|
||||||
}
|
pi.changeMusic("Bgm04/ArabPirate");
|
||||||
return true;
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
+18
-17
@@ -20,23 +20,24 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
-- Odin JavaScript --------------------------------------------------------------------------------
|
-- Odin JavaScript --------------------------------------------------------------------------------
|
||||||
During The Ride To Ellinia
|
During The Ride To Ellinia
|
||||||
-- By ---------------------------------------------------------------------------------------------
|
-- By ---------------------------------------------------------------------------------------------
|
||||||
Information
|
Information
|
||||||
-- Version Info -----------------------------------------------------------------------------------
|
-- Version Info -----------------------------------------------------------------------------------
|
||||||
1.4 - Code clean up [Information]
|
1.4 - Code clean up [Information]
|
||||||
1.3 - Typo >.< [Information]
|
1.3 - Typo >.< [Information]
|
||||||
1.2 - Update to support lastest script [Information]
|
1.2 - Update to support lastest script [Information]
|
||||||
1.1 - The right statement to bring out the music [Information]
|
1.1 - The right statement to bring out the music [Information]
|
||||||
1.0 - First Version by Information
|
1.0 - First Version by Information
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
**/
|
**/
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound(); pi.warp(200090000, 5);
|
pi.playPortalSound();
|
||||||
if(pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog").equals("true")) {
|
pi.warp(200090000, 5);
|
||||||
pi.changeMusic("Bgm04/ArabPirate");
|
if (pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog").equals("true")) {
|
||||||
}
|
pi.changeMusic("Bgm04/ArabPirate");
|
||||||
return true;
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp( pi.getMapId() - 100);
|
pi.warp(pi.getMapId() - 100);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
[CelticMS] Monster Carnival Reviving Field 1
|
[CelticMS] Monster Carnival Reviving Field 1
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
[CelticMS] Monster Carnival Reviving Field 1
|
[CelticMS] Monster Carnival Reviving Field 1
|
||||||
*/
|
*/
|
||||||
|
|||||||
+12
-13
@@ -1,19 +1,18 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
[CelticMS] Monster Carnival Reviving Field 1
|
[CelticMS] Monster Carnival Reviving Field 1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
var portal = 0;
|
var portal = 0;
|
||||||
switch (pi.getPlayer().getTeam()) {
|
switch (pi.getPlayer().getTeam()) {
|
||||||
case 0:
|
case 0:
|
||||||
portal = 4;
|
portal = 4;
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
portal = 3;
|
portal = 3;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
pi.warp(980000301, portal);
|
pi.warp(980000301, portal);
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
+12
-13
@@ -1,19 +1,18 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
[CelticMS] Monster Carnival Reviving Field 1
|
[CelticMS] Monster Carnival Reviving Field 1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
var portal = 0;
|
var portal = 0;
|
||||||
switch (pi.getPlayer().getTeam()) {
|
switch (pi.getPlayer().getTeam()) {
|
||||||
case 0:
|
case 0:
|
||||||
portal = 4;
|
portal = 4;
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
portal = 3;
|
portal = 3;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
pi.warp(980000401, portal);
|
pi.warp(980000401, portal);
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
[CelticMS] Monster Carnival Reviving Field 1
|
[CelticMS] Monster Carnival Reviving Field 1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.warp(980000501, 0);
|
pi.warp(980000501, 0);
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
[CelticMS] Monster Carnival Reviving Field 1
|
[CelticMS] Monster Carnival Reviving Field 1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.warp(980000601, 0);
|
pi.warp(980000601, 0);
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound(); pi.warp(674030100,"in00");
|
pi.playPortalSound();
|
||||||
|
pi.warp(674030100, "in00");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
MiniDungeon - Rabbit
|
MiniDungeon - Rabbit
|
||||||
*/
|
*/
|
||||||
var baseid = 105090311;
|
var baseid = 105090311;
|
||||||
var dungeonid = 105090320;
|
var dungeonid = 105090320;
|
||||||
var dungeons = 30;
|
var dungeons = 30;
|
||||||
@@ -30,7 +30,7 @@ function enter(pi) {
|
|||||||
if (pi.getParty() != null) {
|
if (pi.getParty() != null) {
|
||||||
if (pi.isLeader()) {
|
if (pi.isLeader()) {
|
||||||
for (var i = 0; i < dungeons; i++) {
|
for (var i = 0; i < dungeons; i++) {
|
||||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warpParty(dungeonid + i, "out00");
|
pi.warpParty(dungeonid + i, "out00");
|
||||||
return true;
|
return true;
|
||||||
@@ -42,7 +42,7 @@ function enter(pi) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (var i = 0; i < dungeons; i++) {
|
for (var i = 0; i < dungeons; i++) {
|
||||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(dungeonid + i, "out00");
|
pi.warp(dungeonid + i, "out00");
|
||||||
return true;
|
return true;
|
||||||
@@ -52,8 +52,8 @@ function enter(pi) {
|
|||||||
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(baseid, "MD00");
|
pi.warp(baseid, "MD00");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
MiniDungeon - Critical Error
|
MiniDungeon - Critical Error
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var baseid = 261020300;
|
var baseid = 261020300;
|
||||||
var dungeonid = 261020301;
|
var dungeonid = 261020301;
|
||||||
@@ -32,7 +32,7 @@ function enter(pi) {
|
|||||||
if (pi.getParty() != null) {
|
if (pi.getParty() != null) {
|
||||||
if (pi.isLeader()) {
|
if (pi.isLeader()) {
|
||||||
for (var i = 0; i < dungeons; i++) {
|
for (var i = 0; i < dungeons; i++) {
|
||||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warpParty(dungeonid + i, "out00");
|
pi.warpParty(dungeonid + i, "out00");
|
||||||
return true;
|
return true;
|
||||||
@@ -44,7 +44,7 @@ function enter(pi) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (var i = 0; i < dungeons; i++) {
|
for (var i = 0; i < dungeons; i++) {
|
||||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(dungeonid + i, "out00");
|
pi.warp(dungeonid + i, "out00");
|
||||||
return true;
|
return true;
|
||||||
@@ -54,8 +54,8 @@ function enter(pi) {
|
|||||||
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(baseid, "MD00");
|
pi.warp(baseid, "MD00");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
MiniDungeon - Golem
|
MiniDungeon - Golem
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var baseid = 105040304;
|
var baseid = 105040304;
|
||||||
var dungeonid = 105040320;
|
var dungeonid = 105040320;
|
||||||
@@ -32,7 +32,7 @@ function enter(pi) {
|
|||||||
if (pi.getParty() != null) {
|
if (pi.getParty() != null) {
|
||||||
if (pi.isLeader()) {
|
if (pi.isLeader()) {
|
||||||
for (var i = 0; i < dungeons; i++) {
|
for (var i = 0; i < dungeons; i++) {
|
||||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warpParty(dungeonid + i, "out00");
|
pi.warpParty(dungeonid + i, "out00");
|
||||||
return true;
|
return true;
|
||||||
@@ -44,7 +44,7 @@ function enter(pi) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (var i = 0; i < dungeons; i++) {
|
for (var i = 0; i < dungeons; i++) {
|
||||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(dungeonid + i, "out00");
|
pi.warp(dungeonid + i, "out00");
|
||||||
return true;
|
return true;
|
||||||
@@ -54,8 +54,8 @@ function enter(pi) {
|
|||||||
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(baseid, "MD00");
|
pi.warp(baseid, "MD00");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
MiniDungeon - Longest Ride on ByeBye Station
|
MiniDungeon - Longest Ride on ByeBye Station
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var baseid = 551030000;
|
var baseid = 551030000;
|
||||||
var dungeonid = 551030001;
|
var dungeonid = 551030001;
|
||||||
@@ -32,7 +32,7 @@ function enter(pi) {
|
|||||||
if (pi.getParty() != null) {
|
if (pi.getParty() != null) {
|
||||||
if (pi.isLeader()) {
|
if (pi.isLeader()) {
|
||||||
for (var i = 0; i < dungeons; i++) {
|
for (var i = 0; i < dungeons; i++) {
|
||||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warpParty(dungeonid + i, "out00");
|
pi.warpParty(dungeonid + i, "out00");
|
||||||
return true;
|
return true;
|
||||||
@@ -44,7 +44,7 @@ function enter(pi) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (var i = 0; i < dungeons; i++) {
|
for (var i = 0; i < dungeons; i++) {
|
||||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(dungeonid + i, "out00");
|
pi.warp(dungeonid + i, "out00");
|
||||||
return true;
|
return true;
|
||||||
@@ -54,8 +54,8 @@ function enter(pi) {
|
|||||||
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(baseid, "MD00");
|
pi.warp(baseid, "MD00");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
MiniDungeon - Mushroom
|
MiniDungeon - Mushroom
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var baseid = 105050100;
|
var baseid = 105050100;
|
||||||
var dungeonid = 105050101;
|
var dungeonid = 105050101;
|
||||||
@@ -32,7 +32,7 @@ function enter(pi) {
|
|||||||
if (pi.getParty() != null) {
|
if (pi.getParty() != null) {
|
||||||
if (pi.isLeader()) {
|
if (pi.isLeader()) {
|
||||||
for (var i = 0; i < dungeons; i++) {
|
for (var i = 0; i < dungeons; i++) {
|
||||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warpParty(dungeonid + i, "out00");
|
pi.warpParty(dungeonid + i, "out00");
|
||||||
return true;
|
return true;
|
||||||
@@ -44,7 +44,7 @@ function enter(pi) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (var i = 0; i < dungeons; i++) {
|
for (var i = 0; i < dungeons; i++) {
|
||||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(dungeonid + i, "out00");
|
pi.warp(dungeonid + i, "out00");
|
||||||
return true;
|
return true;
|
||||||
@@ -54,8 +54,8 @@ function enter(pi) {
|
|||||||
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(baseid, "MD00");
|
pi.warp(baseid, "MD00");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
MiniDungeon - Pig
|
MiniDungeon - Pig
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var baseid = 100020000;
|
var baseid = 100020000;
|
||||||
var dungeonid = 100020100;
|
var dungeonid = 100020100;
|
||||||
@@ -32,7 +32,7 @@ function enter(pi) {
|
|||||||
if (pi.getParty() != null) {
|
if (pi.getParty() != null) {
|
||||||
if (pi.isLeader()) {
|
if (pi.isLeader()) {
|
||||||
for (var i = 0; i < dungeons; i++) {
|
for (var i = 0; i < dungeons; i++) {
|
||||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warpParty(dungeonid + i, "out00");
|
pi.warpParty(dungeonid + i, "out00");
|
||||||
return true;
|
return true;
|
||||||
@@ -44,7 +44,7 @@ function enter(pi) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (var i = 0; i < dungeons; i++) {
|
for (var i = 0; i < dungeons; i++) {
|
||||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(dungeonid + i, "out00");
|
pi.warp(dungeonid + i, "out00");
|
||||||
return true;
|
return true;
|
||||||
@@ -54,8 +54,8 @@ function enter(pi) {
|
|||||||
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(baseid, "MD00");
|
pi.warp(baseid, "MD00");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
MiniDungeon - Newts
|
MiniDungeon - Newts
|
||||||
*/
|
*/
|
||||||
var baseid = 240040520;
|
var baseid = 240040520;
|
||||||
var dungeonid = 240040900;
|
var dungeonid = 240040900;
|
||||||
var dungeons = 19;
|
var dungeons = 19;
|
||||||
@@ -30,7 +30,7 @@ function enter(pi) {
|
|||||||
if (pi.getParty() != null) {
|
if (pi.getParty() != null) {
|
||||||
if (pi.isLeader()) {
|
if (pi.isLeader()) {
|
||||||
for (var i = 0; i < dungeons; i++) {
|
for (var i = 0; i < dungeons; i++) {
|
||||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warpParty(dungeonid + i, "out00");
|
pi.warpParty(dungeonid + i, "out00");
|
||||||
return true;
|
return true;
|
||||||
@@ -42,7 +42,7 @@ function enter(pi) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (var i = 0; i < dungeons; i++) {
|
for (var i = 0; i < dungeons; i++) {
|
||||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(dungeonid + i, "out00");
|
pi.warp(dungeonid + i, "out00");
|
||||||
return true;
|
return true;
|
||||||
@@ -52,8 +52,8 @@ function enter(pi) {
|
|||||||
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(baseid, "MD00");
|
pi.warp(baseid, "MD00");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
MiniDungeon - Rabbit
|
MiniDungeon - Rabbit
|
||||||
*/
|
*/
|
||||||
var baseid = 221023400;
|
var baseid = 221023400;
|
||||||
var dungeonid = 221023401;
|
var dungeonid = 221023401;
|
||||||
var dungeons = 30;
|
var dungeons = 30;
|
||||||
@@ -30,7 +30,7 @@ function enter(pi) {
|
|||||||
if (pi.getParty() != null) {
|
if (pi.getParty() != null) {
|
||||||
if (pi.isLeader()) {
|
if (pi.isLeader()) {
|
||||||
for (var i = 0; i < dungeons; i++) {
|
for (var i = 0; i < dungeons; i++) {
|
||||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warpParty(dungeonid + i, "out00");
|
pi.warpParty(dungeonid + i, "out00");
|
||||||
return true;
|
return true;
|
||||||
@@ -42,7 +42,7 @@ function enter(pi) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (var i = 0; i < dungeons; i++) {
|
for (var i = 0; i < dungeons; i++) {
|
||||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(dungeonid + i, "out00");
|
pi.warp(dungeonid + i, "out00");
|
||||||
return true;
|
return true;
|
||||||
@@ -52,8 +52,8 @@ function enter(pi) {
|
|||||||
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(baseid, "MD00");
|
pi.warp(baseid, "MD00");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
MiniDungeon - Skele
|
MiniDungeon - Skele
|
||||||
*/
|
*/
|
||||||
var baseid = 240040511;
|
var baseid = 240040511;
|
||||||
var dungeonid = 240040800;
|
var dungeonid = 240040800;
|
||||||
var dungeons = 19;
|
var dungeons = 19;
|
||||||
@@ -30,7 +30,7 @@ function enter(pi) {
|
|||||||
if (pi.getParty() != null) {
|
if (pi.getParty() != null) {
|
||||||
if (pi.isLeader()) {
|
if (pi.isLeader()) {
|
||||||
for (var i = 0; i < dungeons; i++) {
|
for (var i = 0; i < dungeons; i++) {
|
||||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warpParty(dungeonid + i, "out00");
|
pi.warpParty(dungeonid + i, "out00");
|
||||||
return true;
|
return true;
|
||||||
@@ -42,7 +42,7 @@ function enter(pi) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (var i = 0; i < dungeons; i++) {
|
for (var i = 0; i < dungeons; i++) {
|
||||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(dungeonid + i, "out00");
|
pi.warp(dungeonid + i, "out00");
|
||||||
return true;
|
return true;
|
||||||
@@ -52,8 +52,8 @@ function enter(pi) {
|
|||||||
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(baseid, "MD00");
|
pi.warp(baseid, "MD00");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
MiniDungeon - Round Table
|
MiniDungeon - Round Table
|
||||||
*/
|
*/
|
||||||
var baseid = 240020500;
|
var baseid = 240020500;
|
||||||
var dungeonid = 240020512;
|
var dungeonid = 240020512;
|
||||||
var dungeons = 30;
|
var dungeons = 30;
|
||||||
@@ -30,7 +30,7 @@ function enter(pi) {
|
|||||||
if (pi.getParty() != null) {
|
if (pi.getParty() != null) {
|
||||||
if (pi.isLeader()) {
|
if (pi.isLeader()) {
|
||||||
for (var i = 0; i < dungeons; i++) {
|
for (var i = 0; i < dungeons; i++) {
|
||||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warpParty(dungeonid + i, "out00");
|
pi.warpParty(dungeonid + i, "out00");
|
||||||
return true;
|
return true;
|
||||||
@@ -42,7 +42,7 @@ function enter(pi) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (var i = 0; i < dungeons; i++) {
|
for (var i = 0; i < dungeons; i++) {
|
||||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(dungeonid + i, "out00");
|
pi.warp(dungeonid + i, "out00");
|
||||||
return true;
|
return true;
|
||||||
@@ -52,8 +52,8 @@ function enter(pi) {
|
|||||||
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(baseid, "MD00");
|
pi.warp(baseid, "MD00");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
MiniDungeon - Sand
|
MiniDungeon - Sand
|
||||||
*/
|
*/
|
||||||
var baseid = 260020600;
|
var baseid = 260020600;
|
||||||
var dungeonid = 260020630;
|
var dungeonid = 260020630;
|
||||||
var dungeons = 34;
|
var dungeons = 34;
|
||||||
@@ -30,7 +30,7 @@ function enter(pi) {
|
|||||||
if (pi.getParty() != null) {
|
if (pi.getParty() != null) {
|
||||||
if (pi.isLeader()) {
|
if (pi.isLeader()) {
|
||||||
for (var i = 0; i < dungeons; i++) {
|
for (var i = 0; i < dungeons; i++) {
|
||||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warpParty(dungeonid + i, "out00");
|
pi.warpParty(dungeonid + i, "out00");
|
||||||
return true;
|
return true;
|
||||||
@@ -42,7 +42,7 @@ function enter(pi) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (var i = 0; i < dungeons; i++) {
|
for (var i = 0; i < dungeons; i++) {
|
||||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(dungeonid + i, "out00");
|
pi.warp(dungeonid + i, "out00");
|
||||||
return true;
|
return true;
|
||||||
@@ -52,8 +52,8 @@ function enter(pi) {
|
|||||||
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(baseid, "MD00");
|
pi.warp(baseid, "MD00");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
MiniDungeon - Pirate
|
MiniDungeon - Pirate
|
||||||
*/
|
*/
|
||||||
var baseid = 251010402;
|
var baseid = 251010402;
|
||||||
var dungeonid = 251010410;
|
var dungeonid = 251010410;
|
||||||
var dungeons = 30;
|
var dungeons = 30;
|
||||||
@@ -30,7 +30,7 @@ function enter(pi) {
|
|||||||
if (pi.getParty() != null) {
|
if (pi.getParty() != null) {
|
||||||
if (pi.isLeader()) {
|
if (pi.isLeader()) {
|
||||||
for (var i = 0; i < dungeons; i++) {
|
for (var i = 0; i < dungeons; i++) {
|
||||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warpParty(dungeonid + i, "out00");
|
pi.warpParty(dungeonid + i, "out00");
|
||||||
return true;
|
return true;
|
||||||
@@ -42,7 +42,7 @@ function enter(pi) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (var i = 0; i < dungeons; i++) {
|
for (var i = 0; i < dungeons; i++) {
|
||||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(dungeonid + i, "out00");
|
pi.warp(dungeonid + i, "out00");
|
||||||
return true;
|
return true;
|
||||||
@@ -52,8 +52,8 @@ function enter(pi) {
|
|||||||
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(baseid, "MD00");
|
pi.warp(baseid, "MD00");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -22,7 +22,8 @@
|
|||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (pi.hasItem(3992040)) {
|
if (pi.hasItem(3992040)) {
|
||||||
pi.playPortalSound(); pi.warp(610010005, "sU6_1");
|
pi.playPortalSound();
|
||||||
|
pi.warp(610010005, "sU6_1");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -22,7 +22,8 @@
|
|||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (pi.hasItem(3992040)) {
|
if (pi.hasItem(3992040)) {
|
||||||
pi.playPortalSound(); pi.warp(610010005, "sU6_1");
|
pi.playPortalSound();
|
||||||
|
pi.warp(610010005, "sU6_1");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -22,7 +22,8 @@
|
|||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (pi.hasItem(3992040)) {
|
if (pi.hasItem(3992040)) {
|
||||||
pi.playPortalSound(); pi.warp(610010005, "sU6_1");
|
pi.playPortalSound();
|
||||||
|
pi.warp(610010005, "sU6_1");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound(); pi.warp(610020015, "CC6_A");
|
pi.playPortalSound();
|
||||||
|
pi.warp(610020015, "CC6_A");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -21,6 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound(); pi.warp(610020010, "CC1_A");
|
pi.playPortalSound();
|
||||||
|
pi.warp(610020010, "CC1_A");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -22,7 +22,8 @@
|
|||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (pi.hasItem(3992039)) {
|
if (pi.hasItem(3992039)) {
|
||||||
pi.playPortalSound(); pi.warp(610020000, "CM1_B");
|
pi.playPortalSound();
|
||||||
|
pi.warp(610020000, "CM1_B");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -22,7 +22,8 @@
|
|||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (pi.hasItem(3992039)) {
|
if (pi.hasItem(3992039)) {
|
||||||
pi.playPortalSound(); pi.warp(610020000, "CM1_C");
|
pi.playPortalSound();
|
||||||
|
pi.warp(610020000, "CM1_C");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -22,7 +22,8 @@
|
|||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (pi.hasItem(3992039)) {
|
if (pi.hasItem(3992039)) {
|
||||||
pi.playPortalSound(); pi.warp(610020000, "CM1_D");
|
pi.playPortalSound();
|
||||||
|
pi.warp(610020000, "CM1_D");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -22,7 +22,8 @@
|
|||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (pi.hasItem(3992039)) {
|
if (pi.hasItem(3992039)) {
|
||||||
pi.playPortalSound(); pi.warp(610020000, "CM1_E");
|
pi.playPortalSound();
|
||||||
|
pi.warp(610020000, "CM1_E");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -22,7 +22,8 @@
|
|||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (pi.hasItem(3992039)) {
|
if (pi.hasItem(3992039)) {
|
||||||
pi.playPortalSound(); pi.warp(610020001, "CM2_C");
|
pi.playPortalSound();
|
||||||
|
pi.warp(610020001, "CM2_C");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -22,7 +22,8 @@
|
|||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (pi.hasItem(3992039)) {
|
if (pi.hasItem(3992039)) {
|
||||||
pi.playPortalSound(); pi.warp(610020001, "CM2_D");
|
pi.playPortalSound();
|
||||||
|
pi.warp(610020001, "CM2_D");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -21,7 +21,8 @@
|
|||||||
*/
|
*/
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (pi.hasItem(3992039)) {
|
if (pi.hasItem(3992039)) {
|
||||||
pi.playPortalSound(); pi.warp(610020001, "CM2_E");
|
pi.playPortalSound();
|
||||||
|
pi.warp(610020001, "CM2_E");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -22,7 +22,8 @@
|
|||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (pi.hasItem(3992039)) {
|
if (pi.hasItem(3992039)) {
|
||||||
pi.playPortalSound(); pi.warp(610020001, "CM2_F");
|
pi.playPortalSound();
|
||||||
|
pi.warp(610020001, "CM2_F");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -22,7 +22,8 @@
|
|||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (pi.hasItem(3992040)) {
|
if (pi.hasItem(3992040)) {
|
||||||
pi.playPortalSound(); pi.warp(610010004, "U5_1");
|
pi.playPortalSound();
|
||||||
|
pi.warp(610010004, "U5_1");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -22,7 +22,8 @@
|
|||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (pi.hasItem(3992040)) {
|
if (pi.hasItem(3992040)) {
|
||||||
pi.playPortalSound(); pi.warp(610010201, "sB2_1");
|
pi.playPortalSound();
|
||||||
|
pi.warp(610010201, "sB2_1");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -22,7 +22,8 @@
|
|||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (pi.hasItem(3992040)) {
|
if (pi.hasItem(3992040)) {
|
||||||
pi.playPortalSound(); pi.warp(610010001, "sU2_1");
|
pi.playPortalSound();
|
||||||
|
pi.warp(610010001, "sU2_1");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -22,7 +22,8 @@
|
|||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (pi.hasItem(3992040)) {
|
if (pi.hasItem(3992040)) {
|
||||||
pi.playPortalSound(); pi.warp(610010004, "U5_1");
|
pi.playPortalSound();
|
||||||
|
pi.warp(610010004, "U5_1");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -22,7 +22,8 @@
|
|||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (pi.hasItem(3992040)) {
|
if (pi.hasItem(3992040)) {
|
||||||
pi.playPortalSound(); pi.warp(610010002, "sU3_1");
|
pi.playPortalSound();
|
||||||
|
pi.warp(610010002, "sU3_1");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(pi.getMapId() + 100, 0);
|
pi.warp(pi.getMapId() + 100, 0);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
+16
-15
@@ -20,23 +20,24 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
-- Odin JavaScript --------------------------------------------------------------------------------
|
-- Odin JavaScript --------------------------------------------------------------------------------
|
||||||
During The Ride To Orbis
|
During The Ride To Orbis
|
||||||
-- By ---------------------------------------------------------------------------------------------
|
-- By ---------------------------------------------------------------------------------------------
|
||||||
Information
|
Information
|
||||||
-- Version Info -----------------------------------------------------------------------------------
|
-- Version Info -----------------------------------------------------------------------------------
|
||||||
1.4 - Code clean up [Information]
|
1.4 - Code clean up [Information]
|
||||||
1.4 - Remove event instance [Information]
|
1.4 - Remove event instance [Information]
|
||||||
1.3 - Typo >.< [Information]
|
1.3 - Typo >.< [Information]
|
||||||
1.2 - Update to support lastest script [Information]
|
1.2 - Update to support lastest script [Information]
|
||||||
1.1 - The right statement to bring out the music [Information]
|
1.1 - The right statement to bring out the music [Information]
|
||||||
1.0 - First Version by Information
|
1.0 - First Version by Information
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
**/
|
**/
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound(); pi.warp(200090010, 4);
|
pi.playPortalSound();
|
||||||
if(pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog").equals("true")) {
|
pi.warp(200090010, 4);
|
||||||
|
if (pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog").equals("true")) {
|
||||||
pi.changeMusic("Bgm04/ArabPirate");
|
pi.changeMusic("Bgm04/ArabPirate");
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
+17
-15
@@ -20,23 +20,25 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
-- Odin JavaScript --------------------------------------------------------------------------------
|
-- Odin JavaScript --------------------------------------------------------------------------------
|
||||||
During The Ride To Orbis
|
During The Ride To Orbis
|
||||||
-- By ---------------------------------------------------------------------------------------------
|
-- By ---------------------------------------------------------------------------------------------
|
||||||
Information
|
Information
|
||||||
-- Version Info -----------------------------------------------------------------------------------
|
-- Version Info -----------------------------------------------------------------------------------
|
||||||
1.4 - Code clean up [Information]
|
1.4 - Code clean up [Information]
|
||||||
1.4 - Remove event instance [Information]
|
1.4 - Remove event instance [Information]
|
||||||
1.3 - Typo >.< [Information]
|
1.3 - Typo >.< [Information]
|
||||||
1.2 - Update to support lastest script [Information]
|
1.2 - Update to support lastest script [Information]
|
||||||
1.1 - The right statement to bring out the music [Information]
|
1.1 - The right statement to bring out the music [Information]
|
||||||
1.0 - First Version by Information
|
1.0 - First Version by Information
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
**/
|
**/
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound(); pi.warp(200090010, 5);
|
pi.playPortalSound();
|
||||||
if (pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog").equals("true"))
|
pi.warp(200090010, 5);
|
||||||
|
if (pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog").equals("true")) {
|
||||||
pi.changeMusic("Bgm04/ArabPirate");
|
pi.changeMusic("Bgm04/ArabPirate");
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ Vs Pink Bean - Clear stage portal
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound(); pi.warp(270050000);
|
pi.playPortalSound();
|
||||||
return true;
|
pi.warp(270050000);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
@@ -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 enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound(); pi.warp(230040420, "out00");
|
pi.playPortalSound();
|
||||||
|
pi.warp(230040420, "out00");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -24,6 +24,7 @@ Vs Pink Bean - Resurrection stage portal
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound(); pi.warp(270050100);
|
pi.playPortalSound();
|
||||||
return true;
|
pi.warp(270050100);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
@@ -29,18 +29,17 @@ function enter(pi) {
|
|||||||
if (pi.getParty() == null) {
|
if (pi.getParty() == null) {
|
||||||
pi.playerMessage(5, "You are currently not in a party, create one to attempt the boss.");
|
pi.playerMessage(5, "You are currently not in a party, create one to attempt the boss.");
|
||||||
return false;
|
return false;
|
||||||
} else if(!pi.isLeader()) {
|
} else if (!pi.isLeader()) {
|
||||||
pi.playerMessage(5, "Your party leader must enter the portal to start the battle.");
|
pi.playerMessage(5, "Your party leader must enter the portal to start the battle.");
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var eli = em.getEligibleParty(pi.getParty());
|
var eli = em.getEligibleParty(pi.getParty());
|
||||||
if(eli.size() > 0) {
|
if (eli.size() > 0) {
|
||||||
if(!em.startInstance(pi.getParty(), pi.getPlayer().getMap(), 1)) {
|
if (!em.startInstance(pi.getParty(), pi.getPlayer().getMap(), 1)) {
|
||||||
pi.playerMessage(5, "The battle against the boss has already begun, so you may not enter this place yet.");
|
pi.playerMessage(5, "The battle against the boss has already begun, so you may not enter this place yet.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
} else { //this should never appear
|
||||||
else { //this should never appear
|
|
||||||
pi.playerMessage(5, "You cannot start this battle yet, because either your party is not in the range size, some of your party members are not eligible to attempt it or they are not in this map. If you're having trouble finding party members, try Party Search.");
|
pi.playerMessage(5, "You cannot start this battle yet, because either your party is not in the range size, some of your party members are not eligible to attempt it or they are not in this map. If you're having trouble finding party members, try Party Search.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,17 @@
|
|||||||
//Author: kevintjuh93
|
//Author: kevintjuh93
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
var eim = pi.getPlayer().getEventInstance();
|
var eim = pi.getPlayer().getEventInstance();
|
||||||
var fc = eim.getIntProperty("falls");
|
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;
|
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,15 +1,17 @@
|
|||||||
//Author: kevintjuh93
|
//Author: kevintjuh93
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
var eim = pi.getPlayer().getEventInstance();
|
var eim = pi.getPlayer().getEventInstance();
|
||||||
var fc = eim.getIntProperty("falls");
|
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;
|
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,15 +1,17 @@
|
|||||||
//Author: kevintjuh93
|
//Author: kevintjuh93
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
var eim = pi.getPlayer().getEventInstance();
|
var eim = pi.getPlayer().getEventInstance();
|
||||||
var fc = eim.getIntProperty("falls");
|
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;
|
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,15 +1,17 @@
|
|||||||
//Author: kevintjuh93
|
//Author: kevintjuh93
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
var eim = pi.getPlayer().getEventInstance();
|
var eim = pi.getPlayer().getEventInstance();
|
||||||
var fc = eim.getIntProperty("falls");
|
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;
|
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,33 +1,32 @@
|
|||||||
/* @author RonanLana */
|
/* @author RonanLana */
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
var stage = ((Math.floor(pi.getMapId() / 100)) % 10) - 1;
|
var stage = ((Math.floor(pi.getMapId() / 100)) % 10) - 1;
|
||||||
var em = pi.getEventManager("TD_Battle" + stage);
|
var em = pi.getEventManager("TD_Battle" + stage);
|
||||||
if(em == null) {
|
if (em == null) {
|
||||||
pi.playerMessage(5, "TD Battle " + stage + " encountered an unexpected error and is currently unavailable.");
|
pi.playerMessage(5, "TD Battle " + stage + " encountered an unexpected error and is currently unavailable.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pi.getParty() == null) {
|
if (pi.getParty() == null) {
|
||||||
pi.playerMessage(5, "You are currently not in a party, create one to attempt the boss.");
|
pi.playerMessage(5, "You are currently not in a party, create one to attempt the boss.");
|
||||||
return false;
|
return false;
|
||||||
} else if(!pi.isLeader()) {
|
} else if (!pi.isLeader()) {
|
||||||
pi.playerMessage(5, "Your party leader must enter the portal to start the battle.");
|
pi.playerMessage(5, "Your party leader must enter the portal to start the battle.");
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
var eli = em.getEligibleParty(pi.getParty());
|
||||||
|
if (eli.size() > 0) {
|
||||||
|
if (!em.startInstance(pi.getParty(), pi.getPlayer().getMap(), 1)) {
|
||||||
|
pi.playerMessage(5, "The battle against the boss has already begun, so you may not enter this place yet.");
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
var eli = em.getEligibleParty(pi.getParty());
|
pi.playerMessage(5, "Your party must consist of at least 2 players to attempt the boss.");
|
||||||
if(eli.size() > 0) {
|
return false;
|
||||||
if(!em.startInstance(pi.getParty(), pi.getPlayer().getMap(), 1)) {
|
|
||||||
pi.playerMessage(5, "The battle against the boss has already begun, so you may not enter this place yet.");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
pi.playerMessage(5, "Your party must consist of at least 2 players to attempt the boss.");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
pi.playPortalSound();
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pi.playPortalSound();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(106021300, 1);
|
pi.warp(106021300, 1);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -1,13 +1,12 @@
|
|||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
var questProgress = pi.getQuestProgressInt(2330, 3300005) + pi.getQuestProgressInt(2330, 3300006) + pi.getQuestProgressInt(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){
|
if (pi.isQuestStarted(2330) && questProgress < 3) {
|
||||||
pi.openNpc(1300013);
|
pi.openNpc(1300013);
|
||||||
}
|
} else {
|
||||||
else{
|
pi.playPortalSound();
|
||||||
pi.playPortalSound();
|
pi.warp(106021401, 1);
|
||||||
pi.warp(106021401, 1);
|
}
|
||||||
}
|
|
||||||
|
return true;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
@@ -1,34 +1,32 @@
|
|||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if(pi.isQuestCompleted(2331)) {
|
if (pi.isQuestCompleted(2331)) {
|
||||||
pi.openNpc(1300013);
|
pi.openNpc(1300013);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(pi.isQuestCompleted(2333) && pi.isQuestStarted(2331) && !pi.hasItem(4001318)){
|
if (pi.isQuestCompleted(2333) && pi.isQuestStarted(2331) && !pi.hasItem(4001318)) {
|
||||||
pi.getPlayer().message("Lost the Royal Seal, eh? Worry not! Kevin's code here to save your hide.");
|
pi.getPlayer().message("Lost the Royal Seal, eh? Worry not! Kevin's code here to save your hide.");
|
||||||
if(pi.canHold(4001318)){
|
if (pi.canHold(4001318)) {
|
||||||
pi.gainItem(4001318, 1);
|
pi.gainItem(4001318, 1);
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
pi.getPlayer().message("Hey, how do you plan to hold this Seal when your inventory is full?");
|
pi.getPlayer().message("Hey, how do you plan to hold this Seal when your inventory is full?");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(pi.isQuestCompleted(2333)){
|
if (pi.isQuestCompleted(2333)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(106021600, 1);
|
pi.warp(106021600, 1);
|
||||||
return true;
|
return true;
|
||||||
}
|
} else if (pi.isQuestStarted(2332) && pi.hasItem(4032388)) {
|
||||||
else if(pi.isQuestStarted(2332) && pi.hasItem(4032388)){
|
|
||||||
pi.forceCompleteQuest(2332, 1300002);
|
pi.forceCompleteQuest(2332, 1300002);
|
||||||
pi.getPlayer().message("You've found the princess!");
|
pi.getPlayer().message("You've found the princess!");
|
||||||
pi.giveCharacterExp(4400, pi.getPlayer());
|
pi.giveCharacterExp(4400, pi.getPlayer());
|
||||||
|
|
||||||
var em = pi.getEventManager("MK_PrimeMinister");
|
var em = pi.getEventManager("MK_PrimeMinister");
|
||||||
var party = pi.getPlayer().getParty();
|
var party = pi.getPlayer().getParty();
|
||||||
if (party != null) {
|
if (party != null) {
|
||||||
var eli = em.getEligibleParty(pi.getParty()); // thanks Conrad for pointing out missing eligible party declaration here
|
var eli = em.getEligibleParty(pi.getParty()); // thanks Conrad for pointing out missing eligible party declaration here
|
||||||
if(eli.size() > 0) {
|
if (eli.size() > 0) {
|
||||||
if (em.startInstance(party, pi.getMap(), 1)) {
|
if (em.startInstance(party, pi.getMap(), 1)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
return true;
|
return true;
|
||||||
@@ -46,14 +44,13 @@ function enter(pi) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} else if (pi.isQuestStarted(2333) || (pi.isQuestCompleted(2332) && !pi.isQuestStarted(2333))) {
|
||||||
else if(pi.isQuestStarted(2333) || (pi.isQuestCompleted(2332) && !pi.isQuestStarted(2333))){
|
|
||||||
var em = pi.getEventManager("MK_PrimeMinister");
|
var em = pi.getEventManager("MK_PrimeMinister");
|
||||||
|
|
||||||
var party = pi.getPlayer().getParty();
|
var party = pi.getPlayer().getParty();
|
||||||
if (party != null) {
|
if (party != null) {
|
||||||
var eli = em.getEligibleParty(pi.getParty());
|
var eli = em.getEligibleParty(pi.getParty());
|
||||||
if(eli.size() > 0) {
|
if (eli.size() > 0) {
|
||||||
if (em.startInstance(party, pi.getMap(), 1)) {
|
if (em.startInstance(party, pi.getMap(), 1)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
return true;
|
return true;
|
||||||
@@ -71,8 +68,7 @@ function enter(pi) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
pi.getPlayer().message("The door seems to be locked. Perhaps I can find a key to open it...");
|
pi.getPlayer().message("The door seems to be locked. Perhaps I can find a key to open it...");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,20 +1,20 @@
|
|||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (pi.isQuestCompleted(2260) ||
|
if (pi.isQuestCompleted(2260) ||
|
||||||
pi.isQuestStarted(2300) || pi.isQuestCompleted(2300) ||
|
pi.isQuestStarted(2300) || pi.isQuestCompleted(2300) ||
|
||||||
pi.isQuestStarted(2301) || pi.isQuestCompleted(2301) ||
|
pi.isQuestStarted(2301) || pi.isQuestCompleted(2301) ||
|
||||||
pi.isQuestStarted(2302) || pi.isQuestCompleted(2302) ||
|
pi.isQuestStarted(2302) || pi.isQuestCompleted(2302) ||
|
||||||
pi.isQuestStarted(2303) || pi.isQuestCompleted(2303) ||
|
pi.isQuestStarted(2303) || pi.isQuestCompleted(2303) ||
|
||||||
pi.isQuestStarted(2304) || pi.isQuestCompleted(2304) ||
|
pi.isQuestStarted(2304) || pi.isQuestCompleted(2304) ||
|
||||||
pi.isQuestStarted(2305) || pi.isQuestCompleted(2305) ||
|
pi.isQuestStarted(2305) || pi.isQuestCompleted(2305) ||
|
||||||
pi.isQuestStarted(2306) || pi.isQuestCompleted(2306) ||
|
pi.isQuestStarted(2306) || pi.isQuestCompleted(2306) ||
|
||||||
pi.isQuestStarted(2307) || pi.isQuestCompleted(2307) ||
|
pi.isQuestStarted(2307) || pi.isQuestCompleted(2307) ||
|
||||||
pi.isQuestStarted(2308) || pi.isQuestCompleted(2308) ||
|
pi.isQuestStarted(2308) || pi.isQuestCompleted(2308) ||
|
||||||
pi.isQuestStarted(2309) || pi.isQuestCompleted(2309) ||
|
pi.isQuestStarted(2309) || pi.isQuestCompleted(2309) ||
|
||||||
pi.isQuestStarted(2310) || pi.isQuestCompleted(2310)) {
|
pi.isQuestStarted(2310) || pi.isQuestCompleted(2310)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(106020000, 0);
|
pi.warp(106020000, 0);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
pi.playerMessage(5, "A strange force is blocking you from entering.");
|
pi.playerMessage(5, "A strange force is blocking you from entering.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(106020501, 0);
|
pi.warp(106020501, 0);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -1,21 +1,21 @@
|
|||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
var nex = pi.getEventManager("GuardianNex");
|
var nex = pi.getEventManager("GuardianNex");
|
||||||
if(nex == null) {
|
if (nex == null) {
|
||||||
pi.message("Guardian Nex challenge encountered an error and is unavailable.");
|
pi.message("Guardian Nex challenge encountered an error and is unavailable.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
var quests = [3719, 3724, 3730, 3736, 3742, 3748];
|
var quests = [3719, 3724, 3730, 3736, 3742, 3748];
|
||||||
var mobs = [7120100, 7120101, 7120102, 8120100, 8120101, 8140510];
|
var mobs = [7120100, 7120101, 7120102, 8120100, 8120101, 8140510];
|
||||||
|
|
||||||
for(var i = 0; i < quests.length; i++) {
|
for (var i = 0; i < quests.length; i++) {
|
||||||
if (pi.isQuestActive(quests[i])) {
|
if (pi.isQuestActive(quests[i])) {
|
||||||
if(pi.getQuestProgressInt(quests[i], mobs[i]) != 0) {
|
if (pi.getQuestProgressInt(quests[i], mobs[i]) != 0) {
|
||||||
pi.message("You already faced Nex. Complete your mission.");
|
pi.message("You already faced Nex. Complete your mission.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!nex.startInstance(i, pi.getPlayer())) {
|
if (!nex.startInstance(i, pi.getPlayer())) {
|
||||||
pi.message("Someone is already challenging Nex. Wait for them to finish before you enter.");
|
pi.message("Someone is already challenging Nex. Wait for them to finish before you enter.");
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
@@ -24,7 +24,7 @@ function enter(pi) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pi.message("A mysterious force won't let you in.");
|
pi.message("A mysterious force won't let you in.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -19,21 +19,23 @@
|
|||||||
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/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Zakum PQ portal
|
Zakum PQ portal
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (!pi.getEventInstance().isEventCleared()) {
|
if (!pi.getEventInstance().isEventCleared()) {
|
||||||
pi.getPlayer().dropMessage(5, "Your team has not yet completed the trials. Fetch the Fire Ore and give it to Aura first.");
|
pi.getPlayer().dropMessage(5, "Your team has not yet completed the trials. Fetch the Fire Ore and give it to Aura first.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pi.getEventInstance().gridCheck(pi.getPlayer()) == -1) {
|
if (pi.getEventInstance().gridCheck(pi.getPlayer()) == -1) {
|
||||||
pi.getPlayer().dropMessage(5, "Your have yet to claim your prize. Talk to Aura.");
|
pi.getPlayer().dropMessage(5, "Your have yet to claim your prize. Talk to Aura.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
pi.playPortalSound(); pi.warp(211042300);
|
pi.playPortalSound();
|
||||||
|
pi.warp(211042300);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
+12
-10
@@ -19,32 +19,34 @@
|
|||||||
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/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Zakum Entrance
|
Zakum Entrance
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (!(pi.isQuestStarted(100200) || pi.isQuestCompleted(100200))) {
|
if (!(pi.isQuestStarted(100200) || pi.isQuestCompleted(100200))) {
|
||||||
pi.getPlayer().dropMessage(5,"You need approval from the masters to battle. You may not attempt the boss right now.");
|
pi.getPlayer().dropMessage(5, "You need approval from the masters to battle. You may not attempt the boss right now.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!pi.isQuestCompleted(100201)) {
|
if (!pi.isQuestCompleted(100201)) {
|
||||||
pi.getPlayer().dropMessage(5,"You haven't completed all the trials yet. You may not attempt the boss right now.");
|
pi.getPlayer().dropMessage(5, "You haven't completed all the trials yet. You may not attempt the boss right now.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!pi.haveItem(4001017)) { // thanks Conrad for pointing out missing checks for token item and unused reactor
|
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.");
|
pi.getPlayer().dropMessage(5, "You do not have the Eye of Fire. You may not face the boss.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
var react = pi.getMap().getReactorById(2118002);
|
var react = pi.getMap().getReactorById(2118002);
|
||||||
if (react != null && react.getState() > 0) {
|
if (react != null && react.getState() > 0) {
|
||||||
pi.getPlayer().dropMessage(5,"The entrance is currently blocked.");
|
pi.getPlayer().dropMessage(5, "The entrance is currently blocked.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
pi.playPortalSound(); pi.warp(211042400,"west00");
|
pi.playPortalSound();
|
||||||
|
pi.warp(211042400, "west00");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -19,13 +19,15 @@
|
|||||||
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: Moogra
|
* @author: Moogra
|
||||||
* @portal: aMatchMove2
|
* @portal: aMatchMove2
|
||||||
* @purpose: warps user out from Ariant PQ
|
* @purpose: warps user out from Ariant PQ
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound(); pi.warp(pi.getPlayer().getSavedLocation("MIRROR"));
|
pi.playPortalSound();
|
||||||
|
pi.warp(pi.getPlayer().getSavedLocation("MIRROR"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -19,7 +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/>.
|
||||||
*/
|
*/
|
||||||
function enter (pi) {
|
function enter(pi) {
|
||||||
pi.showInstruction("Press the #e#b[Up]#k arrow#n to use the portal and move to the next map.", 230, 5);
|
pi.showInstruction("Press the #e#b[Up]#k arrow#n to use the portal and move to the next map.", 230, 5);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound(); pi.warp(670010300, 0);
|
pi.playPortalSound();
|
||||||
return true;
|
pi.warp(670010300, 0);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
@@ -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 enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound(); pi.warp(670010301, 0);
|
pi.playPortalSound();
|
||||||
return true;
|
pi.warp(670010301, 0);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
@@ -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 enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound(); pi.warp(670010302, 0);
|
pi.playPortalSound();
|
||||||
return true;
|
pi.warp(670010302, 0);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
@@ -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 enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound(); pi.warp(670010400, 0);
|
pi.playPortalSound();
|
||||||
return true;
|
pi.warp(670010400, 0);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
@@ -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 enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound(); pi.warp(670010500, 0);
|
pi.playPortalSound();
|
||||||
return true;
|
pi.warp(670010500, 0);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
@@ -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 enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound(); pi.warp(670010600, 0);
|
pi.playPortalSound();
|
||||||
return true;
|
pi.warp(670010600, 0);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
@@ -20,6 +20,6 @@
|
|||||||
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 enter(pi) {
|
function enter(pi) {
|
||||||
pi.message("The gate is not opened yet.");
|
pi.message("The gate is not opened yet.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -23,13 +23,14 @@
|
|||||||
* @Author Ronan
|
* @Author Ronan
|
||||||
*/
|
*/
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
var name = pi.getPortal().getName().substring(2, 4);
|
var name = pi.getPortal().getName().substring(2, 4);
|
||||||
var gate = pi.getPlayer().getMap().getReactorByName("gate" + name);
|
var gate = pi.getPlayer().getMap().getReactorByName("gate" + name);
|
||||||
if(gate != null && gate.getState() == 4) {
|
if (gate != null && gate.getState() == 4) {
|
||||||
pi.playPortalSound(); pi.warp(670010600, "gt" + name + "PIB");
|
pi.playPortalSound();
|
||||||
return true;
|
pi.warp(670010600, "gt" + name + "PIB");
|
||||||
} else {
|
return true;
|
||||||
pi.message("The gate is not opened yet.");
|
} else {
|
||||||
return false;
|
pi.message("The gate is not opened yet.");
|
||||||
}
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -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 enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound(); pi.warp(230040420, 0);
|
pi.playPortalSound();
|
||||||
return true;
|
pi.warp(230040420, 0);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound(); pi.warp(914000100, 1);
|
pi.playPortalSound();
|
||||||
return true;
|
pi.warp(914000100, 1);
|
||||||
}
|
return true;
|
||||||
|
}
|
||||||
@@ -19,15 +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 kevintjuh93
|
@author kevintjuh93
|
||||||
*/
|
*/
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.blockPortal();
|
pi.blockPortal();
|
||||||
if (pi.containsAreaInfo(21002, "arr0=o")) {
|
if (pi.containsAreaInfo(21002, "arr0=o")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
pi.updateAreaInfo(21002, "arr0=o;mo1=o;mo2=o;mo3=o");
|
pi.updateAreaInfo(21002, "arr0=o;mo1=o;mo2=o;mo3=o");
|
||||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow3");
|
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow3");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -19,15 +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 kevintjuh93
|
@author kevintjuh93
|
||||||
*/
|
*/
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.blockPortal();
|
pi.blockPortal();
|
||||||
if (pi.containsAreaInfo(21002, "arr1=o")) {
|
if (pi.containsAreaInfo(21002, "arr1=o")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
pi.updateAreaInfo(21002, "normal=o;arr0=o;arr1=o;mo1=o;mo2=o;mo3=o;mo4=o");
|
pi.updateAreaInfo(21002, "normal=o;arr0=o;arr1=o;mo1=o;mo2=o;mo3=o;mo4=o");
|
||||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow1");
|
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow1");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -19,15 +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 kevintjuh93
|
@author kevintjuh93
|
||||||
*/
|
*/
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.blockPortal();
|
pi.blockPortal();
|
||||||
if (pi.containsAreaInfo(21002, "arr2=o")) {
|
if (pi.containsAreaInfo(21002, "arr2=o")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
pi.updateAreaInfo(21002, "normal=o;arr0=o;arr1=o;arr2=o;mo1=o;chain=o;mo2=o;mo3=o;mo4=o");
|
pi.updateAreaInfo(21002, "normal=o;arr0=o;arr1=o;arr2=o;mo1=o;chain=o;mo2=o;mo3=o;mo4=o");
|
||||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow1");
|
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow1");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -19,15 +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 kevintjuh93
|
@author kevintjuh93
|
||||||
*/
|
*/
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.blockPortal();
|
pi.blockPortal();
|
||||||
if (pi.containsAreaInfo(21002, "arr3=o")) {
|
if (pi.containsAreaInfo(21002, "arr3=o")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
pi.updateAreaInfo(21002, "cmd=o;normal=o;arr0=o;arr1=o;arr2=o;arr3=o;mo1=o;chain=o;mo2=o;mo3=o;mo4=o");
|
pi.updateAreaInfo(21002, "cmd=o;normal=o;arr0=o;arr1=o;arr2=o;arr3=o;mo1=o;chain=o;mo2=o;mo3=o;mo4=o");
|
||||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow1");
|
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow1");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -19,16 +19,17 @@
|
|||||||
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
|
||||||
*/
|
*/
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.blockPortal();
|
pi.blockPortal();
|
||||||
if (pi.containsAreaInfo(21002, "normal=o")) {
|
if (pi.containsAreaInfo(21002, "normal=o")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialGuide1");
|
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialGuide1");
|
||||||
pi.message("To use a Regular Attack on monsters, press the Ctrl key.");
|
pi.message("To use a Regular Attack on monsters, press the Ctrl key.");
|
||||||
pi.updateAreaInfo(21002, "normal=o;arr0=o;mo1=o;mo2=o;mo3=o");
|
pi.updateAreaInfo(21002, "normal=o;arr0=o;mo1=o;mo2=o;mo3=o");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -19,16 +19,17 @@
|
|||||||
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
|
||||||
*/
|
*/
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.blockPortal();
|
pi.blockPortal();
|
||||||
if (pi.containsAreaInfo(21002, "chain=o")) {
|
if (pi.containsAreaInfo(21002, "chain=o")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialGuide2");
|
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialGuide2");
|
||||||
pi.message("You can use Consecutive Attacks by pressing the Ctrl key multiple times.");
|
pi.message("You can use Consecutive Attacks by pressing the Ctrl key multiple times.");
|
||||||
pi.updateAreaInfo(21002, "normal=o;arr0=o;arr1=o;mo1=o;chain=o;mo2=o;mo3=o;mo4=o");
|
pi.updateAreaInfo(21002, "normal=o;arr0=o;arr1=o;mo1=o;chain=o;mo2=o;mo3=o;mo4=o");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -19,16 +19,17 @@
|
|||||||
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
|
||||||
*/
|
*/
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.blockPortal();
|
pi.blockPortal();
|
||||||
if (pi.containsAreaInfo(21002, "cmd=o")) {
|
if (pi.containsAreaInfo(21002, "cmd=o")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialGuide3");
|
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialGuide3");
|
||||||
pi.message("You can use a Command Attack by pressing both the arrow key and the attack key after a Consecutive Attack.");
|
pi.message("You can use a Command Attack by pressing both the arrow key and the attack key after a Consecutive Attack.");
|
||||||
pi.updateAreaInfo(21002, "cmd=o;normal=o;arr0=o;arr1=o;arr2=o;mo1=o;chain=o;mo2=o;mo3=o;mo4=o");
|
pi.updateAreaInfo(21002, "cmd=o;normal=o;arr0=o;arr1=o;arr2=o;mo1=o;chain=o;mo2=o;mo3=o;mo4=o");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -19,15 +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 kevintjuh93
|
@author kevintjuh93
|
||||||
*/
|
*/
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.blockPortal();
|
pi.blockPortal();
|
||||||
if (pi.containsAreaInfo(21002, "fin=o")) {
|
if (pi.containsAreaInfo(21002, "fin=o")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
pi.updateAreaInfo(21002, "cmd=o;normal=o;arr0=o;arr1=o;arr2=o;arr3=o;fin=o;mo1=o;chain=o;mo2=o;mo3=o;mo4=o");
|
pi.updateAreaInfo(21002, "cmd=o;normal=o;arr0=o;arr1=o;arr2=o;arr3=o;fin=o;mo1=o;chain=o;mo2=o;mo3=o;mo4=o");
|
||||||
pi.showIntro("Effect/Direction1.img/aranTutorial/ClickChild");
|
pi.showIntro("Effect/Direction1.img/aranTutorial/ClickChild");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -19,15 +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 kevintjuh93
|
@author kevintjuh93
|
||||||
*/
|
*/
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.blockPortal();
|
pi.blockPortal();
|
||||||
if (pi.containsAreaInfo(21002, "mo1=o")) {
|
if (pi.containsAreaInfo(21002, "mo1=o")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
pi.updateAreaInfo(21002, "mo1=o");
|
pi.updateAreaInfo(21002, "mo1=o");
|
||||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/legendBalloon1");
|
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/legendBalloon1");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -19,16 +19,17 @@
|
|||||||
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
|
||||||
*/
|
*/
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.blockPortal();
|
pi.blockPortal();
|
||||||
if (pi.containsAreaInfo(21002, "mo2=o")) {
|
if (pi.containsAreaInfo(21002, "mo2=o")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
pi.playSound("Aran/balloon");
|
pi.playSound("Aran/balloon");
|
||||||
pi.updateAreaInfo(21002, "mo1=o;mo2=o");
|
pi.updateAreaInfo(21002, "mo1=o;mo2=o");
|
||||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/legendBalloon2");
|
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/legendBalloon2");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -19,15 +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 kevintjuh93
|
@author kevintjuh93
|
||||||
*/
|
*/
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.blockPortal();
|
pi.blockPortal();
|
||||||
if (pi.containsAreaInfo(21002, "mo3=o")) {
|
if (pi.containsAreaInfo(21002, "mo3=o")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
pi.updateAreaInfo(21002, "mo1=o;mo2=o;mo3=o");
|
pi.updateAreaInfo(21002, "mo1=o;mo2=o;mo3=o");
|
||||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/legendBalloon3");
|
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/legendBalloon3");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -19,15 +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 kevintjuh93
|
@author kevintjuh93
|
||||||
*/
|
*/
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.blockPortal();
|
pi.blockPortal();
|
||||||
if (pi.containsAreaInfo(21002, "mo4=o")) {
|
if (pi.containsAreaInfo(21002, "mo4=o")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
pi.updateAreaInfo(21002, "normal=o;arr0=o;mo1=o;mo2=o;mo3=o;mo4=o");
|
pi.updateAreaInfo(21002, "normal=o;arr0=o;mo1=o;mo2=o;mo3=o;mo4=o");
|
||||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/legendBalloon6");
|
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/legendBalloon6");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -2,18 +2,19 @@
|
|||||||
@Author: kevintjuh93
|
@Author: kevintjuh93
|
||||||
*/
|
*/
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (pi.isQuestStarted(21000)) {
|
if (pi.isQuestStarted(21000)) {
|
||||||
//lol nexon does this xD
|
//lol nexon does this xD
|
||||||
pi.teachSkill(20000017, 0, -1, -1);
|
pi.teachSkill(20000017, 0, -1, -1);
|
||||||
pi.teachSkill(20000018, 0, -1, -1);
|
pi.teachSkill(20000018, 0, -1, -1);
|
||||||
//nexon sends updatePlayerStats Stat.AVAILABLESP 0
|
//nexon sends updatePlayerStats Stat.AVAILABLESP 0
|
||||||
pi.teachSkill(20000017, 1, 0, -1);
|
pi.teachSkill(20000017, 1, 0, -1);
|
||||||
pi.teachSkill(20000018, 1, 0, -1);
|
pi.teachSkill(20000018, 1, 0, -1);
|
||||||
//actually nexon does enableActions here :P
|
//actually nexon does enableActions here :P
|
||||||
pi.playPortalSound(); pi.warp(914000200, 1);
|
pi.playPortalSound();
|
||||||
return true;
|
pi.warp(914000200, 1);
|
||||||
} else {
|
return true;
|
||||||
pi.message("You can only exit after you accept the quest from Athena Pierce, who is to your right.");
|
} else {
|
||||||
return false;
|
pi.message("You can only exit after you accept the quest from Athena Pierce, who is to your right.");
|
||||||
}
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1,11 +1,12 @@
|
|||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
//lol nexon does this xD
|
//lol nexon does this xD
|
||||||
pi.teachSkill(20000014, 0, -1, -1);
|
pi.teachSkill(20000014, 0, -1, -1);
|
||||||
pi.teachSkill(20000015, 0, -1, -1);
|
pi.teachSkill(20000015, 0, -1, -1);
|
||||||
//nexon sends updatePlayerStats Stat.AVAILABLESP 0
|
//nexon sends updatePlayerStats Stat.AVAILABLESP 0
|
||||||
pi.teachSkill(20000014, 1, 0, -1);
|
pi.teachSkill(20000014, 1, 0, -1);
|
||||||
pi.teachSkill(20000015, 1, 0, -1);
|
pi.teachSkill(20000015, 1, 0, -1);
|
||||||
//actually nexon does enableActions here :P
|
//actually nexon does enableActions here :P
|
||||||
pi.playPortalSound(); pi.warp(914000210, 1);
|
pi.playPortalSound();
|
||||||
return true;
|
pi.warp(914000210, 1);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
//lol nexon does this xD
|
//lol nexon does this xD
|
||||||
pi.teachSkill(20000016, 0, -1, -1);
|
pi.teachSkill(20000016, 0, -1, -1);
|
||||||
//nexon sends updatePlayerStats Stat.AVAILABLESP 0
|
//nexon sends updatePlayerStats Stat.AVAILABLESP 0
|
||||||
pi.teachSkill(20000016, 1, 0, -1);
|
pi.teachSkill(20000016, 1, 0, -1);
|
||||||
//actually nexon does enableActions here :P
|
//actually nexon does enableActions here :P
|
||||||
pi.playPortalSound(); pi.warp(914000220, 1);
|
pi.playPortalSound();
|
||||||
return true;
|
pi.warp(914000220, 1);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
@@ -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 enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound(); pi.warp(980010020, 0);
|
pi.playPortalSound();
|
||||||
|
pi.warp(980010020, 0);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -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 enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound(); pi.warp(980010000, 0);
|
pi.playPortalSound();
|
||||||
|
pi.warp(980010000, 0);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -24,11 +24,12 @@ Agit's hideout (leader of the Sand Bandits)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if(pi.isQuestCompleted(3928) && pi.isQuestCompleted(3931) && pi.isQuestCompleted(3934)) {
|
if (pi.isQuestCompleted(3928) && pi.isQuestCompleted(3931) && pi.isQuestCompleted(3934)) {
|
||||||
pi.playPortalSound(); pi.warp(260000201, 1);
|
pi.playPortalSound();
|
||||||
return true;
|
pi.warp(260000201, 1);
|
||||||
} else {
|
return true;
|
||||||
pi.message("Access restricted to only members of the Sand Bandits team.");
|
} else {
|
||||||
return false;
|
pi.message("Access restricted to only members of the Sand Bandits team.");
|
||||||
}
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -20,22 +20,22 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
-- Odin JavaScript --------------------------------------------------------------------------------
|
-- Odin JavaScript --------------------------------------------------------------------------------
|
||||||
Portal - To get into Ariant Castle
|
Portal - To get into Ariant Castle
|
||||||
-- By ---------------------------------------------------------------------------------------------
|
-- By ---------------------------------------------------------------------------------------------
|
||||||
Jayd
|
Jayd
|
||||||
-- Version Info -----------------------------------------------------------------------------------
|
-- Version Info -----------------------------------------------------------------------------------
|
||||||
1.0 - First Version by Jayd
|
1.0 - First Version by Jayd
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
**/
|
**/
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (pi.getPlayer().haveItem(4031582) == true) {
|
if (pi.getPlayer().haveItem(4031582) == true) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(260000301, 5);
|
pi.warp(260000301, 5);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
pi.playerMessage(5, "You can enter only if you have a Entry Pass to the Palace.");
|
pi.playerMessage(5, "You can enter only if you have a Entry Pass to the Palace.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -20,14 +20,15 @@
|
|||||||
|
|
||||||
function isTigunMorphed(ch) {
|
function isTigunMorphed(ch) {
|
||||||
const BuffStat = Java.type('client.BuffStat');
|
const BuffStat = Java.type('client.BuffStat');
|
||||||
return ch.getBuffSource(BuffStat.MORPH) == 2210005;
|
return ch.getBuffSource(BuffStat.MORPH) == 2210005;
|
||||||
}
|
}
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if(isTigunMorphed(pi.getPlayer())) {
|
if (isTigunMorphed(pi.getPlayer())) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
pi.playPortalSound(); pi.warp(260000300, 7);
|
pi.playPortalSound();
|
||||||
|
pi.warp(260000300, 7);
|
||||||
pi.message("You, intruder! You don't have permission to roam the palace! Get out!!");
|
pi.message("You, intruder! You don't have permission to roam the palace! Get out!!");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (pi.isQuestCompleted(22015)) {
|
if (pi.isQuestCompleted(22015)) {
|
||||||
pi.playPortalSound();
|
pi.playPortalSound();
|
||||||
pi.warp(100030300, 2);
|
pi.warp(100030300, 2);
|
||||||
} else {
|
} else {
|
||||||
pi.playerMessage(5, "Please rescue the baby pig!");//not gms like
|
pi.playerMessage(5, "Please rescue the baby pig!");//not gms like
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.playPortalSound(); pi.warp(105100000, 2);
|
pi.playPortalSound();
|
||||||
|
pi.warp(105100000, 2);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user