52 lines
2.1 KiB
JavaScript
52 lines
2.1 KiB
JavaScript
/*
|
|
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/>.
|
|
*/
|
|
/* Door of Dimension
|
|
Enter 3rd job event
|
|
*/
|
|
|
|
function start() {
|
|
if (cm.getPlayer().gotPartyQuestItem("JBP") && !cm.haveItem(4031059)) {
|
|
if (cm.getPlayer().getMapId() == 105070001 && (cm.getJobId() >= 110 && cm.getJobId() <= 130))
|
|
cm.warp(108010300);
|
|
else if (cm.getPlayer().getMapId() == 105040305 && (cm.getJobId() >= 310 && cm.getJobId() <= 320))
|
|
cm.warp(108010100);
|
|
else if (cm.getPlayer().getMapId() == 100040106 && (cm.getJobId() >= 210 && cm.getJobId() <= 230))
|
|
cm.warp(108010200);
|
|
else if (cm.getPlayer().getMapId() == 107000402 && (cm.getJobId() >= 410 && cm.getJobId() <= 420))
|
|
cm.warp(108010400);
|
|
else if (cm.getPlayer().getMapId() == 105070200 && (cm.getJobId() >= 510 && cm.getJobId() <= 520))
|
|
cm.warp(108010500);
|
|
}
|
|
cm.dispose();
|
|
/*20 minutes*/
|
|
}
|
|
|
|
/*
|
|
|
|
1061010 - Crystal NPC
|
|
*/
|
|
/*var em = cm.getEventManager("3rdjob");
|
|
if (em == null)
|
|
cm.sendOk("Sorry, but 3rd job advancement is closed.");
|
|
else
|
|
em.newInstance(cm.getPlayer().getName()).registerPlayer(cm.getPlayer());
|
|
*/ |