Initial re-upload
This commit is contained in:
48
scripts/map/onFirstUserEnter/dojang_1st.js
Normal file
48
scripts/map/onFirstUserEnter/dojang_1st.js
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
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, Traitor, Ronan
|
||||
*@Map(s): All Dojo fighting maps
|
||||
*@Function: Spawns dojo monsters and handles time
|
||||
*/
|
||||
|
||||
|
||||
function start(ms) {
|
||||
ms.getPlayer().resetEnteredScript();
|
||||
var stage = Math.floor(ms.getMapId() / 100) % 100;
|
||||
var callBoss = false;
|
||||
|
||||
if (stage % 6 == 0) {
|
||||
ms.getClient().getChannelServer().dismissDojoSchedule(ms.getMapId(), ms.getParty());
|
||||
ms.getClient().getChannelServer().setDojoProgress(ms.getMapId());
|
||||
} else {
|
||||
callBoss = ms.getClient().getChannelServer().setDojoProgress(ms.getMapId());
|
||||
|
||||
var realstage = stage - ((stage / 6) | 0);
|
||||
var mob = ms.getMonsterLifeFactory(9300183 + realstage);
|
||||
if (callBoss && mob != null && ms.getPlayer().getMap().getMonsterById(9300216) == null) {
|
||||
mob.setBoss(false);
|
||||
ms.getPlayer().getMap().spawnDojoMonster(mob);
|
||||
}
|
||||
}
|
||||
}
|
||||
4
scripts/map/onFirstUserEnter/spaceGaGa_sMap.js
Normal file
4
scripts/map/onFirstUserEnter/spaceGaGa_sMap.js
Normal file
@@ -0,0 +1,4 @@
|
||||
function start(ms) {
|
||||
ms.getPlayer().resetEnteredScript();
|
||||
ms.spawnMonster(9300331, -28, 0);
|
||||
}
|
||||
16
scripts/map/onUserEnter/100000006.js
Normal file
16
scripts/map/onUserEnter/100000006.js
Normal file
@@ -0,0 +1,16 @@
|
||||
function start(ms) {
|
||||
|
||||
if (ms.getQuestStatus(2175) == 1) {
|
||||
var mobId = 9300156;
|
||||
var player = ms.getPlayer();
|
||||
var map = player.getMap();
|
||||
|
||||
if (map.getMonsterById(mobId) != null) {
|
||||
return;
|
||||
}
|
||||
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), new Point(-1027, 216));
|
||||
}
|
||||
}
|
||||
11
scripts/map/onUserEnter/101000301.js
Normal file
11
scripts/map/onUserEnter/101000301.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var eventName = "Boats";
|
||||
var toMap = 200090010;
|
||||
|
||||
function start(ms) {
|
||||
var em = ms.getClient().getEventManager(eventName);
|
||||
|
||||
//is the player late to start the travel?
|
||||
if (em.getProperty("docked") == "false") {
|
||||
ms.getClient().getPlayer().warpAhead(toMap);
|
||||
}
|
||||
}
|
||||
24
scripts/map/onUserEnter/108010101.js
Normal file
24
scripts/map/onUserEnter/108010101.js
Normal file
@@ -0,0 +1,24 @@
|
||||
function start(ms) {
|
||||
if (ms.getMapId() == 108010101) { // Archer
|
||||
spawnMob(188, 20, 9001002, ms.getPlayer().getMap());
|
||||
} else if (ms.getMapId() == 108010301) { // Warrior
|
||||
spawnMob(188, 20, 9001000, ms.getPlayer().getMap());
|
||||
} else if (ms.getMapId() == 108010201) { // Mage
|
||||
spawnMob(188, 20, 9001001, ms.getPlayer().getMap());
|
||||
} else if (ms.getMapId() == 108010401) { // Thief
|
||||
spawnMob(188, 20, 9001003, ms.getPlayer().getMap());
|
||||
} else if (ms.getMapId() == 108010501) { // Pirate
|
||||
spawnMob(188, 20, 9001008, ms.getPlayer().getMap());
|
||||
}
|
||||
}
|
||||
|
||||
function spawnMob(x, y, id, map) {
|
||||
if (map.getMonsterById(id) != null) {
|
||||
return;
|
||||
}
|
||||
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mob = LifeFactory.getMonster(id);
|
||||
map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
|
||||
}
|
||||
24
scripts/map/onUserEnter/108010201.js
Normal file
24
scripts/map/onUserEnter/108010201.js
Normal file
@@ -0,0 +1,24 @@
|
||||
function start(ms) {
|
||||
if (ms.getMapId() == 108010101) { // Archer
|
||||
spawnMob(188, 20, 9001002, ms.getPlayer().getMap());
|
||||
} else if (ms.getMapId() == 108010301) { // Warrior
|
||||
spawnMob(188, 20, 9001000, ms.getPlayer().getMap());
|
||||
} else if (ms.getMapId() == 108010201) { // Mage
|
||||
spawnMob(188, 20, 9001001, ms.getPlayer().getMap());
|
||||
} else if (ms.getMapId() == 108010401) { // Thief
|
||||
spawnMob(188, 20, 9001003, ms.getPlayer().getMap());
|
||||
} else if (ms.getMapId() == 108010501) { // Pirate
|
||||
spawnMob(188, 20, 9001008, ms.getPlayer().getMap());
|
||||
}
|
||||
}
|
||||
|
||||
function spawnMob(x, y, id, map) {
|
||||
if (map.getMonsterById(id) != null) {
|
||||
return;
|
||||
}
|
||||
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mob = LifeFactory.getMonster(id);
|
||||
map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
|
||||
}
|
||||
24
scripts/map/onUserEnter/108010301.js
Normal file
24
scripts/map/onUserEnter/108010301.js
Normal file
@@ -0,0 +1,24 @@
|
||||
function start(ms) {
|
||||
if (ms.getMapId() == 108010101) { // Archer
|
||||
spawnMob(188, 20, 9001002, ms.getPlayer().getMap());
|
||||
} else if (ms.getMapId() == 108010301) { // Warrior
|
||||
spawnMob(188, 20, 9001000, ms.getPlayer().getMap());
|
||||
} else if (ms.getMapId() == 108010201) { // Mage
|
||||
spawnMob(188, 20, 9001001, ms.getPlayer().getMap());
|
||||
} else if (ms.getMapId() == 108010401) { // Thief
|
||||
spawnMob(188, 20, 9001003, ms.getPlayer().getMap());
|
||||
} else if (ms.getMapId() == 108010501) { // Pirate
|
||||
spawnMob(188, 20, 9001008, ms.getPlayer().getMap());
|
||||
}
|
||||
}
|
||||
|
||||
function spawnMob(x, y, id, map) {
|
||||
if (map.getMonsterById(id) != null) {
|
||||
return;
|
||||
}
|
||||
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mob = LifeFactory.getMonster(id);
|
||||
map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
|
||||
}
|
||||
24
scripts/map/onUserEnter/108010401.js
Normal file
24
scripts/map/onUserEnter/108010401.js
Normal file
@@ -0,0 +1,24 @@
|
||||
function start(ms) {
|
||||
if (ms.getMapId() == 108010101) { // Archer
|
||||
spawnMob(188, 20, 9001002, ms.getPlayer().getMap());
|
||||
} else if (ms.getMapId() == 108010301) { // Warrior
|
||||
spawnMob(188, 20, 9001000, ms.getPlayer().getMap());
|
||||
} else if (ms.getMapId() == 108010201) { // Mage
|
||||
spawnMob(188, 20, 9001001, ms.getPlayer().getMap());
|
||||
} else if (ms.getMapId() == 108010401) { // Thief
|
||||
spawnMob(188, 20, 9001003, ms.getPlayer().getMap());
|
||||
} else if (ms.getMapId() == 108010501) { // Pirate
|
||||
spawnMob(188, 20, 9001008, ms.getPlayer().getMap());
|
||||
}
|
||||
}
|
||||
|
||||
function spawnMob(x, y, id, map) {
|
||||
if (map.getMonsterById(id) != null) {
|
||||
return;
|
||||
}
|
||||
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mob = LifeFactory.getMonster(id);
|
||||
map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
|
||||
}
|
||||
24
scripts/map/onUserEnter/108010501.js
Normal file
24
scripts/map/onUserEnter/108010501.js
Normal file
@@ -0,0 +1,24 @@
|
||||
function start(ms) {
|
||||
if (ms.getMapId() == 108010101) { // Archer
|
||||
spawnMob(188, 20, 9001002, ms.getPlayer().getMap());
|
||||
} else if (ms.getMapId() == 108010301) { // Warrior
|
||||
spawnMob(188, 20, 9001000, ms.getPlayer().getMap());
|
||||
} else if (ms.getMapId() == 108010201) { // Mage
|
||||
spawnMob(188, 20, 9001001, ms.getPlayer().getMap());
|
||||
} else if (ms.getMapId() == 108010401) { // Thief
|
||||
spawnMob(188, 20, 9001003, ms.getPlayer().getMap());
|
||||
} else if (ms.getMapId() == 108010501) { // Pirate
|
||||
spawnMob(188, 20, 9001008, ms.getPlayer().getMap());
|
||||
}
|
||||
}
|
||||
|
||||
function spawnMob(x, y, id, map) {
|
||||
if (map.getMonsterById(id) != null) {
|
||||
return;
|
||||
}
|
||||
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var mob = LifeFactory.getMonster(id);
|
||||
map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
|
||||
}
|
||||
31
scripts/map/onUserEnter/108010600.js
Normal file
31
scripts/map/onUserEnter/108010600.js
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
This file is part of the HeavenMS MapleStory Server
|
||||
Copyleft (L) 2016 - 2019 RonanLana
|
||||
|
||||
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/>.
|
||||
*/
|
||||
|
||||
var npcid = 1104100;
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var spawnPos = new Point(2830, 78);
|
||||
|
||||
function start(ms) {
|
||||
var mapobj = ms.getMap();
|
||||
|
||||
if (!mapobj.containsNPC(npcid)) {
|
||||
ms.spawnNpc(npcid, spawnPos, mapobj);
|
||||
}
|
||||
}
|
||||
31
scripts/map/onUserEnter/108010610.js
Normal file
31
scripts/map/onUserEnter/108010610.js
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
This file is part of the HeavenMS MapleStory Server
|
||||
Copyleft (L) 2016 - 2019 RonanLana
|
||||
|
||||
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/>.
|
||||
*/
|
||||
|
||||
var npcid = 1104101;
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var spawnPos = new Point(3395, -322);
|
||||
|
||||
function start(ms) {
|
||||
var mapobj = ms.getMap();
|
||||
|
||||
if (!mapobj.containsNPC(npcid)) {
|
||||
ms.spawnNpc(npcid, spawnPos, mapobj);
|
||||
}
|
||||
}
|
||||
31
scripts/map/onUserEnter/108010620.js
Normal file
31
scripts/map/onUserEnter/108010620.js
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
This file is part of the HeavenMS MapleStory Server
|
||||
Copyleft (L) 2016 - 2019 RonanLana
|
||||
|
||||
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/>.
|
||||
*/
|
||||
|
||||
var npcid = 1104102;
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var spawnPos = new Point(500, -522);
|
||||
|
||||
function start(ms) {
|
||||
var mapobj = ms.getMap();
|
||||
|
||||
if (!mapobj.containsNPC(npcid)) {
|
||||
ms.spawnNpc(npcid, spawnPos, mapobj);
|
||||
}
|
||||
}
|
||||
31
scripts/map/onUserEnter/108010630.js
Normal file
31
scripts/map/onUserEnter/108010630.js
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
This file is part of the HeavenMS MapleStory Server
|
||||
Copyleft (L) 2016 - 2019 RonanLana
|
||||
|
||||
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/>.
|
||||
*/
|
||||
|
||||
var npcid = 1104103;
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var spawnPos = new Point(-2263, -582);
|
||||
|
||||
function start(ms) {
|
||||
var mapobj = ms.getMap();
|
||||
|
||||
if (!mapobj.containsNPC(npcid)) {
|
||||
ms.spawnNpc(npcid, spawnPos, mapobj);
|
||||
}
|
||||
}
|
||||
31
scripts/map/onUserEnter/108010640.js
Normal file
31
scripts/map/onUserEnter/108010640.js
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
This file is part of the HeavenMS MapleStory Server
|
||||
Copyleft (L) 2016 - 2019 RonanLana
|
||||
|
||||
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/>.
|
||||
*/
|
||||
|
||||
var npcid = 1104104;
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var spawnPos = new Point(372, 70);
|
||||
|
||||
function start(ms) {
|
||||
var mapobj = ms.getMap();
|
||||
|
||||
if (!mapobj.containsNPC(npcid)) {
|
||||
ms.spawnNpc(npcid, spawnPos, mapobj);
|
||||
}
|
||||
}
|
||||
25
scripts/map/onUserEnter/130030000.js
Normal file
25
scripts/map/onUserEnter/130030000.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 start(ms) {
|
||||
ms.setQuestProgress(20010, 20022, 1);
|
||||
}
|
||||
25
scripts/map/onUserEnter/130030001.js
Normal file
25
scripts/map/onUserEnter/130030001.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 start(ms) {
|
||||
ms.setQuestProgress(20010, 20022, 1);
|
||||
}
|
||||
11
scripts/map/onUserEnter/200000112.js
Normal file
11
scripts/map/onUserEnter/200000112.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var eventName = "Boats";
|
||||
var toMap = 200090000;
|
||||
|
||||
function start(ms) {
|
||||
var em = ms.getClient().getEventManager(eventName);
|
||||
|
||||
//is the player late to start the travel?
|
||||
if (em.getProperty("docked") == "false") {
|
||||
ms.getClient().getPlayer().warpAhead(toMap);
|
||||
}
|
||||
}
|
||||
11
scripts/map/onUserEnter/200000122.js
Normal file
11
scripts/map/onUserEnter/200000122.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var eventName = "Trains";
|
||||
var toMap = 200090100;
|
||||
|
||||
function start(ms) {
|
||||
var em = ms.getClient().getEventManager(eventName);
|
||||
|
||||
//is the player late to start the travel?
|
||||
if (em.getProperty("docked") == "false") {
|
||||
ms.getClient().getPlayer().warpAhead(toMap);
|
||||
}
|
||||
}
|
||||
11
scripts/map/onUserEnter/200000132.js
Normal file
11
scripts/map/onUserEnter/200000132.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var eventName = "Cabin";
|
||||
var toMap = 200090200;
|
||||
|
||||
function start(ms) {
|
||||
var em = ms.getClient().getEventManager(eventName);
|
||||
|
||||
//is the player late to start the travel?
|
||||
if (em.getProperty("docked") == "false") {
|
||||
ms.getClient().getPlayer().warpAhead(toMap);
|
||||
}
|
||||
}
|
||||
11
scripts/map/onUserEnter/200000152.js
Normal file
11
scripts/map/onUserEnter/200000152.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var eventName = "Genie";
|
||||
var toMap = 200090400;
|
||||
|
||||
function start(ms) {
|
||||
var em = ms.getClient().getEventManager(eventName);
|
||||
|
||||
//is the player late to start the travel?
|
||||
if (em.getProperty("docked") == "false") {
|
||||
ms.getClient().getPlayer().warpAhead(toMap);
|
||||
}
|
||||
}
|
||||
14
scripts/map/onUserEnter/200090000.js
Normal file
14
scripts/map/onUserEnter/200090000.js
Normal file
@@ -0,0 +1,14 @@
|
||||
// Author: Ronan
|
||||
var mapId = 200090000;
|
||||
|
||||
function start(ms) {
|
||||
var map = ms.getClient().getChannelServer().getMapFactory().getMap(mapId);
|
||||
|
||||
if (map.getDocked()) {
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
ms.getClient().sendPacket(PacketCreator.musicChange("Bgm04/ArabPirate"));
|
||||
ms.getClient().sendPacket(PacketCreator.crogBoatPacket(true));
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
14
scripts/map/onUserEnter/200090010.js
Normal file
14
scripts/map/onUserEnter/200090010.js
Normal file
@@ -0,0 +1,14 @@
|
||||
// Author: Ronan
|
||||
var mapId = 200090010;
|
||||
|
||||
function start(ms) {
|
||||
var map = ms.getClient().getChannelServer().getMapFactory().getMap(mapId);
|
||||
|
||||
if (map.getDocked()) {
|
||||
const PacketCreator = Java.type('tools.PacketCreator');
|
||||
ms.getClient().sendPacket(PacketCreator.musicChange("Bgm04/ArabPirate"));
|
||||
ms.getClient().sendPacket(PacketCreator.crogBoatPacket(true));
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
11
scripts/map/onUserEnter/220000111.js
Normal file
11
scripts/map/onUserEnter/220000111.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var eventName = "Trains";
|
||||
var toMap = 200090110;
|
||||
|
||||
function start(ms) {
|
||||
var em = ms.getClient().getEventManager(eventName);
|
||||
|
||||
//is the player late to start the travel?
|
||||
if (em.getProperty("docked") == "false") {
|
||||
ms.getClient().getPlayer().warpAhead(toMap);
|
||||
}
|
||||
}
|
||||
11
scripts/map/onUserEnter/240000111.js
Normal file
11
scripts/map/onUserEnter/240000111.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var eventName = "Cabin";
|
||||
var toMap = 200090210;
|
||||
|
||||
function start(ms) {
|
||||
var em = ms.getClient().getEventManager(eventName);
|
||||
|
||||
//is the player late to start the travel?
|
||||
if (em.getProperty("docked") == "false") {
|
||||
ms.getClient().getPlayer().warpAhead(toMap);
|
||||
}
|
||||
}
|
||||
11
scripts/map/onUserEnter/260000110.js
Normal file
11
scripts/map/onUserEnter/260000110.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var eventName = "Genie";
|
||||
var toMap = 200090410;
|
||||
|
||||
function start(ms) {
|
||||
var em = ms.getClient().getEventManager(eventName);
|
||||
|
||||
//is the player late to start the travel?
|
||||
if (em.getProperty("docked") == "false") {
|
||||
ms.getClient().getPlayer().warpAhead(toMap);
|
||||
}
|
||||
}
|
||||
11
scripts/map/onUserEnter/540010001.js
Normal file
11
scripts/map/onUserEnter/540010001.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var eventName = "AirPlane";
|
||||
var toMap = 540010002;
|
||||
|
||||
function start(ms) {
|
||||
var em = ms.getClient().getEventManager(eventName);
|
||||
|
||||
//is the player late to start the travel?
|
||||
if (em.getProperty("docked") == "false") {
|
||||
ms.getClient().getPlayer().warpAhead(toMap);
|
||||
}
|
||||
}
|
||||
11
scripts/map/onUserEnter/540010100.js
Normal file
11
scripts/map/onUserEnter/540010100.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var eventName = "AirPlane";
|
||||
var toMap = 540010101;
|
||||
|
||||
function start(ms) {
|
||||
var em = ms.getClient().getEventManager(eventName);
|
||||
|
||||
//is the player late to start the travel?
|
||||
if (em.getProperty("docked") == "false") {
|
||||
ms.getClient().getPlayer().warpAhead(toMap);
|
||||
}
|
||||
}
|
||||
11
scripts/map/onUserEnter/600010002.js
Normal file
11
scripts/map/onUserEnter/600010002.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var eventName = "Subway";
|
||||
var toMap = 600010003;
|
||||
|
||||
function start(ms) {
|
||||
var em = ms.getClient().getEventManager(eventName);
|
||||
|
||||
//is the player late to start the travel?
|
||||
if (em.getProperty("docked") == "false") {
|
||||
ms.getClient().getPlayer().warpAhead(toMap);
|
||||
}
|
||||
}
|
||||
11
scripts/map/onUserEnter/600010004.js
Normal file
11
scripts/map/onUserEnter/600010004.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var eventName = "Subway";
|
||||
var toMap = 600010005;
|
||||
|
||||
function start(ms) {
|
||||
var em = ms.getClient().getEventManager(eventName);
|
||||
|
||||
//is the player late to start the travel?
|
||||
if (em.getProperty("docked") == "false") {
|
||||
ms.getClient().getPlayer().warpAhead(toMap);
|
||||
}
|
||||
}
|
||||
17
scripts/map/onUserEnter/677000001.js
Normal file
17
scripts/map/onUserEnter/677000001.js
Normal file
@@ -0,0 +1,17 @@
|
||||
function start(ms) {
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var pos = new Point(461, 61);
|
||||
var mobId = 9400612;
|
||||
var mobName = "Marbas";
|
||||
|
||||
var player = ms.getPlayer();
|
||||
var map = player.getMap();
|
||||
|
||||
if (map.getMonsterById(mobId) != null) {
|
||||
return;
|
||||
}
|
||||
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), pos);
|
||||
player.message(mobName + " has appeared!");
|
||||
}
|
||||
17
scripts/map/onUserEnter/677000003.js
Normal file
17
scripts/map/onUserEnter/677000003.js
Normal file
@@ -0,0 +1,17 @@
|
||||
function start(ms) {
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var pos = new Point(467, 0);
|
||||
var mobId = 9400610;
|
||||
var mobName = "Amdusias";
|
||||
|
||||
var player = ms.getPlayer();
|
||||
var map = player.getMap();
|
||||
|
||||
if (map.getMonsterById(mobId) != null) {
|
||||
return;
|
||||
}
|
||||
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), pos);
|
||||
player.message(mobName + " has appeared!");
|
||||
}
|
||||
17
scripts/map/onUserEnter/677000005.js
Normal file
17
scripts/map/onUserEnter/677000005.js
Normal file
@@ -0,0 +1,17 @@
|
||||
function start(ms) {
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var pos = new Point(201, 80);
|
||||
var mobId = 9400609;
|
||||
var mobName = "Andras";
|
||||
|
||||
var player = ms.getPlayer();
|
||||
var map = player.getMap();
|
||||
|
||||
if (map.getMonsterById(mobId) != null) {
|
||||
return;
|
||||
}
|
||||
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), pos);
|
||||
player.message(mobName + " has appeared!");
|
||||
}
|
||||
17
scripts/map/onUserEnter/677000007.js
Normal file
17
scripts/map/onUserEnter/677000007.js
Normal file
@@ -0,0 +1,17 @@
|
||||
function start(ms) {
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var pos = new Point(171, 50);
|
||||
var mobId = 9400611;
|
||||
var mobName = "Crocell";
|
||||
|
||||
var player = ms.getPlayer();
|
||||
var map = player.getMap();
|
||||
|
||||
if (map.getMonsterById(mobId) != null) {
|
||||
return;
|
||||
}
|
||||
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), pos);
|
||||
player.message(mobName + " has appeared!");
|
||||
}
|
||||
17
scripts/map/onUserEnter/677000009.js
Normal file
17
scripts/map/onUserEnter/677000009.js
Normal file
@@ -0,0 +1,17 @@
|
||||
function start(ms) {
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var pos = new Point(251, -841);
|
||||
var mobId = 9400613;
|
||||
var mobName = "Valefor";
|
||||
|
||||
var player = ms.getPlayer();
|
||||
var map = player.getMap();
|
||||
|
||||
if (map.getMonsterById(mobId) != null) {
|
||||
return;
|
||||
}
|
||||
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), pos);
|
||||
player.message(mobName + " has appeared!");
|
||||
}
|
||||
17
scripts/map/onUserEnter/677000012.js
Normal file
17
scripts/map/onUserEnter/677000012.js
Normal file
@@ -0,0 +1,17 @@
|
||||
function start(ms) {
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var pos = new Point(842, 0);
|
||||
var mobId = 9400633;
|
||||
var mobName = "Astaroth";
|
||||
|
||||
var player = ms.getPlayer();
|
||||
var map = player.getMap();
|
||||
|
||||
if (map.getMonsterById(mobId) != null) {
|
||||
return;
|
||||
}
|
||||
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), pos);
|
||||
player.message(mobName + " has appeared!");
|
||||
}
|
||||
16
scripts/map/onUserEnter/910510000.js
Normal file
16
scripts/map/onUserEnter/910510000.js
Normal file
@@ -0,0 +1,16 @@
|
||||
function start(ms) {
|
||||
var player = ms.getPlayer();
|
||||
var map = player.getMap();
|
||||
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
if (player.isCygnus()) {
|
||||
if (ms.isQuestStarted(20730) && ms.getQuestProgressInt(20730, 9300285) == 0) {
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(9300285), new Point(680, 258));
|
||||
}
|
||||
} else {
|
||||
if (ms.isQuestStarted(21731) && ms.getQuestProgressInt(21731, 9300344) == 0) {
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(9300344), new Point(680, 258));
|
||||
}
|
||||
}
|
||||
}
|
||||
25
scripts/map/onUserEnter/914000100.js
Normal file
25
scripts/map/onUserEnter/914000100.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 start(ms) {
|
||||
ms.setQuestProgress(21000, 21002, 1);
|
||||
}
|
||||
8
scripts/map/onUserEnter/922000000.js
Normal file
8
scripts/map/onUserEnter/922000000.js
Normal file
@@ -0,0 +1,8 @@
|
||||
function start(ms) {
|
||||
var map = ms.getClient().getChannelServer().getMapFactory().getMap(922000000);
|
||||
map.clearDrops();
|
||||
map.resetReactors();
|
||||
map.shuffleReactors();
|
||||
|
||||
return (true);
|
||||
}
|
||||
10
scripts/map/onUserEnter/925040100.js
Normal file
10
scripts/map/onUserEnter/925040100.js
Normal file
@@ -0,0 +1,10 @@
|
||||
function start(ms) {
|
||||
var player = ms.getPlayer();
|
||||
var map = player.getMap();
|
||||
|
||||
if (ms.isQuestStarted(21747) && ms.getQuestProgressInt(21747, 9300351) == 0) {
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(9300351), new Point(897, 51));
|
||||
}
|
||||
}
|
||||
10
scripts/map/onUserEnter/926000000.js
Normal file
10
scripts/map/onUserEnter/926000000.js
Normal file
@@ -0,0 +1,10 @@
|
||||
function start(ms) {
|
||||
var map = ms.getClient().getChannelServer().getMapFactory().getMap(926000000);
|
||||
map.resetPQ(1);
|
||||
|
||||
if (map.countMonster(9100013) == 0) {
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(9100013), new java.awt.Point(82, 200));
|
||||
}
|
||||
|
||||
return (true);
|
||||
}
|
||||
25
scripts/map/onUserEnter/926000010.js
Normal file
25
scripts/map/onUserEnter/926000010.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
This file is part of the HeavenMS MapleStory Server
|
||||
Copyleft (L) 2016 - 2019 RonanLana
|
||||
|
||||
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 start(ms) {
|
||||
var map = ms.getClient().getChannelServer().getMapFactory().getMap(926000010);
|
||||
map.resetPQ(1);
|
||||
return (true);
|
||||
}
|
||||
20
scripts/map/onUserEnter/926120300.js
Normal file
20
scripts/map/onUserEnter/926120300.js
Normal file
@@ -0,0 +1,20 @@
|
||||
function getInactiveReactors(map) {
|
||||
var reactors = [];
|
||||
|
||||
var iter = map.getReactors().iterator();
|
||||
while (iter.hasNext()) {
|
||||
var mo = iter.next();
|
||||
if (mo.getState() >= 7) {
|
||||
reactors.push(mo);
|
||||
}
|
||||
}
|
||||
|
||||
return reactors;
|
||||
}
|
||||
|
||||
function start(ms) {
|
||||
var map = ms.getClient().getChannelServer().getMapFactory().getMap(926120300);
|
||||
map.resetReactors(getInactiveReactors(map));
|
||||
|
||||
return (true);
|
||||
}
|
||||
6
scripts/map/onUserEnter/Massacre_result.js
Normal file
6
scripts/map/onUserEnter/Massacre_result.js
Normal file
@@ -0,0 +1,6 @@
|
||||
function start(ms) {
|
||||
var py = ms.getPyramid();
|
||||
if (py != null) {
|
||||
py.sendScore(ms.getPlayer());
|
||||
}
|
||||
}
|
||||
26
scripts/map/onUserEnter/PromiseDragon.js
Normal file
26
scripts/map/onUserEnter/PromiseDragon.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 start(ms) {
|
||||
ms.lockUI();
|
||||
ms.showIntro("Effect/Direction4.img/PromiseDragon/Scene" + ms.getPlayer().getGender());
|
||||
}
|
||||
3
scripts/map/onUserEnter/Resi_tutor10.js
Normal file
3
scripts/map/onUserEnter/Resi_tutor10.js
Normal file
@@ -0,0 +1,3 @@
|
||||
function start(ms) {
|
||||
ms.setStandAloneMode(true);
|
||||
}
|
||||
3
scripts/map/onUserEnter/Resi_tutor20.js
Normal file
3
scripts/map/onUserEnter/Resi_tutor20.js
Normal file
@@ -0,0 +1,3 @@
|
||||
function start(ms) {
|
||||
ms.mapEffect("resistance/tutorialGuide");
|
||||
}
|
||||
4
scripts/map/onUserEnter/Resi_tutor30.js
Normal file
4
scripts/map/onUserEnter/Resi_tutor30.js
Normal file
@@ -0,0 +1,4 @@
|
||||
function start(ms) {
|
||||
ms.updateAreaInfo(23007, "exp1=1;exp2=1;exp3=1;exp4=1");//force
|
||||
ms.showInfo("Effect/OnUserEff.img/guideEffect/resistanceTutorial/userTalk");
|
||||
}
|
||||
3
scripts/map/onUserEnter/Resi_tutor40.js
Normal file
3
scripts/map/onUserEnter/Resi_tutor40.js
Normal file
@@ -0,0 +1,3 @@
|
||||
function start(ms) {
|
||||
ms.openNpc(2159012);
|
||||
}
|
||||
4
scripts/map/onUserEnter/Resi_tutor50.js
Normal file
4
scripts/map/onUserEnter/Resi_tutor50.js
Normal file
@@ -0,0 +1,4 @@
|
||||
function start(ms) {
|
||||
ms.setDirectionMode(false);
|
||||
ms.openNpc(2159006);
|
||||
}
|
||||
3
scripts/map/onUserEnter/Resi_tutor60.js
Normal file
3
scripts/map/onUserEnter/Resi_tutor60.js
Normal file
@@ -0,0 +1,3 @@
|
||||
function start(ms) {
|
||||
ms.openNpc(2159007);
|
||||
}
|
||||
4
scripts/map/onUserEnter/Resi_tutor70.js
Normal file
4
scripts/map/onUserEnter/Resi_tutor70.js
Normal file
@@ -0,0 +1,4 @@
|
||||
function start(ms) {
|
||||
ms.setDirectionMode(true);
|
||||
ms.showIntro("Effect/Direction4.img/Resistance/TalkJ");
|
||||
}
|
||||
3
scripts/map/onUserEnter/Resi_tutor80.js
Normal file
3
scripts/map/onUserEnter/Resi_tutor80.js
Normal file
@@ -0,0 +1,3 @@
|
||||
function start(ms) {
|
||||
ms.setDirectionMode(false);
|
||||
}
|
||||
25
scripts/map/onUserEnter/aranDirection.js
Normal file
25
scripts/map/onUserEnter/aranDirection.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 start(ms) {
|
||||
ms.displayAranIntro();
|
||||
}
|
||||
26
scripts/map/onUserEnter/babyPigMap.js
Normal file
26
scripts/map/onUserEnter/babyPigMap.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 start(ms) {
|
||||
ms.unlockUI();
|
||||
ms.getClient().getQM().forceStartQuest(22015);
|
||||
}
|
||||
6
scripts/map/onUserEnter/cannon_tuto_01.js
Normal file
6
scripts/map/onUserEnter/cannon_tuto_01.js
Normal file
@@ -0,0 +1,6 @@
|
||||
function start(ms) {
|
||||
ms.setDirection(0);
|
||||
ms.setDirectionStatus(true);
|
||||
ms.lockUI2();
|
||||
ms.startDirection("cannon_tuto_02");
|
||||
}
|
||||
5
scripts/map/onUserEnter/cannon_tuto_direction.js
Normal file
5
scripts/map/onUserEnter/cannon_tuto_direction.js
Normal file
@@ -0,0 +1,5 @@
|
||||
function start(ms) {
|
||||
ms.setDirectionStatus(true);
|
||||
ms.showIntro("Effect/Direction4.img/cannonshooter/Scene00");
|
||||
ms.showIntro("Effect/Direction4.img/cannonshooter/out00");
|
||||
}
|
||||
6
scripts/map/onUserEnter/cannon_tuto_direction1.js
Normal file
6
scripts/map/onUserEnter/cannon_tuto_direction1.js
Normal file
@@ -0,0 +1,6 @@
|
||||
function start(ms) {
|
||||
ms.playSound("cannonshooter/flying");
|
||||
ms.sendDirectionInfo("Effect/Direction4.img/effect/cannonshooter/balloon/0", 9000, 0, 0, 0, -1);
|
||||
ms.sendDirectionInfo(1, 1500);
|
||||
ms.setDirectionStatus(true);
|
||||
}
|
||||
6
scripts/map/onUserEnter/cannon_tuto_direction2.js
Normal file
6
scripts/map/onUserEnter/cannon_tuto_direction2.js
Normal file
@@ -0,0 +1,6 @@
|
||||
function start(ms) {
|
||||
ms.playSound("cannonshooter/bang");
|
||||
ms.setDirectionStatus(true);
|
||||
ms.showIntro("Effect/Direction4.img/cannonshooter/Scene01");
|
||||
ms.showIntro("Effect/Direction4.img/cannonshooter/out02");
|
||||
}
|
||||
4
scripts/map/onUserEnter/crash_Dragon.js
Normal file
4
scripts/map/onUserEnter/crash_Dragon.js
Normal file
@@ -0,0 +1,4 @@
|
||||
function start(ms) {
|
||||
ms.lockUI();
|
||||
ms.showIntro("Effect/Direction4.img/crash/Scene" + ms.getPlayer().getGender());
|
||||
}
|
||||
25
scripts/map/onUserEnter/cygnusJobTutorial.js
Normal file
25
scripts/map/onUserEnter/cygnusJobTutorial.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 start(ms) {
|
||||
ms.displayCygnusIntro();
|
||||
}
|
||||
43
scripts/map/onUserEnter/dojang_Eff.js
Normal file
43
scripts/map/onUserEnter/dojang_Eff.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 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, Traitor, Ronan
|
||||
*@Map(s): All Dojo fighting maps
|
||||
*@Function: Displays info for the player when entering a dojo map
|
||||
*/
|
||||
|
||||
|
||||
function start(ms) {
|
||||
ms.getPlayer().resetEnteredScript();
|
||||
var stage = Math.floor(ms.getPlayer().getMap().getId() / 100) % 100;
|
||||
|
||||
ms.getPlayer().showDojoClock();
|
||||
if (stage % 6 > 0) {
|
||||
var realstage = stage - ((stage / 6) | 0);
|
||||
ms.dojoEnergy();
|
||||
|
||||
ms.playSound("Dojang/start");
|
||||
ms.showEffect("dojang/start/stage");
|
||||
ms.showEffect("dojang/start/number/" + realstage);
|
||||
}
|
||||
}
|
||||
40
scripts/map/onUserEnter/dojang_Msg.js
Normal file
40
scripts/map/onUserEnter/dojang_Msg.js
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
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): Mu Lung Dojo Entrance
|
||||
Desc: Sends the entrance message or the taunt message from that dojo guy
|
||||
*/
|
||||
var messages = Array("Your courage for challenging the Mu Lung Dojo is commendable!", "If you want to taste the bitterness of defeat, come on in!", "I will make you thoroughly regret challenging the Mu Lung Dojo! Hurry up!");
|
||||
|
||||
function start(ms) {
|
||||
if (ms.getPlayer().getMap().getId() == 925020000) {
|
||||
if (ms.getPlayer().getMap().findClosestPlayerSpawnpoint(ms.getPlayer().getPosition()).getId() == 0) {
|
||||
ms.getPlayer().startMapEffect(messages[(Math.random() * messages.length) | 0], 5120024);
|
||||
}
|
||||
|
||||
ms.resetDojoEnergy();
|
||||
} else {
|
||||
ms.getPlayer().resetEnteredScript(); //in case the person dcs in here we set it at dojang_tuto portal
|
||||
ms.getPlayer().startMapEffect("Ha! Let's see what you got! I won't let you leave unless you defeat me first!", 5120024);
|
||||
}
|
||||
}
|
||||
25
scripts/map/onUserEnter/evanleaveD.js
Normal file
25
scripts/map/onUserEnter/evanleaveD.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 start(ms) {
|
||||
ms.unlockUI();
|
||||
}
|
||||
48
scripts/map/onUserEnter/explorationPoint.js
Normal file
48
scripts/map/onUserEnter/explorationPoint.js
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
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
|
||||
*
|
||||
*/
|
||||
function start(ms) {
|
||||
if (ms.getPlayer().getMapId() == 110000000 || (ms.getPlayer().getMapId() >= 100000000 && ms.getPlayer().getMapId() < 105040300)) {
|
||||
ms.explorerQuest(29005, "Beginner Explorer");//Beginner Explorer
|
||||
} else if (ms.getPlayer().getMapId() >= 105040300 && ms.getPlayer().getMapId() <= 105090900) {
|
||||
ms.explorerQuest(29014, "Sleepywood Explorer");//Sleepywood Explorer
|
||||
} else if (ms.getPlayer().getMapId() >= 200000000 && ms.getPlayer().getMapId() <= 211041800) {
|
||||
ms.explorerQuest(29006, "El Nath Mts. Explorer");//El Nath Mts. Explorer
|
||||
} else if (ms.getPlayer().getMapId() >= 220000000 && ms.getPlayer().getMapId() <= 222020000) {
|
||||
ms.explorerQuest(29007, "Ludus Lake Explorer");//Ludus Lake Explorer
|
||||
} else if (ms.getPlayer().getMapId() >= 230000000 && ms.getPlayer().getMapId() <= 230040401) {
|
||||
ms.explorerQuest(29008, "Undersea Explorer");//Undersea Explorer
|
||||
} else if (ms.getPlayer().getMapId() >= 250000000 && ms.getPlayer().getMapId() <= 251010500) {
|
||||
ms.explorerQuest(29009, "Mu Lung Explorer");//Mu Lung Explorer
|
||||
} else if (ms.getPlayer().getMapId() >= 260000000 && ms.getPlayer().getMapId() <= 261030000) {
|
||||
ms.explorerQuest(29010, "Nihal Desert Explorer");//Nihal Desert Explorer
|
||||
} else if (ms.getPlayer().getMapId() >= 240000000 && ms.getPlayer().getMapId() <= 240050000) {
|
||||
ms.explorerQuest(29011, "Minar Forest Explorer");//Minar Forest Explorer
|
||||
}
|
||||
if (ms.getPlayer().getMapId() == 104000000) {
|
||||
ms.mapEffect("maplemap/enter/104000000");
|
||||
}
|
||||
}
|
||||
4
scripts/map/onUserEnter/getDragonEgg.js
Normal file
4
scripts/map/onUserEnter/getDragonEgg.js
Normal file
@@ -0,0 +1,4 @@
|
||||
function start(ms) {
|
||||
ms.lockUI();
|
||||
ms.showIntro("Effect/Direction4.img/getDragonEgg/Scene" + ms.getPlayer().getGender());
|
||||
}
|
||||
26
scripts/map/onUserEnter/go10000.js
Normal file
26
scripts/map/onUserEnter/go10000.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 start(ms) {
|
||||
ms.unlockUI();
|
||||
ms.mapEffect("maplemap/enter/10000");
|
||||
}
|
||||
25
scripts/map/onUserEnter/go1000000.js
Normal file
25
scripts/map/onUserEnter/go1000000.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 start(ms) {
|
||||
ms.mapEffect("maplemap/enter/1000000");
|
||||
}
|
||||
25
scripts/map/onUserEnter/go1010000.js
Normal file
25
scripts/map/onUserEnter/go1010000.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 start(ms) {
|
||||
ms.mapEffect("maplemap/enter/1010000");
|
||||
}
|
||||
25
scripts/map/onUserEnter/go1010100.js
Normal file
25
scripts/map/onUserEnter/go1010100.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 start(ms) {
|
||||
ms.mapEffect("maplemap/enter/1010100");
|
||||
}
|
||||
25
scripts/map/onUserEnter/go1010200.js
Normal file
25
scripts/map/onUserEnter/go1010200.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 start(ms) {
|
||||
ms.mapEffect("maplemap/enter/1010200");
|
||||
}
|
||||
25
scripts/map/onUserEnter/go1010300.js
Normal file
25
scripts/map/onUserEnter/go1010300.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 start(ms) {
|
||||
ms.mapEffect("maplemap/enter/1010300");
|
||||
}
|
||||
4
scripts/map/onUserEnter/go1020000.js
Normal file
4
scripts/map/onUserEnter/go1020000.js
Normal file
@@ -0,0 +1,4 @@
|
||||
function start(ms) {
|
||||
ms.unlockUI();
|
||||
ms.mapEffect("maplemap/enter/1020000");
|
||||
}
|
||||
26
scripts/map/onUserEnter/go20000.js
Normal file
26
scripts/map/onUserEnter/go20000.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 start(ms) {
|
||||
ms.unlockUI();
|
||||
ms.mapEffect("maplemap/enter/20000");
|
||||
}
|
||||
25
scripts/map/onUserEnter/go30000.js
Normal file
25
scripts/map/onUserEnter/go30000.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 start(ms) {
|
||||
ms.mapEffect("maplemap/enter/30000");
|
||||
}
|
||||
25
scripts/map/onUserEnter/go40000.js
Normal file
25
scripts/map/onUserEnter/go40000.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 start(ms) {
|
||||
ms.mapEffect("maplemap/enter/40000");
|
||||
}
|
||||
25
scripts/map/onUserEnter/go50000.js
Normal file
25
scripts/map/onUserEnter/go50000.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 start(ms) {
|
||||
ms.mapEffect("maplemap/enter/50000");
|
||||
}
|
||||
25
scripts/map/onUserEnter/goAdventure.js
Normal file
25
scripts/map/onUserEnter/goAdventure.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 start(ms) {
|
||||
ms.goAdventure();
|
||||
}
|
||||
25
scripts/map/onUserEnter/goArcher.js
Normal file
25
scripts/map/onUserEnter/goArcher.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 start(ms) {
|
||||
ms.startExplorerExperience();
|
||||
}
|
||||
25
scripts/map/onUserEnter/goLith.js
Normal file
25
scripts/map/onUserEnter/goLith.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 start(ms) {
|
||||
ms.goLith();
|
||||
}
|
||||
25
scripts/map/onUserEnter/goMagician.js
Normal file
25
scripts/map/onUserEnter/goMagician.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 start(ms) {
|
||||
ms.startExplorerExperience();
|
||||
}
|
||||
25
scripts/map/onUserEnter/goPirate.js
Normal file
25
scripts/map/onUserEnter/goPirate.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 start(ms) {
|
||||
ms.startExplorerExperience();
|
||||
}
|
||||
25
scripts/map/onUserEnter/goRogue.js
Normal file
25
scripts/map/onUserEnter/goRogue.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 start(ms) {
|
||||
ms.startExplorerExperience();
|
||||
}
|
||||
25
scripts/map/onUserEnter/goSwordman.js
Normal file
25
scripts/map/onUserEnter/goSwordman.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 start(ms) {
|
||||
ms.startExplorerExperience();
|
||||
}
|
||||
29
scripts/map/onUserEnter/highposition.js
Normal file
29
scripts/map/onUserEnter/highposition.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/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Author: kevintjuh93
|
||||
*
|
||||
*/
|
||||
function start(ms) {
|
||||
ms.touchTheSky();
|
||||
}
|
||||
9
scripts/map/onUserEnter/iceCave.js
Normal file
9
scripts/map/onUserEnter/iceCave.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function start(ms) {
|
||||
ms.teachSkill(20000014, -1, 0, -1);
|
||||
ms.teachSkill(20000015, -1, 0, -1);
|
||||
ms.teachSkill(20000016, -1, 0, -1);
|
||||
ms.teachSkill(20000017, -1, 0, -1);
|
||||
ms.teachSkill(20000018, -1, 0, -1);
|
||||
ms.unlockUI();
|
||||
ms.showIntro("Effect/Direction1.img/aranTutorial/ClickLilin");
|
||||
}
|
||||
26
scripts/map/onUserEnter/meetWithDragon.js
Normal file
26
scripts/map/onUserEnter/meetWithDragon.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 start(ms) {
|
||||
ms.lockUI();
|
||||
ms.showIntro("Effect/Direction4.img/meetWithDragon/Scene" + ms.getPlayer().getGender());
|
||||
}
|
||||
9
scripts/map/onUserEnter/pepeking_effect.js
Normal file
9
scripts/map/onUserEnter/pepeking_effect.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function start(ms) {
|
||||
var mobId = 3300000 + (Math.floor(Math.random() * 3) + 5);
|
||||
var player = ms.getPlayer();
|
||||
var map = player.getMap();
|
||||
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
const Point = Java.type('java.awt.Point');
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), new Point(-28, -67));
|
||||
}
|
||||
6
scripts/map/onUserEnter/rien.js
Normal file
6
scripts/map/onUserEnter/rien.js
Normal file
@@ -0,0 +1,6 @@
|
||||
function start(ms) {
|
||||
if (ms.isQuestCompleted(21101) && ms.containsAreaInfo(21019, "miss=o;arr=o;helper=clear")) {
|
||||
ms.updateAreaInfo(21019, "miss=o;arr=o;ck=1;helper=clear");
|
||||
}
|
||||
ms.unlockUI();
|
||||
}
|
||||
6
scripts/map/onUserEnter/rienArrow.js
Normal file
6
scripts/map/onUserEnter/rienArrow.js
Normal file
@@ -0,0 +1,6 @@
|
||||
function start(ms) {
|
||||
if (ms.containsAreaInfo(21019, "miss=o;helper=clear")) {
|
||||
ms.updateAreaInfo(21019, "miss=o;arr=o;helper=clear");
|
||||
ms.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow3");
|
||||
}
|
||||
}
|
||||
5
scripts/map/onUserEnter/startEreb.js
Normal file
5
scripts/map/onUserEnter/startEreb.js
Normal file
@@ -0,0 +1,5 @@
|
||||
function start(ms) {
|
||||
if (ms.getJobId() == 1000 && ms.getLevel() >= 10) {
|
||||
ms.unlockUI();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user