source
Source for my MapleSolaxiaV2 (v83 MapleStory).
This commit is contained in:
8
scripts/portal/Depart_ToKerning.js
Normal file
8
scripts/portal/Depart_ToKerning.js
Normal file
@@ -0,0 +1,8 @@
|
||||
function enter(pi) {
|
||||
pi.playPortalSound();
|
||||
var train = pi.getEventManager("KerningTrain");
|
||||
train.newInstance("KerningTrain");
|
||||
train.setProperty("player", pi.getPlayer().getName());
|
||||
train.startInstance(pi.getPlayer());
|
||||
return true;
|
||||
}
|
||||
3
scripts/portal/Depart_TopFloor.js
Normal file
3
scripts/portal/Depart_TopFloor.js
Normal file
@@ -0,0 +1,3 @@
|
||||
function enter(pi) {
|
||||
pi.openNpc(1052125); //It is actually suppose to open the npc, because it leads to a boss map
|
||||
}
|
||||
4
scripts/portal/Depart_goBack00.js
Normal file
4
scripts/portal/Depart_goBack00.js
Normal file
@@ -0,0 +1,4 @@
|
||||
function enter(pi) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(pi.getPlayer().getMap().getId() - 10,"left00");
|
||||
}
|
||||
5
scripts/portal/Depart_goBack01.js
Normal file
5
scripts/portal/Depart_goBack01.js
Normal file
@@ -0,0 +1,5 @@
|
||||
function enter(pi) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(pi.getPlayer().getMap().getId() -10,"left01");
|
||||
return true;
|
||||
}
|
||||
27
scripts/portal/Depart_goFoward0.js
Normal file
27
scripts/portal/Depart_goFoward0.js
Normal file
@@ -0,0 +1,27 @@
|
||||
function enter(pi) {
|
||||
if (pi.getPlayer().getMap().getId() == 103040410 && pi.isQuestCompleted(2287)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040420, "right00");
|
||||
return true;
|
||||
} else if (pi.getPlayer().getMap().getId() == 103040420 && pi.isQuestCompleted(2288)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040430, "right00");
|
||||
return true;
|
||||
} else if (pi.getPlayer().getMap().getId() == 103040410 && pi.isQuestStarted(2287)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040420, "right00");
|
||||
return true;
|
||||
} else if (pi.getPlayer().getMap().getId() == 103040420 && pi.isQuestStarted(2288)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040430, "right00");
|
||||
return true;
|
||||
} else {
|
||||
if (pi.getPlayer().getMap().getId() == 103040440 || pi.getPlayer().getMap().getId() == 103040450) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(pi.getPlayer().getMap().getId() + 10, "right00");
|
||||
return true;
|
||||
}
|
||||
pi.getPlayer().dropMessage(5, "You cannot access this area.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
27
scripts/portal/Depart_goFoward1.js
Normal file
27
scripts/portal/Depart_goFoward1.js
Normal file
@@ -0,0 +1,27 @@
|
||||
function enter(pi) {
|
||||
if (pi.getPlayer().getMap().getId() == 103040410 && pi.isQuestCompleted(2287)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040420, "right01");
|
||||
return true;
|
||||
} else if (pi.getPlayer().getMap().getId() == 103040420 && pi.isQuestCompleted(2288)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040430, "right01");
|
||||
return true;
|
||||
} else if (pi.getPlayer().getMap().getId() == 103040410 && pi.isQuestStarted(2287)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040420, "right01");
|
||||
return true;
|
||||
} else if (pi.getPlayer().getMap().getId() == 103040420 && pi.isQuestStarted(2288)) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040430, "right01");
|
||||
return true;
|
||||
} else {
|
||||
if (pi.getPlayer().getMap().getId() == 103040440 || pi.getPlayer().getMap().getId() == 103040450) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(pi.getPlayer().getMap().getId() + 10, "right01");
|
||||
return true;
|
||||
}
|
||||
pi.getPlayer().dropMessage(5, "You cannot access this area.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
5
scripts/portal/Depart_topOut.js
Normal file
5
scripts/portal/Depart_topOut.js
Normal file
@@ -0,0 +1,5 @@
|
||||
function enter(pi) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(103040300,0);
|
||||
return true;
|
||||
}
|
||||
11
scripts/portal/DragonEggNotice.js
Normal file
11
scripts/portal/DragonEggNotice.js
Normal file
@@ -0,0 +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;
|
||||
}
|
||||
42
scripts/portal/EBoat1.js
Normal file
42
scripts/portal/EBoat1.js
Normal file
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License version 3
|
||||
as published by the Free Software Foundation. You may not use, modify
|
||||
or distribute this program under any other version of the
|
||||
GNU Affero General Public License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/**
|
||||
-- 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.warp(200090000, 4);
|
||||
if(pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog").equals("true")) {
|
||||
pi.changeMusic("Bgm04/ArabPirate");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
42
scripts/portal/EBoat2.js
Normal file
42
scripts/portal/EBoat2.js
Normal file
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License version 3
|
||||
as published by the Free Software Foundation. You may not use, modify
|
||||
or distribute this program under any other version of the
|
||||
GNU Affero General Public License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/**
|
||||
-- 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.warp(200090000, 5);
|
||||
if(pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog").equals("true")) {
|
||||
pi.changeMusic("Bgm04/ArabPirate");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
57
scripts/portal/MD_drakeroom.js
Normal file
57
scripts/portal/MD_drakeroom.js
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License version 3
|
||||
as published by the Free Software Foundation. You may not use, modify
|
||||
or distribute this program under any other version of the
|
||||
GNU Affero General Public License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
MiniDungeon - Rabbit
|
||||
*/
|
||||
var baseid = 105090311;
|
||||
var dungeonid = 105090320;
|
||||
var dungeons = 30;
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getMapId() == baseid) {
|
||||
if (pi.getParty() != null) {
|
||||
if (pi.isLeader()) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if (pi.getPlayerCount(dungeonid + i) == 0) {
|
||||
pi.warpParty(dungeonid + i);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
pi.playerMessage(5, "You are not the leader of the party.");
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if (pi.getPlayerCount(dungeonid + i) == 0) {
|
||||
pi.warp(dungeonid + i);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
59
scripts/portal/MD_golem.js
Normal file
59
scripts/portal/MD_golem.js
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License version 3
|
||||
as published by the Free Software Foundation. You may not use, modify
|
||||
or distribute this program under any other version of the
|
||||
GNU Affero General Public License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
MiniDungeon - Golem
|
||||
*/
|
||||
|
||||
var baseid = 105040304;
|
||||
var dungeonid = 105040320;
|
||||
var dungeons = 30;
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getMapId() == baseid) {
|
||||
if (pi.getParty() != null) {
|
||||
if (pi.isLeader()) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if (pi.getPlayerCount(dungeonid + i) == 0) {
|
||||
pi.warpParty(dungeonid + i);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
pi.playerMessage(5, "You are not the leader of the party.");
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if (pi.getPlayerCount(dungeonid + i) == 0) {
|
||||
pi.warp(dungeonid + i);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
59
scripts/portal/MD_mushroom.js
Normal file
59
scripts/portal/MD_mushroom.js
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License version 3
|
||||
as published by the Free Software Foundation. You may not use, modify
|
||||
or distribute this program under any other version of the
|
||||
GNU Affero General Public License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
MiniDungeon - Mushroom
|
||||
*/
|
||||
|
||||
var baseid = 105050100;
|
||||
var dungeonid = 105050101;
|
||||
var dungeons = 30;
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getMapId() == baseid) {
|
||||
if (pi.getParty() != null) {
|
||||
if (pi.isLeader()) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if (pi.getPlayerCount(dungeonid + i) == 0) {
|
||||
pi.warpParty(dungeonid + i);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
pi.playerMessage(5, "You are not the leader of the party.");
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if (pi.getPlayerCount(dungeonid + i) == 0) {
|
||||
pi.warp(dungeonid + i);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
59
scripts/portal/MD_pig.js
Normal file
59
scripts/portal/MD_pig.js
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License version 3
|
||||
as published by the Free Software Foundation. You may not use, modify
|
||||
or distribute this program under any other version of the
|
||||
GNU Affero General Public License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
MiniDungeon - Pig
|
||||
*/
|
||||
|
||||
var baseid = 100020000;
|
||||
var dungeonid = 100020100;
|
||||
var dungeons = 30;
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getMapId() == baseid) {
|
||||
if (pi.getParty() != null) {
|
||||
if (pi.isLeader()) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if (pi.getPlayerCount(dungeonid + i) == 0) {
|
||||
pi.warpParty(dungeonid + i);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
pi.playerMessage(5, "You are not the leader of the party.");
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if (pi.getPlayerCount(dungeonid + i) == 0) {
|
||||
pi.warp(dungeonid + i);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
57
scripts/portal/MD_protect.js
Normal file
57
scripts/portal/MD_protect.js
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License version 3
|
||||
as published by the Free Software Foundation. You may not use, modify
|
||||
or distribute this program under any other version of the
|
||||
GNU Affero General Public License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
MiniDungeon - Newts
|
||||
*/
|
||||
var baseid = 240040520;
|
||||
var dungeonid = 240040900;
|
||||
var dungeons = 19;
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getMapId() == baseid) {
|
||||
if (pi.getParty() != null) {
|
||||
if (pi.isLeader()) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if (pi.getPlayerCount(dungeonid + i) == 0) {
|
||||
pi.warpParty(dungeonid + i);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
pi.playerMessage(5, "You are not the leader of the party.");
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if (pi.getPlayerCount(dungeonid + i) == 0) {
|
||||
pi.warp(dungeonid + i);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
57
scripts/portal/MD_rabbit.js
Normal file
57
scripts/portal/MD_rabbit.js
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License version 3
|
||||
as published by the Free Software Foundation. You may not use, modify
|
||||
or distribute this program under any other version of the
|
||||
GNU Affero General Public License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
MiniDungeon - Rabbit
|
||||
*/
|
||||
var baseid = 221023400;
|
||||
var dungeonid = 221023401;
|
||||
var dungeons = 30;
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getMapId() == baseid) {
|
||||
if (pi.getParty() != null) {
|
||||
if (pi.isLeader()) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if (pi.getPlayerCount(dungeonid + i) == 0) {
|
||||
pi.warpParty(dungeonid + i);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
pi.playerMessage(5, "You are not the leader of the party.");
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if (pi.getPlayerCount(dungeonid + i) == 0) {
|
||||
pi.warp(dungeonid + i);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
57
scripts/portal/MD_remember.js
Normal file
57
scripts/portal/MD_remember.js
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License version 3
|
||||
as published by the Free Software Foundation. You may not use, modify
|
||||
or distribute this program under any other version of the
|
||||
GNU Affero General Public License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
MiniDungeon - Skele
|
||||
*/
|
||||
var baseid = 240040511;
|
||||
var dungeonid = 240040800;
|
||||
var dungeons = 19;
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getMapId() == baseid) {
|
||||
if (pi.getParty() != null) {
|
||||
if (pi.isLeader()) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if (pi.getPlayerCount(dungeonid + i) == 0) {
|
||||
pi.warpParty(dungeonid + i);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
pi.playerMessage(5, "You are not the leader of the party.");
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if (pi.getPlayerCount(dungeonid + i) == 0) {
|
||||
pi.warp(dungeonid + i);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
57
scripts/portal/MD_roundTable.js
Normal file
57
scripts/portal/MD_roundTable.js
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License version 3
|
||||
as published by the Free Software Foundation. You may not use, modify
|
||||
or distribute this program under any other version of the
|
||||
GNU Affero General Public License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
MiniDungeon - Rabbit
|
||||
*/
|
||||
var baseid = 240020500;
|
||||
var dungeonid = 240020512;
|
||||
var dungeons = 30;
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getMapId() == baseid) {
|
||||
if (pi.getParty() != null) {
|
||||
if (pi.isLeader()) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if (pi.getPlayerCount(dungeonid + i) == 0) {
|
||||
pi.warpParty(dungeonid + i);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
pi.playerMessage(5, "You are not the leader of the party.");
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if (pi.getPlayerCount(dungeonid + i) == 0) {
|
||||
pi.warp(dungeonid + i);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
57
scripts/portal/MD_sand.js
Normal file
57
scripts/portal/MD_sand.js
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License version 3
|
||||
as published by the Free Software Foundation. You may not use, modify
|
||||
or distribute this program under any other version of the
|
||||
GNU Affero General Public License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
MiniDungeon - Sand
|
||||
*/
|
||||
var baseid = 260020600;
|
||||
var dungeonid = 260020630;
|
||||
var dungeons = 34;
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getMapId() == baseid) {
|
||||
if (pi.getParty() != null) {
|
||||
if (pi.isLeader()) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if (pi.getPlayerCount(dungeonid + i) == 0) {
|
||||
pi.warpParty(dungeonid + i);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
pi.playerMessage(5, "You are not the leader of the party.");
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if (pi.getPlayerCount(dungeonid + i) == 0) {
|
||||
pi.warp(dungeonid + i);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
57
scripts/portal/MD_treasure.js
Normal file
57
scripts/portal/MD_treasure.js
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License version 3
|
||||
as published by the Free Software Foundation. You may not use, modify
|
||||
or distribute this program under any other version of the
|
||||
GNU Affero General Public License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
MiniDungeon - Pirate
|
||||
*/
|
||||
var baseid = 251010402;
|
||||
var dungeonid = 251010410;
|
||||
var dungeons = 30;
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getMapId() == baseid) {
|
||||
if (pi.getParty() != null) {
|
||||
if (pi.isLeader()) {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if (pi.getPlayerCount(dungeonid + i) == 0) {
|
||||
pi.warpParty(dungeonid + i);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
pi.playerMessage(5, "You are not the leader of the party.");
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
for (var i = 0; i < dungeons; i++) {
|
||||
if (pi.getPlayerCount(dungeonid + i) == 0) {
|
||||
pi.warp(dungeonid + i);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
29
scripts/portal/Masteria_B1_1.js
Normal file
29
scripts/portal/Masteria_B1_1.js
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992040)) {
|
||||
pi.warp(610010005, "sU6_1");
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
29
scripts/portal/Masteria_B2_1.js
Normal file
29
scripts/portal/Masteria_B2_1.js
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992040)) {
|
||||
pi.warp(610010005, "sU6_1");
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
29
scripts/portal/Masteria_B3_1.js
Normal file
29
scripts/portal/Masteria_B3_1.js
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992040)) {
|
||||
pi.warp(610010005, "sU6_1");
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
26
scripts/portal/Masteria_CC1_A.js
Normal file
26
scripts/portal/Masteria_CC1_A.js
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.warp(610020015, "CC6_A");
|
||||
return true;
|
||||
}
|
||||
26
scripts/portal/Masteria_CC6_A.js
Normal file
26
scripts/portal/Masteria_CC6_A.js
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.warp(610020010, "CC1_A");
|
||||
return true;
|
||||
}
|
||||
29
scripts/portal/Masteria_CM1_A.js
Normal file
29
scripts/portal/Masteria_CM1_A.js
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992039)) {
|
||||
pi.warp(610020000, "CM1_B");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
29
scripts/portal/Masteria_CM1_B.js
Normal file
29
scripts/portal/Masteria_CM1_B.js
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992039)) {
|
||||
pi.warp(610020000, "CM1_C");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
29
scripts/portal/Masteria_CM1_C.js
Normal file
29
scripts/portal/Masteria_CM1_C.js
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992039)) {
|
||||
pi.warp(610020000, "CM1_D");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
29
scripts/portal/Masteria_CM1_D.js
Normal file
29
scripts/portal/Masteria_CM1_D.js
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992039)) {
|
||||
pi.warp(610020000, "CM1_E");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
29
scripts/portal/Masteria_CM2_B.js
Normal file
29
scripts/portal/Masteria_CM2_B.js
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992039)) {
|
||||
pi.warp(610020001, "CM2_C");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
29
scripts/portal/Masteria_CM2_C.js
Normal file
29
scripts/portal/Masteria_CM2_C.js
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992039)) {
|
||||
pi.warp(610020001, "CM2_D");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
28
scripts/portal/Masteria_CM2_D.js
Normal file
28
scripts/portal/Masteria_CM2_D.js
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992039)) {
|
||||
pi.warp(610020001, "CM2_E");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
29
scripts/portal/Masteria_CM2_E.js
Normal file
29
scripts/portal/Masteria_CM2_E.js
Normal file
@@ -0,0 +1,29 @@
|
||||
F/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992039)) {
|
||||
pi.warp(610020001, "CM2_F");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
29
scripts/portal/Masteria_U2_1.js
Normal file
29
scripts/portal/Masteria_U2_1.js
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992040)) {
|
||||
pi.warp(610010004, "U5_1");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
29
scripts/portal/Masteria_U3_1.js
Normal file
29
scripts/portal/Masteria_U3_1.js
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992040)) {
|
||||
pi.warp(610010201, "sB2_1");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
29
scripts/portal/Masteria_U5_1.js
Normal file
29
scripts/portal/Masteria_U5_1.js
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992040)) {
|
||||
pi.warp(610010001, "sU2_1");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
29
scripts/portal/Masteria_U5_2.js
Normal file
29
scripts/portal/Masteria_U5_2.js
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992040)) {
|
||||
pi.warp(610010004, "U5_1");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
29
scripts/portal/Masteria_U6_1.js
Normal file
29
scripts/portal/Masteria_U6_1.js
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992040)) {
|
||||
pi.warp(610010002, "sU3_1");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
5
scripts/portal/NextMap.js
Normal file
5
scripts/portal/NextMap.js
Normal file
@@ -0,0 +1,5 @@
|
||||
function enter(pi) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(pi.getMapId() + 100);
|
||||
return true;
|
||||
}
|
||||
43
scripts/portal/OBoat1.js
Normal file
43
scripts/portal/OBoat1.js
Normal file
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License version 3
|
||||
as published by the Free Software Foundation. You may not use, modify
|
||||
or distribute this program under any other version of the
|
||||
GNU Affero General Public License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/**
|
||||
-- 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.warp(200090010, 4);
|
||||
if(pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog").equals("true")) {
|
||||
pi.changeMusic("Bgm04/ArabPirate");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
42
scripts/portal/OBoat2.js
Normal file
42
scripts/portal/OBoat2.js
Normal file
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License version 3
|
||||
as published by the Free Software Foundation. You may not use, modify
|
||||
or distribute this program under any other version of the
|
||||
GNU Affero General Public License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/**
|
||||
-- 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.warp(200090010, 5);
|
||||
if (pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog").equals("true"))
|
||||
pi.changeMusic("Bgm04/ArabPirate");
|
||||
return true;
|
||||
}
|
||||
25
scripts/portal/Pianus.js
Normal file
25
scripts/portal/Pianus.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.warp(230040420, "out00");
|
||||
return true;
|
||||
}
|
||||
37
scripts/portal/Populatus00.js
Normal file
37
scripts/portal/Populatus00.js
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
var papuMap = pi.getClient().getChannelServer().getMapFactory().getMap(220080001);
|
||||
if (papuMap.getCharacters().size() == 0) {
|
||||
pi.getPlayer().dropMessage("The room is empty. A perfect opportunity to challenge the boss.");
|
||||
papuMap.resetReactors();
|
||||
} else { // someone is inside
|
||||
for (var i = 0; i < 3; i++) {
|
||||
if (papuMap.getMonsterById(8500000 + i) != null) {
|
||||
pi.getPlayer().dropMessage("Someone is fighting Papulatus.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
pi.warp(220080001, "st00");
|
||||
return true;
|
||||
}
|
||||
11
scripts/portal/Spacegaga_out0.js
Normal file
11
scripts/portal/Spacegaga_out0.js
Normal file
@@ -0,0 +1,11 @@
|
||||
//Author: kevintjuh93
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getPlayer().getEvents().getGagaRescue().fallAndGet() > 3) {
|
||||
pi.warp(922240200);
|
||||
pi.getPlayer().cancelEffect(2360002);
|
||||
} else
|
||||
pi.warp(pi.getPlayer().getMapId());
|
||||
|
||||
return true;
|
||||
}
|
||||
11
scripts/portal/Spacegaga_out1.js
Normal file
11
scripts/portal/Spacegaga_out1.js
Normal file
@@ -0,0 +1,11 @@
|
||||
//Author: kevintjuh93
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getPlayer().getEvents().getGagaRescue().fallAndGet() > 3) {
|
||||
pi.warp(922240200);
|
||||
pi.getPlayer().cancelEffect(2360002);
|
||||
} else
|
||||
pi.warp(pi.getPlayer().getMapId());
|
||||
|
||||
return true;
|
||||
}
|
||||
11
scripts/portal/Spacegaga_out2.js
Normal file
11
scripts/portal/Spacegaga_out2.js
Normal file
@@ -0,0 +1,11 @@
|
||||
//Author: kevintjuh93
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getPlayer().getEvents().getGagaRescue().fallAndGet() > 3) {
|
||||
pi.warp(922240200);
|
||||
pi.getPlayer().cancelEffect(2360002);
|
||||
} else
|
||||
pi.warp(pi.getPlayer().getMapId());
|
||||
|
||||
return true;
|
||||
}
|
||||
11
scripts/portal/Spacegaga_out3.js
Normal file
11
scripts/portal/Spacegaga_out3.js
Normal file
@@ -0,0 +1,11 @@
|
||||
//Author: kevintjuh93
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getPlayer().getEvents().getGagaRescue().fallAndGet() > 3) {
|
||||
pi.warp(922240200);
|
||||
pi.getPlayer().cancelEffect(2360002);
|
||||
} else
|
||||
pi.warp(pi.getPlayer().getMapId());
|
||||
|
||||
return true;
|
||||
}
|
||||
5
scripts/portal/TD_MC_Egate.js
Normal file
5
scripts/portal/TD_MC_Egate.js
Normal file
@@ -0,0 +1,5 @@
|
||||
function enter(pi) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(106021300, 0);
|
||||
return true;
|
||||
}
|
||||
3
scripts/portal/TD_MC_enterboss1.js
Normal file
3
scripts/portal/TD_MC_enterboss1.js
Normal file
@@ -0,0 +1,3 @@
|
||||
function enter(pi) {
|
||||
pi.openNpc(1300013);
|
||||
}
|
||||
35
scripts/portal/TD_MC_enterboss2.js
Normal file
35
scripts/portal/TD_MC_enterboss2.js
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
This file is part of the ZeroFusion MapleStory Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
ZeroFusion organized by "RMZero213" <RMZero213@hotmail.com>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License version 3
|
||||
as published by the Free Software Foundation. You may not use, modify
|
||||
or distribute this program under any other version of the
|
||||
GNU Affero General Public License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
var dungeonid = 106021600;
|
||||
var dungeons = 10;
|
||||
|
||||
function enter(pi) {
|
||||
for(var i = 0; i < dungeons; i++) {
|
||||
if (pi.getMap(dungeonid + i).getCharactersSize() == 0) {
|
||||
pi.warp(dungeonid + i, 0);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
|
||||
return false;
|
||||
}
|
||||
18
scripts/portal/TD_MC_first.js
Normal file
18
scripts/portal/TD_MC_first.js
Normal file
@@ -0,0 +1,18 @@
|
||||
function enter(pi) {
|
||||
if (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 enetering");
|
||||
return false;
|
||||
}
|
||||
5
scripts/portal/TD_MC_jump.js
Normal file
5
scripts/portal/TD_MC_jump.js
Normal file
@@ -0,0 +1,5 @@
|
||||
function enter(pi) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(106020501, 0);
|
||||
return true;
|
||||
}
|
||||
38
scripts/portal/Zakum05.js
Normal file
38
scripts/portal/Zakum05.js
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
Zakum Entrance
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
if (!pi.haveItem(4001017)) {
|
||||
pi.getPlayer().dropMessage(6,"You do not have the Eye of Fire. You may not face the boss.");
|
||||
return false;
|
||||
}
|
||||
//var exped = pi.getEventManager("ZakumBattle").getInstance("ZakumBattle_" + pi.getPlayer().getClient().getChannel());
|
||||
//if (exped != null) {
|
||||
// pi.getPlayer().dropMessage(6,"The battle at Zakum's Altar is currently underway.");
|
||||
// return false;
|
||||
//}
|
||||
pi.warp(211042400,"west00");
|
||||
return true;
|
||||
}
|
||||
31
scripts/portal/aMatchMove2.js
Normal file
31
scripts/portal/aMatchMove2.js
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
* @author: Moogra
|
||||
* @portal: aMatchMove2
|
||||
* @purpose: warps user out from Ariant PQ
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.warp(pi.getPlayer().getSavedLocation("MIRROR"));
|
||||
return true;
|
||||
}
|
||||
25
scripts/portal/advice00.js
Normal file
25
scripts/portal/advice00.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.showInstruction("You can move by using the arrow keys.", 250, 5);
|
||||
return true;
|
||||
}
|
||||
25
scripts/portal/advice01.js
Normal file
25
scripts/portal/advice01.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.showInstruction("Click \r\\#b<Heena>#k", 100, 5);
|
||||
return true;
|
||||
}
|
||||
25
scripts/portal/advice02.js
Normal file
25
scripts/portal/advice02.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.showInstruction("Press #e#b[Alt]#k#n to\r\\ JUMP.", 100, 5);
|
||||
return true;
|
||||
}
|
||||
25
scripts/portal/advice03.js
Normal file
25
scripts/portal/advice03.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.showInstruction("Press #e#b[Up]#k on the arrow key#n to climb up the ladder or rope.", 350, 5);
|
||||
return true;
|
||||
}
|
||||
25
scripts/portal/advice04.js
Normal file
25
scripts/portal/advice04.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.showInstruction("Click \r\\#b<Sera>", 100, 5);
|
||||
return true;
|
||||
}
|
||||
25
scripts/portal/advice05.js
Normal file
25
scripts/portal/advice05.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.showInstruction("Press #e#b[Q]#k#n to view the Quest window.", 250, 5);
|
||||
return true;
|
||||
}
|
||||
25
scripts/portal/advice06.js
Normal file
25
scripts/portal/advice06.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.showInstruction("Press the #e#b[Up]#k arrow#n to use the portal \r\\and move to the next map.", 230, 5);
|
||||
return true;
|
||||
}
|
||||
25
scripts/portal/advice07.js
Normal file
25
scripts/portal/advice07.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.showInstruction("You can view the World Map by pressing the #e#b[W]#k#nkey.", 350, 5);
|
||||
return true;
|
||||
}
|
||||
25
scripts/portal/advice08.js
Normal file
25
scripts/portal/advice08.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.showInstruction("You can check your character's stats by pressing the #e#b[S]#k#nkey.", 350, 5);
|
||||
return true;
|
||||
}
|
||||
25
scripts/portal/advice09.js
Normal file
25
scripts/portal/advice09.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.showInstruction("Press #e#b[Down]#k on the arrow key#n and#e#b[Alt]#k#n at the same time to jump downwards.", 450, 6);
|
||||
return true;
|
||||
}
|
||||
25
scripts/portal/adviceMap.js
Normal file
25
scripts/portal/adviceMap.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
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;
|
||||
}
|
||||
25
scripts/portal/aqua_pq_boss_0.js
Normal file
25
scripts/portal/aqua_pq_boss_0.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.warp(230040420, 0);
|
||||
return true;
|
||||
}
|
||||
4
scripts/portal/aranTutorAloneX.js
Normal file
4
scripts/portal/aranTutorAloneX.js
Normal file
@@ -0,0 +1,4 @@
|
||||
function enter(pi) {
|
||||
pi.warp(914000100, 1);
|
||||
return true;
|
||||
}
|
||||
33
scripts/portal/aranTutorArrow0.js
Normal file
33
scripts/portal/aranTutorArrow0.js
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
By kevintjuh93
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
if (pi.containsAreaInfo(21002, "arr0=o")) {
|
||||
return false;
|
||||
}
|
||||
pi.updateAreaInfo(21002, "arr0=o;mo1=o;mo2=o;mo3=o");
|
||||
pi.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow3");
|
||||
return true;
|
||||
}
|
||||
33
scripts/portal/aranTutorArrow1.js
Normal file
33
scripts/portal/aranTutorArrow1.js
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
By kevintjuh93
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
if (pi.containsAreaInfo(21002, "arr1=o")) {
|
||||
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;
|
||||
}
|
||||
33
scripts/portal/aranTutorArrow2.js
Normal file
33
scripts/portal/aranTutorArrow2.js
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
By kevintjuh93
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
if (pi.containsAreaInfo(21002, "arr2=o")) {
|
||||
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;
|
||||
}
|
||||
33
scripts/portal/aranTutorArrow3.js
Normal file
33
scripts/portal/aranTutorArrow3.js
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
By kevintjuh93
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.blockPortal();
|
||||
if (pi.containsAreaInfo(21002, "arr3=o")) {
|
||||
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;
|
||||
}
|
||||
34
scripts/portal/aranTutorGuide0.js
Normal file
34
scripts/portal/aranTutorGuide0.js
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
By 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;
|
||||
}
|
||||
34
scripts/portal/aranTutorGuide1.js
Normal file
34
scripts/portal/aranTutorGuide1.js
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
By 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;
|
||||
}
|
||||
34
scripts/portal/aranTutorGuide2.js
Normal file
34
scripts/portal/aranTutorGuide2.js
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
By 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;
|
||||
}
|
||||
33
scripts/portal/aranTutorLost.js
Normal file
33
scripts/portal/aranTutorLost.js
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
By 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;
|
||||
}
|
||||
33
scripts/portal/aranTutorMono0.js
Normal file
33
scripts/portal/aranTutorMono0.js
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
By 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;
|
||||
}
|
||||
34
scripts/portal/aranTutorMono1.js
Normal file
34
scripts/portal/aranTutorMono1.js
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
By 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;
|
||||
}
|
||||
33
scripts/portal/aranTutorMono2.js
Normal file
33
scripts/portal/aranTutorMono2.js
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
By 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;
|
||||
}
|
||||
33
scripts/portal/aranTutorMono3.js
Normal file
33
scripts/portal/aranTutorMono3.js
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
By 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;
|
||||
}
|
||||
19
scripts/portal/aranTutorOut1.js
Normal file
19
scripts/portal/aranTutorOut1.js
Normal file
@@ -0,0 +1,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 MapleStat.AVAILABLESP 0
|
||||
pi.teachSkill(20000017, 1, 0, -1);
|
||||
pi.teachSkill(20000018, 1, 0, -1);
|
||||
//actually nexon does enableActions here :P
|
||||
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;
|
||||
}
|
||||
}
|
||||
11
scripts/portal/aranTutorOut2.js
Normal file
11
scripts/portal/aranTutorOut2.js
Normal file
@@ -0,0 +1,11 @@
|
||||
function enter(pi) {
|
||||
//lol nexon does this xD
|
||||
pi.teachSkill(20000014, 0, -1, -1);
|
||||
pi.teachSkill(20000015, 0, -1, -1);
|
||||
//nexon sends updatePlayerStats MapleStat.AVAILABLESP 0
|
||||
pi.teachSkill(20000014, 1, 0, -1);
|
||||
pi.teachSkill(20000015, 1, 0, -1);
|
||||
//actually nexon does enableActions here :P
|
||||
pi.warp(914000210, 1);
|
||||
return true;
|
||||
}
|
||||
9
scripts/portal/aranTutorOut3.js
Normal file
9
scripts/portal/aranTutorOut3.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function enter(pi) {
|
||||
//lol nexon does this xD
|
||||
pi.teachSkill(20000016, 0, -1, -1);
|
||||
//nexon sends updatePlayerStats MapleStat.AVAILABLESP 0
|
||||
pi.teachSkill(20000016, 1, 0, -1);
|
||||
//actually nexon does enableActions here :P
|
||||
pi.warp(914000220, 1);
|
||||
return true;
|
||||
}
|
||||
25
scripts/portal/ariantMout.js
Normal file
25
scripts/portal/ariantMout.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.warp(980010020);
|
||||
return true;
|
||||
}
|
||||
25
scripts/portal/ariantMout2.js
Normal file
25
scripts/portal/ariantMout2.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.warp(980010000);
|
||||
return true;
|
||||
}
|
||||
9
scripts/portal/babyPigOut.js
Normal file
9
scripts/portal/babyPigOut.js
Normal file
@@ -0,0 +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;
|
||||
}
|
||||
8
scripts/portal/bedroom_out.js
Normal file
8
scripts/portal/bedroom_out.js
Normal file
@@ -0,0 +1,8 @@
|
||||
function enter(pi) {
|
||||
if (pi.isQuestStarted(2570)) {
|
||||
pi.warp(120000101);
|
||||
return true;
|
||||
}
|
||||
pi.earnTitle("You still got some stuff to take care of. I can see it in your eyes. Wait...no, those are eye boogers.");
|
||||
return false;
|
||||
}
|
||||
6
scripts/portal/cannon_tuto_06.js
Normal file
6
scripts/portal/cannon_tuto_06.js
Normal file
@@ -0,0 +1,6 @@
|
||||
function enter(pi) {
|
||||
pi.setDirectionStatus(true);
|
||||
pi.lockUI2();
|
||||
pi.openNpc(3, 1096003);
|
||||
return true;
|
||||
}
|
||||
11
scripts/portal/cannon_tuto_07.js
Normal file
11
scripts/portal/cannon_tuto_07.js
Normal file
@@ -0,0 +1,11 @@
|
||||
function enter(pi) {
|
||||
pi.setDirectionStatus(true);
|
||||
pi.lockUI2();
|
||||
pi.spawnNPC(579711, 1096012, -51, -97, 0, true);//A2 01 01 7F D8 08 00 4C B9 10 00 CD FF 9F FF 01 8A 00 9B FF FF FF 01
|
||||
pi.setNPCValue(579711, "summon");
|
||||
pi.updateInfo("fly", "579711");
|
||||
pi.sendDirectionInfo(3, 0);
|
||||
pi.sendDirectionInfo(3, 2);
|
||||
pi.sendDirectionInfo(4, 0);
|
||||
return true;
|
||||
}
|
||||
4
scripts/portal/cannon_tuto_09.js
Normal file
4
scripts/portal/cannon_tuto_09.js
Normal file
@@ -0,0 +1,4 @@
|
||||
function enter(pi) {
|
||||
pi.openNpc(8, 1096005);
|
||||
return true;
|
||||
}
|
||||
4
scripts/portal/cannon_tuto_10.js
Normal file
4
scripts/portal/cannon_tuto_10.js
Normal file
@@ -0,0 +1,4 @@
|
||||
function enter(pi) {
|
||||
pi.unlockUI();
|
||||
return true;
|
||||
}
|
||||
36
scripts/portal/captinsg00.js
Normal file
36
scripts/portal/captinsg00.js
Normal file
@@ -0,0 +1,36 @@
|
||||
//importPackage(server.maps);
|
||||
//importPackage(net.channel);
|
||||
//importPackage(tools);
|
||||
//
|
||||
//function enter(pi) {
|
||||
// var mapid = 541010100;
|
||||
// var map = ChannelServer.getInstance(pi.getPlayer().getClient().getChannel()).getMapFactory().getMap(mapid);
|
||||
// var mapchars = map.getCharacters();
|
||||
// if (mapchars.isEmpty()) {
|
||||
// var mapobjects = map.getMapObjects();
|
||||
// var iter = mapobjects.iterator();
|
||||
// while (iter.hasNext()) {
|
||||
// o = iter.next();
|
||||
// if (o.getType() == MapleMapObjectType.MONSTER){
|
||||
// map.removeMapObject(o);
|
||||
// }
|
||||
// }
|
||||
// map.resetReactors();
|
||||
// } else {
|
||||
// var mapobjects = map.getMapObjects();
|
||||
// var boss = null;
|
||||
// var iter = mapobjects.iterator();
|
||||
// while (iter.hasNext()) {
|
||||
// o = iter.next();
|
||||
// if (o.getType() == MapleMapObjectType.MONSTER){
|
||||
// boss = o;
|
||||
// }
|
||||
// }
|
||||
// if (boss != null) {
|
||||
// pi.getPlayer().dropMessage(5, "The battle against the boss has already begun, so you may not enter this place.");
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
// pi.warp(541010100, "sp");
|
||||
// return true;
|
||||
//}
|
||||
7
scripts/portal/contactDragon.js
Normal file
7
scripts/portal/contactDragon.js
Normal file
@@ -0,0 +1,7 @@
|
||||
//Author: kevintjuh93
|
||||
|
||||
function enter(pi) {
|
||||
pi.playPortalSound();
|
||||
pi.warp(900090100);
|
||||
return true;
|
||||
}
|
||||
50
scripts/portal/davy_next0.js
Normal file
50
scripts/portal/davy_next0.js
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/***********
|
||||
@Author Jvlaple
|
||||
***********/
|
||||
|
||||
function enter(pi) {
|
||||
var nextMap = 925100100;
|
||||
var eim = pi.getPlayer().getEventInstance();
|
||||
var party = eim.getPlayers();
|
||||
var target = eim.getMapInstance(nextMap);
|
||||
var targetPortal = target.getPortal("sp");
|
||||
var mobCount = pi.countMonster();
|
||||
var playerS = pi.isLeader();
|
||||
// only let people through if the eim is ready
|
||||
if (playerS == false) {
|
||||
// do nothing; send message to player
|
||||
pi.getPlayer().dropMessage(6, "Only the party leader may enter this portal.");
|
||||
return false;
|
||||
}else if (mobCount < 1) {
|
||||
eim.setProperty("entryTimeStamp", 1000 * 60 * 6);
|
||||
for(var g=0; g<party.size(); g++) {
|
||||
party.get(g).changeMap(target, targetPortal);
|
||||
party.get(g).getClient().sendClock(party.get(g).getClient(), 300);
|
||||
}
|
||||
return true;
|
||||
}else {
|
||||
pi.getPlayer().dropMessage(6, "Please kill all monsters before proceeding.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
34
scripts/portal/dojang_exit.js
Normal file
34
scripts/portal/dojang_exit.js
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
* @author: kevintjuh93/moogra
|
||||
* @portal: dojang_exit
|
||||
* @purpose: warps user out
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
var map = pi.getPlayer().getSavedLocation("MIRROR");
|
||||
if(map == -1)
|
||||
map = 100000000;
|
||||
pi.warp(map);
|
||||
return true;
|
||||
}
|
||||
42
scripts/portal/dojang_next.js
Normal file
42
scripts/portal/dojang_next.js
Normal file
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/**
|
||||
* @Author Moogra
|
||||
*/
|
||||
function enter(pi) {
|
||||
if (pi.getPlayer().getMap().getReactorByName("door").getState() == 1) {
|
||||
if ((pi.getPlayer().getMapId() / 100) % 100 != 38) {
|
||||
if (pi.getPlayer().getMap().getCharacters().size() == 1) {
|
||||
pi.resetMap(pi.getPlayer().getMapId());
|
||||
}
|
||||
pi.getPlayer().message("You received " + pi.getPlayer().addDojoPointsByMap() + " training points. Your total training points score is now " + pi.getPlayer().getDojoPoints() + ".");
|
||||
pi.warp(pi.getPlayer().getMap().getId() + 100, 0);
|
||||
} else {
|
||||
pi.warp(925020003, 0);
|
||||
pi.getPlayer().gainExp(2000 * pi.getPlayer().getDojoPoints(), true, true, true);
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
pi.getPlayer().message("The door is not open yet.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
36
scripts/portal/dojang_tuto.js
Normal file
36
scripts/portal/dojang_tuto.js
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
Author: Traitor
|
||||
Map(s): So Gong's maps
|
||||
Desc: doesn't do anything man. ANYTHING.
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getPlayer().getMap().getMonsterById(9300216) != null) {
|
||||
pi.getPlayer().enteredScript("dojang_Msg", pi.getPlayer().getMap().getId());
|
||||
pi.warp(925020001, 0);
|
||||
} else {
|
||||
pi.getPlayer().message("So Gong: Haha! You're going to run away like a coward? I won't let you get away that easily!");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
45
scripts/portal/dojang_up.js
Normal file
45
scripts/portal/dojang_up.js
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
* @author: Moogra
|
||||
* @function: Warp character up and award player with dojo points
|
||||
* @maps: All Dojo fighting maps
|
||||
*/
|
||||
|
||||
|
||||
function enter(pi) {
|
||||
try {
|
||||
if (pi.getPlayer().getMap().getMonsterById(9300216) != null) {
|
||||
pi.goDojoUp();
|
||||
pi.getPlayer().getMap().setReactorState();
|
||||
var stage = (pi.getPlayer().getMapId() / 100) % 100;
|
||||
if ((stage - (stage / 6) | 0) == pi.getPlayer().getVanquisherStage() && !pi.getPlayer().getDojoParty()) // we can also try 5 * stage / 6 | 0 + 1
|
||||
pi.getPlayer().setVanquisherKills(pi.getPlayer().getVanquisherKills() + 1);
|
||||
} else {
|
||||
pi.getPlayer().message("There are still some monsters remaining.");
|
||||
}
|
||||
pi.enableActions();
|
||||
return true;
|
||||
} catch(err) {
|
||||
pi.getPlayer().dropMessage(err);
|
||||
}
|
||||
}
|
||||
25
scripts/portal/dracoout.js
Normal file
25
scripts/portal/dracoout.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.warp(240000100, "east00");
|
||||
return true;
|
||||
}
|
||||
25
scripts/portal/dragonNest.js
Normal file
25
scripts/portal/dragonNest.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.warp(240040611, "out00");
|
||||
return true;
|
||||
}
|
||||
9
scripts/portal/dragoneyes.js
Normal file
9
scripts/portal/dragoneyes.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function enter(pi) {
|
||||
if (pi.isQuestCompleted(22012)) {
|
||||
return false;
|
||||
} else {
|
||||
pi.forceCompleteQuest(22012);
|
||||
}
|
||||
pi.blockPortal();
|
||||
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