Reformat and clean up portal scripts
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(pi.getMapId() - 2, 0);
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(pi.getMapId() - 2, 0);
|
||||
return true;
|
||||
}
|
||||
@@ -1,10 +1,10 @@
|
||||
function enter(pi) {
|
||||
var em = pi.getEventManager("KerningTrain");
|
||||
if (!em.startInstance(pi.getPlayer())) {
|
||||
pi.message("The passenger wagon is already full. Try again a bit later.");
|
||||
return false;
|
||||
}
|
||||
|
||||
pi.playPortalSound();
|
||||
return true;
|
||||
var em = pi.getEventManager("KerningTrain");
|
||||
if (!em.startInstance(pi.getPlayer())) {
|
||||
pi.message("The passenger wagon is already full. Try again a bit later.");
|
||||
return false;
|
||||
}
|
||||
|
||||
pi.playPortalSound();
|
||||
return true;
|
||||
}
|
||||
@@ -1,29 +1,29 @@
|
||||
function enter(pi) {
|
||||
var mapid = pi.getPlayer().getMap().getId();
|
||||
|
||||
|
||||
if (mapid == 103040410 && pi.isQuestCompleted(2287)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040420, "right00");
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040420, "right00");
|
||||
return true;
|
||||
} else if (mapid == 103040420 && pi.isQuestCompleted(2288)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040430, "right00");
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040430, "right00");
|
||||
return true;
|
||||
} else if (mapid == 103040410 && pi.isQuestStarted(2287)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040420, "right00");
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040420, "right00");
|
||||
return true;
|
||||
} else if (mapid == 103040420 && pi.isQuestStarted(2288)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040430, "right00");
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040430, "right00");
|
||||
return true;
|
||||
} else {
|
||||
if (mapid == 103040440 || mapid == 103040450) {
|
||||
if (mapid == 103040440 || mapid == 103040450) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(mapid + 10, "right00");
|
||||
return true;
|
||||
}
|
||||
pi.getPlayer().dropMessage(5, "You cannot access this area.");
|
||||
return false;
|
||||
}
|
||||
pi.getPlayer().dropMessage(5, "You cannot access this area.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -1,29 +1,29 @@
|
||||
function enter(pi) {
|
||||
var mapid = pi.getPlayer().getMap().getId();
|
||||
|
||||
|
||||
if (mapid == 103040410 && pi.isQuestCompleted(2287)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040420, "right01");
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040420, "right01");
|
||||
return true;
|
||||
} else if (mapid == 103040420 && pi.isQuestCompleted(2288)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040430, "right01");
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040430, "right01");
|
||||
return true;
|
||||
} else if (mapid == 103040410 && pi.isQuestStarted(2287)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040420, "right01");
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040420, "right01");
|
||||
return true;
|
||||
} else if (mapid == 103040420 && pi.isQuestStarted(2288)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040430, "right01");
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040430, "right01");
|
||||
return true;
|
||||
} else {
|
||||
if (mapid == 103040440 || mapid == 103040450) {
|
||||
if (mapid == 103040440 || mapid == 103040450) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(mapid + 10, "right01");
|
||||
return true;
|
||||
}
|
||||
pi.getPlayer().dropMessage(5, "You cannot access this area.");
|
||||
return false;
|
||||
}
|
||||
pi.getPlayer().dropMessage(5, "You cannot access this area.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
function enter(pi) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040300,1);
|
||||
pi.warp(103040300, 1);
|
||||
return true;
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
//Author: kevintjuh93
|
||||
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
if (pi.containsAreaInfo(22014, "egg=o")) {
|
||||
return false;
|
||||
}
|
||||
pi.updateAreaInfo(22014, "egg=o;mo30=o;mo40=o;mo41=o;mo50=o;mo42=o;mo60=o");
|
||||
pi.sendImage("UI/tutorial/evan/8/0");
|
||||
return true;
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
if (pi.containsAreaInfo(22014, "egg=o")) {
|
||||
return false;
|
||||
}
|
||||
pi.updateAreaInfo(22014, "egg=o;mo30=o;mo40=o;mo41=o;mo50=o;mo42=o;mo60=o");
|
||||
pi.sendImage("UI/tutorial/evan/8/0");
|
||||
return true;
|
||||
}
|
||||
@@ -20,23 +20,24 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
-- Odin JavaScript --------------------------------------------------------------------------------
|
||||
During The Ride To Ellinia
|
||||
-- By ---------------------------------------------------------------------------------------------
|
||||
Information
|
||||
-- Version Info -----------------------------------------------------------------------------------
|
||||
1.4 - Code clean up [Information]
|
||||
1.3 - Typo >.< [Information]
|
||||
1.2 - Update to support lastest script [Information]
|
||||
1.1 - The right statement to bring out the music [Information]
|
||||
1.0 - First Version by Information
|
||||
---------------------------------------------------------------------------------------------------
|
||||
**/
|
||||
-- Odin JavaScript --------------------------------------------------------------------------------
|
||||
During The Ride To Ellinia
|
||||
-- By ---------------------------------------------------------------------------------------------
|
||||
Information
|
||||
-- Version Info -----------------------------------------------------------------------------------
|
||||
1.4 - Code clean up [Information]
|
||||
1.3 - Typo >.< [Information]
|
||||
1.2 - Update to support lastest script [Information]
|
||||
1.1 - The right statement to bring out the music [Information]
|
||||
1.0 - First Version by Information
|
||||
---------------------------------------------------------------------------------------------------
|
||||
**/
|
||||
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(200090000, 4);
|
||||
if(pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog").equals("true")) {
|
||||
pi.changeMusic("Bgm04/ArabPirate");
|
||||
}
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(200090000, 4);
|
||||
if (pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog").equals("true")) {
|
||||
pi.changeMusic("Bgm04/ArabPirate");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -20,23 +20,24 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
-- Odin JavaScript --------------------------------------------------------------------------------
|
||||
During The Ride To Ellinia
|
||||
-- By ---------------------------------------------------------------------------------------------
|
||||
Information
|
||||
-- Version Info -----------------------------------------------------------------------------------
|
||||
1.4 - Code clean up [Information]
|
||||
1.3 - Typo >.< [Information]
|
||||
1.2 - Update to support lastest script [Information]
|
||||
1.1 - The right statement to bring out the music [Information]
|
||||
1.0 - First Version by Information
|
||||
---------------------------------------------------------------------------------------------------
|
||||
**/
|
||||
-- Odin JavaScript --------------------------------------------------------------------------------
|
||||
During The Ride To Ellinia
|
||||
-- By ---------------------------------------------------------------------------------------------
|
||||
Information
|
||||
-- Version Info -----------------------------------------------------------------------------------
|
||||
1.4 - Code clean up [Information]
|
||||
1.3 - Typo >.< [Information]
|
||||
1.2 - Update to support lastest script [Information]
|
||||
1.1 - The right statement to bring out the music [Information]
|
||||
1.0 - First Version by Information
|
||||
---------------------------------------------------------------------------------------------------
|
||||
**/
|
||||
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(200090000, 5);
|
||||
if(pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog").equals("true")) {
|
||||
pi.changeMusic("Bgm04/ArabPirate");
|
||||
}
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(200090000, 5);
|
||||
if (pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog").equals("true")) {
|
||||
pi.changeMusic("Bgm04/ArabPirate");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
function enter(pi) {
|
||||
pi.playPortalSound();
|
||||
pi.warp( pi.getMapId() - 100);
|
||||
pi.warp(pi.getMapId() - 100);
|
||||
return true;
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
/*
|
||||
[CelticMS] Monster Carnival Reviving Field 1
|
||||
*/
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
/*
|
||||
[CelticMS] Monster Carnival Reviving Field 1
|
||||
*/
|
||||
|
||||
@@ -1,19 +1,18 @@
|
||||
|
||||
/*
|
||||
[CelticMS] Monster Carnival Reviving Field 1
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
var portal = 0;
|
||||
switch (pi.getPlayer().getTeam()) {
|
||||
case 0:
|
||||
portal = 4;
|
||||
break;
|
||||
case 1:
|
||||
portal = 3;
|
||||
break;
|
||||
}
|
||||
pi.warp(980000301, portal);
|
||||
pi.playPortalSound();
|
||||
return true;
|
||||
var portal = 0;
|
||||
switch (pi.getPlayer().getTeam()) {
|
||||
case 0:
|
||||
portal = 4;
|
||||
break;
|
||||
case 1:
|
||||
portal = 3;
|
||||
break;
|
||||
}
|
||||
pi.warp(980000301, portal);
|
||||
pi.playPortalSound();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1,19 +1,18 @@
|
||||
|
||||
/*
|
||||
[CelticMS] Monster Carnival Reviving Field 1
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
var portal = 0;
|
||||
switch (pi.getPlayer().getTeam()) {
|
||||
case 0:
|
||||
portal = 4;
|
||||
break;
|
||||
case 1:
|
||||
portal = 3;
|
||||
break;
|
||||
}
|
||||
pi.warp(980000401, portal);
|
||||
pi.playPortalSound();
|
||||
return true;
|
||||
var portal = 0;
|
||||
switch (pi.getPlayer().getTeam()) {
|
||||
case 0:
|
||||
portal = 4;
|
||||
break;
|
||||
case 1:
|
||||
portal = 3;
|
||||
break;
|
||||
}
|
||||
pi.warp(980000401, portal);
|
||||
pi.playPortalSound();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
|
||||
/*
|
||||
[CelticMS] Monster Carnival Reviving Field 1
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.warp(980000501, 0);
|
||||
pi.playPortalSound();
|
||||
return true;
|
||||
pi.warp(980000501, 0);
|
||||
pi.playPortalSound();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
|
||||
/*
|
||||
[CelticMS] Monster Carnival Reviving Field 1
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.warp(980000601, 0);
|
||||
pi.playPortalSound();
|
||||
return true;
|
||||
pi.warp(980000601, 0);
|
||||
pi.playPortalSound();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(674030100,"in00");
|
||||
pi.playPortalSound();
|
||||
pi.warp(674030100, "in00");
|
||||
return true;
|
||||
}
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
/*
|
||||
MiniDungeon - Rabbit
|
||||
*/
|
||||
*/
|
||||
var baseid = 105090311;
|
||||
var dungeonid = 105090320;
|
||||
var dungeons = 30;
|
||||
@@ -30,7 +30,7 @@ function enter(pi) {
|
||||
if (pi.getParty() != null) {
|
||||
if (pi.isLeader()) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warpParty(dungeonid + i, "out00");
|
||||
return true;
|
||||
@@ -42,7 +42,7 @@ function enter(pi) {
|
||||
}
|
||||
} else {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(dungeonid + i, "out00");
|
||||
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.");
|
||||
return false;
|
||||
} else {
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
/*
|
||||
MiniDungeon - Critical Error
|
||||
*/
|
||||
*/
|
||||
|
||||
var baseid = 261020300;
|
||||
var dungeonid = 261020301;
|
||||
@@ -32,7 +32,7 @@ function enter(pi) {
|
||||
if (pi.getParty() != null) {
|
||||
if (pi.isLeader()) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warpParty(dungeonid + i, "out00");
|
||||
return true;
|
||||
@@ -44,7 +44,7 @@ function enter(pi) {
|
||||
}
|
||||
} else {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(dungeonid + i, "out00");
|
||||
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.");
|
||||
return false;
|
||||
} else {
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
/*
|
||||
MiniDungeon - Golem
|
||||
*/
|
||||
*/
|
||||
|
||||
var baseid = 105040304;
|
||||
var dungeonid = 105040320;
|
||||
@@ -32,7 +32,7 @@ function enter(pi) {
|
||||
if (pi.getParty() != null) {
|
||||
if (pi.isLeader()) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warpParty(dungeonid + i, "out00");
|
||||
return true;
|
||||
@@ -44,7 +44,7 @@ function enter(pi) {
|
||||
}
|
||||
} else {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(dungeonid + i, "out00");
|
||||
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.");
|
||||
return false;
|
||||
} else {
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
/*
|
||||
MiniDungeon - Longest Ride on ByeBye Station
|
||||
*/
|
||||
*/
|
||||
|
||||
var baseid = 551030000;
|
||||
var dungeonid = 551030001;
|
||||
@@ -32,7 +32,7 @@ function enter(pi) {
|
||||
if (pi.getParty() != null) {
|
||||
if (pi.isLeader()) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warpParty(dungeonid + i, "out00");
|
||||
return true;
|
||||
@@ -44,7 +44,7 @@ function enter(pi) {
|
||||
}
|
||||
} else {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(dungeonid + i, "out00");
|
||||
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.");
|
||||
return false;
|
||||
} else {
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
/*
|
||||
MiniDungeon - Mushroom
|
||||
*/
|
||||
*/
|
||||
|
||||
var baseid = 105050100;
|
||||
var dungeonid = 105050101;
|
||||
@@ -32,7 +32,7 @@ function enter(pi) {
|
||||
if (pi.getParty() != null) {
|
||||
if (pi.isLeader()) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warpParty(dungeonid + i, "out00");
|
||||
return true;
|
||||
@@ -44,7 +44,7 @@ function enter(pi) {
|
||||
}
|
||||
} else {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(dungeonid + i, "out00");
|
||||
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.");
|
||||
return false;
|
||||
} else {
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
/*
|
||||
MiniDungeon - Pig
|
||||
*/
|
||||
*/
|
||||
|
||||
var baseid = 100020000;
|
||||
var dungeonid = 100020100;
|
||||
@@ -32,7 +32,7 @@ function enter(pi) {
|
||||
if (pi.getParty() != null) {
|
||||
if (pi.isLeader()) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warpParty(dungeonid + i, "out00");
|
||||
return true;
|
||||
@@ -44,7 +44,7 @@ function enter(pi) {
|
||||
}
|
||||
} else {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(dungeonid + i, "out00");
|
||||
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.");
|
||||
return false;
|
||||
} else {
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
/*
|
||||
MiniDungeon - Newts
|
||||
*/
|
||||
*/
|
||||
var baseid = 240040520;
|
||||
var dungeonid = 240040900;
|
||||
var dungeons = 19;
|
||||
@@ -30,7 +30,7 @@ function enter(pi) {
|
||||
if (pi.getParty() != null) {
|
||||
if (pi.isLeader()) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warpParty(dungeonid + i, "out00");
|
||||
return true;
|
||||
@@ -42,7 +42,7 @@ function enter(pi) {
|
||||
}
|
||||
} else {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(dungeonid + i, "out00");
|
||||
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.");
|
||||
return false;
|
||||
} else {
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
/*
|
||||
MiniDungeon - Rabbit
|
||||
*/
|
||||
*/
|
||||
var baseid = 221023400;
|
||||
var dungeonid = 221023401;
|
||||
var dungeons = 30;
|
||||
@@ -30,7 +30,7 @@ function enter(pi) {
|
||||
if (pi.getParty() != null) {
|
||||
if (pi.isLeader()) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warpParty(dungeonid + i, "out00");
|
||||
return true;
|
||||
@@ -42,7 +42,7 @@ function enter(pi) {
|
||||
}
|
||||
} else {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(dungeonid + i, "out00");
|
||||
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.");
|
||||
return false;
|
||||
} else {
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
/*
|
||||
MiniDungeon - Skele
|
||||
*/
|
||||
*/
|
||||
var baseid = 240040511;
|
||||
var dungeonid = 240040800;
|
||||
var dungeons = 19;
|
||||
@@ -30,7 +30,7 @@ function enter(pi) {
|
||||
if (pi.getParty() != null) {
|
||||
if (pi.isLeader()) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warpParty(dungeonid + i, "out00");
|
||||
return true;
|
||||
@@ -42,7 +42,7 @@ function enter(pi) {
|
||||
}
|
||||
} else {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(dungeonid + i, "out00");
|
||||
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.");
|
||||
return false;
|
||||
} else {
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
/*
|
||||
MiniDungeon - Round Table
|
||||
*/
|
||||
*/
|
||||
var baseid = 240020500;
|
||||
var dungeonid = 240020512;
|
||||
var dungeons = 30;
|
||||
@@ -30,7 +30,7 @@ function enter(pi) {
|
||||
if (pi.getParty() != null) {
|
||||
if (pi.isLeader()) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warpParty(dungeonid + i, "out00");
|
||||
return true;
|
||||
@@ -42,7 +42,7 @@ function enter(pi) {
|
||||
}
|
||||
} else {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(dungeonid + i, "out00");
|
||||
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.");
|
||||
return false;
|
||||
} else {
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
/*
|
||||
MiniDungeon - Sand
|
||||
*/
|
||||
*/
|
||||
var baseid = 260020600;
|
||||
var dungeonid = 260020630;
|
||||
var dungeons = 34;
|
||||
@@ -30,7 +30,7 @@ function enter(pi) {
|
||||
if (pi.getParty() != null) {
|
||||
if (pi.isLeader()) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warpParty(dungeonid + i, "out00");
|
||||
return true;
|
||||
@@ -42,7 +42,7 @@ function enter(pi) {
|
||||
}
|
||||
} else {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(dungeonid + i, "out00");
|
||||
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.");
|
||||
return false;
|
||||
} else {
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
/*
|
||||
MiniDungeon - Pirate
|
||||
*/
|
||||
*/
|
||||
var baseid = 251010402;
|
||||
var dungeonid = 251010410;
|
||||
var dungeons = 30;
|
||||
@@ -30,7 +30,7 @@ function enter(pi) {
|
||||
if (pi.getParty() != null) {
|
||||
if (pi.isLeader()) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warpParty(dungeonid + i, "out00");
|
||||
return true;
|
||||
@@ -42,7 +42,7 @@ function enter(pi) {
|
||||
}
|
||||
} else {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if(pi.startDungeonInstance(dungeonid + i)) {
|
||||
if (pi.startDungeonInstance(dungeonid + i)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(dungeonid + i, "out00");
|
||||
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.");
|
||||
return false;
|
||||
} else {
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(baseid, "MD00");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -22,7 +22,8 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992040)) {
|
||||
pi.playPortalSound(); pi.warp(610010005, "sU6_1");
|
||||
pi.playPortalSound();
|
||||
pi.warp(610010005, "sU6_1");
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -22,7 +22,8 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992040)) {
|
||||
pi.playPortalSound(); pi.warp(610010005, "sU6_1");
|
||||
pi.playPortalSound();
|
||||
pi.warp(610010005, "sU6_1");
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -22,7 +22,8 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992040)) {
|
||||
pi.playPortalSound(); pi.warp(610010005, "sU6_1");
|
||||
pi.playPortalSound();
|
||||
pi.warp(610010005, "sU6_1");
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(610020015, "CC6_A");
|
||||
pi.playPortalSound();
|
||||
pi.warp(610020015, "CC6_A");
|
||||
return true;
|
||||
}
|
||||
@@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(610020010, "CC1_A");
|
||||
pi.playPortalSound();
|
||||
pi.warp(610020010, "CC1_A");
|
||||
return true;
|
||||
}
|
||||
@@ -22,7 +22,8 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992039)) {
|
||||
pi.playPortalSound(); pi.warp(610020000, "CM1_B");
|
||||
pi.playPortalSound();
|
||||
pi.warp(610020000, "CM1_B");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -22,7 +22,8 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992039)) {
|
||||
pi.playPortalSound(); pi.warp(610020000, "CM1_C");
|
||||
pi.playPortalSound();
|
||||
pi.warp(610020000, "CM1_C");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -22,7 +22,8 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992039)) {
|
||||
pi.playPortalSound(); pi.warp(610020000, "CM1_D");
|
||||
pi.playPortalSound();
|
||||
pi.warp(610020000, "CM1_D");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -22,7 +22,8 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992039)) {
|
||||
pi.playPortalSound(); pi.warp(610020000, "CM1_E");
|
||||
pi.playPortalSound();
|
||||
pi.warp(610020000, "CM1_E");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -22,7 +22,8 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992039)) {
|
||||
pi.playPortalSound(); pi.warp(610020001, "CM2_C");
|
||||
pi.playPortalSound();
|
||||
pi.warp(610020001, "CM2_C");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -22,7 +22,8 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992039)) {
|
||||
pi.playPortalSound(); pi.warp(610020001, "CM2_D");
|
||||
pi.playPortalSound();
|
||||
pi.warp(610020001, "CM2_D");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -21,7 +21,8 @@
|
||||
*/
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992039)) {
|
||||
pi.playPortalSound(); pi.warp(610020001, "CM2_E");
|
||||
pi.playPortalSound();
|
||||
pi.warp(610020001, "CM2_E");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -22,7 +22,8 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992039)) {
|
||||
pi.playPortalSound(); pi.warp(610020001, "CM2_F");
|
||||
pi.playPortalSound();
|
||||
pi.warp(610020001, "CM2_F");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -22,7 +22,8 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992040)) {
|
||||
pi.playPortalSound(); pi.warp(610010004, "U5_1");
|
||||
pi.playPortalSound();
|
||||
pi.warp(610010004, "U5_1");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -22,7 +22,8 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992040)) {
|
||||
pi.playPortalSound(); pi.warp(610010201, "sB2_1");
|
||||
pi.playPortalSound();
|
||||
pi.warp(610010201, "sB2_1");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -22,7 +22,8 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992040)) {
|
||||
pi.playPortalSound(); pi.warp(610010001, "sU2_1");
|
||||
pi.playPortalSound();
|
||||
pi.warp(610010001, "sU2_1");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -22,7 +22,8 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992040)) {
|
||||
pi.playPortalSound(); pi.warp(610010004, "U5_1");
|
||||
pi.playPortalSound();
|
||||
pi.warp(610010004, "U5_1");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -22,7 +22,8 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992040)) {
|
||||
pi.playPortalSound(); pi.warp(610010002, "sU3_1");
|
||||
pi.playPortalSound();
|
||||
pi.warp(610010002, "sU3_1");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
function enter(pi) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(pi.getMapId() + 100, 0);
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(pi.getMapId() + 100, 0);
|
||||
return true;
|
||||
}
|
||||
@@ -20,23 +20,24 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
-- Odin JavaScript --------------------------------------------------------------------------------
|
||||
During The Ride To Orbis
|
||||
-- By ---------------------------------------------------------------------------------------------
|
||||
Information
|
||||
-- Version Info -----------------------------------------------------------------------------------
|
||||
1.4 - Code clean up [Information]
|
||||
1.4 - Remove event instance [Information]
|
||||
1.3 - Typo >.< [Information]
|
||||
1.2 - Update to support lastest script [Information]
|
||||
1.1 - The right statement to bring out the music [Information]
|
||||
1.0 - First Version by Information
|
||||
---------------------------------------------------------------------------------------------------
|
||||
**/
|
||||
-- Odin JavaScript --------------------------------------------------------------------------------
|
||||
During The Ride To Orbis
|
||||
-- By ---------------------------------------------------------------------------------------------
|
||||
Information
|
||||
-- Version Info -----------------------------------------------------------------------------------
|
||||
1.4 - Code clean up [Information]
|
||||
1.4 - Remove event instance [Information]
|
||||
1.3 - Typo >.< [Information]
|
||||
1.2 - Update to support lastest script [Information]
|
||||
1.1 - The right statement to bring out the music [Information]
|
||||
1.0 - First Version by Information
|
||||
---------------------------------------------------------------------------------------------------
|
||||
**/
|
||||
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(200090010, 4);
|
||||
if(pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog").equals("true")) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(200090010, 4);
|
||||
if (pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog").equals("true")) {
|
||||
pi.changeMusic("Bgm04/ArabPirate");
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -20,23 +20,25 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
-- Odin JavaScript --------------------------------------------------------------------------------
|
||||
During The Ride To Orbis
|
||||
-- By ---------------------------------------------------------------------------------------------
|
||||
Information
|
||||
-- Version Info -----------------------------------------------------------------------------------
|
||||
1.4 - Code clean up [Information]
|
||||
1.4 - Remove event instance [Information]
|
||||
1.3 - Typo >.< [Information]
|
||||
1.2 - Update to support lastest script [Information]
|
||||
1.1 - The right statement to bring out the music [Information]
|
||||
1.0 - First Version by Information
|
||||
---------------------------------------------------------------------------------------------------
|
||||
**/
|
||||
-- Odin JavaScript --------------------------------------------------------------------------------
|
||||
During The Ride To Orbis
|
||||
-- By ---------------------------------------------------------------------------------------------
|
||||
Information
|
||||
-- Version Info -----------------------------------------------------------------------------------
|
||||
1.4 - Code clean up [Information]
|
||||
1.4 - Remove event instance [Information]
|
||||
1.3 - Typo >.< [Information]
|
||||
1.2 - Update to support lastest script [Information]
|
||||
1.1 - The right statement to bring out the music [Information]
|
||||
1.0 - First Version by Information
|
||||
---------------------------------------------------------------------------------------------------
|
||||
**/
|
||||
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(200090010, 5);
|
||||
if (pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog").equals("true"))
|
||||
pi.playPortalSound();
|
||||
pi.warp(200090010, 5);
|
||||
if (pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog").equals("true")) {
|
||||
pi.changeMusic("Bgm04/ArabPirate");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ Vs Pink Bean - Clear stage portal
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(270050000);
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(270050000);
|
||||
return true;
|
||||
}
|
||||
@@ -20,6 +20,7 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(230040420, "out00");
|
||||
pi.playPortalSound();
|
||||
pi.warp(230040420, "out00");
|
||||
return true;
|
||||
}
|
||||
@@ -24,6 +24,7 @@ Vs Pink Bean - Resurrection stage portal
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(270050100);
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(270050100);
|
||||
return true;
|
||||
}
|
||||
@@ -29,18 +29,17 @@ function enter(pi) {
|
||||
if (pi.getParty() == null) {
|
||||
pi.playerMessage(5, "You are currently not in a party, create one to attempt the boss.");
|
||||
return false;
|
||||
} else if(!pi.isLeader()) {
|
||||
} else if (!pi.isLeader()) {
|
||||
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)) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
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.");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
//Author: kevintjuh93
|
||||
|
||||
function enter(pi) {
|
||||
var eim = pi.getPlayer().getEventInstance();
|
||||
var fc = eim.getIntProperty("falls");
|
||||
|
||||
if (fc >= 3) {
|
||||
pi.playPortalSound(); pi.warp(922240200, 0);
|
||||
} else {
|
||||
eim.setIntProperty("falls", fc + 1);
|
||||
pi.playPortalSound(); pi.warp(pi.getPlayer().getMapId(), 0);
|
||||
}
|
||||
function enter(pi) {
|
||||
var eim = pi.getPlayer().getEventInstance();
|
||||
var fc = eim.getIntProperty("falls");
|
||||
|
||||
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
|
||||
|
||||
function enter(pi) {
|
||||
var eim = pi.getPlayer().getEventInstance();
|
||||
var fc = eim.getIntProperty("falls");
|
||||
|
||||
if (fc >= 3) {
|
||||
pi.playPortalSound(); pi.warp(922240200, 0);
|
||||
} else {
|
||||
eim.setIntProperty("falls", fc + 1);
|
||||
pi.playPortalSound(); pi.warp(pi.getPlayer().getMapId(), 0);
|
||||
}
|
||||
function enter(pi) {
|
||||
var eim = pi.getPlayer().getEventInstance();
|
||||
var fc = eim.getIntProperty("falls");
|
||||
|
||||
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
|
||||
|
||||
function enter(pi) {
|
||||
var eim = pi.getPlayer().getEventInstance();
|
||||
var fc = eim.getIntProperty("falls");
|
||||
|
||||
if (fc >= 3) {
|
||||
pi.playPortalSound(); pi.warp(922240200, 0);
|
||||
} else {
|
||||
eim.setIntProperty("falls", fc + 1);
|
||||
pi.playPortalSound(); pi.warp(pi.getPlayer().getMapId(), 0);
|
||||
}
|
||||
function enter(pi) {
|
||||
var eim = pi.getPlayer().getEventInstance();
|
||||
var fc = eim.getIntProperty("falls");
|
||||
|
||||
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
|
||||
|
||||
function enter(pi) {
|
||||
var eim = pi.getPlayer().getEventInstance();
|
||||
var fc = eim.getIntProperty("falls");
|
||||
|
||||
if (fc >= 3) {
|
||||
pi.playPortalSound(); pi.warp(922240200, 0);
|
||||
} else {
|
||||
eim.setIntProperty("falls", fc + 1);
|
||||
pi.playPortalSound(); pi.warp(pi.getPlayer().getMapId(), 0);
|
||||
}
|
||||
function enter(pi) {
|
||||
var eim = pi.getPlayer().getEventInstance();
|
||||
var fc = eim.getIntProperty("falls");
|
||||
|
||||
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 */
|
||||
|
||||
function enter(pi) {
|
||||
var stage = ((Math.floor(pi.getMapId() / 100)) % 10) - 1;
|
||||
var em = pi.getEventManager("TD_Battle" + stage);
|
||||
if(em == null) {
|
||||
pi.playerMessage(5, "TD Battle " + stage + " encountered an unexpected error and is currently unavailable.");
|
||||
return false;
|
||||
}
|
||||
var stage = ((Math.floor(pi.getMapId() / 100)) % 10) - 1;
|
||||
var em = pi.getEventManager("TD_Battle" + stage);
|
||||
if (em == null) {
|
||||
pi.playerMessage(5, "TD Battle " + stage + " encountered an unexpected error and is currently unavailable.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (pi.getParty() == null) {
|
||||
pi.playerMessage(5, "You are currently not in a party, create one to attempt the boss.");
|
||||
return false;
|
||||
} else if(!pi.isLeader()) {
|
||||
pi.playerMessage(5, "Your party leader must enter the portal to start the battle.");
|
||||
if (pi.getParty() == null) {
|
||||
pi.playerMessage(5, "You are currently not in a party, create one to attempt the boss.");
|
||||
return false;
|
||||
} else if (!pi.isLeader()) {
|
||||
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;
|
||||
}
|
||||
} 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;
|
||||
}
|
||||
}
|
||||
else {
|
||||
pi.playerMessage(5, "Your party must consist of at least 2 players to attempt the boss.");
|
||||
return false;
|
||||
}
|
||||
|
||||
pi.playPortalSound();
|
||||
return true;
|
||||
pi.playerMessage(5, "Your party must consist of at least 2 players to attempt the boss.");
|
||||
return false;
|
||||
}
|
||||
|
||||
pi.playPortalSound();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
function enter(pi) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(106021300, 1);
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(106021300, 1);
|
||||
return true;
|
||||
}
|
||||
@@ -1,13 +1,12 @@
|
||||
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){
|
||||
pi.openNpc(1300013);
|
||||
}
|
||||
else{
|
||||
pi.playPortalSound();
|
||||
pi.warp(106021401, 1);
|
||||
}
|
||||
|
||||
return true;
|
||||
if (pi.isQuestStarted(2330) && questProgress < 3) {
|
||||
pi.openNpc(1300013);
|
||||
} else {
|
||||
pi.playPortalSound();
|
||||
pi.warp(106021401, 1);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -1,34 +1,32 @@
|
||||
function enter(pi) {
|
||||
if(pi.isQuestCompleted(2331)) {
|
||||
if (pi.isQuestCompleted(2331)) {
|
||||
pi.openNpc(1300013);
|
||||
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.");
|
||||
if(pi.canHold(4001318)){
|
||||
if (pi.canHold(4001318)) {
|
||||
pi.gainItem(4001318, 1);
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
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.warp(106021600, 1);
|
||||
return true;
|
||||
}
|
||||
else if(pi.isQuestStarted(2332) && pi.hasItem(4032388)){
|
||||
} else if (pi.isQuestStarted(2332) && pi.hasItem(4032388)) {
|
||||
pi.forceCompleteQuest(2332, 1300002);
|
||||
pi.getPlayer().message("You've found the princess!");
|
||||
pi.giveCharacterExp(4400, pi.getPlayer());
|
||||
|
||||
|
||||
var em = pi.getEventManager("MK_PrimeMinister");
|
||||
var party = pi.getPlayer().getParty();
|
||||
if (party != null) {
|
||||
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)) {
|
||||
pi.playPortalSound();
|
||||
return true;
|
||||
@@ -46,14 +44,13 @@ function enter(pi) {
|
||||
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 party = pi.getPlayer().getParty();
|
||||
if (party != null) {
|
||||
var eli = em.getEligibleParty(pi.getParty());
|
||||
if(eli.size() > 0) {
|
||||
if (eli.size() > 0) {
|
||||
if (em.startInstance(party, pi.getMap(), 1)) {
|
||||
pi.playPortalSound();
|
||||
return true;
|
||||
@@ -71,8 +68,7 @@ function enter(pi) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
pi.getPlayer().message("The door seems to be locked. Perhaps I can find a key to open it...");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
function enter(pi) {
|
||||
if (pi.isQuestCompleted(2260) ||
|
||||
pi.isQuestStarted(2300) || pi.isQuestCompleted(2300) ||
|
||||
pi.isQuestStarted(2301) || pi.isQuestCompleted(2301) ||
|
||||
pi.isQuestStarted(2302) || pi.isQuestCompleted(2302) ||
|
||||
pi.isQuestStarted(2303) || pi.isQuestCompleted(2303) ||
|
||||
pi.isQuestStarted(2304) || pi.isQuestCompleted(2304) ||
|
||||
pi.isQuestStarted(2305) || pi.isQuestCompleted(2305) ||
|
||||
pi.isQuestStarted(2306) || pi.isQuestCompleted(2306) ||
|
||||
pi.isQuestStarted(2307) || pi.isQuestCompleted(2307) ||
|
||||
pi.isQuestStarted(2308) || pi.isQuestCompleted(2308) ||
|
||||
pi.isQuestStarted(2309) || pi.isQuestCompleted(2309) ||
|
||||
pi.isQuestStarted(2310) || pi.isQuestCompleted(2310)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(106020000, 0);
|
||||
return true;
|
||||
}
|
||||
pi.playerMessage(5, "A strange force is blocking you from entering.");
|
||||
return false;
|
||||
if (pi.isQuestCompleted(2260) ||
|
||||
pi.isQuestStarted(2300) || pi.isQuestCompleted(2300) ||
|
||||
pi.isQuestStarted(2301) || pi.isQuestCompleted(2301) ||
|
||||
pi.isQuestStarted(2302) || pi.isQuestCompleted(2302) ||
|
||||
pi.isQuestStarted(2303) || pi.isQuestCompleted(2303) ||
|
||||
pi.isQuestStarted(2304) || pi.isQuestCompleted(2304) ||
|
||||
pi.isQuestStarted(2305) || pi.isQuestCompleted(2305) ||
|
||||
pi.isQuestStarted(2306) || pi.isQuestCompleted(2306) ||
|
||||
pi.isQuestStarted(2307) || pi.isQuestCompleted(2307) ||
|
||||
pi.isQuestStarted(2308) || pi.isQuestCompleted(2308) ||
|
||||
pi.isQuestStarted(2309) || pi.isQuestCompleted(2309) ||
|
||||
pi.isQuestStarted(2310) || pi.isQuestCompleted(2310)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(106020000, 0);
|
||||
return true;
|
||||
}
|
||||
pi.playerMessage(5, "A strange force is blocking you from entering.");
|
||||
return false;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
function enter(pi) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(106020501, 0);
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(106020501, 0);
|
||||
return true;
|
||||
}
|
||||
@@ -1,21 +1,21 @@
|
||||
function enter(pi) {
|
||||
var nex = pi.getEventManager("GuardianNex");
|
||||
if(nex == null) {
|
||||
if (nex == null) {
|
||||
pi.message("Guardian Nex challenge encountered an error and is unavailable.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
var quests = [3719, 3724, 3730, 3736, 3742, 3748];
|
||||
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.getQuestProgressInt(quests[i], mobs[i]) != 0) {
|
||||
if (pi.getQuestProgressInt(quests[i], mobs[i]) != 0) {
|
||||
pi.message("You already faced Nex. Complete your mission.");
|
||||
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.");
|
||||
return false;
|
||||
} else {
|
||||
@@ -24,7 +24,7 @@ function enter(pi) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
pi.message("A mysterious force won't let you in.");
|
||||
return false;
|
||||
}
|
||||
@@ -19,21 +19,23 @@
|
||||
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/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
Zakum PQ portal
|
||||
*/
|
||||
|
||||
|
||||
function enter(pi) {
|
||||
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.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if (pi.getEventInstance().gridCheck(pi.getPlayer()) == -1) {
|
||||
pi.getPlayer().dropMessage(5, "Your have yet to claim your prize. Talk to Aura.");
|
||||
return false;
|
||||
}
|
||||
|
||||
pi.playPortalSound(); pi.warp(211042300);
|
||||
|
||||
pi.playPortalSound();
|
||||
pi.warp(211042300);
|
||||
return true;
|
||||
}
|
||||
@@ -19,32 +19,34 @@
|
||||
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/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
Zakum Entrance
|
||||
*/
|
||||
|
||||
|
||||
function enter(pi) {
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
var react = pi.getMap().getReactorById(2118002);
|
||||
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;
|
||||
}
|
||||
|
||||
pi.playPortalSound(); pi.warp(211042400,"west00");
|
||||
|
||||
pi.playPortalSound();
|
||||
pi.warp(211042400, "west00");
|
||||
return true;
|
||||
}
|
||||
@@ -19,13 +19,15 @@
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
|
||||
/*
|
||||
* @author: Moogra
|
||||
* @portal: aMatchMove2
|
||||
* @purpose: warps user out from Ariant PQ
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(pi.getPlayer().getSavedLocation("MIRROR"));
|
||||
pi.playPortalSound();
|
||||
pi.warp(pi.getPlayer().getSavedLocation("MIRROR"));
|
||||
return true;
|
||||
}
|
||||
@@ -19,7 +19,7 @@
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
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);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(670010300, 0);
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(670010300, 0);
|
||||
return true;
|
||||
}
|
||||
@@ -20,6 +20,7 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(670010301, 0);
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(670010301, 0);
|
||||
return true;
|
||||
}
|
||||
@@ -20,6 +20,7 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(670010302, 0);
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(670010302, 0);
|
||||
return true;
|
||||
}
|
||||
@@ -20,6 +20,7 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(670010400, 0);
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(670010400, 0);
|
||||
return true;
|
||||
}
|
||||
@@ -20,6 +20,7 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(670010500, 0);
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(670010500, 0);
|
||||
return true;
|
||||
}
|
||||
@@ -20,6 +20,7 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(670010600, 0);
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(670010600, 0);
|
||||
return true;
|
||||
}
|
||||
@@ -20,6 +20,6 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.message("The gate is not opened yet.");
|
||||
return false;
|
||||
pi.message("The gate is not opened yet.");
|
||||
return false;
|
||||
}
|
||||
@@ -23,13 +23,14 @@
|
||||
* @Author Ronan
|
||||
*/
|
||||
function enter(pi) {
|
||||
var name = pi.getPortal().getName().substring(2, 4);
|
||||
var gate = pi.getPlayer().getMap().getReactorByName("gate" + name);
|
||||
if(gate != null && gate.getState() == 4) {
|
||||
pi.playPortalSound(); pi.warp(670010600, "gt" + name + "PIB");
|
||||
return true;
|
||||
} else {
|
||||
pi.message("The gate is not opened yet.");
|
||||
return false;
|
||||
}
|
||||
var name = pi.getPortal().getName().substring(2, 4);
|
||||
var gate = pi.getPlayer().getMap().getReactorByName("gate" + name);
|
||||
if (gate != null && gate.getState() == 4) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(670010600, "gt" + name + "PIB");
|
||||
return true;
|
||||
} else {
|
||||
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/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(230040420, 0);
|
||||
return true;
|
||||
pi.playPortalSound();
|
||||
pi.warp(230040420, 0);
|
||||
return true;
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(914000100, 1);
|
||||
return true;
|
||||
}
|
||||
pi.playPortalSound();
|
||||
pi.warp(914000100, 1);
|
||||
return true;
|
||||
}
|
||||
@@ -19,15 +19,16 @@
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
@author kevintjuh93
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
if (pi.containsAreaInfo(21002, "arr0=o")) {
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
pi.updateAreaInfo(21002, "arr0=o;mo1=o;mo2=o;mo3=o");
|
||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow3");
|
||||
return true;
|
||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow3");
|
||||
return true;
|
||||
}
|
||||
@@ -19,15 +19,16 @@
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
@author kevintjuh93
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
pi.blockPortal();
|
||||
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.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow1");
|
||||
return true;
|
||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow1");
|
||||
return true;
|
||||
}
|
||||
@@ -19,15 +19,16 @@
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
@author kevintjuh93
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
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.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow1");
|
||||
return true;
|
||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow1");
|
||||
return true;
|
||||
}
|
||||
@@ -19,15 +19,16 @@
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
@author kevintjuh93
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
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.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow1");
|
||||
return true;
|
||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow1");
|
||||
return true;
|
||||
}
|
||||
@@ -19,16 +19,17 @@
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
@author kevintjuh93
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
if (pi.containsAreaInfo(21002, "normal=o")) {
|
||||
return false;
|
||||
}
|
||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialGuide1");
|
||||
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");
|
||||
return true;
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
if (pi.containsAreaInfo(21002, "normal=o")) {
|
||||
return false;
|
||||
}
|
||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialGuide1");
|
||||
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");
|
||||
return true;
|
||||
}
|
||||
@@ -19,16 +19,17 @@
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
@author kevintjuh93
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
if (pi.containsAreaInfo(21002, "chain=o")) {
|
||||
return false;
|
||||
}
|
||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialGuide2");
|
||||
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");
|
||||
return true;
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
if (pi.containsAreaInfo(21002, "chain=o")) {
|
||||
return false;
|
||||
}
|
||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialGuide2");
|
||||
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");
|
||||
return true;
|
||||
}
|
||||
@@ -19,16 +19,17 @@
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
@author kevintjuh93
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
if (pi.containsAreaInfo(21002, "cmd=o")) {
|
||||
return false;
|
||||
}
|
||||
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.updateAreaInfo(21002, "cmd=o;normal=o;arr0=o;arr1=o;arr2=o;mo1=o;chain=o;mo2=o;mo3=o;mo4=o");
|
||||
return true;
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
if (pi.containsAreaInfo(21002, "cmd=o")) {
|
||||
return false;
|
||||
}
|
||||
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.updateAreaInfo(21002, "cmd=o;normal=o;arr0=o;arr1=o;arr2=o;mo1=o;chain=o;mo2=o;mo3=o;mo4=o");
|
||||
return true;
|
||||
}
|
||||
@@ -19,15 +19,16 @@
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
@author kevintjuh93
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
if (pi.containsAreaInfo(21002, "fin=o")) {
|
||||
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.showIntro("Effect/Direction1.img/aranTutorial/ClickChild");
|
||||
return true;
|
||||
pi.blockPortal();
|
||||
if (pi.containsAreaInfo(21002, "fin=o")) {
|
||||
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.showIntro("Effect/Direction1.img/aranTutorial/ClickChild");
|
||||
return true;
|
||||
}
|
||||
@@ -19,15 +19,16 @@
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
@author kevintjuh93
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
if (pi.containsAreaInfo(21002, "mo1=o")) {
|
||||
return false;
|
||||
}
|
||||
pi.updateAreaInfo(21002, "mo1=o");
|
||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/legendBalloon1");
|
||||
return true;
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
if (pi.containsAreaInfo(21002, "mo1=o")) {
|
||||
return false;
|
||||
}
|
||||
pi.updateAreaInfo(21002, "mo1=o");
|
||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/legendBalloon1");
|
||||
return true;
|
||||
}
|
||||
@@ -19,16 +19,17 @@
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
@author kevintjuh93
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
if (pi.containsAreaInfo(21002, "mo2=o")) {
|
||||
return false;
|
||||
}
|
||||
pi.playSound("Aran/balloon");
|
||||
pi.updateAreaInfo(21002, "mo1=o;mo2=o");
|
||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/legendBalloon2");
|
||||
return true;
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
if (pi.containsAreaInfo(21002, "mo2=o")) {
|
||||
return false;
|
||||
}
|
||||
pi.playSound("Aran/balloon");
|
||||
pi.updateAreaInfo(21002, "mo1=o;mo2=o");
|
||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/legendBalloon2");
|
||||
return true;
|
||||
}
|
||||
@@ -19,15 +19,16 @@
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
@author kevintjuh93
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
if (pi.containsAreaInfo(21002, "mo3=o")) {
|
||||
return false;
|
||||
}
|
||||
pi.updateAreaInfo(21002, "mo1=o;mo2=o;mo3=o");
|
||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/legendBalloon3");
|
||||
return true;
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
if (pi.containsAreaInfo(21002, "mo3=o")) {
|
||||
return false;
|
||||
}
|
||||
pi.updateAreaInfo(21002, "mo1=o;mo2=o;mo3=o");
|
||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/legendBalloon3");
|
||||
return true;
|
||||
}
|
||||
@@ -19,15 +19,16 @@
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
@author kevintjuh93
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
if (pi.containsAreaInfo(21002, "mo4=o")) {
|
||||
return false;
|
||||
}
|
||||
pi.updateAreaInfo(21002, "normal=o;arr0=o;mo1=o;mo2=o;mo3=o;mo4=o");
|
||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/legendBalloon6");
|
||||
return true;
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
if (pi.containsAreaInfo(21002, "mo4=o")) {
|
||||
return false;
|
||||
}
|
||||
pi.updateAreaInfo(21002, "normal=o;arr0=o;mo1=o;mo2=o;mo3=o;mo4=o");
|
||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/legendBalloon6");
|
||||
return true;
|
||||
}
|
||||
@@ -2,18 +2,19 @@
|
||||
@Author: kevintjuh93
|
||||
*/
|
||||
function enter(pi) {
|
||||
if (pi.isQuestStarted(21000)) {
|
||||
//lol nexon does this xD
|
||||
pi.teachSkill(20000017, 0, -1, -1);
|
||||
pi.teachSkill(20000018, 0, -1, -1);
|
||||
//nexon sends updatePlayerStats Stat.AVAILABLESP 0
|
||||
pi.teachSkill(20000017, 1, 0, -1);
|
||||
pi.teachSkill(20000018, 1, 0, -1);
|
||||
//actually nexon does enableActions here :P
|
||||
pi.playPortalSound(); pi.warp(914000200, 1);
|
||||
return true;
|
||||
} else {
|
||||
pi.message("You can only exit after you accept the quest from Athena Pierce, who is to your right.");
|
||||
return false;
|
||||
}
|
||||
if (pi.isQuestStarted(21000)) {
|
||||
//lol nexon does this xD
|
||||
pi.teachSkill(20000017, 0, -1, -1);
|
||||
pi.teachSkill(20000018, 0, -1, -1);
|
||||
//nexon sends updatePlayerStats Stat.AVAILABLESP 0
|
||||
pi.teachSkill(20000017, 1, 0, -1);
|
||||
pi.teachSkill(20000018, 1, 0, -1);
|
||||
//actually nexon does enableActions here :P
|
||||
pi.playPortalSound();
|
||||
pi.warp(914000200, 1);
|
||||
return true;
|
||||
} else {
|
||||
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) {
|
||||
//lol nexon does this xD
|
||||
pi.teachSkill(20000014, 0, -1, -1);
|
||||
pi.teachSkill(20000015, 0, -1, -1);
|
||||
//nexon sends updatePlayerStats Stat.AVAILABLESP 0
|
||||
pi.teachSkill(20000014, 1, 0, -1);
|
||||
pi.teachSkill(20000015, 1, 0, -1);
|
||||
//actually nexon does enableActions here :P
|
||||
pi.playPortalSound(); pi.warp(914000210, 1);
|
||||
return true;
|
||||
//lol nexon does this xD
|
||||
pi.teachSkill(20000014, 0, -1, -1);
|
||||
pi.teachSkill(20000015, 0, -1, -1);
|
||||
//nexon sends updatePlayerStats Stat.AVAILABLESP 0
|
||||
pi.teachSkill(20000014, 1, 0, -1);
|
||||
pi.teachSkill(20000015, 1, 0, -1);
|
||||
//actually nexon does enableActions here :P
|
||||
pi.playPortalSound();
|
||||
pi.warp(914000210, 1);
|
||||
return true;
|
||||
}
|
||||
@@ -1,9 +1,10 @@
|
||||
function enter(pi) {
|
||||
//lol nexon does this xD
|
||||
pi.teachSkill(20000016, 0, -1, -1);
|
||||
//nexon sends updatePlayerStats Stat.AVAILABLESP 0
|
||||
pi.teachSkill(20000016, 1, 0, -1);
|
||||
//actually nexon does enableActions here :P
|
||||
pi.playPortalSound(); pi.warp(914000220, 1);
|
||||
return true;
|
||||
//lol nexon does this xD
|
||||
pi.teachSkill(20000016, 0, -1, -1);
|
||||
//nexon sends updatePlayerStats Stat.AVAILABLESP 0
|
||||
pi.teachSkill(20000016, 1, 0, -1);
|
||||
//actually nexon does enableActions here :P
|
||||
pi.playPortalSound();
|
||||
pi.warp(914000220, 1);
|
||||
return true;
|
||||
}
|
||||
@@ -20,6 +20,7 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(980010020, 0);
|
||||
pi.playPortalSound();
|
||||
pi.warp(980010020, 0);
|
||||
return true;
|
||||
}
|
||||
@@ -20,6 +20,7 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(980010000, 0);
|
||||
pi.playPortalSound();
|
||||
pi.warp(980010000, 0);
|
||||
return true;
|
||||
}
|
||||
@@ -24,11 +24,12 @@ Agit's hideout (leader of the Sand Bandits)
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
if(pi.isQuestCompleted(3928) && pi.isQuestCompleted(3931) && pi.isQuestCompleted(3934)) {
|
||||
pi.playPortalSound(); pi.warp(260000201, 1);
|
||||
return true;
|
||||
} else {
|
||||
pi.message("Access restricted to only members of the Sand Bandits team.");
|
||||
return false;
|
||||
}
|
||||
if (pi.isQuestCompleted(3928) && pi.isQuestCompleted(3931) && pi.isQuestCompleted(3934)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(260000201, 1);
|
||||
return true;
|
||||
} else {
|
||||
pi.message("Access restricted to only members of the Sand Bandits team.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -20,22 +20,22 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
-- Odin JavaScript --------------------------------------------------------------------------------
|
||||
Portal - To get into Ariant Castle
|
||||
-- By ---------------------------------------------------------------------------------------------
|
||||
Jayd
|
||||
-- Version Info -----------------------------------------------------------------------------------
|
||||
1.0 - First Version by Jayd
|
||||
---------------------------------------------------------------------------------------------------
|
||||
**/
|
||||
-- Odin JavaScript --------------------------------------------------------------------------------
|
||||
Portal - To get into Ariant Castle
|
||||
-- By ---------------------------------------------------------------------------------------------
|
||||
Jayd
|
||||
-- Version Info -----------------------------------------------------------------------------------
|
||||
1.0 - First Version by Jayd
|
||||
---------------------------------------------------------------------------------------------------
|
||||
**/
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getPlayer().haveItem(4031582) == true) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(260000301, 5);
|
||||
return true;
|
||||
} else {
|
||||
pi.playerMessage(5, "You can enter only if you have a Entry Pass to the Palace.");
|
||||
return false;
|
||||
}
|
||||
if (pi.getPlayer().haveItem(4031582) == true) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(260000301, 5);
|
||||
return true;
|
||||
} else {
|
||||
pi.playerMessage(5, "You can enter only if you have a Entry Pass to the Palace.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -20,14 +20,15 @@
|
||||
|
||||
function isTigunMorphed(ch) {
|
||||
const BuffStat = Java.type('client.BuffStat');
|
||||
return ch.getBuffSource(BuffStat.MORPH) == 2210005;
|
||||
return ch.getBuffSource(BuffStat.MORPH) == 2210005;
|
||||
}
|
||||
|
||||
function enter(pi) {
|
||||
if(isTigunMorphed(pi.getPlayer())) {
|
||||
if (isTigunMorphed(pi.getPlayer())) {
|
||||
return false;
|
||||
} 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!!");
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
function enter(pi) {
|
||||
if (pi.isQuestCompleted(22015)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(100030300, 2);
|
||||
} else {
|
||||
pi.playerMessage(5, "Please rescue the baby pig!");//not gms like
|
||||
}
|
||||
return true;
|
||||
if (pi.isQuestCompleted(22015)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(100030300, 2);
|
||||
} else {
|
||||
pi.playerMessage(5, "Please rescue the baby pig!");//not gms like
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(105100000, 2);
|
||||
pi.playPortalSound();
|
||||
pi.warp(105100000, 2);
|
||||
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